Can't play audio CD in slackware
Hi Everyone,
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: Code:
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0 Code:
chris@dinosaur:~$ ls -l /dev/cdrom && ls -l /dev/dvd && ls -l /dev/hdc Code:
chris@dinosaur:~$ groups chris Code:
chris@dinosaur:~$ xmms /dev/hdc Code:
chris@dinosaur:~$ groups root 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. Many thanks for you help in advance, Chris PS I've tried several CDs! Slackware 11.0 kernel 2.4.33.3 |
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). |
Wow, thanks for the quick reply!
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: Code:
$groups root Thanks once again for the suggestions, I guess we've eliminated something. Chris |
ceashton, sounds like you need to add your regular user to the audio and possibly the cdrom groups. just open up /etc/group, add your user to the lines for audio and cdrom, and you ought to be set up.
|
Hi bl0tt0,
Thanks for the reply. I believe I am a member of the audio and cdrom groups: Code:
chris@dinosaur:~$ id chris Code:
chris@dinosaur:~$ groups chris Code:
chris@dinosaur:~$ cat /etc/group | grep chris Code:
chris@dinosaur:~$ id root Code:
chris@dinosaur:~$ ls -l /dev/cdrom && ls -l /dev/dvd && ls -l /dev/hdc && ls -l /dev/hdd Thank you, Chris |
Just to supplement the information I have already provided, I have the following line in /etc/login.defs
Code:
CONSOLE_GROUPS floppy:audio:video:cdrom Chris |
two other things: have you taken a look in /dev/sound to check the permissions there? Also, what output plugin are you using in XMMS?
|
Hi, I couldn't find /dev/sound, so I presumed you meant /dev/snd, or has it changed name? Anyway, the contents and permissions for /dev/snd are:
Code:
chris@kapitza:~$ ls -ld /dev/snd 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] which can be found in the following locations: Code:
chris@kapitza:~$ ls -l /usr/lib/xmms/Input/libcdaudio.so && ls -l /usr/lib/libmikmod.so && ls -l /usr/lib/libmikmod.so.2.0.4 && ls -l /usr/lib/xmms/Input/libmpg123.so && ls -l /usr/lib/libvorbis.so && ls -l /usr/lib/libvorbis.so.0.3.1 && ls -l /usr/lib/xmms/Input/libxmms-flac.so && ls -l /usr/lib/xmms/Input/libtonegen.so && ls -l /usr/lib/xmms/Input/libwav.so Cheers, Chris |
I guess you already checked, but just to be sure, are you sure your user's volume settings are ok? Check again just in case, if you're using KDE, you should use KMix to set them.
|
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. |
Hi again,
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: Code:
chris@dinosaur:~$ ls -l /dev/dsp* Yikes, I see you did ask about output rather that input plugins... its all there before me, just like I hope this answer will be soon ;-) The output plugins are as follows: 1) ALSA 1.2.10 output plugin [libALSA.so] 2) aRts Output 0.7.1 [libarts.so] 3) Disk Writer Plugin 1.2.10 [libdisk_writer.so] 4) eSound Output Plugin 1.2.10 [libesdout.so] 5) OSS Driver 1.2.10 [libOSS.so] 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: Code:
xmms /dev/hdc Keep the suggestions coming, Chris |
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. try entering Code:
xmms /mnt/cdrom 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. |
I had the same problem and found that it was as simple as turning the CD volume up in the alsamixer panel.
|
bl0tt0, I've tried running the command:
Code:
xmms /mnt/cdrom 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. Keep the suggestions coming guys. Cheers, Chris. |
Can't you get audio cd's going with KsCD?
Try some settings and read the KsCD Help-pages. Worked for me (I can't seem to get XMMS playing audio cd's either). |
All times are GMT -5. The time now is 12:56 PM. |