VDR Portal
Register Calendar Members List Team Members Search Frequently Asked Questions Gallery Go to the Main Page

VDR Portal » Video Disk Recorder » VDR Konfiguration » Rechte für Zeitsynchronisation? » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Recommend to a Friend | Add Thread to Favorites
Pages (2): [1] 2 next » Post New Thread Post Reply
Go to the bottom of this page Rechte für Zeitsynchronisation?
Author
Post « Previous Thread | Next Thread »
thoralf
Tripel-Ass


Registration Date: 09.05.2003
Posts: 154

Rechte für Zeitsynchronisation? Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Hallo,

irgendwie geht das Stellen der Systemzeit durch EPG-Abgleich nicht. In /var/log/messages steht (wenn ich auf dem eingestellten Sync-Transponder fernsehe) jede Minute ein Eintrag mit der EPG-Zeit und der Systemzeit - die sind aber entsprechend falsch versetzt (die Systemzeit wird also nicht gestellt, es wird nur angezeigt, dass diese nicht mit der EPG-Zeit übereinstimmt).

Ich denke, dass der nach Sandmanns Anleitung erstellte Nutzer vdr kein Recht hat, die Zeit zu setzen. Welche Rechte benötigt er also dazu?

__________________
c't-vdr5
auf VIA EPIA M10000 NEHEMIAH
mit SAMSUNG HD400LD
03.08.2003 20:24 thoralf is offline Send an Email to thoralf Search for Posts by thoralf Add thoralf to your Buddy List
baltasar baltasar is a male
Routinier


images/avatars/avatar-126.jpg

Registration Date: 31.05.2003
Posts: 478
Berufung: Patch-Entwickler

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Zeit einstellen direkt scheint wirklich nur root zu können. ( Ich lass mich aber gerne eines besseren belehren ).
Ich habe einen quick& dirty hack in den sourcen gemacht.
Man nehme die Uhrzeit vom sat und wandelte sie ins format für "date" und rufe eine script auf.
Bei mir "/vdr/bin/vdrsettime MMDDhhmmCCYY.ss".
Im Script steht "/usr/bin/sudo /bin/date $1 ".

Im /etc/sudoers steht
vdr ALL=(ALL) NOPASSWD: /bin/date

Wenn es jemand wirklich wichtig ist kann ich ja mal einen Patch machen.

Schönen Gruß
Peter
04.08.2003 11:58 baltasar is offline Send an Email to baltasar Homepage of baltasar Search for Posts by baltasar Add baltasar to your Buddy List
thoralf
Tripel-Ass


Registration Date: 09.05.2003
Posts: 154

Thread Starter Thread Started by thoralf
Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Hallo,

bei bir laufen die EPG-Zeit und die Systemzeit immer auseinander - also wär schön wenn Du den Patch mal raufstellen könntest smile

__________________
c't-vdr5
auf VIA EPIA M10000 NEHEMIAH
mit SAMSUNG HD400LD
04.08.2003 12:24 thoralf is offline Send an Email to thoralf Search for Posts by thoralf Add thoralf to your Buddy List
baltasar baltasar is a male
Routinier


images/avatars/avatar-126.jpg

Registration Date: 31.05.2003
Posts: 478
Berufung: Patch-Entwickler

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Hi !
Hat etwas gedauert. Aber hier ist der Patch um auch als "vdr" die system Zeit zu setzen.

1. Patch installieren
2. Neu übersetzen
3. Shellscript machen mit inhalt "/usr/bin/sudo /bin/date $1"
4. visudo "vdr ALL=(ALL) NOPASSWD: /bin/date" eintragen
5. runvdr ändern. "vdr -T /pfad/zum/setTime.script"

Damit läuft es bei mir jetzt schon seit ein paar Monaten.

Schönen Gruß

Peter

Attachment:
unknown settime.diff (2.44 KB, 699 downloads)
14.08.2003 04:38 baltasar is offline Send an Email to baltasar Homepage of baltasar Search for Posts by baltasar Add baltasar to your Buddy List
Thomas Thomas is a male
Super Moderator


