← Back to team overview

touch-packages team mailing list archive

[Bug 1270579] Re: On laptops, screen brightness isn't memorized between sessions

 

Dear all!

As you can read from bug description, I created Ubuntu package for
saving and restoring backlight (brightness) level on laptops.

This package installs one file - "/etc/init.d/sysvinit-backlight" (sysvinit script).
You can install my package from PPA with the commands below:
    sudo add-apt-repository ppa:nrbrtx/sysvinit-backlight
    sudo apt-get update
    sudo apt-get install sysvinit-backlight

You can remove it by
    sudo apt-get purge sysvinit-backlight

Please note: if you have installed the previous version of my script, please remove it by
    sudo rm /etc/rc?.d/?25backlight /etc/init.d/brightness /etc/rc?.d/?25brightness

The script functionality is:
   * save backlight (brightness) levels of all video adapters on reboot and shutdown (runlevel 0 and 6)
   * load backlight (brightness) levels for all video adapters on boot (runlevel S and 2)
   * this version supports hybrid graphics

The script options are:
   * sudo service sysvinit-backlight status (show current brightness levels and saved in files values)
   * sudo service sysvinit-backlight start (set saved level from files)
   * sudo service sysvinit-backlight stop (save current level to files)

Known problems:
   * brightness resets to maximum on login to MATE session (may be related to https://github.com/mate-desktop/mate-power-manager/issues/76)

Changes:
    I removed all bashisms and made code more clear - thanks to Andreas Mohr (andi).


I tested my package on Ubuntu 12.04.5 LTS, 14.04.2 LTS and Ubuntu 14.10.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to upstart in Ubuntu.
https://bugs.launchpad.net/bugs/1270579

Title:
  On laptops, screen brightness isn't memorized between sessions

Status in Dell Sputnik:
  New
Status in One Hundred Papercuts:
  Won't Fix
Status in The Linux Mint Distribution:
  Confirmed
Status in Upstart:
  Confirmed
Status in upstart package in Ubuntu:
  Won't Fix

Bug description:
  HOW TO REPRODUCE:
  1. Boot a laptop.
  2. Set a different screen brightness level.
  3. Reboot.

  RESULT:
  Backlight is not memorized.

  FIX:
    Install package from PPA
      sudo add-apt-repository ppa:nrbrtx/sysvinit-backlight
      sudo apt-get update
      sudo apt-get install sysvinit-backlight

  NOTE:
    If you have installed previous version, please remove it carefully manually
      sudo rm /etc/rc?.d/?25backlight /etc/init.d/brightness /etc/rc?.d/?25brightness

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: initscripts 2.88dsf-41ubuntu5
  ProcVersionSignature: Ubuntu 3.13.0-4.19-generic 3.13.0-rc8
  Uname: Linux 3.13.0-4-generic i686
  ApportVersion: 2.13.1-0ubuntu1
  Architecture: i386
  CurrentDesktop: GNOME
  Date: Sun Jan 19 17:20:26 2014
  InstallationDate: Installed on 2013-10-20 (91 days ago)
  InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release i386 (20131016.1)
  SourcePackage: sysvinit
  UpgradeStatus: Upgraded to trusty on 2013-11-19 (61 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/dell-sputnik/+bug/1270579/+subscriptions