Solved [Solved] Can't play audio CD's

Hello,

On a new install:

Code:
FreeBSD 10.0-RELEASE-p1

I cannot play CD's as my normal user:

cdcontrol -f /dev/cdrom play 1
cdcontrol: /dev/cdrom: Permission denied


I have this in /etc/devfs.conf:

Code:
# Commonly used by many ports
link	cd0	cdrom
link	cd0	dvd

My user is in groups:
Code:
myuser wheel

Any help will be most appreciated.

sprock
 
Re: Can't play audio CD's

I personnally use this
Code:
perm    cd*     0666
so that I can burn cd. Then you need to restart devfs: # /etc/rc.d/devfs restart
Otherwise you could add yourself to the operator group.
I am not sure that you'll be able to read an audio cd with cdcontrol though. You might need a cable from your cdrom to your sound card to do so. I use audacious (with audacious-plugins), mplayer could do but the package is not compiled with libcdio by default.
 
Re: Can't play audio CD's

The best group to use is probably operator. For XFCE for example you need to be a member of this group to shutdown or restart the machine too. I think there are a few other desktop managers that work the same way. So this should work, provided your user is a member of operator:
Code:
link cd0 cdrom
perm cd* 0664
own cd* root:operator

Adding a user to the operator group: pw groupmod operator -m myuser
 
Re: Can't play audio CD's

Thank you. It is working now (although I cannot get any sound; but that is for another thread if necessary).

Sprock
 
If it's using analog output, all it takes to fix is connecting the analog audio ports on the motherboard and the CD drive.
 
Most current DVD drives do not have analog audio connectors, although if you look closely you may see the solder pads on the board.
 
Back
Top