Mercurial > mplayer.hg
comparison DOCS/xml/en/install.xml @ 19761:9b41b396d3ca
Remove outdated hint about patching kernel sources.
author | diego |
---|---|
date | Sat, 09 Sep 2006 18:00:52 +0000 |
parents | 15dc064c4d96 |
children | 194a53413994 |
comparison
equal
deleted
inserted
replaced
19760:c55b49cd67ba | 19761:9b41b396d3ca |
---|---|
879 tuned even finer. | 879 tuned even finer. |
880 </simpara></listitem> | 880 </simpara></listitem> |
881 <listitem><para> | 881 <listitem><para> |
882 <emphasis role="bold">The new timer</emphasis> code uses the RTC (RealTime Clock) | 882 <emphasis role="bold">The new timer</emphasis> code uses the RTC (RealTime Clock) |
883 for this task, because it has precise 1ms timers. It is automagically enabled | 883 for this task, because it has precise 1ms timers. It is automagically enabled |
884 when available, but requires root privileges, a <emphasis>setuid root</emphasis> | 884 when available, but requires a properly set up kernel. |
885 <application>MPlayer</application> binary or a properly set up kernel. | |
886 If you are running kernel 2.4.19pre8 or later you can adjust the maximum RTC | 885 If you are running kernel 2.4.19pre8 or later you can adjust the maximum RTC |
887 frequency for normal users through the <systemitem class="systemname">/proc | 886 frequency for normal users through the <systemitem class="systemname">/proc |
888 </systemitem> filesystem. Use this command to | 887 </systemitem> filesystem. Use this command to |
889 enable RTC for normal users: | 888 enable RTC for normal users: |
890 <screen>echo 1024 > /proc/sys/dev/rtc/max-user-freq</screen> | 889 <screen>echo 1024 > /proc/sys/dev/rtc/max-user-freq</screen> |
891 If you do not have such a new kernel, you can also change one line in | |
892 <filename>drivers/char/rtc.c</filename> and recompile your kernel. | |
893 Find the section that reads | |
894 <programlisting> | |
895 * We don't really want Joe User enabling more | |
896 * than 64Hz of interrupts on a multi-user machine. | |
897 */ | |
898 if ((rtc_freq > 64) && (!capable(CAP_SYS_RESOURCE))) | |
899 </programlisting> | |
900 and change the 64 to 1024. You should really know what you are doing, though. | |
901 You can see the new timer's efficiency in the status line. | 890 You can see the new timer's efficiency in the status line. |
902 The power management functions of some notebook BIOSes with speedstep CPUs | 891 The power management functions of some notebook BIOSes with speedstep CPUs |
903 interact badly with RTC. Audio and video may get out of sync. Plugging the | 892 interact badly with RTC. Audio and video may get out of sync. Plugging the |
904 external power connector in before you power up your notebook seems to help. | 893 external power connector in before you power up your notebook seems to help. |
905 You can always turn off RTC support with the <option>-nortc</option> option. | 894 You can always turn off RTC support with the <option>-nortc</option> option. |
911 <emphasis role="bold">The third timer code</emphasis> is turned on with the | 900 <emphasis role="bold">The third timer code</emphasis> is turned on with the |
912 <option>-softsleep</option> option. It has the efficiency of the RTC, but it | 901 <option>-softsleep</option> option. It has the efficiency of the RTC, but it |
913 doesn't use RTC. On the other hand, it requires more CPU. | 902 doesn't use RTC. On the other hand, it requires more CPU. |
914 </simpara></listitem> | 903 </simpara></listitem> |
915 </itemizedlist> | 904 </itemizedlist> |
916 <note><para><emphasis role="bold">NEVER install a setuid root | |
917 <application>MPlayer</application> binary on a multiuser system!</emphasis> | |
918 It's a clear way for everyone to become root. | |
919 </para></note> | |
920 </para> | 905 </para> |
921 </sect1> | 906 </sect1> |
922 | 907 |
923 </chapter> | 908 </chapter> |