LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-10-2003, 03:06 PM   #1
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Rep: Reputation: 45
debian and audio cd problem


OK,

Currently trying to get debian "sarge" up and running properly. I am having snags getting kde 2 running/playing audio cd's with KSCD.

If I open it, I get the "cdrom read or access" error.

I have added my self as a user for audio group and cdrom group - no joy!

With mandrake, I have to change the device that kscd looks at to read /dev/scd0 but with debian, If I make any changes to the kscd options and point it to either /dev/scd0 or /dev/hdc (which as far as I can tell is what the system see's my cdrw as), then kscd crashes and gives me a "signal 11(SIGSEV)" error. If I look in the "backtrace" option I get this -

(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...0x40d15b89 in wait4 () from /lib/libc.so.6
#0 0x40d15b89 in wait4 () from /lib/libc.so.6
#1 0x40d89000 in sys_sigabbrev () from /lib/libc.so.6
#2 0x4055b4d8 in KCrash::defaultCrashHandler () from /usr/lib/libkdecore.so.3

#3 0x40ca29d8 in sigaction () from /lib/libc.so.6
#4 0x08059972 in QCollection::newItem ()
#5 0x080590bf in QCollection::newItem ()
#6 0x407d31cd in QObject::activate_signal () from /usr/lib/libqt.so.2
#7 0x408f793d in QButton::clicked () from /usr/lib/libqt.so.2
#8 0x4083c070 in QButton::mouseReleaseEvent () from /usr/lib/libqt.so.2
#9 0x4081e6a2 in QWidget::event () from /usr/lib/libqt.so.2
#10 0x4077aef7 in QApplication::notify () from /usr/lib/libqt.so.2
#11 0x404b41f4 in KApplication::notify () from /usr/lib/libkdecore.so.3
#12 0x407460f0 in QETWidget::translateMouseEvent () from /usr/lib/libqt.so.2
#13 0x407439f2 in QApplication::x11ProcessEvent () from /usr/lib/libqt.so.2
#14 0x407429cc in QApplication:rocessNextEvent () from /usr/lib/libqt.so.2
#15 0x4077d3bf in QApplication::enter_loop () from /usr/lib/libqt.so.2
#16 0x40749f23 in QApplication::exec () from /usr/lib/libqt.so.2
#17 0x08068c3f in QCollection::newItem ()
#18 0x40c91a51 in __libc_start_main () from /lib/libc.so.6


Can anyone help ? - What does it mean? How do I check permissions for kscd and cdrom?

Can anyone else suggest what I need to try next?

regards

John
 
Old 09-11-2003, 12:01 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,592

Rep: Reputation: 96
I had a problem with the sg devices when accessing the CD the permissions and the group were set incorrectly to get it working I had to:
Code:
chmod g+rw /dev/sg*
chgrp cdrom /dev/sg*
The correct permissions of the device:
Code:
HappyTux:/home/stephen# ls -la /dev/sg0
crw-rw----    1 root     cdrom     21,   0 2002-03-14 17:51 /dev/sg0
 
Old 09-11-2003, 09:37 AM   #3
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Original Poster
Rep: Reputation: 45
Cheers for the idea Stephen,

But still no luck. I don't know the correct way to check permissions and stuff, so I tried the command the you put in your last post ls -la /dev/sg0 but I can't see anything like that, or any reference to /dev/sg*, and all I got as a bash reply was debian:/home/john# chmod g+rw /dev/sg0
chmod: failed to get attributes of `/dev/sg0': No such file or directory


Then I thought that perhaps the system see's the device in the same way as mandrake so I tried debian:/home/john# chmod g+rw /dev/scd0
chmod: failed to get attributes of `/dev/scd0': No such file or directory


With the obvious result.

So I have also tried
debian:/home/john# chmod g+rw /dev/hdc
debian:/home/john# chgrp cdrom /dev/hdc


both of which just returned a # prompt (and according to "whoever", no news is usually good news with linux?).

So, using the ls -la /dev command, it has gone from this,

lr-xr-xr-x 1 root root 32 Sep 11 2003 hda -> ide/host0/bus0/target0/lun0/disc
lr-xr-xr-x 1 root root 33 Sep 11 2003 hda1 -> ide/host0/bus0/target0/lun0/part1
lr-xr-xr-x 1 root root 33 Sep 11 2003 hda2 -> ide/host0/bus0/target0/lun0/part2
lr-xr-xr-x 1 root root 33 Sep 11 2003 hda3 -> ide/host0/bus0/target0/lun0/part3
lr-xr-xr-x 1 root root 33 Sep 11 2003 hda4 -> ide/host0/bus0/target0/lun0/part4


to this


lr-xr-xr-x 1 root root 32 Sep 11 2003 hda -> ide/host0/bus0/target0/lun0/disc
lr-xr-xr-x 1 root root 33 Sep 11 2003 hda1 -> ide/host0/bus0/target0/lun0/part1
lr-xr-xr-x 1 root root 33 Sep 11 2003 hda2 -> ide/host0/bus0/target0/lun0/part2
lr-xr-xr-x 1 root root 33 Sep 11 2003 hda3 -> ide/host0/bus0/target0/lun0/part3
lr-xr-xr-x 1 root root 33 Sep 11 2003 hda4 -> ide/host0/bus0/target0/lun0/part4
lr-xr-xr-x 1 root root 30 Sep 11 13:58 hdb ->
ide/host0/bus0/target1/lun0/cd
lr-xr-xr-x 1 root cdrom 30 Sep 11 13:58 hdc -> ide/host0/bus1/target0/lun0/cd


Now, what is confusing me even more, is that with the same ls -la /dev command, I can now see this

debian:/home/john# ls -la /dev
total 4

<snip>
lr-xr-xr-x 1 root root 11 Sep 11 13:14 audio -> sound/audio
lr-xr-xr-x 1 root root 13 Sep 11 13:58 cdrom -> cdroms/cdrom0
drwxr-xr-x 1 root root 0 Jan 1 1970 cdroms

<snip>
lr-xr-xr-x 1 root root 9 Sep 11 13:14 dsp -> sound/dsp
lr-xr-xr-x 1 root root 10 Sep 11 13:14 dsp1 -> sound/dsp1
lr-xr-xr-x 1 root root 10 Sep 11 13:14 dspW -> sound/dspW

<snip>
lr-xr-xr-x 1 root root 32 Sep 11 2003 hda -> ide/host0/bus0/target0/lun0/disc
lr-xr-xr-x 1 root root 33 Sep 11 2003 hda1 -> ide/host0/bus0/target0/lun0/part1
lr-xr-xr-x 1 root root 33 Sep 11 2003 hda2 -> ide/host0/bus0/target0/lun0/part2
lr-xr-xr-x 1 root root 33 Sep 11 2003 hda3 -> ide/host0/bus0/target0/lun0/part3
lr-xr-xr-x 1 root root 33 Sep 11 2003 hda4 -> ide/host0/bus0/target0/lun0/part4
lr-xr-xr-x 1 root root 30 Sep 11 13:58 hdb ->
ide/host0/bus0/target1/lun0/cd
lr-xr-xr-x 1 root cdrom 30 Sep 11 13:58 hdc -> ide/host0/bus1/target0/lun0/cd

<snip>
lr-xr-xr-x 1 root root 10 Sep 11 13:14 midi -> sound/midi
lr-xr-xr-x 1 root root 11 Sep 11 13:14 midi1 -> sound/midi1
drwxr-xr-x 1 root root 0 Jan 1 1970 misc
lr-xr-xr-x 1 root root 11 Sep 11 13:14 mixer -> sound/mixer

<snip>
drwxr-xr-x 1 root root 0 Jan 1 1970 scsi
lr-xr-xr-x 1 root root 15 Sep 11 13:14 sequencer -> sound/sequencer
lr-xr-xr-x 1 root root 16 Sep 11 13:14 sequencer2 -> sound/sequencer2
drwxr-xr-x 1 root root 0 Jan 1 1970 shm
drwxr-xr-x 1 root root 0 Jan 1 1970 sound

</snip>
debian:/home/john#

all of which, well too my knowledge anyway, is in some way connected with sound and stuff.

Would it still be a possible permissions problem? If so, which and what would I need to change? and what too?

Just for info, I have tried all the permutations of /dev/cdrom or hdc or cdrom0 or scd0 or even /dev/ide/host0/bus1/target0/lun0/cd to see if that made any difference, but I still get the signal 11 (SIGSEVG) error followed by the kscd crashing.

any ideas are greatly appreciated.

regards

John

p.s. thanks for the stuff that you posted in the other thread I started in the debian forum, I just figured that I should really post my basic problems here, as I'm still a mega n00b as far as debian is concerned.

Last edited by bigjohn; 09-11-2003 at 10:07 AM.
 
Old 09-12-2003, 05:06 AM   #4
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Original Poster
Rep: Reputation: 45
Just for info,

I'm still not sure if it is a permissions thing or not, because the kscd crashes when logged into root in the same way as when logged in as a user

regards

John

p.s. the problems that I'm having with debian are making me so depressed, that I've taken to booting back into mandrake and listening to "The Smiths"

Last edited by bigjohn; 09-12-2003 at 05:52 AM.
 
Old 09-12-2003, 06:40 AM   #5
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Original Poster
Rep: Reputation: 45
OK,

So I know that I'm being really impatient,

But, I have done more digging round and in the "linuxcookbook", found a thing called "cdtool" which seems to be a command line facility for playing audio cd's.

I did "apt-get install cdtool" and it seems to have installed it.

I then tried "cdplay" and it just said "nodisc" so out of curiosity, I put the cd into the dvd player and did the "cdplay" command, and the drive sprang into life.

I still don't get any sound, so how do I find out how to re-direct the cdtool to look at the cdrw device instead of the dvd ???

regards

John
 
Old 12-20-2003, 07:58 AM   #6
nightoil
LQ Newbie
 
Registered: Oct 2003
Location: Thailand
Distribution: Slackware 10.0
Posts: 29

Rep: Reputation: 15
John, I don't know about Sarge' but a standard 'Woody' installation doesn't give you sound in the kernel, and you have to compile a new one. I did my first today ....and more amazingly it works !

Check out this link

http://www.osnews.com/story.php?news_id=2949

I printed a copy out, sent the SO out shopping and got it done in about 3 hours
 
  


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
Audio issue under Debian with Blender 3D. juanjavier_xxx Debian 2 10-22-2005 05:39 AM
install ac97 audio codec problem on debian. donaldtalbert Linux - Software 3 06-18-2005 02:34 PM
Debian + Plantronics Audio 90 + Which sound card? Dr3n Linux - Hardware 1 03-14-2005 06:52 PM
ac97 Audio-card no sound on debian,need help. coder_ma Linux - Newbie 1 04-13-2004 02:01 AM
change default audio device (debian woody) zhynn Debian 3 07-04-2003 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration