Comment 0 for bug 372874

Revision history for this message
Johannes Hessellund (osos) wrote : Generic get_brightness function should read 'actual_brightness' not 'brightness'

Binary package hint: hal

Brightness notification always shows the same value for laptops with hardwired brightness control, ex T42.

Problem is get_backlight () function in: hald/linux/addons/addon-generic-backlight.c

Line 67 reads: g_snprintf (sysfs_path, sizeof (sysfs_path), "%s/brightness", path);

should be: g_snprintf (sysfs_path, sizeof (sysfs_path), "%s/actual_brightness", path);

'actual_brightness' holds the current value of brightness.
'brightness' is used to set the brightness, and when read gives the last writen value!