udev rule to undim screen on power plug insert?
by kdato@use.startmail.com from LinuxQuestions.org on (#5HZ23)
Hi all,
I was wondering if someone could advise me on writing a udev rule for the following issue.
I have a Lenovo IdeaPad 3 14ADA05 running Slackware-current. When I un-plug the power, the screen dims to brightness 20. Plugging the power back in does not increase the brightness automatically.
I can get it back manually with
echo > 255 /sys/class/backlight/amdgpu_bl0/brightness
However, I am sure this could be done through a udev rule: "auto-increase brightness to 255 when plugging in the power". Any advise on what that rule would look like?
Thanks.


I was wondering if someone could advise me on writing a udev rule for the following issue.
I have a Lenovo IdeaPad 3 14ADA05 running Slackware-current. When I un-plug the power, the screen dims to brightness 20. Plugging the power back in does not increase the brightness automatically.
I can get it back manually with
echo > 255 /sys/class/backlight/amdgpu_bl0/brightness
However, I am sure this could be done through a udev rule: "auto-increase brightness to 255 when plugging in the power". Any advise on what that rule would look like?
Thanks.