๐ How to automatically inhibit an input?
๐ก Newskategorie: Linux Tipps
๐ Quelle: reddit.com
I have a MSI laptop with AMD Ryzen cpu and whenever I change the brightness using hardware keys, the video bus starts sending random brightness up/down events at random intervals.I was able to ignore these events by adding this entry in config/10-quirks.conf:
Section "InputClass" Identifier "Spooky Ghosts" MatchProduct "Video Bus" Option "Ignore" "on" EndSection
but now I'm on wayland and this doesn't work anymore but on kernel 5.11+ we can inhibit input devices by putting 1
in inhibited
file of the input device
for me its /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:14/LNXVIDEO:00/input/input6/
I want this to happen automatically
I tried doing this using udev rules but it's not working
udevadm info:
looking at device '/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:14/LNXVIDEO:00/input/input6': KERNEL=="input6" SUBSYSTEM=="input" DRIVER=="" ATTR{capabilities/abs}=="0" ATTR{capabilities/ev}=="3" ATTR{capabilities/ff}=="0" ATTR{capabilities/key}=="3e000b00000000 0 0 0" ATTR{capabilities/led}=="0" ATTR{capabilities/msc}=="0" ATTR{capabilities/rel}=="0" ATTR{capabilities/snd}=="0" ATTR{capabilities/sw}=="0" ATTR{id/bustype}=="0019" ATTR{id/product}=="0006" ATTR{id/vendor}=="0000" ATTR{id/version}=="0000" ATTR{inhibited}=="0" ATTR{name}=="Video Bus" ATTR{phys}=="LNXVIDEO/video/input0" ATTR{power/control}=="auto" ATTR{power/runtime_active_time}=="0" ATTR{power/runtime_status}=="unsupported" ATTR{power/runtime_suspended_time}=="0" ATTR{properties}=="0" ATTR{uniq}=="" looking at parent device '/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:14/LNXVIDEO:00': KERNELS=="LNXVIDEO:00" SUBSYSTEMS=="acpi" DRIVERS=="video" ATTRS{adr}=="0x00000000" ATTRS{hid}=="LNXVIDEO" ATTRS{path}=="\_SB_.PCI0.GP17.VGA_" ATTRS{power/control}=="auto" ATTRS{power/runtime_active_time}=="0" ATTRS{power/runtime_status}=="unsupported" ATTRS{power/runtime_suspended_time}=="0" ATTRS{status}=="15" looking at parent device '/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:14': KERNELS=="device:14" SUBSYSTEMS=="acpi" DRIVERS=="" ATTRS{adr}=="0x00080001" ATTRS{path}=="\_SB_.PCI0.GP17" ATTRS{power/control}=="auto" ATTRS{power/runtime_active_time}=="0" ATTRS{power/runtime_status}=="unsupported" ATTRS{power/runtime_suspended_time}=="0" looking at parent device '/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00': KERNELS=="PNP0A08:00" SUBSYSTEMS=="acpi" DRIVERS=="" ATTRS{adr}=="0x00000000" ATTRS{hid}=="PNP0A08" ATTRS{path}=="\_SB_.PCI0" ATTRS{power/control}=="auto" ATTRS{power/runtime_active_time}=="0" ATTRS{power/runtime_status}=="unsupported" ATTRS{power/runtime_suspended_time}=="0" ATTRS{status}=="15" ATTRS{uid}=="0" looking at parent device '/devices/LNXSYSTM:00/LNXSYBUS:00': KERNELS=="LNXSYBUS:00" SUBSYSTEMS=="acpi" DRIVERS=="" ATTRS{hid}=="LNXSYBUS" ATTRS{path}=="\_SB_" ATTRS{power/control}=="auto" ATTRS{power/runtime_active_time}=="0" ATTRS{power/runtime_status}=="unsupported" ATTRS{power/runtime_suspended_time}=="0" looking at parent device '/devices/LNXSYSTM:00': KERNELS=="LNXSYSTM:00" SUBSYSTEMS=="acpi" DRIVERS=="" ATTRS{hid}=="LNXSYSTM" ATTRS{path}=="\" ATTRS{power/control}=="auto" ATTRS{power/runtime_active_time}=="0" ATTRS{power/runtime_status}=="unsupported" ATTRS{power/runtime_suspended_time}=="0"
The rule that I created
KERNELS=="LNXVIDEO:00", DRIVERS=="video", SUBSYSTEM=="input", ATTR{name}=="Video Bus", ATTR{phys}=="LNXVIDEO/video/input0", ATTR{inhibited}="1"
please help
[link] [comments] ...