distribution/packages/hardware/quirks/devices/Hardkernel ODROID-GO-Ultra/001-deviceconfig

32 lines
901 B
Text
Raw Normal View History

2023-04-02 00:27:13 +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 Features
DEVICE_VOLUMECTL=true
DEVICE_POWER_LED=false
2023-07-07 17:59:03 +00:00
DEVICE_SW_HP_SWITCH=true
2023-04-02 00:27:13 +00:00
DEVICE_PLAYBACK_PATH_SPK="SPK"
DEVICE_PLAYBACK_PATH_HP="HP"
DEVICE_BRIGHTNESS="128"
UI_SERVICE="weston.service"
# GPIOS
2023-06-28 00:44:15 +00:00
DEVICE_TEMP_SENSOR="$(find /sys/devices/pci*/* -path "*/nvme" -prune -o -name temp1_input -print)"
2023-04-02 00:27:13 +00:00
# FREQ Governors
CPU_FREQ=("/sys/devices/system/cpu/cpufreq/policy0" "/sys/devices/system/cpu/cpufreq/policy2")
2023-04-02 04:29:24 +00:00
GPU_FREQ=("/sys/devices/platform/soc/ffe40000.gpu/devfreq/ffe40000.gpu")
2023-04-02 00:27:13 +00:00
# Affinity
SLOW_CORES="taskset -c 0-1"
FAST_CORES="taskset -c 2-5"
2023-04-02 00:27:13 +00:00
# Volume Keys
DEVICE_KEY_VOLUMEDOWN=114
DEVICE_KEY_VOLUMEUP=115
2023-07-14 21:24:52 +00:00
DEVICE_FUNC_KEYA_MODIFIER="BTN_TRIGGER_HAPPY2"
DEVICE_FUNC_KEYB_MODIFIER="BTN_TRIGGER_HAPPY5"
2023-04-02 00:27:13 +00:00
EOF