I'm using Linux with a 3.9 kernel (BohdiLinux, but I'm looking for a distro (or at least desktop environment) agnostic answer).
Something is periodically (or on some event, perhaps) reseting the backlight level of my screen laptop, and I would like to know what process it is.
I naivly try to watch acess on /sys/class/backlight with inotifywatch[1], but events on /sys does not seems to be recorded.
I also try to see if there was some acpi events, but nothing was recorded by acpi_listen when the reset occures.
I have no idea of the process doing the reset, or even if it is always started or started on demand by another one, so I don't see how I could use lsof.
How could I progress from here ? Thanks for any advice !
[edit] :
- it seems that sysfs can not be monitored: http://www.mail-archive.com/kernelnewbies@nl.linux.org/msg07648.html
- udevadm[3] confirms that what is reseting the brightness is a sysfs event, but I still don't know how to find what is triggering that udev event
[1] actual command: sudo inotifywatch -r -v /sys/class/backlight/
[2] actual command: sudo acpi_listen
[3] output
% sudo udevadm monitor --udev --propertymonitor will print the received events for:UDEV - the event which udev sends out after rule processingUDEV [27661.753446] change /devices/pci0000:00/0000:00:02.0/backlight/acpi_video1 (backlight)ACTION=changeDEVPATH=/devices/pci0000:00/0000:00:02.0/backlight/acpi_video1SEQNUM=6027SOURCE=sysfsSUBSYSTEM=backlightUDEV_LOG=7USEC_INITIALIZED=27661753199