From: Jesse Gibbons <jgibbons2357@gmail.com>
To: Tobias Geerinckx-Rice <me@tobias.gr>
Cc: help-guix@gnu.org
Subject: Re: How to set default screen brightness?
Date: Sat, 15 Jun 2019 17:03:29 -0600 [thread overview]
Message-ID: <20190615170329.6dca1038@gmail.com> (raw)
In-Reply-To: <87ftoawp65.fsf@nckx>
On Sat, 15 Jun 2019 22:48:18 +0200
Tobias Geerinckx-Rice <me@tobias.gr> wrote:
> Jesse,
>
> Jesse Gibbons wrote:
> > Thanks. I think I can add a service using the `light` tool.
>
> Yeah, I currently call it from my .xsession, which is horrible…
> A proper service would be most welcome.
>
> > Administrators will likely prefer to install it on anything with
> > a
> > display that runs on battery power, so I might contribute it in
> > gnu/services/pm.scm
>
> Ew. We actually have that poorly-named file :-(
I agree the filename is cringeworthy. Unfortunatley it will be difficult
to change the file name now because it will break a lot of end-user OS
definitions and documentation.
>
> > if nobody beats me to it.
>
> Go for it!
>
> I still wonder whether it would be possible (and worth it) to do
> this without external dependencies (i.e. basically reimplementing
> ‘light’ in Scheme), so I won't be stepping directly on your toes
> in the meantime.
It would be nice to script the commands in shepherd. All it needs to do
is read/write the value in the hardware either using syscalls or in a
virtual file it finds in /sys, and keep track of the value in a
designated location (something like /etc/light.d/backlight) when the
daemon is started/stopped, correct? The only potential problem I see is
it probably wouldn't work on a non-linux kernel like hurd or bsd; that
can be fixed when the need arises.
> Kind regards,
>
> T G-R
prev parent reply other threads:[~2019-06-15 23:03 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
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 [this message]
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=20190615170329.6dca1038@gmail.com \
--to=jgibbons2357@gmail.com \
--cc=help-guix@gnu.org \
--cc=me@tobias.gr \
/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).