From 2da241513a048ff82c2ef27a49195ed2c58c5971 Mon Sep 17 00:00:00 2001 From: Thomas Glanzmann Date: Mon, 21 Feb 2022 23:36:24 +0100 Subject: [PATCH] more tips for backlight --- doc/notes.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/notes.txt b/doc/notes.txt index fbfd019..3aa321f 100644 --- a/doc/notes.txt +++ b/doc/notes.txt @@ -59,3 +59,12 @@ echo 1 > /sys/module/hid_apple/parameters/swap_opt_cmd 08:54 < mixi> Glanzmann: the command you're looking for should be "dtc -I dtb -O dts /sys/firmware/fdt" 08:57 < jannau> Glanzmann: dtc -I fs -O dts -o - /proc/device-tree + +# j`ey on hack to hookup lid close/open +23:19 < j`ey> apple_smc_event_received in drivers/platform/apple/smc_core.c is a good place to start looking + +# kettenis on the same issue using existing infrastructure +23:20 < kettenis> so the lid is hooked up to gP01 +23:24 < kettenis> looks like you could try hooking that up using gpio-keys-polled +23:27 < Glanzmann> kettenis: So gpio-keys-polled would poll gP01 and send a key event and than I could use my window manager to do something when that key event is received? +23:29 < kettenis> look at arch/arm/boot/dts/imx6q-novena.dts -- 2.39.2