Keeping my monitor brightness after power save and switch I wrote a script restoring my monitor’s brightness and gamma, after power savings and dynamic switches, in Ubuntu 22.04 with udev and xrandr.