31 lines
1,019 B
Bash
Executable file
31 lines
1,019 B
Bash
Executable file
#!/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_FAKE_JACKSENSE=true
|
|
DEVICE_VOLUMECTL=true
|
|
DEVICE_AUDIO_MIXER="DAC"
|
|
DEVICE_PLAYBACK_PATH_SPK="1*"
|
|
DEVICE_PLAYBACK_PATH_HP="0*"
|
|
DEVICE_BRIGHTNESS="128"
|
|
DEVICE_JACK="8"
|
|
DEVICE_HEADPHONE_DEV="/dev/input/by-path/platform-es8316-sound-event"
|
|
DEVICE_HAS_HDMI=true
|
|
DEVICE_HDMI_GPIO="54"
|
|
DEVICE_BATTERY_LED_STATUS=true
|
|
DEVICE_PWR_LED_CONTROL=true
|
|
UI_SERVICE="weston.service"
|
|
|
|
DEVICE_TEMP_SENSOR=("/sys/devices/virtual/thermal/thermal_zone0/temp" "/sys/devices/virtual/thermal/thermal_zone1/temp")
|
|
|
|
# FREQ Governors
|
|
CPU_FREQ=("/sys/devices/system/cpu/cpufreq/policy0" "/sys/devices/system/cpu/cpufreq/policy4")
|
|
GPU_FREQ="/sys/devices/platform/ff9a0000.gpu/devfreq/ff9a0000.gpu"
|
|
DMC_FREQ="/sys/devices/platform/memory-controller/devfreq/memory-controller/"
|
|
|
|
# Affinity
|
|
SLOW_CORES="taskset -c 0-3"
|
|
FAST_CORES="taskset -c 4-5"
|
|
EOF
|