Backlight level save and restore as a init-script / upstart job for laptops

Nrbrtx nrbrtx at
Wed Dec 24 21:53:18 UTC 2014

Dear Petter!

Thank you for reply.

Here is a list:

   - in Arch backlight brightness load and save are provided by systemd
   (see Arch wiki
   it is in systemd
   <> package.
   - in OpenSUSE 13.1, OpenSUSE 13.2, CentOS 7, Fedora 20, Fedora 21,
   Mageia 4 - systemd package
   - Sabayon has /usr/lib/systemd/systemd-backlight service
   - ALT Linux p7 has systemd, but does not have
   /usr/lib/systemd/systemd-backlight service
   - in Debian Jessie
   and Debian sid
   there is /usr/lib/systemd/systemd-backlight service
   - in Ubuntu Utopic
   and Ubuntu Vivid
   there is /usr/lib/systemd/systemd-backlight service

There is no backlight load/save functionality in (neither upstart nor

   - Ubuntu Lucid
   - Ubuntu Precise
   - Ubuntu Trusty
   - Debian Wheezy
   - Debian Squeeze

So it seems that modern distros have backlight load/save functionality
via systemd-backlight
but older systems does not have this functionality at all.
For older (but supported) systems one can use my script with symlinks (may
be with some files in /etc/pm/). I mean Debian 6, 7 and Ubuntu 12.04, 14.04.

If you have any suggestions and recommendations - I'm ready to hear.
What you and other developers think?

With best regards,

P.S. I found interesting projects for the same purpose - first is named
Light and hosted on GitHub <>
(previously known as LightScript
<>), second is named Relight
<>. But I think that init-script
approach is better.

On Tue, Dec 23, 2014 at 12:44 PM, Petter Reinholdtsen <pere at>

> [Nrbrtx]
> > 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
> > useful 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). During system boot it
> is
> > indicated as follows:
> While this seem like a useful feature, it can only be implemented once
> it is decided which package should take resposibility for it.  In which
> package is this handled byArch, OpenSuSe 13.1, Fedora 20, ALT Linux p7,
> Sabayon and Mageia 4?  Can you check, as you haveaccess to these
> already?  I do not.  Knowing this might give an idea where to fix it in
> Debian and Ubuntu. :)
> I do not expect to have time to work on this myself any time soon, but
> hope someone will. :)
> --
> Happy hacking
> Petter Reinholdtsen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Ubuntu-devel-discuss mailing list