Separate quarks and volume fix
This commit is contained in:
parent
6c7a3eb046
commit
16a073a888
3 changed files with 26 additions and 1 deletions
|
@ -1 +0,0 @@
|
|||
Anbernic RG351P
|
22
packages/jelos/sources/autostart/quirks/PowKiddy RGB20S/001-hardwareinit
Executable file
22
packages/jelos/sources/autostart/quirks/PowKiddy RGB20S/001-hardwareinit
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
|
||||
|
||||
. /etc/profile
|
||||
|
||||
# Enable GPIO 77 for power LED manipulation
|
||||
echo ${DEVICE_LED} > /sys/class/gpio/export
|
||||
|
||||
# Enable WIFI GPIO for WIFI manipulation
|
||||
echo ${DEVICE_WIFI} > /sys/class/gpio/export
|
||||
|
||||
# Power up the WIFI device
|
||||
echo out > /sys/class/gpio/gpio${DEVICE_WIFI}/direction
|
||||
echo 1 > /sys/class/gpio/gpio${DEVICE_WIFI}/value
|
||||
|
||||
# Enable PWM for rumble and turn rumble off during startup.
|
||||
echo 0 > /sys/class/pwm/${DEVICE_PWM_MOTOR}/export
|
||||
echo 1000000 > /sys/class/pwm/${DEVICE_PWM_MOTOR}/pwm0/period
|
||||
echo 1 > /sys/class/pwm/${DEVICE_PWM_MOTOR}/pwm0/enable
|
||||
echo 1000000 > /sys/class/pwm/${DEVICE_PWM_MOTOR}/pwm0/duty_cycle
|
||||
|
4
packages/jelos/sources/autostart/quirks/PowKiddy RGB20S/002-volume-fix
Executable file
4
packages/jelos/sources/autostart/quirks/PowKiddy RGB20S/002-volume-fix
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
amixer -c 0 cset iface=MIXER,name='Playback Path' SPK_HP
|
||||
exit 0
|
||||
|
Loading…
Reference in a new issue