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

Rodolfo Medina rodolfo.medina at gmail.com
Sat Jul 15 00:30:27 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.
(There's scd0 in place of scd1 because I did the experiment in
 another partition.)

Hoping someone can help, thanks,
Rodolfo


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


More information about the MPlayer-users mailing list