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
Desktop Bugs, which is subscribed to gnome-power-manager in 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

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

Reply via email to