touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #50607
[Bug 1270579] Re: Ubuntu should have an upstart job for saving/restoring backlight level on laptops
** Description changed:
- Dear all!
+ HOW TO REPRODUCE:
+ 1. Cool boot a laptop.
+ 2. Set a different screen brightness level.
+ 3. Reboot.
- I have tested many distros - Arch, OpenSuSe 13.1, Fedora 20, ALT Linux p7, Sabayon, Mageia 4.
- Many of them are based on systemd.
- It does not matter what init system they use, but all of them have very usefull script (or binary program, I don't know) for saving and restoring backlight level on laptop.
+ RESULT:
+ Backlight is not memorized.
- In these distros there is a script for save and restore backlight levels for two video-cards (acpi_video0 and acpi_video1). During system boot it is indicated as follows:
- "
- [ OK ] Started Load/Save Screen Backlight Brightness of acpi_video1.
- [ OK ] Started Load/Save Screen Backlight Brightness of acpi_video0.
- ".
-
- =========================================
-
- Steps to reproduce:
- 1. User boots laptop (cold boot, not wake from suspend)
- 2. User sets comfortable backlight level
- 3. User ends his/her work by shutting down the laptop (not suspend, so backlight level is not saved)
- 4. Go to 1 (another cold boot with reseted backlight level).
-
- =========================================
-
- According to the list of duplicates and bug heat this bug/feature
- request is very important.
-
- As you know laptop market share is gigantic (see for example http://www.statista.com/statistics/276772/ultrabook-share-of-global-notebook-market-since-2011/ for stats).
- Also Ubuntu and Debian market share are increasing.
-
- So I can't believe why this usability fault exists in Ubuntu (and Debian) for years.
- It seems that guys from `systemd` understand the problem correctly (sooner or later - on 14 Aug 2013, see https://github.com/systemd/systemd/commits/56f64d95763a799ba4475daf44d8e9f72a1bd474/src/backlight/backlight.c ), but `upstart` and `sysvinit` developers not.
-
- As you can remember I tried to fix the problem by myself (see my comment on askubuntu http://askubuntu.com/questions/151651/brightness-is-reset-to-maximum-on-every-restart/227553#227553) - I created first version of an init script for saving and restoring backlight level (on 10 Dec 2012 - two years ago).
- It had one disadvantage - it operates only when laptop has one graphical adaptor and its name was hardcoded to the script (*acpi_video0* in my case).
-
- So on 2014-12-28 I presented new version of a script - it can save and restore backlight levels of all graphical, adaptors, which are found in `/sys/class/backlight/*`.
- The init script with symlink aPlease note: ire packed to archive (see attachment to comment #18 - https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1270579/+attachment/4288756/+files/upstart_brightness.tar.gz ).
- The script is tested on Ubuntu Precise 12.04.5 and Ubuntu Trusty 14.04.1.
-
- If you have installed its previous version (from comment #15) - you can remove its files with commands:
- sudo rm /etc/rc?.d/?25backlight /etc/init.d/brightness
- then extract new version with commands:
- sudo tar -zxvf upstart_brightness.tar.gz -C /
-
- I hope my script will help somebody.
- Thanks for testing!
-
- To Ubuntu developers: please contact me if you are ready to include and
- distribute my script to 12.04 and 14.04 deb-pakages.
-
- =========================================
+ FIX:
+ Into the "Terminal" application, enter the following lines one by one:
+ - wget https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1270579/+attachment/4288756/+files/upstart_brightness.tar.gz
+ - sudo rm /etc/rc?.d/?25backlight /etc/init.d/brightness
+ - sudo tar -zxvf upstart_brightness.tar.gz -C /
+ - rm upstart_brightness.tar.gz
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)
** Summary changed:
- Ubuntu should have an upstart job for saving/restoring backlight level on laptops
+ On laptops, screen brightness isn't memorized between sessions
** Changed in: hundredpapercuts
Importance: Medium => Low
** Description changed:
HOW TO REPRODUCE:
- 1. Cool boot a laptop.
+ 1. Boot a laptop.
2. Set a different screen brightness level.
3. Reboot.
RESULT:
Backlight is not memorized.
FIX:
Into the "Terminal" application, enter the following lines one by one:
- - wget https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1270579/+attachment/4288756/+files/upstart_brightness.tar.gz
- - sudo rm /etc/rc?.d/?25backlight /etc/init.d/brightness
- - sudo tar -zxvf upstart_brightness.tar.gz -C /
- - rm upstart_brightness.tar.gz
+ - wget https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1270579/+attachment/4288756/+files/upstart_brightness.tar.gz
+ - sudo rm /etc/rc?.d/?25backlight /etc/init.d/brightness
+ - sudo tar -zxvf upstart_brightness.tar.gz -C /
+ - rm upstart_brightness.tar.gz
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)
** Changed in: hundredpapercuts
Importance: Low => Wishlist
** Also affects: upstart
Importance: Undecided
Status: New
** No longer affects: systemd (Ubuntu)
** No longer affects: sysvinit (Ubuntu)
** Package changed: sysvinit (Debian) => sysvinit (Ubuntu)
** No longer affects: sysvinit (Ubuntu)
** Changed in: upstart
Status: New => Confirmed
** No longer affects: hundredpapercuts
** Project changed: ubuntu-mate => hundredpapercuts
** Changed in: hundredpapercuts
Status: Opinion => Confirmed
** Changed in: linuxmint
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to sysvinit in Ubuntu.
https://bugs.launchpad.net/bugs/1270579
Title:
On laptops, screen brightness isn't memorized between sessions
Status in elementary OS:
Confirmed
Status in One Hundred Papercuts:
Confirmed
Status in The Linux Mint Distribution:
Confirmed
Status in Upstart:
Confirmed
Status in upstart package in Ubuntu:
Confirmed
Bug description:
HOW TO REPRODUCE:
1. Boot a laptop.
2. Set a different screen brightness level.
3. Reboot.
RESULT:
Backlight is not memorized.
FIX:
Into the "Terminal" application, enter the following lines one by one:
- wget https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1270579/+attachment/4288756/+files/upstart_brightness.tar.gz
- sudo rm /etc/rc?.d/?25backlight /etc/init.d/brightness
- sudo tar -zxvf upstart_brightness.tar.gz -C /
- rm upstart_brightness.tar.gz
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/elementaryos/+bug/1270579/+subscriptions