Hello,
Nobody else seemed to jump in here. Sooo...
You can disable hal polling with this:
hal-disable-polling --device /dev/sr0
(or whatever your device is /dev/sr2 etc).
It will follow symlinks such as /dev/cdrom /dev/dvd etc.
The hal-disable-polling man page has some illuminating info on
this.
To change the interval, I'd hack:
addon-storage.c
in hal-0.5.11/hald/linux/addons
Change this line, line 284:
static int interval_in_seconds = 2;
and these lines 329ff:
if (system_is_idle)
interval_in_seconds = 16;
else
interval_in_seconds = 2;
You might do this with powers of 2 secs (2, 4, 8, 16, 32...)
I haven't done this, and it might kill your cat, so don't blame me
if it does.
There's some additional info here:
http://ubuntuforums.org/showthread.php?t=77964
which is a bit dated. And sorry to point you to an ubuntu
thread.
<rant>
I HATE hal. It's config files are unnecessarily complicated, for
those of us that want to get an initial grip on how it works. And,
when you invest the time in getting that grip, you find almost
everything you want to do is not configurable in the config files.
You therefore have to hack the src. Which, to me, at least, isn't
really what configuration is about (not that hacking the source
isn't fun, but is that really what David Zeuthen had in mind?).
You cannot, for example, force noexec as a mount option in hal,
something that seems like a thing crying out for a mount option.
You have to hack the defines in:
hal-storage-mount.c
because David Zeuthen thought it was being abused by pesky sys
admins that just RUINED his beautiful creation.
To me, it's just broken broken broken. Tell me I'm WRONG (please).
</rant>
Hope this helps you, anyway.
Having written this, enamoured of my rant as I was, I realised
I've only answered half you question, and answered another
question you answered yourself. Sorry. Just had a look at
addon-storage.c and it seems that it treats ata and sata drives in
the same way, and that the main polling logic is in
poll_for_media_force(). Not helpful I know. FWIW it doesn't light
up the LED on my sata drive (though it does light up the main drive
activity LED on the mobo). My kernel has a home brew config, so
you might be using different kernel drivers, hence the lights.
===Rich