LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   ripping cd audio problem (https://www.linuxquestions.org/questions/linux-hardware-18/ripping-cd-audio-problem-137174/)

jogurt666 01-21-2004 02:27 PM

ripping cd audio problem
 
i use Debian with KDE. i've installed KAudioCreator and KsCD. the second one plays CD audios, but it is so quiet, i can hardly hear anything. i know that Linux requires proper wires to connect cdrom with motherboard, and i've got them connected on the right place (well everything worked fine under RedHat). i've also set volume and CD volume in aumix.

The second problem is with ripping CDs. when i select tracks to rip, and want to rip them, i'm prompted the following warning:

The process cannot be run. io-slave cannot be created:
klauncher has returned the following communicate: Unknown protocol 'audiocd'.

(that's my own translation from polish, it may vary in original).
what is wrong, and what should i do?

hw-tph 01-21-2004 03:15 PM

When you rip CD's you should be using ide-scsi emulation if you have an IDE CD-ROM. To enable it, just append something like this to your kernel command line: hdc=ide-scsi and add the "ide-scsi" module to /etc/modules so it will be loaded on boot. "hdc" should be the device which corresponds to your CD-ROM device (try dmesg | grep CD if you are unsure what your CD device is).

If you're using the default Debian /etc/lilo.conf you probably have an "append" line in there which you can un-comment (remove the "#" at the start of the line) and add hdc=ide-scsi there. When done you need to rerun /sbin/lilo for the changes to take effect (and if you don't you may end up not being able to boot from the HD!).

When using SCSI emulation you usually access the CD-ROM as /dev/scd0 or /dev/sg0 instead of /dev/hdc.


Håkan

witeshark 01-21-2004 11:35 PM

hw-tph, Håkan: interesting! Would you (hows the weather by the way?) have any comments on my CD drive running audio CD, showing a time count and track numbers but playing no sound (-Red Hat 7.2 by the way), plays sound clearly during boot up :) I want to be careful in the command line (GOOD GOD am I happy to be winbloz free!) since I am now most familiar with the terminal in Mac.

hw-tph 01-22-2004 03:58 AM

(It's freezing cold :))

Does your CD-ROM play audio CD's very quietly or not at all? I'm getting a little confused when I read your inital post and then your reply.

Anyway, if the sound level is very low you should be able to increase the analog volume (aux in or CD level) and/or your master level using a software mixing application.

If your hardware worked with Redhat it is quite possible that you have a permissions problem. Try running the CD audio player program as root (su to root in a terminal and launch the program from there). If that works there definitely is a permissions problem somewhere. As yourself, not root, type groups in a terminal and you'll get a list of groups you belong to. If you have the group "cdrom" there you can skip the following step, but if you don't, do this:

As root open up /etc/group in your favourite text editor. Find the line that begins with cdrom, probably something like this:
Code:

cdrom::19:
Now add your regular user and any other users you want to have full cdrom access to that line. The list of names is comma separated, so if we were to add yourself and me the line would look something like this:
Code:

cdrom::19:witeshark,hw
Save the file and log out and log in again. Now type groups again as yourself. The cdrom group should appear there.

Now let's find out what your CD-ROM device is. It is common practice that the device /dev/cdrom is a symbolic link pointing to the actual device. Type ls -l /dev/cdrom and you'll see something like this:
Code:

lr-xr-xr-x    1 root    root          13 Jan 22 09:28 /dev/cdrom -> cdroms/cdrom0
...if you use devfs, and if you don't it will look something like this:
Code:

lr-xr-xr-x    1 root    root          13 Jan 22 09:28 /dev/cdrom -> hdc
Make note of what device the /dev/cdrom links to, in this case it is /dev/hdc, which is common (hdc is the master device on the secondary IDE channel). Now let's look at the permissions for this device. I will use hdc in my examples but you should use whatever you found out in the prior step (what /dev/cdrom links to): ls -l /dev/hdc
Code:

brw-------    1 root      disk    11,  0 Jan  1  1970 /dev/hdc
The output would look something like the above. It belongs to the user root and the group disk. We want to change the permissions so it is still owned by root but with the cdrom group and all users in the cdrom group should have all permissions for the device:
chown root.cdrom /dev/hdc - this changes the ownership to the root user and cdrom group
chmod g+rwx /dev/hdc - this gives the cdrom group members read, write and execute permissions on the device

Log out, log in again and try to play something, I recommend The Twilight Singers - Blackberry Belle. :)



Håkan

witeshark 01-22-2004 01:00 PM

hw-tph : thanks tons! I think I may get it running now!

jogurt666 01-22-2004 01:21 PM

pardon my poor English. i explain. it's definitely not a permission problem, since i've already set the groups (otherwise it wouldn't play at all). sound is very quiet, but it can be heared. i've got two CD-ROMs first one mounts as /dev/hdb second as /dev/hdc (well it atelast did). sound in the second one is (was) louder than in first one, but it's still not what i want. i've added the line you told me to /etc/lilo.conf, but now i cannot find my CD-ROM, it simply does not mount as /dev/scd0 or something like that.

jogurt666 01-22-2004 01:57 PM

could you tell me what should i exactly compile as a module in xconfig in SCSI session?

hw-tph 01-23-2004 11:38 AM

Check your /etc/fstab. With SCSI emulation enabled you will have to change the entry for your CD-ROM from /dev/hdc (or whatever) to /dev/scd0.

If you're compiling your own kernel you will need SCSI support, support for generic SCSI devices and SCSI CD-ROMs. Also, under ATA/IDE devices make sure you have SCSI emulation as a module.

Håkan

jogurt666 01-23-2004 02:40 PM

now it works fine. the problem was that i didn't know what should i compile into kernel. sound is still to quiet while playing from audio cds, but now i can rip music, however i had to install grip

forgive me asking to many questions, but i'm still a newbie

hw-tph 01-24-2004 06:07 AM

This place is called Linux Questions. You're supposed to ask questions. :D


Håkan


All times are GMT -5. The time now is 10:11 AM.