a blacklist for hal?
is there a way to "blacklist" a hardware device from hal? i have problems with my toshiba cdrw/dvdrw and hal, and I want to configure it to run without listening for events on this device.
|
Try editing /etc/fstab by puting your own entry for the device in fstab. Do so while the device is not connected or hal will autogenerate an entry for the device. If you do this properly, hal will respect your entry and not attempt to autogeneragte a fstab entry for the device when it is connected. At least that's what I've found.
|
Quote:
is there a kernel parameter to ignore a device at boot? thanks again! |
I've only tried this trick with usb devices that were giving hal problems and it worked. I assumed your drive was one that connected through the pcmcia slot, i.e. it was removable. That type of device would normally be picked up by hal. Please post your fstab. Try something like this for hdb:
/dev/hdb <mount point> auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec,users 0 0 |
Quote:
Code:
# This file is edited by fstab-sync - see 'man fstab-sync' for details Code:
/dev/hdb /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0 Thanks again! |
you're right, hal won't write over that line if it there. I replaced the "managed" line for hdb with your suggestion, ran /etc/init.d/haldaemon restart and the new line remained unchanged. My problem didn't get fixed. I get the messages
Code:
Oct 11 08:19:05 oszver kernel: ATAPI device hdb: There's a bugzilla report on this problem at https://bugzilla.redhat.com/bugzilla....cgi?id=167542 which is what prmpted my blacklist question. For now, I have to keep a cd in the drive or kill hald to stop my hd from endlessly sipping to write lines to messages! i would really like to nail this down, i have seen many posts about this problem, but no solutions! |
Check out this article:
http://www.redhat.com/magazine/003ja...tures/hal/#fdi the config files seem to be xml located somewhere in /usr/share/hal. The article will give you some overview of how hal is implemented in FC. It references some command line utilities, lshal, hal-get-property, hal-set-property, and hal-device-manager. Hal-device-manager is a gui tool and might be a good place to start. Perhaps you can reset some properties for the device there. |
Quote:
|
the above article give a good crash course in how hal identifies and works with devices.
OK, I have a work around until they fix the above refrence bug. I edited the file Code:
/usr/share/hal/fdi/policy/10osvendor/10-storage-policy.fdi Code:
<device> storage.media_check_enabled variable set to "true" is not the culprit. There could be unknown (to me) consequences as well! All I know is that the horrible erro message is now written three times at boot, and never more! Maybe this will help someone else out too. |
Glad you found a workaround. I was curious and looked into this a bit myself. Apparrently to blacklist a device, you have to create an fdi file for it somewhere in /usr/share/hal/fdi. Those are all xml files and I have no idea on how to even start doing that. Worse yet, there is very little documentation on hal or fdi configuration. The whole thing is bringing back nightmares of editing the windows registry.
|
thanks kilgoretrout, your reference did the trick for me. i think my solution is too severe and i am going to try an alternate:
restore the deleted lines above, and add the following to the optical drive section of the same file Code:
<match key="storage.bus" string="ide"> i'll post a follow up if it works. the errors at boot will be gone as well, or at least that's my guess. |
here's my follow up:
i prefer this new work around: starting fesh with the "stock" file Code:
/usr/share/hal/fdi/policy/10osvendor/10-storage-policy.fdi Code:
<match key="storage.bus" string="ide"> Code:
<device> Code:
udi = '/org/freedesktop/Hal/devices/storage_serial_654M401196' |
I updated my kernel to 2.6.15-1.1830_FC4smp i686 today (with yum update kernel), and the hal problem is gone as is verified by commenting out the above code and restarting haldaemon with
Code:
/etc/init.d/haldaemon restart |
All times are GMT -5. The time now is 09:59 AM. |