Użytkownik Daniel Mróz napisał:

Wyslalem juz to kilka dni temu, ale wyglada na to, ze nie doszlo. Sle
zatem raz jeszcze.



Czesc

  Pytalem (tutaj albo na devel-pl) o przyczyne rozjezdzania sie A/V.
Rzeczywiscie, problem tkwi w RTC, ale szczerze mowiac nie mam
zielonego pojecia jak to rozwiazac.


[EMAIL PROTECTED] beorn]$ ls -al /dev/rtc crw-rw-rw- 1 root root 10, 135 1998-05-05 /dev/rtc


(tak, wiem ze /dev/rtc jest read-only, ale probowalem juz wszystkiego)



[EMAIL PROTECTED] beorn]$ cat /dev/rtc


^C


Proba odpalenia mplayera:



[...] Linux RTC init error in ioctl (rtc_irqp_set 1024): Brak dostępu Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts. Using usleep() timing [...]

  [EMAIL PROTECTED] root]# echo 1024 > /proc/sys/dev/rtc/max-user-freq
  -bash: /proc/sys/dev/rtc/max-user-freq: No such file or directory


(jest tylko /proc/rtc). Odpalanie mplayera z root'a:


[...] Using Linux hardware RTC timing (1024Hz). [...]



strace mplayera ze zwyklego usera:


open("/dev/rtc", O_RDONLY|O_LARGEFILE) = 4 ioctl(4, RTC_IRQP_SET, 0x400) = -1 EACCES (Permission denied)


OK, zatem do dokumentacji RTC (/usr/src/linux/Documentation/rtc.txt):



[...] Programming and/or enabling interrupt frequencies greater than 64Hz is only allowed by root. This is perhaps a bit conservative, but we don't want an evil user generating lots of IRQs on a slow 386sx-16, where it might have a negative impact on performance. Note that the interrupt handler is only a few lines of code to minimize any possibility of this effect. [...]


czyli czestotliwosc 1024Hz moze ustawic tylko root! Czy mi sie wydaje, czy mplayera trzeba zsuidowac? Ale przeciez zsuidowany mplayer (a raczej GTK) sie na mnie wydziera:


[...] Gtk-WARNING **: This process is currently running setuid or setgid. This is not a supported use of GTK+. You must create a helper program instead. For further details, see:

http://www.gtk.org/setuid.html

  Refusing to initialize GTK+.
  [...]


i dupa blada. Pozostaje ogladac bez GUI, albo z roota. Z roota - niekoszerne, bez GUI - myszka sie nudzi. I jak to ugryzc? Skad wytrzasnac ten cholerny /proc/sys/dev/rtc/max-user-freq? Gdyby byl ten plik, to problem bylby rozwiazany.


Pozdrawiam Beorn



A próbowałeś:

echo 1024 > /proc/rtc/max-user-freq
Jaki to kernel?

WK


_________________________________________ http://pld-linux.org/ = faq, howto, newsy

dostales tutaj odpowiedz na swoje pytanie?
podziel sie z innymi i dopisz do FAQ!
                http://pld-linux.org/FAQ/



Odpowiedź listem elektroniczym