Mplayer i postprocessing raz jeszcze.

Jacek Rembisz jr w mgc.pl
Sob, 11 Maj 2002, 13:01:26 CEST


On Fri, May 10, 2002 at 04:17:56PM +0200, Jacek Sobczak wrote:
> On 10 May 2002 13:54:53 +0200
> Arkadiusz Miskiewicz <misiek w pld.ORG.PL> wrote:
> 

> > > Potem ta rzecz dotycząca RTC. Jak na to zezwolić dla zwykłego usera?
> > chmod a+rw /dev/rtc zapewne
> 
> To nie to.
> [sopel w speedy Matrix]$ ls -l /dev/rtc
> crw-rw-rw-    1 root     root      10, 135 maj  5  1998 /dev/rtc
> Jako root dostaję od mplayera:
> Using Linux's hardware RTC timing (1024Hz)
> 

Cytuje za mplayer-users w mplayerhq.hu:

> > I do have permission to access /dev/rtc and I get the same error
> > running
> > as root anyway. Does it matter, and if so is there a cure?
>
> it is beacause probably you are not root, so mplayer tries to use 1024
> hz
> rtc, but if you see in the /usr/src/linux/drivers/char/rtc.c, there is
> you
> will see something like this:
>  /*
>                  * 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)))
>                         return -EACCES;
>
>
> so the kernel let only max 64hz rtc for a single user, you need to
> change
> 64 to 1024, and it will work correctly(of course after a kernel
> recompile!)
>
> but it was on the mailing list before!!! or you only need to switch to
> root!

This has changed as of 2.4.19-pre8. Now you can change the max user
frequency at runtime via sysctl:
echo 1024 > /proc/sys/dev/rtc/max-user-freq


koniec cytatu.


-- 
Jacek Rembisz 



Więcej informacji o liście dyskusyjnej pld-users-pl