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

Rodolfo Medina rodolfo.medina at gmail.com
Thu Jul 13 20:39:40 CEST 2006


torsdag 13 juli 2006 19:38 skrev Rodolfo Medina:

>> 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).


# 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.


Both files contain the only line:


# Write your default config options here!


:(
. Any other hint?
Thanks indeed,
Rodolfo




More information about the MPlayer-users mailing list