I made a brute workaround script that works for me:

(
while sleep 1; do
  blval=$(cat /sys/class/backlight/acpi_video0/brightness)
  blval=$(printf "%X" $(($blval*255/9)))
  setpci -s 00:02.0 F4.B=$blval
done
)&

It's ugly in the sense that it polls the brightness every second and writes the 
results to a pci register. The script is started with sudo as it needs root 
privilege.
If anyone knows a hook that I can use to execute this script (so that I don't 
need to poll), please let me know.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/706303

Title:
  LCD screen brightness is not adapted on AC/Battery state change

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/706303/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to