images/avatars/avatar-1899.gif

Registration Date: 05.02.2003
Posts: 4,189
Herkunft: Ost-Allgäu, Bayern
Berufung: Raubvorspuler

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

@baltasar:

Hast Du was dagegen wenn ich das mal in die Mailingliste packe?
Dein Patch scheint mir eine ganz brauchbare Lösung zu sein smile

__________________

VDR 1.7.0, Celeron 2000, 2.5TB, Antec Fusion Remote, Mystique SaTiX-S2 V2 CI Dual, GF9300+VDPAU, 1080p Display mit Slimes Atmolight strike
1679 entdeckte Gottfried Wilhelm Leibniz das Binärsystem, bei einem Gespräch mit seiner Mutter: "Ja..., Nein..., Nein..., Nein..., Ja..., Ja..., Nein..."

14.08.2003 07:35 Thomas is offline Send an Email to Thomas Homepage of Thomas Search for Posts by Thomas Add Thomas to your Buddy List Add Thomas to your Contact List View the MSN Profile for Thomas
baltasar baltasar is a male
Routinier


images/avatars/avatar-126.jpg

Registration Date: 31.05.2003
Posts: 478
Berufung: Patch-Entwickler

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Latürlich nicht !

Lasset den Ruhm zu mir kommen großes Grinsen
14.08.2003 16:27 baltasar is offline Send an Email to baltasar Homepage of baltasar Search for Posts by baltasar Add baltasar to your Buddy List
thoralf
Tripel-Ass


Registration Date: 09.05.2003
Posts: 154

Thread Starter Thread Started by thoralf
Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Denn vielen Dank! Seit gestern abend läuft mein vdr endlich synchron!

welle

__________________
c't-vdr5
auf VIA EPIA M10000 NEHEMIAH
mit SAMSUNG HD400LD
15.08.2003 11:00 thoralf is offline Send an Email to thoralf Search for Posts by thoralf Add thoralf to your Buddy List
Thomas Thomas is a male
Super Moderator


images/avatars/avatar-1899.gif

Registration Date: 05.02.2003
Posts: 4,189
Herkunft: Ost-Allgäu, Bayern
Berufung: Raubvorspuler

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Done smile

Habs in der Liste gepostet, Credits gehen an Dich!

__________________

VDR 1.7.0, Celeron 2000, 2.5TB, Antec Fusion Remote, Mystique SaTiX-S2 V2 CI Dual, GF9300+VDPAU, 1080p Display mit Slimes Atmolight strike
1679 entdeckte Gottfried Wilhelm Leibniz das Binärsystem, bei einem Gespräch mit seiner Mutter: "Ja..., Nein..., Nein..., Nein..., Ja..., Ja..., Nein..."

15.08.2003 14:51 Thomas is offline Send an Email to Thomas Homepage of Thomas Search for Posts by Thomas Add Thomas to your Buddy List Add Thomas to your Contact List View the MSN Profile for Thomas
holymoly
Fürst


Registration Date: 06.12.2002
Posts: 2,987
Herkunft: /dev/null

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

quote:
Original von baltasar
Hi !
Hat etwas gedauert. Aber hier ist der Patch um auch als "vdr" die system Zeit zu setzen.

5. runvdr ändern. "vdr -T /pfad/zum/setTime.script"
Damit läuft es bei mir jetzt schon seit ein paar Monaten.
Schönen Gruß
Peter

hi,
laut deinem diff steht -T fuer timeset, kann ich das dann in das init.d/srcript von den
gentoo-ebuilds mit
quote:
[ -n "${TIMESET}" ] && vdropts="${vdropts} --timeset=${TIMESET} "

einbauen und die Option TIMESET="/pfad/.." in der conf.d/vdr festlegen ,sollte doch funktionieren ?
Vielen Dank.
c-ya
/Habe es schnell mal getestet funktioniert großes Grinsen

