LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 05-30-2004, 09:09 PM   #1
mattkat
LQ Newbie
 
Registered: Sep 2002
Distribution: Redhat 7.2
Posts: 23

Rep: Reputation: 15
Detect CD tray load


Hi,

I'm using an old laptop as a cd library. One piece of it is a daemon to rip cds automatically when they are loaded. And I'm having a tough time with the cd load detection. I have not found any references yet about how to do this. I sort of thought it was straight forward enough that there would be something already made I could run from a script. But so far I have found no info about how to do it, never mind a prebuilt utility. I did find the source for a small app that is supposed to monitor the cdrom and play cds when they are loaded. Unfortunately I cannot get it to compile. When I looked at the code, it looks like I can find the pieces doing what I want. The problem is, I think I also found a handful of mistakes that were partly responsible for the failed build.

So I might be able to piece together a c program with this partly buggy model and magicdev source if it is available, but I'd rather not re-make it if there is anything else out there. Anyone?

Thanks,
Matt
 
Old 05-31-2004, 06:00 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
sorry to not be more use with actual lower level code, but i know that grip (cd-ripper) does this sort of monitoring very well, might be worth a look at the source code. oh and looking at the config, it can autoplay on insert even....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Things for KDE system tray in gnome system tray Boffy Linux - General 3 09-17-2004 07:56 AM
Cups says "Media tray empty!" but I have +50 sheets of paper in tray... r_jensen11 Linux - Hardware 8 09-07-2004 10:46 PM
firestarter load on startup/system tray zombie_wolf Linux - Security 1 05-08-2004 04:44 AM
NIC fail to load/detect/config Darkman_2099 Linux - Hardware 7 12-07-2003 01:45 AM
sys tray dujonn Linux - Newbie 2 12-19-2002 08:38 PM


All times are GMT -5. The time now is 01:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration