distribution/packages/hardware/quirks/devices/Orange Pi 5/001-deviceconfig

23 lines
695 B
Bash
Executable file

#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2022-present Fewtarius
# Copyright (C) 2022-present Brooksytech
cat <<EOF >/storage/.config/profile.d/001-deviceconfig
DEVICE_VOLUMECTL=true
DEVICE_PLAYBACK_PATH_SPK="SPK"
DEVICE_PLAYBACK_PATH_HP="HP"
UI_SERVICE="weston.service"
DEVICE_BRIGHTNESS="128"
# GPIOS
DEVICE_TEMP_SENSOR="/sys/devices/virtual/thermal/thermal_zone*/temp"
# FREQ Governors
CPU_FREQ=("/sys/devices/system/cpu/cpufreq/policy0" "/sys/devices/system/cpu/cpufreq/policy4" "/sys/devices/system/cpu/cpufreq/policy6")
GPU_FREQ=("/sys/devices/platform/fb000000.gpu/devfreq/fb000000.gpu")
# Affinity
SLOW_CORES="taskset -c 0-3"
FAST_CORES="taskset -c 4-7"
EOF