This post has been edited 1 time(s), it was last edited by holymoly: 10.09.2003 21:14.

10.09.2003 20:55 holymoly is offline Send an Email to holymoly Search for Posts by holymoly Add holymoly to your Buddy List
baltasar baltasar is a male
Routinier


images/avatars/avatar-126.jpg

Registration Date: 31.05.2003
Posts: 478
Berufung: Patch-Entwickler

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Freude Freude Freude Freude Freude Freude Freude
10.09.2003 21:23 baltasar is offline Send an Email to baltasar Homepage of baltasar Search for Posts by baltasar Add baltasar to your Buddy List
seba
Haudegen


Registration Date: 09.04.2003
Posts: 685

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Hallo

Funktioniert das diff auch noch mit VDR 1.2.5pre2+autoPID?

MfG

__________________
vdr-1.7.14 + Kernel DVB-- LFS 6.6 / linux-2.6.32.8 - Celeron 2,0 GHz - 256 MB DDR Ram - 160 GB Seagate Barracuda HDD - NEC ND-1300A - DVB-S Rev. 1.5 - TBE Extension Board - Feegy GLCD 240x128
# nvram-wakeup-1.1 # vdradmind-am-3.6.7 # vdr-extb-0.3.1 # graphlcd-0.1.6 # tvtv-0.4.0


Linux From Scratch | How To Ask Questions The Smart Way
10.09.2003 21:29 seba is offline Send an Email to seba Search for Posts by seba Add seba to your Buddy List Add seba to your Contact List
holymoly
Fürst


Registration Date: 06.12.2002
Posts: 2,987
Herkunft: /dev/null

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

quote:
Original von seba
Hallo

Funktioniert das diff auch noch mit VDR 1.2.5pre2+autoPID?

MfG

Hi,
habe es gerade getestet unter vdr-1.2.5pre mit autopid & Elchi,
scheint zu funktionieren ! Freude
Baltasar , thanks a lot Augenzwinkern
Hatte es gestern schon mal probiert,nur mit der t -option habe ich es nicht zum laufen bekommen.
mfg
10.09.2003 21:44 holymoly is offline Send an Email to holymoly Search for Posts by holymoly Add holymoly to your Buddy List
seba
Haudegen


Registration Date: 09.04.2003
Posts: 685

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

quote:
Original von holymoly
Hatte es gestern schon mal probiert,nur mit der t -option habe ich es nicht zum laufen bekommen.
mfg


Wie machst Du es denn jetzt?

MfG

__________________
vdr-1.7.14 + Kernel DVB-- LFS 6.6 / linux-2.6.32.8 - Celeron 2,0 GHz - 256 MB DDR Ram - 160 GB Seagate Barracuda HDD - NEC ND-1300A - DVB-S Rev. 1.5 - TBE Extension Board - Feegy GLCD 240x128
# nvram-wakeup-1.1 # vdradmind-am-3.6.7 # vdr-extb-0.3.1 # graphlcd-0.1.6 # tvtv-0.4.0


Linux From Scratch | How To Ask Questions The Smart Way
10.09.2003 21:47 seba is offline Send an Email to seba Search for Posts by seba Add seba to your Buddy List Add seba to your Contact List
baltasar baltasar is a male
Routinier


images/avatars/avatar-126.jpg

Registration Date: 31.05.2003
Posts: 478
Berufung: Patch-Entwickler

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Die Option heisst "-T" (grosses T) oder "--timeset" !

Ohne die Option wird dass "alte" Verfahren angewendet, also nur für root erlaubt.

Der Patch sollte unproblematisch mit allen anderen patches und Versionen funktionieren.
10.09.2003 21:51 baltasar is offline Send an Email to baltasar Homepage of baltasar Search for Posts by baltasar Add baltasar to your Buddy List
holymoly
Fürst


