-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from uejji/flipds
Ayaneo Flip DS support
- Loading branch information
Showing
25 changed files
with
316 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
PKGBUILD/linux/0009-enable-flip-ds-bottom-touchscreen.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
diff -rupN linux-6.12.6.orig/drivers/input/touchscreen/goodix.c linux-6.12.6/drivers/input/touchscreen/goodix.c | ||
--- linux-6.12.6.orig/drivers/input/touchscreen/goodix.c 2024-12-20 06:33:12.088233449 +0000 | ||
+++ linux-6.12.6/drivers/input/touchscreen/goodix.c 2024-12-20 19:46:50.982440555 +0000 | ||
@@ -1511,6 +1511,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(goodix_p | ||
|
||
static const struct i2c_device_id goodix_ts_id[] = { | ||
{ "GDIX1001:00" }, | ||
+ { "GDIX1003:00" }, | ||
{ } | ||
}; | ||
MODULE_DEVICE_TABLE(i2c, goodix_ts_id); | ||
@@ -1519,6 +1520,7 @@ MODULE_DEVICE_TABLE(i2c, goodix_ts_id); | ||
static const struct acpi_device_id goodix_acpi_match[] = { | ||
{ "GDIX1001", 0 }, | ||
{ "GDIX1002", 0 }, | ||
+ { "GDIX1003", 0 }, | ||
{ "GDX9110", 0 }, | ||
{ } | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
...eamfork-customizations/src/etc/skel/.local/share/kscreen/86e3e20b29d839a4ff21fb6eeac4e652
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
[ | ||
{ | ||
"enabled": true, | ||
"id": "cfaac615846132a6d01cbe02ea6286ac", | ||
"metadata": { | ||
"fullname": "xrandr-AYANEOFHD-539169026", | ||
"name": "eDP" | ||
}, | ||
"mode": { | ||
"refresh": 120.02743530273438, | ||
"size": { | ||
"height": 1920, | ||
"width": 1080 | ||
} | ||
}, | ||
"overscan": 0, | ||
"pos": { | ||
"x": 0, | ||
"y": 0 | ||
}, | ||
"priority": 1, | ||
"rgbrange": 0, | ||
"rotation": 2, | ||
"scale": 1, | ||
"vrrpolicy": 2 | ||
}, | ||
{ | ||
"enabled": true, | ||
"id": "7416f805407bf1da569f33f5d0b1b68d", | ||
"metadata": { | ||
"fullname": "xrandr-AYANEOQHD-539168806", | ||
"name": "eDP-1" | ||
}, | ||
"mode": { | ||
"refresh": 60.003170013427734, | ||
"size": { | ||
"height": 960, | ||
"width": 640 | ||
} | ||
}, | ||
"overscan": 0, | ||
"pos": { | ||
"x": 480, | ||
"y": 1080 | ||
}, | ||
"priority": 2, | ||
"rgbrange": 0, | ||
"rotation": 2, | ||
"scale": 1, | ||
"vrrpolicy": 2 | ||
} | ||
] |
18 changes: 18 additions & 0 deletions
18
...ations/src/etc/skel/.local/share/kscreen/control/configs/86e3e20b29d839a4ff21fb6eeac4e652
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"outputs": [ | ||
{ | ||
"id": "cfaac615846132a6d01cbe02ea6286ac", | ||
"metadata": { | ||
"name": "eDP" | ||
}, | ||
"retention": 1 | ||
}, | ||
{ | ||
"id": "7416f805407bf1da569f33f5d0b1b68d", | ||
"metadata": { | ||
"name": "eDP-1" | ||
}, | ||
"retention": 1 | ||
} | ||
] | ||
} |
19 changes: 19 additions & 0 deletions
19
...customizations/src/etc/skel/.local/share/kscreen/outputs/7416f805407bf1da569f33f5d0b1b68d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"id": "7416f805407bf1da569f33f5d0b1b68d", | ||
"metadata": { | ||
"fullname": "xrandr-AYANEOQHD-539168806", | ||
"name": "eDP-1" | ||
}, | ||
"mode": { | ||
"refresh": 60.003170013427734, | ||
"size": { | ||
"height": 960, | ||
"width": 640 | ||
} | ||
}, | ||
"overscan": 0, | ||
"rgbrange": 0, | ||
"rotation": 2, | ||
"scale": 1, | ||
"vrrpolicy": 2 | ||
} |
19 changes: 19 additions & 0 deletions
19
...customizations/src/etc/skel/.local/share/kscreen/outputs/cfaac615846132a6d01cbe02ea6286ac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"id": "cfaac615846132a6d01cbe02ea6286ac", | ||
"metadata": { | ||
"fullname": "xrandr-AYANEOFHD-539169026", | ||
"name": "eDP" | ||
}, | ||
"mode": { | ||
"refresh": 120.02743530273438, | ||
"size": { | ||
"height": 1920, | ||
"width": 1080 | ||
} | ||
}, | ||
"overscan": 0, | ||
"rgbrange": 0, | ||
"rotation": 2, | ||
"scale": 1, | ||
"vrrpolicy": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
PKGBUILD/steamfork-device-support/src/usr/lib/hwsupport/devicequirks/AYANEO-FLIP-DS/bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../AYANEO-FLIP-KB/bin/ |
1 change: 0 additions & 1 deletion
1
...steamfork-device-support/src/usr/lib/hwsupport/devicequirks/AYANEO-FLIP-DS/bin/fancontrol
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...eamfork-device-support/src/usr/lib/hwsupport/devicequirks/AYANEO-FLIP-DS/boot.d/002-touch
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...eamfork-device-support/src/usr/lib/hwsupport/devicequirks/AYANEO-FLIP-DS/boot.d/002-touch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../AYANEO-FLIP-KB/boot.d/002-touch |
1 change: 1 addition & 0 deletions
1
...k-device-support/src/usr/lib/hwsupport/devicequirks/AYANEO-FLIP-DS/boot.d/003-powersaving
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../AYANEO-FLIP-KB/boot.d/003-powersaving |
15 changes: 15 additions & 0 deletions
15
...mfork-device-support/src/usr/lib/hwsupport/devicequirks/AYANEO-FLIP-DS/boot.d/004-kscreen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
# Make sure kscreen files match the default, or else delete and overwrite them | ||
# TODO: Find literally any other way to do this | ||
|
||
for SKELFILE in $( find /etc/skel/.local/share/kscreen/ -type f ); do | ||
HOMEFILE="/home/deck/$( echo ${SKELFILE} | cut -f4- -d'/' )" | ||
if [ "$( md5sum ${SKELFILE} | cut -f1 -d' ' )" != "$( md5sum ${HOMEFILE} | cut -f1 -d' ' )" ]; then | ||
rm -rf /home/deck/.local/share/kscreen/ | ||
mkdir -p /home/deck/.local/share/kscreen/ | ||
cp -r /etc/skel/.local/share/kscreen/* /home/deck/.local/share/kscreen | ||
chown -R deck:deck /home/deck/.local | ||
break | ||
fi | ||
done |
14 changes: 14 additions & 0 deletions
14
...port/src/usr/lib/hwsupport/devicequirks/AYANEO-FLIP-DS/boot.d/005-touchscreen_orientation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# Generate calibration matrix for bottom touchscreen | ||
# TODO: Find literally any other way to do this | ||
|
||
cat <<EOF | sudo tee /etc/X11/xorg.conf.d/99-touchscreen_orientation.conf | ||
Section "InputClass" | ||
Identifier "Coordinate Transformation Matrix" | ||
MatchIsTouchscreen "on" | ||
MatchDevicePath "/dev/input/event*" | ||
MatchDriver "libinput" | ||
Option "CalibrationMatrix" "0 -0.5 0.75 0.37209302 0 0.62790698 0 0 1" | ||
EndSection | ||
EOF |
1 change: 1 addition & 0 deletions
1
PKGBUILD/steamfork-device-support/src/usr/lib/hwsupport/devicequirks/AYANEO-FLIP-DS/sleep.d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../AYANEO-FLIP-KB/sleep.d/ |
6 changes: 0 additions & 6 deletions
6
...ork-device-support/src/usr/lib/hwsupport/devicequirks/AYANEO-FLIP-DS/sleep.d/post/001-fan
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
...fork-device-support/src/usr/lib/hwsupport/devicequirks/AYANEO-FLIP-DS/sleep.d/pre/001-fan
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
rootfs/installer/airootfs/etc/X11/Xsession.d/999rotate-screen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
#!/bin/bash | ||
INT_DISPLAY=$(xrandr | awk '/\<connected\>/ {print $1}' | grep eDP | head -n1) | ||
INT_DISPLAYS=$(xrandr | awk '/\<connected\>/ {print $1}' | grep eDP) | ||
source steamfork-devicequirk-set | ||
|
||
if [ -z "${X11_ROTATION}" ]; then | ||
echo "Ignoring anything. Assume normal rotation" | ||
else | ||
xrandr --output ${INT_DISPLAY} --rotate ${X11_ROTATION} | ||
for INT_DISPLAY in ${INT_DISPLAYS}; do | ||
xrandr --output ${INT_DISPLAY} --rotate ${X11_ROTATION} | ||
done | ||
fi |
Oops, something went wrong.