LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-15-2009, 06:49 PM   #1
nemesis9
LQ Newbie
 
Registered: Jul 2009
Location: Arizona
Distribution: Redhat Fedora
Posts: 20

Rep: Reputation: 1
Can halevt update status after a blank disc is written?


We are building a custom linux system and we are using halevt to report disc insertions/mounts/removals, etc. I am using halevt to call a program that we wrote.
When I put in a blank DVD, it is reported as a blank DVD. Then, we burn some data to the DVD. Afterwards I want halevt to update the status to DVD Data without needing to eject and reinsert the DVD. Is there some way I can have it fire an event (and call our custom program) after the disc is written to (without ejecting and reinserting)?

Thanks
 
Old 10-16-2009, 09:25 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,848

Rep: Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012
I'm no expert, but as I understand it, halevt simply monitors the system changes that hal reports and executes commands if it encounters something that matches a rule in it's config file.

I'd be surprised if hal didn't report some change in status when a disc becomes readable, but whether you can do what you want without ejecting the disc, I don't know. It could be that the system itself can't detect the change unless the disc is reloaded. Most burning programs seem to automatically eject discs at the end of a burn, and there's probably a reason for that. I can also imagine that other functions like udev device creation may depend on a physical reload too.

So all you have to do is determine whether and when hal reports the change in status, and write a corresponding halevt rule for it. You could probably start by watching lshal in monitor mode (lshal -m).
 
  


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
How to tell how many times a dvd rw disc has been written to? Mountain Man Linux - General 9 09-18-2009 04:01 AM
CD/DVDs not being automounted properly, RHEL thinks it is Blank Disc Arodef Red Hat 2 08-31-2009 02:16 PM
Written DVD's results in blank disks eddiep Linux - Hardware 6 05-13-2006 12:00 PM
how many times can you blank a cd-rw disc??? win32sux Linux - Hardware 7 05-11-2004 05:26 PM
DVD/CDRW Everything works except I can't burn to a blank disc Nick1104 Linux - Hardware 4 04-03-2004 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration