chimera-linux / dinit-chimera

Chimera service package for dinit
BSD 2-Clause "Simplified" License
12 stars 5 forks source link

Save backlight state #19

Open Drsheppard01 opened 2 months ago

Drsheppard01 commented 2 months ago

I noticed that dinit does not save the backlight level when restarting or re-enabling. Could you please add such a service? There are similar projects for OpenRC: https://github.com/beatussum/save-backlight/blob/master/save-backlight SystemD: https://github.com/systemd/systemd/blob/b56920e36c5692c0dde701bfb48330653a9c62c9/units/systemd-backlight%40.service.in

Best regards, Drsheppard01

q66 commented 1 month ago

this is relatively complicated to do properly and would need cooperation from multiple places (a udev rule, a helper program, and a bunch of other things)

Drsheppard01 commented 1 month ago

In OpenRC service it's just drop into cache and it's daemon running with new booting

q66 commented 1 month ago

and? it doesn't handle like 90% of scenarios that may potentially arise

the correct implementation is in systemd and it's significantly more complex