Registration Date: 06.12.2002
Posts: 2,987
Herkunft: /dev/null

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

hi,
habe es nochmal getestet,
reboot -> im Bios die Zeit umgestellt ,wird beim Start von vdr sofort korrigiert.
Starte vdr mit dem init.d script von mad ,habe dort
code:
1:
[ -n "${TIMESET}" ] && vdropts="${vdropts} --timeset=${TIMESET} "

hinzugefuegt,
und in der /conf.d/vdr wird wie gesagt der pfad auf das timeset-script gesetzt.
TIMESET="/pfad/zur/timeset.sh"
Funktioniert also alles bestens Freude
mfg
10.09.2003 22:20 holymoly is offline Send an Email to holymoly Search for Posts by holymoly Add holymoly to your Buddy List
seba
Haudegen


Registration Date: 09.04.2003
Posts: 685

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Hallo

Also bei mir will der Patch nicht so richtig.
Ist die Einstellung im VDR EPG->Systemzeit bei dem Patch relevant?

MfG

__________________
vdr-1.7.14 + Kernel DVB-- LFS 6.6 / linux-2.6.32.8 - Celeron 2,0 GHz - 256 MB DDR Ram - 160 GB Seagate Barracuda HDD - NEC ND-1300A - DVB-S Rev. 1.5 - TBE Extension Board - Feegy GLCD 240x128
# nvram-wakeup-1.1 # vdradmind-am-3.6.7 # vdr-extb-0.3.1 # graphlcd-0.1.6 # tvtv-0.4.0


Linux From Scratch | How To Ask Questions The Smart Way
11.09.2003 15:59 seba is offline Send an Email to seba Search for Posts by seba Add seba to your Buddy List Add seba to your Contact List
baltasar baltasar is a male
Routinier


images/avatars/avatar-126.jpg

Registration Date: 31.05.2003
Posts: 478
Berufung: Patch-Entwickler

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

quote:
Ist die Einstellung im VDR EPG->Systemzeit bei dem Patch relevant?

Da must du es natürlich einschalten und bestimmen von welchen Transponder/Sender die Zeit kommen soll.

Mein Patch ändert nur die Methode wie die Uhrzeit ins System übertragen wird.
11.09.2003 18:41 baltasar is offline Send an Email to baltasar Homepage of baltasar Search for Posts by baltasar Add baltasar to your Buddy List
seba
Haudegen


Registration Date: 09.04.2003
Posts: 685

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Hi

Nun funktioniert er, hatte wohl ein Fehler im setTime Script.

Ist jedenfalls ein super Patch, der umbedingt in den Downloadbereich gehört.

MfG

__________________
vdr-1.7.14 + Kernel DVB-- LFS 6.6 / linux-2.6.32.8 - Celeron 2,0 GHz - 256 MB DDR Ram - 160 GB Seagate Barracuda HDD - NEC ND-1300A - DVB-S Rev. 1.5 - TBE Extension Board - Feegy GLCD 240x128
# nvram-wakeup-1.1 # vdradmind-am-3.6.7 # vdr-extb-0.3.1 # graphlcd-0.1.6 # tvtv-0.4.0


Linux From Scratch | How To Ask Questions The Smart Way
11.09.2003 20:44 seba is offline Send an Email to seba Search for Posts by seba Add seba to your Buddy List Add seba to your Contact List
ewiVDR ewiVDR is a male
Routinier


images/avatars/avatar-1296.jpg

Registration Date: 18.05.2003
Posts: 397
Herkunft: Graz

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

quote:
Original von seba
Hi


Ist jedenfalls ein super Patch, der umbedingt in den Downloadbereich gehört.

MfG

das kann ich nur unterstreichen welle

__________________
primär: LinVDR 0.7 + 1.4.4 VDR + bigpatch + diverse Plugins
sekundär: Baustelle: ctvdr_x.y, Kano*, SuSe
HW: Abit BP6, 2x Celeron 500 (nur 1 aktiv), 2xDVBs TT 1.3, 512 MB

