SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have a problem with my CD player, in that I am not able to play audio CDs. Other CD and sound functions seem to work just fine. I have read through some of the posts that seem to have had a similar problem and tried most of the advice they contain, but the problem still persists. I will outline the problem in a little more detail and the steps I have taken to try to attempt to remedy the situation, in the hope that you will offer your advice.
I can mount data CDs both manually and through auto mounting in /etc/fstab. My fstab file contains the lines:
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/cdrom /mnt/cdrom auto noauto,user,ro 0 0
I believe that I am using the correct block device as I can mount data CDs. In any case I show the relevant section from /dev:
I've tried changing the permissions of /dev/hdc to 777, but this doesn't help. Originally I wasn't a member of the "disk" group, so I added myself to this:
chris@dinosaur:~$ groups chris
chris : users disk floppy audio video cdrom
I've tried playing mp3s and wavs in xmms and they play fine now I've configured sound with alsamixer. And now we get to my specific problem. If I run the command:
chris@dinosaur:~$ xmms /dev/hdc
xmms opens and prompts me to play files from /dev. If I go to /dev/hdc and play, nothing happens. Contrast this with if I try to play the CD as root (using the same command), where xmms prompts me to play files from /dev/hdc. If I select some files, then xmms plays the songs but with no sound. I guess root gets no sound as root does not belonging to the appropriate groups:
chris@dinosaur:~$ groups root
root : root bin daemon sys adm disk wheel floppy
Root not being able to play sound isn't a problem, I just use this example to show that I am pointing to the correct device. I believe that music players act independently of fstab and so I've checked in xmms>options>preferencies>inputplugins>CD Audio Player 1.2.10 and checked it is configured for device=/dev/cdrom and directory=/mnt/cdrom.
I've tried playing the CD from kscd and encounter similar problems. I have also confirmed that there is a physical set of wires running from the CD drive to the on board sound card.
I'm a linux/slackware newbie so I'm a bit green around the edges, and apologize if I've missed anything obvious... but I don't mind getting my hands dirty in terminal. Any help would be very much appreciated.
You probably don't have properly connected the audio cable that goes from the CD-ROM to the sound card connector and most linux programs use that analog way to read audio by default.
In XMMS press CTRL+P, goto Audio CD Player plugin, choose Config and select Digital audio extraction (i'm translating those names from Spanish, they may be different).
Picking up on your thoughts that the actual wire connecting the CD player to the sound card might not be connected properly, I have just reconnected it at each end, which didn't alter my situation. I guess that doesn't rule out the cable being faulty, but I'd be unlucky to not plug the cable in properly for a second time.
I also tried your second suggestion of switching from analog to digital audio extraction, which again had no effect for an ordinary user or root.
I have tried something else however... In my first post I reported that I could play a CD when I was logged in as root but didn't get any sound, and went on to suggest this was because root wasn't in the correct groups, well I wanted to confirm this. So I added root to some extra groups - audio video and cdrom:
root: root bin daemon sys adm disk wheel floppy audio video cdrom
Having added the extra groups to root, root can now play and listen to audio CDs via both analog and digital audio extraction! I guess this means that it is some kind or permissions thing, but I'm at a loss as to know where to look now. I believe I showed all the relevant permissions in the first post of this thread so I won't write them again here, but if any other information is helpful please let me know.
Thanks once again for the suggestions, I guess we've eliminated something.
Things are fine for root (can play audio CDs) since I added them to audio, video and cdrom groups:
chris@dinosaur:~$ id root
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),17(audio),18(video),19(cdrom)
but obviously I don't wish to use root to play CDs. Just to open things up a little, I changed the permissions of the relevant block device and /dev to 777:
chris@dinosaur:~$ ls -l /dev/cdrom && ls -l /dev/dvd && ls -l /dev/hdc && ls -l /dev/hdd
lrwxrwxrwx 1 root root 8 2006-10-22 19:08 /dev/cdrom -> /dev/hdc
lrwxrwxrwx 1 root root 8 2006-10-22 19:08 /dev/dvd -> /dev/hdc
brwxrwxrwx 1 root disk 22, 0 2002-06-09 20:27 /dev/hdc
brw-rw---- 1 root disk 22, 64 2002-06-09 20:27 /dev/hdd
And I still can't play audio CDs as a normal user. I show /dev/hdd just to illustrate the permissions of the other devices. Please, if you or anyone else have any more ideas, I'd really like to hear them.
As I am a member of the audio group I have read/write permissions so everything should fine, shouldn't it?
Xmms uses the following plugins:
1) CD Audio Player 1.2.10 [libcdaudio.so]
2) MikMod Player 1.2.10 [libmikmod.so]
3) MPEG Layer 1/2/3 Player 1.2.10 [libmpg123.so]
4) Ogg Vorbis Player 1.2.10 [libvorbis.so]
5) Reference FLAC Player v1.1.2 [libxmms-flac.so]
6) Tone Generator 1.2.10 [libtonegen.so]
7) Wave Player 1.2.10 [libwav.so]
I would be surprised if it was missing plugins, because as I reported in my earlier posts, root can play audio CDs just fine. I suspect permissions, but I really don't know where else to look. Keep your suggestions coming, I really appreciate them!
Location: The Glorious People's Republic of Austin
Strange, I have a /dev/sound directory that contains a dsp file that is symlinked to /dev/dsp. I see you've run alsamixer, but have you gone through running alsaconf first?
Also, I was referring to the output plugin for XMMS, not input. You can find that right below the input plugins. Take a look at what sound system you are using, and whether it is configured to use your sound card.
thanks for the replies. I've checked the volume settings in alsamixer again, for both root and as a normal user and they are both fine. I also ran KMix and the volume setting seem to be equivalent to the settings of alsamixer - in that, if I change a volume setting in one mixer it is reflected in the second mixer as you would expect.
Yep there is definitely no /dev/sound on my installation of Slack 11.0 that I ordered. Just to check, we also run Slack 11.0 on a work computer that whose installation CDs were downloaded and this installation also lacks a /dev/sound. So yeah, strange! Are you using the Slack 11.0 too? There is no link to /dev/dsp in /dev/snd. /dev/dsp exists and has the following permissions:
Interestingly OSS was selected as my output plugin. I've changed this to the ALSA plugin and checked this to be the case for both root and normal user. In configuring the audio device section of ALSA there is a choice of devices, default, VIA 8235: VIA 8235 (hw:0,0) and VIA 8235: VIA 8235 (hw:0,1). I have tried all three of these devices, for both root and a normal user, and root may play audio CDs and normal users may not. In the end I just left the audio device at its default value of "default".
I'd be really surprised if my problem is being caused by the mixer (alsamixer or KMix), as I can play mp3s and wavs etc and have good control over their volume etc.... unless I'm missing something blindingly obvious!
To recap just in case I wasn't explicit enough, to attempt to play an audio CD I issue the command:
this opens a "play files" dialogue box, which for root is in the location /dev/hdc, but for a normal user is /dev. As root I select the files I wish to play, hit play and music plays. As a normal user I try to open hdc by hitting play/add (I've tried them both) and the dialogue box closes and I am presented with the xmms player console which is doing nothing. Why when I issue the same command am I given a different location in the dialogue box?
Location: The Glorious People's Republic of Austin
I am running Slack 11, but I upgraded mine progressively with slackware-current, so maybe /dev/sound came from that. I'll have to do a little more reading on that. In any case, I think I figured out the problem. I thought you were having problems with playing sound with XMMS using cds, but it looks like you're having problems with playing the cd itself, and I think I can help.
Looking at the console command you entered, you were asking alsa to load files from /dev/hdc itself, not the contents of the cdrom.
and see if that works.
It should also be said that you don't actually need to mount the cdrom, xmms will take care of getting the files.
Give that a try, and let me know if that solves your problem.
Vincent_Vega, I'm fairly confident its not my mixer settings, as I can play audio CDs as root and I have checked and double checked that I have the same mixer settings as a normal user as I have as root.