On Tuesday 25 May 2010 18:11:49 Michael Biebl wrote: > First of all: why do you want to disable polling? Does it cause any > problems?
For power savings. In laptop-mode-tools, I would like to call udisks -- inhibit-polling when switching to battery. > Second, are you sure, udisks is actually polling your drive? I am not sure. How can I verify that ? I do have hal installed currently which does report polling. root 7516 0.0 0.0 24256 796 ? S 10:26 0:03 hald-addon- storage: polling /dev/sr0 (every 2 sec) > You probably have a SATA AN capabable drive, which does not need polling > and instead sends (udev) uevents on media changes. > That's why you can't disable polling, as it actually doesn't poll :-) > This same device responds well to hal. > Do you have a file evt_media_change in /sys/class/block/sr0 ? No, that file is not present there. But udisks does report this attribute in -- dump. " detects change: 1" Ritesh -- Ritesh Raj Sarraf | http://people.debian.org/~rrs
signature.asc
Description: This is a digitally signed message part.