Add the following script to /etc/pm/power.d 
----------
#!/bin/bash

case $1 in
    true)
    echo "Enable screen power saving"
    echo 5 > 
/sys/class/backlight/acpi_video0/device/backlight/acpi_video0/brightness
    ;;
    false)
    echo "Disable screen power saving"
    echo 10 > 
/sys/class/backlight/acpi_video0/device/backlight/acpi_video0/brightness
    ;;
esac

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

Title:
  backlight does not dim on AC adapter unplug

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/1184164/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to