[MPlayer-users] RTC Permission

Dominik Mierzejewski dominik at rangers.eu.org
Thu Jul 18 07:28:02 CEST 2002


On Thursday, 18 July 2002, Gábor Lénárt wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> It will be RTFM again ...
> 
> On Thu, Jul 18, 2002 at 04:56:48AM +0100, Jose wrote:
> > *Linux RTC init error: Permission denied
> > Using usleep() timing*
> > 
> > I already have been reading two emails from the mail list but didn't 
> > work and one i didn't understand
> > Can u help me with this?
> 
> Ignore it. This is because MPlayer is capable of using RTC [Real Time Clock]
> for timing instead of software controlled usleep() method. However access to
> RTC needs root privileges, so as user MPlayer can't do this, and
> automatically falls back to usleep() method, so no problem (access to
> /dev/rtc of course depends on the access rights of device entry /dev/rtc,
> also you should compile RTC driver support into your kernel, also setting
> interrupt rate higher than - by default - 64Hz needs root privileges EVEN if
> you CAN access /dev/rtc). But again: no problem, mplayer will fall back to
> use usleep() timing in case of failing using RTC driver ...

You don't need root, only kernel 2.4.19pre8 or later.
echo 1025 > /proc/sys/dev/rtc/max-user-freq

-- 
MPlayer RPMs: http://www.piorunek.pl/~dominik/linux/pkgs/mplayer/
"The Universe doesn't give you any points for doing things that are easy."
        -- Sheridan to Garibaldi in Babylon 5:"The Geometry of Shadows"
Dominik 'Rathann' Mierzejewski <rathann(at)rangers.eu.org>




More information about the MPlayer-users mailing list