I have a script that uses ddcutil that turns my brightness up for my monitors. I have the script configured to start on startup, but that only works when logging in after booting the PC. If it goes into sleep, and then I relogin It doesnt work.
Things I’ve tried:
Creating a script in the systemd sleep folder
Creating a service that automatically runs the script
Disabling powerdevil in plasma
Right now I have it bind to a hotkey I can press, which yeah can work, but it would be nice to have a way to automate this properly. I would appreciate any help
Not exactly what you want, but you can use Settings > Notifications > Application specific settings > Configure > Screen saver > Configure events > Screen unlocked(*) to associate a script:
As far as a I can tell, the sleep mode is done inside a screen lock, so the wake up always goes through the unlocking.
Of course, this means that 1) you can only run “user” actions (or “sudoers” ones) and 2) running these action during a plain unlocking isn’t a problem (or you have a way to distinguish a plain unlock from a wake up unlock).
Hi! This question actually came up here a couple of weeks ago, and while there isn’t a direct interface like the “Configure Notifications” dialog shown above from Plasma 5, some other approaches are definitely possible: