LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-05-2006, 09:42 PM   #16
fkamp
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
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
 
Old 04-05-2006, 11:06 PM   #17
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
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.
 
Old 04-11-2006, 02:31 AM   #18
hottdogg
Member
 
Registered: Aug 2004
Location: aisenodni
Distribution: slackware 64bit ,debian 64bit
Posts: 202

Original Poster
Rep: Reputation: 30
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.

Last edited by hottdogg; 04-11-2006 at 02:35 AM.
 
Old 09-04-2006, 11:40 PM   #19
DBabo
Member
 
Registered: Feb 2003
Distribution: Scientific Linux 6
Posts: 384

Rep: Reputation: 33
did you get this to work ?
 
Old 09-21-2006, 07:19 PM   #20
Maxwell Rain
Member
 
Registered: Apr 2004
Distribution: Ubuntu Feisty Fawn & Mandrake 2006.0 Free Edition
Posts: 31

Rep: Reputation: 15
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
 
Old 09-22-2006, 06:17 AM   #21
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
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.
 
Old 09-22-2006, 10:04 AM   #22
DBabo
Member
 
Registered: Feb 2003
Distribution: Scientific Linux 6
Posts: 384

Rep: Reputation: 33
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 ...
 
Old 09-22-2006, 10:39 AM   #23
Maxwell Rain
Member
 
Registered: Apr 2004
Distribution: Ubuntu Feisty Fawn & Mandrake 2006.0 Free Edition
Posts: 31

Rep: Reputation: 15
Quote:
Originally Posted by DBabo
I don't have that wire ...
What do you mean ? I don't understand.
 
Old 09-22-2006, 10:41 AM   #24
DBabo
Member
 
Registered: Feb 2003
Distribution: Scientific Linux 6
Posts: 384

Rep: Reputation: 33
the wire that connects drive to the sound card.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why i can't play my CD audio mamasmoe DamnSmallLinux 1 08-12-2004 07:31 PM
Can't play audio cd melinda_sayang Slackware 12 03-20-2004 04:23 AM
Can't play CD Audio morrolan Linux - Software 3 01-05-2004 08:55 AM
DVD plays but no audio (can play audio cd's though)? guitarnix Linux - Newbie 2 10-05-2003 07:52 AM
play audio cd bfkeats Linux - General 4 02-06-2002 12:19 AM


All times are GMT -5. The time now is 01:58 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration