Comment 0 for bug 1270579

Revision history for this message
Norbert (nrbrtx) wrote : Ubuntu should have an init script for saving/restoring backlight level on laptops

I have tested many distros - Arch, OpenSuSe 13.1, Fedora 20, ALT Linux p7, Sabayon, Magiea 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.

In these distros there is a script for save and restore backlight levels for two video-cards (acpi_video0 and acpi_video1).

I have a draft version, which works normally on my VAIO F13Z1R laptop. It is in attachment.
You can use it unmodified or modify it for compatibility with upstart or something. I made symlinks for it:
ln -s /etc/init.d/backlight /etc/rc0.d/S25backlight
ln -s /etc/init.d/backlight /etc/rcS.d/S25backlight
ln -s /etc/init.d/backlight /etc/rc6.d/S25backlight

For details you can read my comment on askubuntu (http://askubuntu.com/a/227553/66509).

I think that having a script for saving and restoring backlight level is very usefull for laptop Ubuntu users.
So, please, add such init script to default Ubuntu installation.

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)