Open utkabobr opened 3 years ago
This seems to be how Samsung implemented its tablet mode detection too.
[ 172.552723] atkbd serio0: Use 'setkeycodes e02c <keycode>' to make it known.
[ 172.675819] atkbd serio0: Unknown key released (translated set 2, code 0xac on isa0060/serio0).
[ 172.675831] atkbd serio0: Use 'setkeycodes e02c <keycode>' to make it known.
I also found this project where Arch Linux has packaged for tablet mode detection https://github.com/alesya-h/linux_detect_tablet_mode
Using rammus image, chrome os 90.0.4430.218, brunch r90 stable 20210523, Lenovo Ideapad Yoga 13 Options:
options=pwa,advanced_als,acpi_power_button,internal_mic_fix,android_init_fix
After some research found that it uses special keyboard keycode instead of sensors. Dmesg keeps repeating this when folded into tablet mode:
Also found linux script to monitor it: https://gist.github.com/emiller/6488449
Thanks in advance!