Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Autostart a CD
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ksn03
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2004
Posts: 77

PostPosted: Wed Jan 12, 2005 6:28 pm    Post subject: Autostart a CD Reply with quote

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
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Wed Jan 12, 2005 8:23 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic.php?t=185508
https://forums.gentoo.org/viewtopic.php?t=217412
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
keyson
l33t
l33t


Joined: 10 Jun 2003
Posts: 830
Location: Sweden

PostPosted: Wed Jan 12, 2005 8:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
ahood
n00b
n00b


Joined: 27 May 2004
Posts: 8
Location: ENGLAND

PostPosted: Mon Jan 24, 2005 3:52 pm    Post subject: kscd Reply with quote

Hey keyson, How did you get kscd to auto-play when a music cd is inserted?
Back to top
View user's profile Send private message
keyson
l33t
l33t


Joined: 10 Jun 2003
Posts: 830
Location: Sweden

PostPosted: Mon Jan 24, 2005 5:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum