From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice Subject: Re: How to set default screen brightness? Date: Sat, 15 Jun 2019 19:41:13 +0200 Message-ID: <87muiiwxz3.fsf@nckx> References: <20190615110054.358ca451@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:58255) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcCgA-0000Vs-Nk for help-guix@gnu.org; Sat, 15 Jun 2019 13:41:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcCg8-0006qg-Sk for help-guix@gnu.org; Sat, 15 Jun 2019 13:41:26 -0400 Received: from tobias.gr ([2001:470:7405::1]:43534) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hcCg7-0006mj-25 for help-guix@gnu.org; Sat, 15 Jun 2019 13:41:24 -0400 In-reply-to: <20190615110054.358ca451@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Jesse Gibbons Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Jesse, Jesse Gibbons wrote: > My Librem 13 laptop battery lasts much longer with a lower=20 > screen > brightness. When it runs gnome on guix (and I haven't tried any=20 > other > de) I have to turn down the brightness every time. This is not=20 > so with > my other partition running PureOS. Is there a way to configure a > default screen brightness in guix/gnome? Guix doesn't have a notion of =E2=80=98default=E2=80=99 screen brightness b= ecause=20 it doesn't know anything about brightness. My guess is that PureOS uses systemd; systemd provides a=20 backlight.service that reads the backlight brightness at shutdown,=20 stores it to disc, and writes that value back to the device at=20 next start-up. It would be a relatively trivial service to add, but that hasn't=20 been done yet :-) We do already provide a simple, script-friendly abstraction tool=C2=B9: $ guix install light $ sudo light -S 50 # percentage It can even run setuid. Kind regards, T G-R [1]: As opposed to manually reading and writing `find /sys -path=20 *backlight*brightness*`. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXQUtuQAKCRANsP+IT1Vt eTBJAQDA2TOhum6EibBuN3BIT5Lmo4BmEQYjy64+v6yimb2n9wD9Gj26wD8hIpSQ I9MykHN3/TztHAJMPM1aabf3zSa+ug8= =IB1j -----END PGP SIGNATURE----- --=-=-=--