2023-02-16 22:40:39 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
|
|
|
|
|
|
|
|
cat <<EOF >/storage/.config/profile.d/001-deviceconfig
|
|
|
|
# Device definition file for the Anbernic RG351V
|
|
|
|
|
|
|
|
# Device Features
|
|
|
|
DEVICE_FAKE_JACKSENSE=true
|
|
|
|
DEVICE_VOLUMECTL=true
|
|
|
|
DEVICE_POWER_LED=true
|
|
|
|
DEVICE_PLAYBACK_PATH_SPK="SPK"
|
|
|
|
DEVICE_PLAYBACK_PATH_HP="HP"
|
|
|
|
DEVICE_HEADPHONE_DEV="/dev/input/by-path/platform-rk817-sound-event"
|
|
|
|
DEVICE_BRIGHTNESS="70"
|
|
|
|
UI_SERVICE="emustation.service"
|
|
|
|
|
|
|
|
# GPIOS
|
|
|
|
DEVICE_WIFI="5"
|
|
|
|
DEVICE_LED="77"
|
2023-06-02 08:21:14 +00:00
|
|
|
DEVICE_PWM_MOTOR="pwmchip1"
|
2023-02-16 22:40:39 +00:00
|
|
|
#DEVICE_PWM_FAN=""
|
|
|
|
DEVICE_JACK="86"
|
|
|
|
|
|
|
|
# FREQ governors
|
|
|
|
CPU_FREQ=("/sys/devices/system/cpu/cpufreq/policy0")
|
|
|
|
GPU_FREQ="/sys/devices/platform/ff400000.gpu/devfreq/ff400000.gpu"
|
|
|
|
DMC_FREQ="/sys/devices/platform/dmc/devfreq/dmc"
|
|
|
|
|
|
|
|
# Volume Keys
|
|
|
|
#DEVICE_KEY_VOLUMEDOWN=
|
|
|
|
#DEVICE_KEY_VOLUMEUP=
|
2023-07-14 21:24:52 +00:00
|
|
|
DEVICE_FUNC_KEYA_MODIFIER="BTN_SELECT"
|
|
|
|
DEVICE_FUNC_KEYB_MODIFIER="BTN_MODE"
|
2023-02-16 22:40:39 +00:00
|
|
|
EOF
|