[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ubuntu-devel-discuss
Subject:    Re: Backlight level save and restore as a init-script / upstart job for laptops
From:       Nrbrtx <nrbrtx () gmail ! com>
Date:       2014-12-24 21:53:18
Message-ID: CAB0hwg804tOSCwZNP9f6J4mRp85odpyxK-wmaQQSuDO1BM5CaA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Dear Petter!

Thank you for reply.

Here is a list:

   - in Arch backlight brightness load and save are provided by systemd
   (see Arch wiki
   <https://wiki.archlinux.org/index.php/backlight#systemd-backlight_service>),
   it is in systemd
   <https://www.archlinux.org/packages/core/x86_64/systemd/> package.
   - in OpenSUSE 13.1, OpenSUSE 13.2, CentOS 7, Fedora 20, Fedora 21,
   Mageia 4 - systemd package
   <http://pkgs.org/search//usr/lib/systemd/systemd-backlight?type=files>
   - 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
   <https://packages.debian.org/search?suite=jessie&arch=any&mode=path&searchon=contents&keywords=systemd-backlight>
  and Debian sid
   <https://packages.debian.org/search?suite=sid&arch=any&mode=path&searchon=contents&keywords=systemd-backlight>
  there is /usr/lib/systemd/systemd-backlight service
   - in Ubuntu Utopic
   <http://packages.ubuntu.com/search?searchon=contents&keywords=systemd-backlight&mode=filename&suite=utopic&arch=any>
  and Ubuntu Vivid
   <http://packages.ubuntu.com/search?searchon=contents&keywords=systemd-backlight&mode=filename&suite=vivid&arch=any>
  there is /usr/lib/systemd/systemd-backlight service

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

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


So it seems that modern distros have backlight load/save functionality
via systemd-backlight
service
<http://www.freedesktop.org/software/systemd/man/systemd-backlight@.service.html>,
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,
Norbert.

P.S. I found interesting projects for the same purpose - first is named
Light and hosted on GitHub <https://github.com/haikarainen/light>
(previously known as LightScript
<http://haikarainen.dotgeek.org/lightscript/>), second is named Relight
<http://xyne.archlinux.ca/projects/relight/>. But I think that init-script
approach is better.

On Tue, Dec 23, 2014 at 12:44 PM, Petter Reinholdtsen <pere@debian.org>
wrote:

> [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
> 


[Attachment #5 (text/html)]

<div dir="ltr"><div><div>Dear Petter!<br><br></div>Thank you for \
reply.<br></div><br>Here is a list:<br><ul><li>in Arch backlight brightness load and \
save are provided by systemd (see <a \
href="https://wiki.archlinux.org/index.php/backlight#systemd-backlight_service" \
target="_blank">Arch wiki</a>), it is in <a \
href="https://www.archlinux.org/packages/core/x86_64/systemd/" \
target="_blank">systemd</a> package.<br></li><li>in OpenSUSE 13.1, OpenSUSE 13.2, \
CentOS 7, Fedora 20, Fedora 21, Mageia 4 - <a \
href="http://pkgs.org/search//usr/lib/systemd/systemd-backlight?type=files" \
target="_blank">systemd package</a></li><li>Sabayon has <span \
style="font-family:monospace,monospace">/usr/lib/systemd/systemd-backlight</span> \
service</li><li><span style="color:rgb(0,0,0)"><span \
style="background-color:rgb(255,255,255)">ALT Linux p7 has systemd, but does not have \
</span></span><span style="font-family:monospace,monospace">/usr/lib/systemd/systemd-backlight</span> \
service</li><li>in Debian <a \
href="https://packages.debian.org/search?suite=jessie&amp;arch=any&amp;mode=path&amp;searchon=contents&amp;keywords=systemd-backlight">Jessie</a> \
and Debian <a href="https://packages.debian.org/search?suite=sid&amp;arch=any&amp;mode=path&amp;searchon=contents&amp;keywords=systemd-backlight">sid</a> \
there is <span style="font-family:monospace,monospace">/usr/lib/systemd/systemd-backlight</span> \
service</li><li>in Ubuntu <a \
href="http://packages.ubuntu.com/search?searchon=contents&amp;keywords=systemd-backlight&amp;mode=filename&amp;suite=utopic&amp;arch=any" \
target="_blank">Utopic</a> and Ubuntu <a \
href="http://packages.ubuntu.com/search?searchon=contents&amp;keywords=systemd-backlight&amp;mode=filename&amp;suite=vivid&amp;arch=any" \
target="_blank">Vivid</a> there is <span \
style="font-family:monospace,monospace">/usr/lib/systemd/systemd-backlight</span> \
service</li></ul><p>There is no backlight load/save functionality in (neither upstart \
nor systemd):</p><ul><li>Ubuntu Lucid</li><li>Ubuntu Precise</li><li>Ubuntu \
Trusty</li><li>Debian Wheezy</li><li>Debian Squeeze</li></ul><p><br></p><p>So it \
seems that modern distros have backlight load/save functionality via <a \
href="http://www.freedesktop.org/software/systemd/man/systemd-backlight@.service.html" \
target="_blank">systemd-backlight service</a>, but older systems does not have this \
functionality at all.</p>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.<br><br>If you have any suggestions and recommendations - I&#39;m ready to \
hear. <br>What you and other developers think? <br><br>With best \
regards,<br>Norbert.<p>P.S. I found interesting projects for the same purpose - first \
is named Light and hosted on <a \
href="https://github.com/haikarainen/light">GitHub</a> (previously known as <a \
href="http://haikarainen.dotgeek.org/lightscript/">LightScript</a>), second is named \
<a href="http://xyne.archlinux.ca/projects/relight/">Relight</a>. But I think that \
init-script approach is better.<br></p></div><div class="gmail_extra"><br><div \
class="gmail_quote">On Tue, Dec 23, 2014 at 12:44 PM, Petter Reinholdtsen <span \
dir="ltr">&lt;<a href="mailto:pere@debian.org" \
target="_blank">pere@debian.org</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">[Nrbrtx]<br> <span class="">&gt; I have tested many distros - \
Arch, OpenSuSe 13.1, Fedora 20, ALT Linux p7,<br> &gt; Sabayon, Mageia 4.<br>
&gt; Many of them are based on systemd.<br>
&gt; It does not matter what init system they use, but all of them have very<br>
&gt; useful script (or binary program, I don&#39;t know) for saving and restoring<br>
&gt; backlight level on laptop.<br>
&gt;<br>
&gt; In these distros there is a script for save and restore backlight levels<br>
&gt; for two video-cards (acpi_video0 and acpi_video1). During system boot it is<br>
&gt; indicated as follows:<br>
<br>
</span>While this seem like a useful feature, it can only be implemented once<br>
it is decided which package should take resposibility for it.   In which<br>
package is this handled byArch, OpenSuSe 13.1, Fedora 20, ALT Linux p7,<br>
Sabayon and Mageia 4?   Can you check, as you haveaccess to these<br>
already?   I do not.   Knowing this might give an idea where to fix it in<br>
Debian and Ubuntu. :)<br>
<br>
I do not expect to have time to work on this myself any time soon, but<br>
hope someone will. :)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Happy hacking<br>
Petter Reinholdtsen<br>
</font></span></blockquote></div><br></div>



-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic