Skip to content

Commit

Permalink
* Fix Ayaneo Slide orientation issues.
Browse files Browse the repository at this point in the history
* InputPlumber v0.32.2
  • Loading branch information
fewtarius committed Aug 2, 2024
1 parent 486d601 commit e436688
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 6 deletions.
2 changes: 1 addition & 1 deletion PKGBUILD/inputplumber/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Upstream maintainer: William Edwards <[email protected]>
pkgname=inputplumber
_pkgbase=inputplumber
pkgver=v0.32.1
pkgver=v0.32.2
pkgrel=1
pkgdesc="Open source input router and remapper daemon for Linux"
arch=('x86_64')
Expand Down
2 changes: 1 addition & 1 deletion PKGBUILD/linux/0001-drm-panel-orientation-quirks.patch
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ diff -rupN linux-6.9.11.orig/drivers/gpu/drm/drm_panel_orientation_quirks.c linu
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "SLIDE"),
+ },
+ .driver_data = (void *)&lcd1080x1920_bottom_up,
+ .driver_data = (void *)&lcd1080x1920_leftside_up,
+ }, { /* AYN Loki Zero, Max, Max Pro */
+ .matches = {
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ayn"),
Expand Down
4 changes: 2 additions & 2 deletions PKGBUILD/linux/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

pkgbase=linux
pkgver=6.10.2
pkgrel=4
pkgrel=6
pkgdesc="Linux Stable"
arch=(x86_64)
url="https://kernel.org/"
Expand Down Expand Up @@ -62,7 +62,7 @@ validpgpkeys=(
)
sha256sums=('SKIP'
'a50f15c70227e17023211fd79c5064e328967023a5d60446c8b82f25d708ff13' # config
'b8a6aa580aba7a76fc6f37d3478082d03f062fbce5782c5e239d667866bc5727' # 0001-drm-panel-orientation-quirks.patch
'2fde7b646741397b0847ff71fe42ec178aef7de2436cc5531b0e725e878dccf8' # 0001-drm-panel-orientation-quirks.patch
'783da391e0f45635eefb583b8b3acc29cd62a0c9eeefedf7f790dc2f89c7e279' # 0006-Ayaneo-geek-headset-patch.patch
'33edff1a51ceb763c47b3ae485f5857a716a1dac9f1e8b65c3b93c6e88a4838f' # 0007-ayaneo-2-headphone-fix.patch
'c6867ab6a95146e796dee888283fdae95837b8f53487e659f6d66bc458054b14' # 0008-ayaneo-1s-hp-fix.patch
Expand Down
4 changes: 2 additions & 2 deletions PKGBUILD/steamfork-device-support/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Maintainer: Fewtarius

pkgname=steamfork-device-support
pkgver=2024.08.01
pkgrel=3
pkgver=2024.08.02
pkgrel=1
pkgdesc='Hardware support provider for PC handhelds.'
arch=('any')
url='http://www.steamfork.org'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
# Copyright (C) 2024 Fewtarius

systemctl restart steamfork-fancontrol
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2024 Fewtarius

. /etc/profile

RESTORE_CPU=$(get_setting sleep.cpugovernor)
RESTORE_GPU=$(set_setting sleep.gpulevel)

for CORE in $(find /sys/devices/system/cpu/cpu* -name online)
do
echo 1 > ${CORE}
done

for CORE in $(find /sys/devices/system/cpu/cpufreq -name policy*)
do
echo ${RESTORE_CPU} >${CORE}/scaling_governor
done

for CARD in $(find /sys/class/drm/card* -name power_dpm_force_performance_level)
do
echo ${RESTORE_GPU} >${CARD}
done
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
# Copyright (C) 2024 Fewtarius

systemctl stop fancontrol

DEVICE_PWM_FAN="$(find /sys/devices/platform/oxp-platform -name pwm1)"
DEVICE_FAN_INPUT="$(find /sys/devices/platform/oxp-platform -name fan*_input)"

echo 1 >${DEVICE_PWM_FAN}
echo 0 >${DEVICE_FAN_INPUT}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2024 Fewtarius

. /etc/profile

set_setting sleep.cpugovernor $(cat /sys/devices/system/cpu/cpufreq/policy0/scaling_governor)
set_setting sleep.gpulevel $(cat /sys/class/drm/card*/device/power_dpm_force_performance_level | tail -n 1)

for CORE in $(find /sys/devices/system/cpu/cpufreq -name policy*)
do
echo powersave >${CORE}/scaling_governor
done

for CARD in $(find /sys/class/drm/card* -name power_dpm_force_performance_level)
do
echo low >${CARD}
done

COUNT=1
for CORE in $(find /sys/devices/system/cpu/cpu* -name online)
do
if (( ${COUNT} <= 2 ))
then
COUNT=$(( ${COUNT} + 1 ))
continue
fi
echo 0 > ${CORE}
done

0 comments on commit e436688

Please sign in to comment.