JeanSchoeller / iio-hyprland

Listen iio-sensor-proxy and auto change Hyprland output orientation
GNU General Public License v3.0
43 stars 20 forks source link

Touchscreen rotation with Lenovo Yoga #1

Closed JeanSchoeller closed 1 year ago

JeanSchoeller commented 1 year ago

@RandomLegend

i found your package, works beautifully! However, it doesn't rotate the touchinput with it....so i am using a Lenovo Yoga that has a touchscreen that can be flipped 180° to transform into a big tablet.

I'd love to have it in portrait mode when flipped, but as of right now i'd have to manually change the touchinput. Could you insert that in your package aswell? That IF there is a touchscreen, that should be rotated in the same manner as the monitor orientation.

That would be awesome!

I can't open an issue on your project...is it disabled?

I updated it, and sadly it does not work

Originally posted by @RandomLegend in https://github.com/hyprwm/Hyprland/issues/1588#issuecomment-1445239140

Could you post the result of hyprctl devices | grep touch here? Thank you. It works on my Surface so I must have entered the wrong touch device in the code.

RandomLegend commented 1 year ago

hyprctl devices | grep touch

doesn't give the correct output afaik. Just for completion: msft0001:00-04f3:304b-touchpad

The correct output ino wold be just hyprctl devices

Tablets: Tablet at 743a7410: wacom-hid-517f-pen

Touch: Touch Device at 74150770: wacom-hid-517f-finger


So i looked at main.c and see that you 100% correctly inserted the devices....Thats odd.

I currently use two scripts to manually switch my touchscreen between portrait mode and landscape mode. And they use the exact same commands as you do.

Example: hyprctl keyword device:wacom-hid-517f-finger:transform 3 & hyprctl keyword device:wacom-hid-517f-pen:transform 3

RandomLegend commented 1 year ago

Forget it...my yay was just dumb and didn't update your package correctly.

After building from source it now works as intendet. Thank you very much and sorry for the hassle.... Can be closed