question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Creating systemd integration to set desired color scheme at boot time

See original GitHub issue

The default blue backlight colors are loaded on boot. Any changes applied through the aucc command are not permanent.

Since elevated privileges are necessary to communicate with the USB controller, placing an aucc script in your Desktop environment’s start folder (e.g. .config/autostart-scripts/) is not comfortable, since you will be prompted for your sudo password each time your display manager starts up plasma or gnome (or whichever environment you prefer).

Instead, the following should happen:

  • The GUI or command line tool writes the desired color scheme (or aucc parameters) into a system configuration file, like /etc/aucc.conf.
  • A systemd service is created and enabled for auto-start during boot, which runs aucc with root privileges, applying the color scheme from /etc/aucc.conf to the USB keyboard controller.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
rodgomesccommented, Jun 10, 2019

@LeoniePhiline

I do not know if you received my feedback on the donation, but I’ll leave it here anyway:

coffe

0reactions
rodgomesccommented, Jun 10, 2019

when suspending the leds return to normal for me by pressing any key, already while hibernating, hibernation does not work very well on my laptop with fedora 30 silverblue, I believe it is some issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use systemd to Start a Linux Service at Boot - Linode
Create a Custom systemd Service ... This script will log the time at which it is initialized, then loop infinitely to keep the...
Read more >
Chapter 10. Managing Services with systemd
Socket-based activation — At boot time, systemd creates listening sockets for all system services that support this type of activation, and passes the...
Read more >
Scheduling tasks with systemd timers on Linux
One such tool is systemd timers, whose primary purpose is to schedule and run tasks during startup or repeatedly after a system boot....
Read more >
Ubuntu 22.04: Beautiful Outside, Ugly Inside!
Ubuntu 22.04 is noticeably slow in boot time. ... For example, you won't be able to install the GNOME extension through Firefox and...
Read more >
The Buildroot user manual
Avoids the build time of the cross-compilation toolchain, which is often very ... if set and non-empty, to use an alternate color-scheme in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found