LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   can not play audio CD (https://www.linuxquestions.org/questions/slackware-14/can-not-play-audio-cd-400202/)

fkamp 04-05-2006 09:42 PM

audio cd working in slackware 10.2
 
Quote:

Originally Posted by insaneavocado
I have had the same problem... What I did (and it might not be considered a good idea) is I went to the device in /dev/ that was my cdrom as root and gave read permissions to everyone (chmod +r /dev/<your device>) after that I was able to play CDs... but again; that may not be a good idea and I just don't know it (akin to working as root all the time).

Well I had lots of difficultly playing audio cd's as a non-root user too. Here's a list of my settings:

kernel 2.6.15.4
sound is configured and working

/etc/fstab:
/dev/cdrom /mnt/cdrom auto noauto,users,ro 0 0
(didn't work)

groups user belongs too:
users audio video cdrom
(didn't work either)

permissions for /dev/cdrom
lrwxrwxrwx 1 root root 8 2006-02-07 15:02 /dev/cdrom -> /dev/hda
I tried changing the owner to non root user and the group to users but still no joy
so I changed that back

I do have the audio cable connected from the drive to the motherboard.

Last thing I did was:
chmod 666 /dev/hda

This worked, but as insaneavocado stated I'm not sure this is the best practice. Any thoughts anyone?

thanks,
fkamp

Alien_Hominid 04-05-2006 11:06 PM

Code:

/etc/fstab:
/dev/cdrom /mnt/cdrom auto noauto,users,ro 0 0
(didn't work)

You can try changing /dev/cdrom into /dev/hda.
Groups should also work. Don't know why they didn't work for you.

hottdogg 04-11-2006 02:31 AM

chmod +r /dev/hdd
doesn't work for me.

aaargh!, this trivial, should-be simple thing is just make me about to break. I give up trying to make linux play cd!

yes, now the dvdrom can turning the cd, but no sound! if I check "digital extraction playback" in kscd, it's worse, kscd
doesnt even want to spin CD. Using XMMS, it just can't open file for audio cd.
analogue cable doesn't effect on any. still connecting my dvdrom-soundcard though. I don't
want to mess around again. jaded,tired,frustrated. Such a ridiculous to do tedious work, figuring out, just to make a single audio cd playing smoothly in linux which still can't. crap!
I'm still have a looooong way to go, I have more important things to do :enabling writing cd, enabling printing, upgrade/compile kernel(sooner or later linux user have to do this right?), install AMP, learning backup method.
yes, i'm still using linux for testing/experiment instead as a desktop OS. I want to make it as desktop OS but so far the result is unsatisfying.
"linux isn't ready for the desktop" is not a myth. It's a clear fact right in front of my eyes!
tnx anyway for the replies you guys gave to this thread.

DBabo 09-04-2006 11:40 PM

did you get this to work ?

Maxwell Rain 09-21-2006 07:19 PM

I have found a solution to this problem.
I'm using Mandriva 2006.0 Free Edition and have had the same problem with audio-cd's : I would receive an error message saying that I should check my permissions to see if I have access.

This solution worked perfectly for me :

Quote:

The reason you get a device permission error is the KsCD is trying to play the CD digitally through the system... it reads the audio raw and plays with the selected sound driver. Well CD-Roms have their own player built in... which as long as you have the wire from the cdrom drive hooked up to the sound card (which nearly ever computer does)... then you CAN play this way.

Open KsCD player and ignore the error message. Goto "Extras" then "Configure CD Player" ... chose /dev/cdrom as your device and !DESELECT! "Use direct digital playback".

As soon as the direct digital is deselected your CD player will work. It will simply play the CD by the drive's built in playing ability.
Posted by 6ftdan on Xandros forum

evilDagmar 09-22-2006 06:17 AM

Guys, don't bother messing around with anything in /etc/fstab to get your audio CDs play. What's in /etc/fstab has absolutely nothing to do with how that works--it only applies to mounting data (not audio) CDs and poking around with that is just going to add to your confusion, and quite possibly create other problems.

When in doubt, fall back to using workbone (console-based CD player app), which, while being fairly hideous and more than a little primitive, has always worked on every type of drive I've thrown it at without any trouble, provided the symlink from /dev/cdrom is actually pointing to the correct real device (otherwise you need something like '-d /dev/hdd' to help it out). I'm pretty sure it doesn't do digital extraction tho', so you will need the little MMC cable connecting your optical drive to your sound card (or something plugged into the headphone port on your drive).

The I/O controls (ioctls) for telling a CD rom drive to play an audio CD don't (IIRC) require root privs to be sent, so it really boils down to one thing... whether or not you have write access to the device. Here's the checklist (and why it usually involves making sure you're a member of the 'cdrom' group):

1. Device is recognized by the kernel as a device. Usually `dmesg | grep ATAPI` will answer this question for you.
2. That /dev/cdrom is a symlink pointing at the device as the kernel knows it (like /dev/hdd, and only needed if you're lazy--should have been set up by the setup script when you installed, actually).
3. That you're a member of the cdrom group. Typing `groups` will tell you whether or not you are.
4. The device node for the drive should be readable and writeable by the owner and the group, and not necessarily world anything, and the group ownership should be to group cdrom, like:

Code:

dagmar@scraps:~$ ls -al /dev/cdrom
lrwxrwxrwx    1 root    root            8 Aug 24  2003 /dev/cdrom -> /dev/hdc
dagmar@scraps:~$ ls -al /dev/hdc
brw-rw----    1 root    cdrom      22,  0 Jun  9  2002 /dev/hdc

You fire up your player app, it opens the /dev/cdrom device which it can write to because you're in the 'cdrom' group and sends the ioctls which make it play the CD. Assuming you do have the MMC cable connected and you didn't forget to unmute the relevant mixer entries, it should work.

DBabo 09-22-2006 10:04 AM

Quote:

Originally Posted by Maxwell Rain
I have found a solution to this problem.
I'm using Mandriva 2006.0 Free Edition and have had the same problem with audio-cd's : I would receive an error message saying that I should check my permissions to see if I have access.

This solution worked perfectly for me :



Posted by 6ftdan on Xandros forum

I don't have that wire ...

Maxwell Rain 09-22-2006 10:39 AM

Quote:

Originally Posted by DBabo
I don't have that wire ...

What do you mean ? I don't understand.

DBabo 09-22-2006 10:41 AM

the wire that connects drive to the sound card.


All times are GMT -5. The time now is 08:28 AM.