Your patch will only fix the bug when idle dimming is disabled. Ideally, gnome-power-manager should be notified whenever the fn keys are used to change the brightness, so it can update its configuration. If you open the power management preferences dialog, you can see that changes from the fn keys aren't synchronized.
-- Screen brightness resets to default (maximum) on idle with AC plugged in https://bugs.launchpad.net/bugs/137598 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs