[MPlayer-users] Re: Problems starting mplayer as non root

Rodolfo Medina rodolfo.medina at gmail.com
Sat Jul 15 13:08:37 CEST 2006


Rodolfo Medina <rodolfo.medina at gmail.com> writes:

>>> When I start mplayer with:
>>>
>>> $ mplayer cdda://
>>>
>>> , I get the following:
>>>
>>>
>>>
>>> Failed to open /dev/rtc: Permission denied (it should be readable by the
>>> user.)
>>>
>>> Playing cdda://.
>>> Can't open CDDA device.
>>> Failed to open cdda://.
>>>
>>>
>>>
>>> . Then I make /dev/rtc readable by the user:
>>>
>>>
>>> # ls -l /dev/rtc
>>> crw-rw----  1 root root 10, 135 2005-02-26 07:43 /dev/rtc
>>> # chmod 777 /dev/rtc
>>> # ls -l /dev/rtc
>>> crwxrwxrwx  1 root root 10, 135 2005-02-26 07:43 /dev/rtc
>>>
>>>
>>> and try again, but it says:
>>>
>>>
>>>
>>> Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
>>> Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system
>>> startup scripts.
>>>
>>> Playing cdda://.
>>> Can't open CDDA device.
>>> Failed to open cdda://.
>>>
>>>
>>>
>>> . Instead, as root it's fine:
>>>
>>>
>>> # mplayer cdda://
>>>
>>>
>>> Playing cdda://.
>>> Found audio CD with 14 tracks.
>>> device (/dev/sr1 in this case), but this time it does not work.
>>>
>>> I'm really stuck, don't know how to handle this,
>>> any suggestion highly appreciated.



Rickard Närström <rickard.narstrom at gmail.com> writes:

>> You have wrong permissins of /dev/cdrom (or whatever /dev/cdrom links to).



Rodolfo:

> # ls -l cdrom
> lrwxrwxrwx  1 root root 3 2006-07-13 18:45 cdrom -> sr1
> # ls -l sr1
> lrwxrwxrwx  1 root root 4 2006-06-24 22:10 sr1 -> scd1
> # ls -l scd1
> brw-rw----  1 root cdrom 11, 1 2005-02-26 07:43 scd1
> # chmod 777 scd1
> $ mplayer cdda://
>
> Failed to open /dev/rtc: Permission denied (it should be readable by the user.)
>
> Playing cdda://.
> Can't open CDDA device.
> Failed to open cdda://.


Rickard:

>> Alternative: You have a setting in ~root/.mplayer/config for cdrom-device 
>> witch is missing in ~/.mplayer/config.



Rodolfo:

> Both files contain the only line:
>
>
> # Write your default config options here!
>
>
> :(
> . Any other hint?



Anssi Saari <as at sci.fi> writes:

> Run strace -o strace.out mplayer cdda:// to see what file you don't
> have permission for?


I did so, but can't understand the file strace.out:
I'm attaching it, hoping someone can.

Hoping someone can help, thanks,
Rodolfo

P.S:: with dvd movies the problem does not arise:



$ mplayer -dvd-device /dev/scd1 dvd://3
MPlayer 1.0pre8-3.3.5 (C) 2000-2006 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 10)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

Failed to open /dev/rtc: Permission denied (it should be readable by the user.)

Playing dvd://3.


, and it plays fine the movie.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: strace.out
Type: application/octet-stream
Size: 20504 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20060715/862fa2c4/attachment.obj>


More information about the MPlayer-users mailing list