wimpysworld / umpc-ubuntu

Scripts for UMPCs such as GPD Pocket, Pocket 2, MicroPC & TopJoy Falcon
https://ubuntu-mate.org/gpd-pocket/
MIT License
216 stars 51 forks source link

GPD Pocket 3 rotate issues #31

Closed mifritscher closed 2 years ago

mifritscher commented 2 years ago

At least on my pocket 3, the program wants to rotate pen and stylus right. But I need the first transformation matrix to get the touch screen right in normal laptop mode:

xinput set-prop "GXTP7380:00 27C6:0113" "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1

Additionally, I get no further message even when rotating the device. A hacked fprintf(stderr, "%d %d %d\n",x,y,z); gets always 50 0 -54

the raw data: 202 -3 -216 .

gdevenyi commented 2 years ago

I had the same experience. The initial setup (laptop mode) doesn't properly transform the touch/pen input.

JohnJayMcKaye commented 2 years ago

I have the same problem, pen input doesn't rotate and the pen button must be hold to scribe/ drag some window

wtlyu commented 2 years ago

Same problem here. Actually, after upgrading the kernal, rotation and touch screen works good as expected. The problem happens after run this script. Seems we rotate the framebuffer but failed to rotate the touchscreen together correctly.

I fixed it by comment out these lines and set iio-sensor-proxy configuration:


  # Rotate the touchscreen.
  inject_data "${TOUCH_RULES}"
  # Reload udev rules
  udevadm control --reload-rules
  udevadm trigger
flexiondotorg commented 2 years ago

Fixed via #40