From: Thomas Glanzmann Date: Mon, 21 Feb 2022 22:36:24 +0000 (+0100) Subject: more tips for backlight X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/commitdiff_plain/2da241513a048ff82c2ef27a49195ed2c58c5971?ds=inline;hp=a2845c74e267f0d75a8912a309882adbba880d2b more tips for backlight --- 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