#717865 when unplugging AC, backlight is turned off

Package:
pommed
Source:
pommed
Description:
Apple laptops hotkeys event handler
Submitter:
Martin Zobel-Helas
Date:
2013-07-26 07:27:06 UTC
Severity:
normal
#717865#5
Date:
2013-07-25 18:42:16 UTC
From:
To:
Hi,

the default setting for LCD backlight when unplugging AC is to set
"on_batt = 8", which literally turns of the backlight.

zobel@kvasir ~ % cat /sys/class/backlight/gmux_backlight/brightness
110400
zobel@kvasir ~ % cat /sys/class/backlight/gmux_backlight/brightness
8
zobel@kvasir ~ % cat /sys/class/backlight/gmux_backlight/brightness
110400

With the changed config:
zobel@kvasir ~ % cat /sys/class/backlight/gmux_backlight/brightness
2000
zobel@kvasir ~ % cat /sys/class/backlight/gmux_backlight/brightness
110400
zobel@kvasir ~ %

The default config suggests, that the value of it might only be between
1 and 15, which is quite dark.

Cheers,
Martin

#717865#10
Date:
2013-07-26 07:25:19 UTC
From:
To:
Le 25/07/2013 20:42, Martin Zobel-Helas a ←crit :
[...]

Hi,

The brightness scale is hardware dependent.

I suggest the config file should accept a percentage in addition to
absolute value and scale that according to
/sys/class/backlight/gmux_backlight/max_brightness.

The default value in the config file should also be a percentage.

Kind regards, Thibaut.