# HG changeset patch
# User diego
# Date 1025475047 0
# Node ID 5e9b842fd06e4e4ee4c407bcd4ce1a01ac434091
# Parent 0b5a789d7fabca2d8879f64fe94af96dd0ddae61
further updates for RTC
diff -r 0b5a789d7fab -r 5e9b842fd06e DOCS/documentation.html
--- a/DOCS/documentation.html Sun Jun 30 20:34:54 2002 +0000
+++ b/DOCS/documentation.html Sun Jun 30 22:10:47 2002 +0000
@@ -664,25 +664,37 @@
usleep()
to tune A/V sync, with +/- 10ms accuracy. However
sometimes the sync has to be tuned even finer.
/proc
filesystem. Use this command to enable
- RTC for normal users:
+ because it has precise 1ms timers. It is automagically enabled when
+ available, but requires root privileges, a setuid root
+ MPlayer binary or a properly set up kernel.
+ /proc
filesystem.
+ Use this command to enable RTC for normal users:
- echo 1025 > /proc/sys/dev/rtc/max-user-freq
+ echo 1024 > /proc/sys/dev/rtc/max-user-freq
drivers/char/rtc.c
and recompile your kernel. Find the line
-
- if ((rtc_freq > 64) && (!capable(CAP_SYS_RESOURCE)))
-
drivers/char/rtc.c
and recompile your kernel. Find the
+ section that reads
+ + * We don't really want Joe User enabling more + * than 64Hz of interrupts on a multi-user machine. + */ + if ((rtc_freq > 64) && (!capable(CAP_SYS_RESOURCE))) +and change the 64 to 1024. You should really know what you are doing, though.
-nortc
switch.
+ In some hardware combinations (confirmed during usage of non-DMA DVD
+ drive on an ALi1541 board) usage of the RTC timer causes skippy playback.
+
+ It's recommended to use the following method in these cases.
-softsleep
option. It has the efficiency of the RTC, but it doesn't use RTC. On the other
hand, it requires more CPU.Linux RTC init: ioctl (rtc_pie_on): Permission denied
-