09.11.2003 17:35 ewiVDR is offline Send an Email to ewiVDR Homepage of ewiVDR Search for Posts by ewiVDR Add ewiVDR to your Buddy List Add ewiVDR to your Contact List
atommyk
Routinier


images/avatars/avatar-447.gif

Registration Date: 26.11.2003
Posts: 269

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Hi baltasar,

Vielen Dank für den Patch - habe aber bei der Umsetzung des Ganzen einige Probleme....

Verwende Gentoo - daraus resultieren vielleicht auch meine Fragen.

Habe mittels "ebuild /usr/portage/media-video/vdr/vdr-1.2.6-r4.ebuild unpack" die Sourcen ausgepackt, wollte dann den Patch drüberlaufen lassen, habe aber ein paar Rejects bekommen in der eit.c - habe mir dann die Rejects angeschaut:
code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
--- 170,185 ----
     {
        isyslog("System Time = %s (%ld)\n", ctime(&loctim), loctim);
        isyslog("Local Time  = %s (%ld)\n", ctime(&mjdtime), mjdtime);
+       if ( SetTime ) {
+         strftime(timestr,20,"%m%d%H%M%Y.%S",ptm);
+         asprintf(&cmd,"%s %s %ld",SetTime,timestr,mjdtime);
+         dsyslog("Executing: %s",cmd);
+         SystemExec(cmd);
+         free(cmd);
+       } else {
+         if (stime(&mjdtime) < 0)
+           esyslog("ERROR while setting system time: %m");
+       }
        return true;
     }

Das kann aber eigentlich nicht sein, denn ich habe mir meine eit.c angesehen und dort finde ich auch die entsprechenden, schon geänderten Passagen. Nachdem ich unter Gentoo mittels VDR_OPTS="akool" installiert habe, müsste der Komplettpatch-E samt Settime-Patch installiert sein, oder?
Was mich dann aber stutzig macht, ist, dass ich in der /var/log/messages trotzdem dauernd die Meldung bekomme:
code:
1:
2:
3:
4:
Feb 25 20:12:56 rockzbox vdr[2034]: System Time = Wed Feb 25 20:12:56 2004  (1077736376)
Feb 25 20:12:56 rockzbox vdr[2034]: Local Time  = Wed Feb 25 20:08:47 2004  (1077736127)
Feb 25 20:12:56 rockzbox vdr[2034]: ERROR while setting system time: Operation not permitted

Was soll das denn? Wenn ich als User vdr versuche, date auszuführen, habe ich auch kein Problem. Wie kann dieser Vorgang dann aber in der /var/log/messages die Fehlermeldungen erzeugen?
Habe jetzt erstmal den Eintrag in der sudoers vorgenommen. Mal sehen ob sich etwas ändert.

Habe mir dann außerdem mal die /etc/init.d/vdr angesehen - dort finde ich keine entsprechende Zeile
code:
1:
[ -n "${TIMESET}" ] && vdropts="${vdropts} --timeset=${TIMESET} "
- heißt das, der Patch ist unzureichend implementiert?

__________________
greetz
atommyk

Software: c't VDR 6, bisher keine großen Anpassungen
Hardware: Epia M10000Neh, 512 MB Ram, 80 GB Seagate Barracuda 5 (zu klein großes Grinsen ), Zapway-IR-Modul; verbaut in einem Alu-/MDF-Casecon
25.02.2004 20:50 atommyk is offline Send an Email to atommyk Homepage of atommyk Search for Posts by atommyk Add atommyk to your Buddy List
Pages (2): [1] 2 next » Tree Structure | Board Structure
Jump to:
Post New Thread Post Reply
VDR Portal » Video Disk Recorder » VDR Konfiguration » Rechte für Zeitsynchronisation?

www.vdr-portal.de VDR Portal © 2002-2006 by genka
Forum Software: Burning Board 2.3.4, Developed by WoltLab GmbH