From: Tobias Geerinckx-Rice <me@tobias.gr>
To: Jesse Gibbons <jgibbons2357@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: How to set default screen brightness?
Date: Sat, 15 Jun 2019 19:41:13 +0200 [thread overview]
Message-ID: <87muiiwxz3.fsf@nckx> (raw)
In-Reply-To: <20190615110054.358ca451@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1069 bytes --]
Jesse,
Jesse Gibbons wrote:
> My Librem 13 laptop battery lasts much longer with a lower
> screen
> brightness. When it runs gnome on guix (and I haven't tried any
> other
> de) I have to turn down the brightness every time. This is not
> 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 ‘default’ screen brightness because
it doesn't know anything about brightness.
My guess is that PureOS uses systemd; systemd provides a
backlight.service that reads the backlight brightness at shutdown,
stores it to disc, and writes that value back to the device at
next start-up.
It would be a relatively trivial service to add, but that hasn't
been done yet :-)
We do already provide a simple, script-friendly abstraction tool¹:
$ 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
*backlight*brightness*`.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
next prev parent reply other threads:[~2019-06-15 17:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-15 17:00 How to set default screen brightness? Jesse Gibbons
2019-06-15 17:41 ` Tobias Geerinckx-Rice [this message]
2019-06-15 19:22 ` Jesse Gibbons
2019-06-15 19:30 ` Pierre Neidhardt
2019-06-15 20:48 ` Tobias Geerinckx-Rice
2019-06-15 23:03 ` Jesse Gibbons
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87muiiwxz3.fsf@nckx \
--to=me@tobias.gr \
--cc=help-guix@gnu.org \
--cc=jgibbons2357@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).