Kacper Kołodziej

Laptop screen enables on keystroke when lid is closed

❧

After a recent update of Arch Linux, my system started to enable the laptop screen even though the laptop lid was closed. How it happened:

  1. I was closing the lid -> the laptop screen was becoming disabled
  2. After some time the laptop screen unlocked

At the beginning I had no idea why it happened, but running

libinput debug-events

revealed that the laptop screen enables just after a keystroke on the external keyboard.

With some help from Claude I was able to find a solution - libinput quirks. I created /etc/libinput/local-overrides.quirks with the following contents:

[External keyboard misdetected as internal]
MatchUdevType=keyboard
MatchBus=usb
MatchVendor=0x3434
MatchProduct=0xD028
AttrKeyboardIntegration=external

In this snippet you can find details of my external keyboard that I'm using and I'm very satisfied with. I'll write a note about it soon.

❧

Back to notepad - some links, some notes, recycle bin