Open reynhout opened 7 years ago
Where should I add this script? What do I do with it?
Thanks for the help!
this only detects the current mode of the screen. it doesnt detect rotations or anything, so it doesnt solve anything so far
as a temporary "solution" on my convertible i use a script (bound to a shortcut). i found the script on stackexchange (see copyright node). I added two lines to fix the touch screen input.
#!/bin/sh
# invert_screen copyright 20170516 alexx MIT Licence ver 1.0
orientation=$(xrandr -q|grep -v dis|grep connected|awk '{print $4}')
display=$(xrandr -q|grep -v dis|grep connected|awk '{print $1}')
if [ "$orientation" != "(normal" ]; then
xrandr --output $display --rotate normal
xinput set-prop "Elan Touchscreen" --type=float "Coordinate Transformation Matrix" 0 0 0 0 0 0 0 0 0
else
xrandr --output $display --rotate left
xinput set-prop "Elan Touchscreen" --type=float "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1
fi
I have CYAN, can test anything that crops up.
I was searching on how to get the tablet mode working on CAVE GalliumOS 3 (at least disable the keyboard) and stumbled upon this ticket. Getting the tablet switch event working can be found here: https://github.com/GalliumOS/galliumos-distro/issues/411. I've not done it myself since it would require a kernel patch and I don't have any experience patching a kernel. Hopefully this is something the GalliumOS team can patch in for these models.
On detection of transition to/from "tent" or "tablet" modes:
Relevant models:
Code to handle transition from @lispykid https://github.com/GalliumOS/galliumos-distro/issues/270#issuecomment-263014919