View previous topic :: View next topic |
Author |
Message |
ksn03 Tux's lil' helper
Joined: 23 Feb 2004 Posts: 77
|
Posted: Wed Jan 12, 2005 6:28 pm Post subject: Autostart a CD |
|
|
Hi I am going to develop a system, which can start playing a music CD automatisk, when it is put in the drive...My problem is now that I have to mount the drive, before i manual can start a cd player..It is also a problem that I have to unount the drive, before I can get the CD out. I would like my linux box to work like a cd player...Hope there are som experts in here, which have a solution!!
Regards
Karsten |
|
Back to top |
|
|
yngwin Retired Dev
Joined: 19 Dec 2002 Posts: 4572 Location: Suzhou, China
|
|
Back to top |
|
|
keyson l33t
Joined: 10 Jun 2003 Posts: 830 Location: Sweden
|
Posted: Wed Jan 12, 2005 8:23 pm Post subject: |
|
|
Hi
Sorry to be a joy killer. But you can do that by using
HAL, D-BUS and IVMAN.
I use it and start kscd in kde when a music cd is inserted.
And if i put a normal data cd in, then it mount it and opens
the Konqueror to display the content. By pressing the
eject button, it unmount the disk and eject.
It also handle the usb memory stick.
Have not entered the roule in the ivman to close Konqueror
on ejec, but it is possible.
Btw, a normal music cd don't need to be mounted to be played.
So if you are in for programming, contact the ivman developer.
I think he want some help.
-Kjell |
|
Back to top |
|
|
ahood n00b
Joined: 27 May 2004 Posts: 8 Location: ENGLAND
|
Posted: Mon Jan 24, 2005 3:52 pm Post subject: kscd |
|
|
Hey keyson, How did you get kscd to auto-play when a music cd is inserted? |
|
Back to top |
|
|
keyson l33t
Joined: 10 Jun 2003 Posts: 830 Location: Sweden
|
Posted: Mon Jan 24, 2005 5:46 pm Post subject: |
|
|
Hi
Install the latest Ivman.
Run it on bootup as normal. But then you instert
a link in /home/user/.kde/Autostart/
to the ivman program so you run it as a user when you login.
Now when you have logged in you get a .ivman directory.
Open the file IvmConfigActions.xml and uncomment this
in the file and insert the line that you se is missing in your file.
Code: |
<ivm:Match name="hal.volume.disc.type" value="cd_rom">
<ivm:Match name="hal.volume.disc.has_audio" value="true">
<ivm:Match name="hal.volume.disc.has_data" value="false">
<ivm:Option name="exec" value="cdplay -d $hal.block.device$ -c" />
<ivm:Option name="exec" value="kscd" />
</ivm:Match>
</ivm:Match>
</ivm:Match>
|
This was a quick howto. Have to put my son to bed.
-Kjell |
|
Back to top |
|
|
|