Article 5HZ23 udev rule to undim screen on power plug insert?

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.latest?d=yIl2AUoC8zA latest?i=qbqdQOUyqXM:Rs0K674P-To:F7zBnMy latest?i=qbqdQOUyqXM:Rs0K674P-To:V_sGLiP latest?d=qj6IDK7rITs latest?i=qbqdQOUyqXM:Rs0K674P-To:gIN9vFwqbqdQOUyqXM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments