LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-19-2003, 07:34 AM   #1
Relja
Member
 
Registered: Oct 2002
Location: Belgrade, Yugoslavia
Distribution: Linux Mandrake 10.0
Posts: 71

Rep: Reputation: 15
Audio CD not playing


I have Linux Mandrake 9.0. Everything is working just fine. I can play mp3s, videos... Cd is working fine (I can play mp3s from it too...).
But I can't play Audio CDs !
My Cd is /dev/hdd
Gnome CD Player says first says "Invalid CD device". Grip says nothing - it just doesn't detect any tracks...

By the way, playing Audio CDs is working in Windows so it's not a hardware problem....

When I try to go to the /mnt/cdrom it says:
Sorry, couldn't display all the contents of "cdrom"
Of course, it says this only if Audio CD is in.

Any clue?
 
Old 01-19-2003, 08:00 AM   #2
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 47
Yeah, symlink /dev/hdd to /dev/cdrom, then chmod 666 both /dev/hdd and /dev/cdrom and chmod 666 /dev/audio, and it should work.
HTH
-NSKL
 
Old 01-19-2003, 08:24 AM   #3
Relja
Member
 
Registered: Oct 2002
Location: Belgrade, Yugoslavia
Distribution: Linux Mandrake 10.0
Posts: 71

Original Poster
Rep: Reputation: 15
Audio CD not playing - solved

Thanks. I did all you said and now it works.

Opet ti! Izvini sto ti nisam poslao mail pre nedelju dana kad si mi isto pomagao - reinstalirao sam Windows, pa onda neki problemi itd...
Hvala na pomoci.... Sve je uspelo...
A sta se desilo pa mi nije radilo? (posto sam prilicno nov u Linuxu hteo bih da razumem problem da mogu da ga resim drugi put ako se desi...)
 
Old 01-19-2003, 02:23 PM   #4
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 47
Ok, since i dont think others will appreciate us talking in a strange language..
He said that now the cd is playing fine, but he wants to know what was wrong, why it didn't play before:

Cd player programs look for a /dev/cdrom device, and if they don't find it, they abort (unless you specify another device). So to solve this we symlink /dev/hdX (actual cdrom device) with /dev/cdrom. This way cd players find /dev/cdrom (actually /dev/hdX, in your case /dev/hdd)
Then cd music is played to the sound card via /dev/audio, not the usual /dev/dsp, so we chmoded 666 (gave everyopne permission) to use /dev/audio, /dev/cdrom and /dev/hdd.
HTH
-NSKL
 
Old 01-21-2003, 12:57 PM   #5
Relja
Member
 
Registered: Oct 2002
Location: Belgrade, Yugoslavia
Distribution: Linux Mandrake 10.0
Posts: 71

Original Poster
Rep: Reputation: 15
Question Not solved entirely

I found out that my problem isn't solved entirely...
CD plays well now - but when I started Linux today - Gnome won't load!! Then I restarted it into the text mode, deleted the /dev/cdrom, restarted Linux - Gnome started fine. But playing Audio CDs isn't working...
To check out if the cd is the problem, I made a link agan - again the same thing happened....
What to do?
I mean - I can do the same operation every time I wan't to plays CDs and after that I can delete the link - but there must be an elegant solution...

And one more question, you said:
"Cd player programs look for a /dev/cdrom device"
Why won't it work when I change the option and tell the programs that the device is /dev/hdd ?

And just to check out since I have never done the linking before - is the right command:
ln -s /dev/hdd /dev/cdrom
 
Old 01-21-2003, 03:25 PM   #6
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 47
Yes the command is right. As for the GNOME problem i really can't help because i never used it, and can't think of a reason why a symbolic link to /dev/cdrom would screw it up.
If you specify a different device for the cd player program, it should work. I dont know about any others, but in KSCD you can go to options, and change the cdrom device from /dev/cdrom to whatever you want.
Also you may want to try to play the cd with the play command. man play
play --device=/dev/hdd should do it, i think... to make sure check the man page.
And finally, does GNOME or X give any error messages? Did you try booting to text mode and starting x with startx command? Any errors that might give a clue? Maybe check the X log file, i'm not sure where it should be on Mandy, it's /var/log/XFree86.0.log on Slack.
HTH
-NSKL
 
Old 01-22-2003, 05:31 AM   #7
Relja
Member
 
Registered: Oct 2002
Location: Belgrade, Yugoslavia
Distribution: Linux Mandrake 10.0
Posts: 71

Original Poster
Rep: Reputation: 15
No Gnome gives no error messages. It starts normaly, the window with Gnome logo..., loads up the wallpaper and stops where it usualy loads panels and desktop...
KDE starts normaly... The strange thing was that sometimes when I start KDE and then log out and start Gnome - it starts well... but sometimes it doesn't... (I can't figure out when it does and when it doesn't...)

I can't find that log file...
If I type startx - it starts KDE.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
playing audio cd 5.1 alizta Linux - General 2 10-25-2004 03:20 AM
playing an audio CD malbery Debian 10 08-23-2004 12:53 PM
Help with playing audio CD... Dickey Peterson Linux - Newbie 5 01-13-2004 09:04 AM
Playing an Audio CD natesch Linux - Newbie 15 08-31-2003 04:30 PM
Playing an audio CD fredws Linux - General 2 03-18-2003 03:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration