As a temporary patch, you can try the following:

- Create a file (any name) under /etc/pm/power.d with the following
content:


# Brightness adjustment

case $1 in
        true)

                # 20% screen brightness on battery
                echo 2 > /sys/class/backlight/acpi_video0/brightness
        ;;
        false)
                # 80% screen brightness on AC
                echo 8 > /sys/class/backlight/acpi_video0/brightness
        ;;
esac

exit 0


- Make it executable "chmod +x myscript" assuming  "myscript" is the name of 
your file.

Of course, you will need to reboot. This will adjust the brightness at
20 % when on battery and 80% when on AC power.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-power-manager in Ubuntu.
https://bugs.launchpad.net/bugs/923940

Title:
  Ubuntu 12.04 LTS set max lcd brightness on every boot

Status in “gnome-power-manager” package in Ubuntu:
  Confirmed

Bug description:
  I'm on:
  Linux 3.2.0-12-generic-pae #20-Ubuntu SMP Sat Jan 28 01:10:59 UTC 2012 i686

  I solve the issue editing the file
  /etc/rc.local
  adding this line  "echo 4 > /sys/class/backlight/acpi_video0/brightness" 
(without quotes)
  (i use 4 because is value in the middle, in fact 0 is the lower and 8 is the 
higher)

  Probably there are a better ways to solve this issue (i hope...)
  ---
  ApportVersion: 1.91-0ubuntu1
  Architecture: i386
  DistroRelease: Ubuntu 12.04
  Package: gnome-power-manager 3.2.1-2 [modified: 
usr/bin/gnome-power-statistics]
  PackageArchitecture: i386
  ProcVersionSignature: Ubuntu 3.2.0-15.24-generic-pae 3.2.5
  Tags:  precise
  Uname: Linux 3.2.0-15-generic-pae i686
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to