wimpysworld / umpc-ubuntu

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

Wrong touch and pen orientation for Pocket 3 1195G7 #49

Open 00svd00 opened 1 year ago

00svd00 commented 1 year ago

For some reason original code don't work wor my Pocket 3 1195G7. Both touch and pen orientation were wrong with all screen rotations. This commit fixes it https://github.com/wimpysworld/umpc-ubuntu/compare/master...00svd00:umpc-ubuntu:master

hxc-gxc commented 1 year ago

hello @00svd00 I've replaced the two files but how did you applied the changes please ? thanks for your help best regards

00svd00 commented 1 year ago

hello @00svd00 I've replaced the two files but how did you applied the changes please ? thanks for your help best regards

I've installed this ubuntu mate image https://ubuntu-mate.org/download/gpd_pocket_3/ Got wrong pen and touch orientation. After that I've ran do-release-upgrade(to upgrade to ubuntu 22.04 lts) and installed script from this repo(as i can see this should upgrade all patches to actual version). Orientation was not fixed. So, I've aplied my patches and now everything is ok for me

smallwat3r commented 1 year ago

I just had the same issue, and your patch seems to have fix it, thanks @00svd00!

woofwoof commented 1 year ago

Seems to get touch and orientation working but I am getting an "internal error" occasionally with MATE 22.04.3 LTS - I sent the details to the authors? ;) Could be @00svd00 method of using the original pocket 3 image then upgrading may work better though last time I looked that image had been taken down...Thank you for taking the time to author your fix.

elloskelling commented 1 year ago

Added a few more tweaks on top of @00svd00, to filter the accels a little and to improve rotation ergonomics with deadband and hysteresis closer to what the iPad does. Tested on Pocket3/Mantic.

https://github.com/elloskelling/umpc-ubuntu

NB: I disabled the autostart of the display scaler, cause I like the extra pixels. It still gets installed but doesn't get injected into xdg-autostart. It's only commented out so you can re-enable if you wish.