get_backlight function read from the wrong sysfs file.
The real backlight value is available from 'actual_brightness', whereas 'brightness' is used for changing/setting the backlight through software.
'brightness' always reads last value writen to it.
Backlight which is hardware controlled, as with many thinkpads (ex T42), does not update 'brightness'. Thus hald is not returning the right value!
line 67 should be:
g_snprintf (sysfs_path, sizeof (sysfs_path), "%s/actual_brightness", path);
On my T42 the sysfs path is:
/sys/class/backlight/thinkpad_screen/actual_brightness
In addon-generic- backlight. c line 67 cgit.freedeskto p.org/hal/ tree/hald/ linux/addons/ addon-generic- backlight. c
http://
get_backlight function read from the wrong sysfs file. brightness' , whereas 'brightness' is used for changing/setting the backlight through software.
The real backlight value is available from 'actual_
'brightness' always reads last value writen to it.
Backlight which is hardware controlled, as with many thinkpads (ex T42), does not update 'brightness'. Thus hald is not returning the right value!
line 67 should be: brightness" , path);
g_snprintf (sysfs_path, sizeof (sysfs_path), "%s/actual_
On my T42 the sysfs path is: class/backlight /thinkpad_ screen/ actual_ brightness
/sys/