Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic:  systemctl backlight disable  (Read 2280 times)

Offline paxmark2

  • User
  • Posts: 85
systemctl backlight disable
« on: 2015/08/22, 21:23:37 »


I disabled a backlight ... .service under two different names over the past few months.  But then I would see a problem in journalctl -b -1 or notice a hanging process in the shutdown.  The following command did not work.
Code: [Select]
sudo sytemctl disable systemd-backlight@backlight:acpi_video1.service

however the following worked.

Code: [Select]
sudo systemctl mask systemd-backlight@backlight:acpi_video1.service
As in man systemctl    "This is a stronger version of disable, since it prohibits all kinds of activation of the unit, including enablement and manual activation. Use this option with care."   Sounds kind of like kill -9

If anyone has any softer gentler ways to disable backlights - I would appreciate.  "mask" is working quite well however.  TIA

Edit later   via #debian-systemd 


<damjan> those backlight services are probably triggered by udev so disabling them didn't mean anything
<damjan> you can still start a disabled service, and that's what udev does (more or less)


man systemd-backlight@.service talks about changing one line



 systemd.restore_state=
           Takes a boolean argument. Defaults to "1". If "0", does not restore
           the backlight settings on boot. However, settings will still be
           stored on shutdown.


but that line is not present in my /lib/systemd/system/systemd-backlight@.service file.  And it might not work anyway.


I will investigate more via search engines about udev's input into backlighting.  From what I read mask is basically ln -s foo.service to /dev/null and that does seem rather kill -9 level. 




 









« Last Edit: 2015/08/23, 18:58:42 by paxmark2 »