[PATCH libinput 14/14] udev: mark all laptops as lid switch reliable

Peter Hutterer peter.hutterer at who-t.net
Wed Jan 25 23:44:24 UTC 2017


If the chassis type is 9 or 10 (Laptop, Notebook) let's assume that our lid
switch works. On anything else we leave it at unknown.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 udev/90-libinput-model-quirks.hwdb | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/udev/90-libinput-model-quirks.hwdb b/udev/90-libinput-model-quirks.hwdb
index 04bdf9a..a5102d2 100644
--- a/udev/90-libinput-model-quirks.hwdb
+++ b/udev/90-libinput-model-quirks.hwdb
@@ -187,3 +187,12 @@ libinput:touchpad:input:b0003v056Ap*
 ##########################################
 libinput:name:*Trackball*:dmi:*
  LIBINPUT_MODEL_TRACKBALL=1
+
+##########################################
+# Chassis types 9 (Laptop) and 10
+# (Notebook) are expected to have working
+# lid switches
+##########################################
+libinput:name:*Lid Switch*:dmi:*:ct10:*
+libinput:name:*Lid Switch*:dmi:*:ct9:*
+ LIBINPUT_ATTR_LID_SWITCH_RELIABILITY=reliable
-- 
2.9.3



More information about the wayland-devel mailing list