Skip to content

Commit

Permalink
More GPD3 patches
Browse files Browse the repository at this point in the history
  • Loading branch information
asherikov committed Oct 4, 2022
1 parent cd12079 commit e510a53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions data/99-gpd-pocket3-touch.rules
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
ACTION=="add", KERNEL=="event[0-9]*", ATTRS{name}=="GXTP7380:00 27C6:0113", ENV{LIBINPUT_CALIBRATION_MATRIX}="0 1 0 -1 0 1"
ACTION=="add", KERNEL=="event[0-9]*", ATTRS{name}=="GXTP7380:00 27C6:0113 Stylus", ENV{LIBINPUT_CALIBRATION_MATRIX}="0 1 0 -1 0 1"
ACTION=="add", KERNEL=="event[0-9]*", ATTRS{name}=="GXTP7380:00 27C6:0113 Stylus Pen (0)", ENV{LIBINPUT_CALIBRATION_MATRIX}="0 1 0 -1 0 1"
ACTION=="add", KERNEL=="event[0-9]*", ATTRS{name}=="GXTP7380:00 27C6:0113 Stylus Eraser (0)", ENV{LIBINPUT_CALIBRATION_MATRIX}="0 1 0 -1 0 1"
4 changes: 3 additions & 1 deletion data/umpc-display-rotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ static const char *transforms[] = {

static const char touchy[][48] = {
"GXTP7380:00 27C6:0113", //GPD Pocket 3
"GXTP7380:00 27C6:0113 Stylus", //GPD Pocket 3
"GXTP7380:00 27C6:0113 Stylus Pen (0)", //GPD Pocket 3
"GXTP7380:00 27C6:0113 Stylus Eraser (0)", //GPD Pocket 3
"Goodix Capacitive TouchScreen" //TopJoy Falcon
};

static const char screens[][8] = {
"DSI1" //GPD Pocket 3 & TopJoy Falcon
"DSI1", //GPD Pocket 3 & TopJoy Falcon
"DSI-1" //GPD Pocket 3 & TopJoy Falcon
};

#define RADIANS_TO_DEGREES 180.0/M_PI
Expand Down

0 comments on commit e510a53

Please sign in to comment.