commit
796f0e6d3d
44 changed files with 176 additions and 125 deletions
|
@ -1,6 +1,6 @@
|
|||
SYSTEM_NAME="imageviewer"
|
||||
SYSTEM_FULLNAME="Screenshots"
|
||||
SYSTEM_MANUFACTURER="Various"
|
||||
SYSTEM_MANUFACTURER="JELOS"
|
||||
SYSTEM_RELEASE="2021"
|
||||
SYSTEM_HARDWARE="system"
|
||||
SYSTEM_PATH="/storage/roms/screenshots"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
SYSTEM_NAME="mplayer"
|
||||
SYSTEM_FULLNAME="MPlayer"
|
||||
SYSTEM_MANUFACTURER="Various"
|
||||
SYSTEM_MANUFACTURER="JELOS"
|
||||
SYSTEM_RELEASE="unknown"
|
||||
SYSTEM_HARDWARE="system"
|
||||
SYSTEM_PATH="/storage/roms/mplayer"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
SYSTEM_NAME="ports"
|
||||
SYSTEM_FULLNAME="Ports"
|
||||
SYSTEM_MANUFACTURER="Various"
|
||||
SYSTEM_MANUFACTURER="JELOS"
|
||||
SYSTEM_RELEASE="2021"
|
||||
SYSTEM_HARDWARE="PC"
|
||||
SYSTEM_PATH="/storage/roms/ports"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
SYSTEM_NAME="tools"
|
||||
SYSTEM_FULLNAME="Tools"
|
||||
SYSTEM_MANUFACTURER="Various"
|
||||
SYSTEM_MANUFACTURER="JELOS"
|
||||
SYSTEM_RELEASE="2021"
|
||||
SYSTEM_HARDWARE="system"
|
||||
SYSTEM_PATH="/storage/.config/modules"
|
||||
|
|
|
@ -1765,7 +1765,7 @@ exec_thread_safe() {
|
|||
}
|
||||
|
||||
clean_es_cache() {
|
||||
ESTMP="${ROOT}/.es_cache"
|
||||
ESTMP="${ROOT}/.es_cache/${DEVICE}"
|
||||
if [ -d "${ESTMP}" ]
|
||||
then
|
||||
rm -rf "${ESTMP}"
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
# a BSP kernel and a rotated display when using DEVICE_ROOT.
|
||||
if [ -n "${DEVICE_ROOT}" ]
|
||||
then
|
||||
CLEAN_DEVICE_ROOT="linux u-boot u-boot-script SDL2 retroarch mupen64plus-sa-input-sdl flycast-sa duckstation-sa drastic-sa"
|
||||
CLEAN_DEVICE_ROOT="linux u-boot u-boot-script SDL2 retroarch mupen64plus-sa-input-sdl flycast-sa duckstation-sa drastic-sa fileman"
|
||||
fi
|
||||
|
||||
# additional drivers to install:
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
cat <<EOF >/storage/.config/profile.d/001-deviceconfig
|
||||
DEVICE_VOLUMECTL=true
|
||||
DEVICE_AUDIO_MIXER="Master"
|
||||
DEVICE_PLAYBACK_PATH_SPK="SPK"
|
||||
DEVICE_PLAYBACK_PATH_HP="HP"
|
||||
DEVICE_FUNC_KEYA_MODIFIER="ABS_RZ"
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
cat <<EOF >/storage/.config/profile.d/001-deviceconfig
|
||||
DEVICE_VOLUMECTL=true
|
||||
DEVICE_AUDIO_MIXER="Master"
|
||||
DEVICE_PLAYBACK_PATH_SPK="SPK"
|
||||
DEVICE_PLAYBACK_PATH_HP="HP"
|
||||
DEVICE_FUNC_KEYA_MODIFIER="ABS_RZ"
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
cat <<EOF >/storage/.config/profile.d/001-deviceconfig
|
||||
DEVICE_LED_CONTROL=true
|
||||
DEVICE_VOLUMECTL=true
|
||||
DEVICE_AUDIO_MIXER="Master"
|
||||
DEVICE_PLAYBACK_PATH_SPK="SPK"
|
||||
DEVICE_PLAYBACK_PATH_HP="HP"
|
||||
DEVICE_FUNC_KEYA_MODIFIER="ABS_RZ"
|
||||
|
|
|
@ -6,7 +6,6 @@ cat <<EOF >/storage/.config/profile.d/001-deviceconfig
|
|||
# Device Features
|
||||
DEVICE_HAS_FAN=false
|
||||
DEVICE_VOLUMECTL=true
|
||||
DEVICE_AUDIO_MIXER="Master"
|
||||
DEVICE_POWER_LED=false
|
||||
DEVICE_PLAYBACK_PATH_SPK="SPK"
|
||||
DEVICE_PLAYBACK_PATH_HP="HP"
|
||||
|
|
|
@ -8,7 +8,6 @@ DEVICE_HAS_FAN=false
|
|||
DEVICE_FAKE_JACKSENSE=false
|
||||
DEVICE_VOLUMECTL=true
|
||||
DEVICE_POWER_LED=false
|
||||
DEVICE_AUDIO_MIXER="Master"
|
||||
DEVICE_PLAYBACK_PATH_SPK="SPK"
|
||||
DEVICE_PLAYBACK_PATH_HP="HP"
|
||||
#DEVICE_HEADPHONE_DEV=""
|
||||
|
|
|
@ -10,7 +10,6 @@ DEVICE_HAS_FAN=false
|
|||
DEVICE_FAKE_JACKSENSE=false
|
||||
DEVICE_VOLUMECTL=true
|
||||
DEVICE_POWER_LED=false
|
||||
DEVICE_AUDIO_MIXER="Master"
|
||||
DEVICE_PLAYBACK_PATH_SPK="SPK"
|
||||
DEVICE_PLAYBACK_PATH_HP="HP"
|
||||
#DEVICE_HEADPHONE_DEV=""
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
cat <<EOF >/storage/.config/profile.d/001-deviceconfig
|
||||
DEVICE_VOLUMECTL=true
|
||||
DEVICE_AUDIO_MIXER="Master"
|
||||
DEVICE_PLAYBACK_PATH_SPK="SPK"
|
||||
DEVICE_PLAYBACK_PATH_HP="HP"
|
||||
DEVICE_FUNC_KEYA_MODIFIER=="ABS_RZ"
|
||||
|
|
|
@ -6,7 +6,6 @@ cat <<EOF >/storage/.config/profile.d/001-deviceconfig
|
|||
# Device Features
|
||||
DEVICE_HAS_FAN=false
|
||||
DEVICE_VOLUMECTL=true
|
||||
DEVICE_AUDIO_MIXER="Master"
|
||||
DEVICE_POWER_LED=false
|
||||
DEVICE_PLAYBACK_PATH_SPK="SPK"
|
||||
DEVICE_PLAYBACK_PATH_HP="HP"
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
cat <<EOF >/storage/.config/profile.d/001-deviceconfig
|
||||
DEVICE_VOLUMECTL=true
|
||||
DEVICE_AUDIO_MIXER="Master"
|
||||
DEVICE_PLAYBACK_PATH_SPK="SPK"
|
||||
DEVICE_PLAYBACK_PATH_HP="HP"
|
||||
DEVICE_FUNC_KEYA_MODIFIER=="ABS_RZ"
|
||||
|
|
|
@ -6,7 +6,6 @@ cat <<EOF >/storage/.config/profile.d/001-deviceconfig
|
|||
# Device Features
|
||||
DEVICE_HAS_FAN=false
|
||||
DEVICE_VOLUMECTL=true
|
||||
DEVICE_AUDIO_MIXER="Master"
|
||||
DEVICE_POWER_LED=false
|
||||
DEVICE_PLAYBACK_PATH_SPK="SPK"
|
||||
DEVICE_PLAYBACK_PATH_HP="HP"
|
||||
|
|
|
@ -6,7 +6,6 @@ cat <<EOF >/storage/.config/profile.d/001-deviceconfig
|
|||
# Device Features
|
||||
DEVICE_HAS_FAN=false
|
||||
DEVICE_VOLUMECTL=true
|
||||
DEVICE_AUDIO_MIXER="Master"
|
||||
DEVICE_POWER_LED=false
|
||||
DEVICE_PLAYBACK_PATH_SPK="SPK"
|
||||
DEVICE_PLAYBACK_PATH_HP="HP"
|
||||
|
|
|
@ -6,7 +6,6 @@ cat <<EOF >/storage/.config/profile.d/001-deviceconfig
|
|||
# Device Features
|
||||
DEVICE_HAS_FAN=false
|
||||
DEVICE_VOLUMECTL=true
|
||||
DEVICE_AUDIO_MIXER="Master"
|
||||
DEVICE_POWER_LED=false
|
||||
DEVICE_PLAYBACK_PATH_SPK="SPK"
|
||||
DEVICE_PLAYBACK_PATH_HP="HP"
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
|
||||
cat <<EOF >/storage/.config/profile.d/001-deviceconfig
|
||||
DEVICE_VOLUMECTL=true
|
||||
DEVICE_AUDIO_MIXER="PCM"
|
||||
DEVICE_PLAYBACK_PATH_SPK="SPK"
|
||||
DEVICE_PLAYBACK_PATH_HP="HP"
|
||||
UI_SERVICE="weston.service"
|
||||
|
|
|
@ -8,7 +8,6 @@ DEVICE_HAS_FAN=false
|
|||
DEVICE_FAKE_JACKSENSE=false
|
||||
DEVICE_VOLUMECTL=true
|
||||
DEVICE_POWER_LED=false
|
||||
DEVICE_AUDIO_MIXER="Master"
|
||||
DEVICE_PLAYBACK_PATH_SPK="SPK"
|
||||
DEVICE_PLAYBACK_PATH_HP="HP"
|
||||
#DEVICE_HEADPHONE_DEV=""
|
||||
|
|
|
@ -8,7 +8,6 @@ DEVICE_HAS_FAN=false
|
|||
DEVICE_FAKE_JACKSENSE=true
|
||||
DEVICE_VOLUMECTL=true
|
||||
DEVICE_POWER_LED=false
|
||||
DEVICE_AUDIO_MIXER="Master"
|
||||
DEVICE_PLAYBACK_PATH_SPK="SPK"
|
||||
DEVICE_PLAYBACK_PATH_HP="HP"
|
||||
#DEVICE_HEADPHONE_DEV=""
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
cat <<EOF >/storage/.config/profile.d/001-deviceconfig
|
||||
DEVICE_VOLUMECTL=true
|
||||
DEVICE_AUDIO_MIXER="Master"
|
||||
DEVICE_PLAYBACK_PATH_SPK="SPK"
|
||||
DEVICE_PLAYBACK_PATH_HP="HP"
|
||||
DEVICE_FUNC_KEYA_MODIFIER=="ABS_RZ"
|
||||
|
|
|
@ -42,6 +42,13 @@ then
|
|||
set_setting system.cpugovernor schedutil
|
||||
fi
|
||||
|
||||
### Set the default GPU performance mode
|
||||
GPUPERF=$(get_setting system.gpuperf)
|
||||
if [ -n "${GPUPERF}" ]
|
||||
then
|
||||
gpu_performance_level ${GPUPERF}
|
||||
fi
|
||||
|
||||
### Configure suspend mode.
|
||||
MYSLEEPMODE=$(get_setting system.suspendmode)
|
||||
if [ -n "${MYSLEEPMODE}" ]
|
||||
|
|
|
@ -8,6 +8,6 @@ tocon "Applying kernel parameters..."
|
|||
sysctl vm.swappiness=1
|
||||
sysctl kernel.nmi_watchdog=0
|
||||
sysctl vm.laptop_mode=5
|
||||
sysctl vm.dirty_writeback_centisecs=1500
|
||||
sysctl vm.dirty_writeback_centisecs=6000
|
||||
|
||||
toggle-ipv6
|
||||
|
|
|
@ -40,8 +40,8 @@ daphne.ratio=4/3
|
|||
desktop.enabled=0
|
||||
display.brightness=50
|
||||
display.contrast=50
|
||||
display.saturation=50
|
||||
display.hue=50
|
||||
display.saturation=50
|
||||
dreamcast.integerscale=0
|
||||
dreamcast.ratio=4/3
|
||||
easyrpg.integerscale=0
|
||||
|
@ -124,6 +124,7 @@ nesh.integerscale=0
|
|||
nesh.ratio=4/3
|
||||
nes.integerscale=0
|
||||
nes.ratio=4/3
|
||||
network.enabled=0
|
||||
ngpc.intergerscale=1
|
||||
ngp.integerscale=0
|
||||
odyssey2.integerscale=0
|
||||
|
@ -166,14 +167,19 @@ supergrafx.integerscale=0
|
|||
supergrafx.ratio=4/3
|
||||
supervision.integerscale=0
|
||||
syncthing.enabled=0
|
||||
system.audio.powersave=1
|
||||
system.autohotkeys=1
|
||||
system.automount=1
|
||||
system.battery.warning=1
|
||||
system.cpugovernor=schedutil
|
||||
system.cpu.powersave=1
|
||||
system.hostname=@DEVICENAME@
|
||||
system.language=en_US
|
||||
system.overclock=off
|
||||
system.pcie.powersave=1
|
||||
system.powersave=0
|
||||
system.timezone=America/New_York
|
||||
system.usb.powersave=0
|
||||
tg16cd.integerscale=0
|
||||
tg16cd.ratio=4/3
|
||||
tg16.integerscale=0
|
||||
|
@ -191,7 +197,6 @@ videopac.integerscale=0
|
|||
videopac.ratio=4/3
|
||||
virtualboy.integerscale=0
|
||||
weston.startup=/usr/bin/start_es.sh
|
||||
network.enabled=0
|
||||
wifi.powersave=0
|
||||
wonderswancolor.integerscale=0
|
||||
wonderswan.integerscale=0
|
||||
|
|
|
@ -66,6 +66,10 @@ set_audio() {
|
|||
/usr/bin/rr_audio.sh ${AUDIO}
|
||||
}
|
||||
|
||||
battery_percent() {
|
||||
awk 'BEGIN {FS="="} /POWER_SUPPLY_CAPACITY=/ {print $2}' /sys/class/power_supply/[Bb][Aa][Tt]*/uevent 2>/dev/null
|
||||
}
|
||||
|
||||
get_es_setting() {
|
||||
echo $(sed -n "s|\s*<${1} name=\"${2}\" value=\"\(.*\)\" />|\1|p" ${ES_CONF})
|
||||
}
|
||||
|
|
|
@ -121,3 +121,34 @@ for JSL in jslisten_hotkeys jslisten_profile
|
|||
do
|
||||
cp -f /usr/config/${JSL} /storage/.config
|
||||
done
|
||||
|
||||
### Add properties for enhanced power savings control.
|
||||
AUDIOPOWERSAVE=$(get_setting system.audio.powersave)
|
||||
if [ -z "${AUDIOPOWERSAVE}" ]
|
||||
then
|
||||
set_setting system.audio.powersave 1
|
||||
fi
|
||||
|
||||
CPUPOWERSAVE=$(get_setting system.cpu.powersave)
|
||||
if [ -z "${CPUPOWERSAVE}" ]
|
||||
then
|
||||
set_setting system.cpu.powersave 1
|
||||
fi
|
||||
|
||||
PCIEPOWERSAVE=$(get_setting system.pcie.powersave)
|
||||
if [ -z "${PCIEPOWERSAVE}" ]
|
||||
then
|
||||
set_setting system.pcie.powersave 1
|
||||
fi
|
||||
|
||||
USBPOWERSAVE=$(get_setting system.usb.powersave)
|
||||
if [ -z "${USBPOWERSAVE}" ]
|
||||
then
|
||||
set_setting system.usb.powersave 0
|
||||
fi
|
||||
|
||||
AUDIBLEALERT=$(get_setting system.battery.warning)
|
||||
if [ -z "${AUDIBLEALERT}" ]
|
||||
then
|
||||
set_setting system.battery.warning 1
|
||||
fi
|
||||
|
|
|
@ -135,14 +135,10 @@ then
|
|||
fi
|
||||
|
||||
GPUPERF=$(get_setting "gpuperf" "${PLATFORM}" "${ROMNAME##*/}")
|
||||
if [ ! "${GPUPERF}" = "system" ] && \
|
||||
[ ! -z "${GPUPERF}" ]
|
||||
if [ ! -z ${GPUPERF} ]
|
||||
then
|
||||
if [ ! "${GPUPERF}" = "default" ]
|
||||
then
|
||||
echo "${GPUPERF}" >/tmp/.gpuperf
|
||||
systemctl restart powerstate
|
||||
fi
|
||||
gpu_performance_level ${GPUPERF}
|
||||
get_gpu_performance_level >/tmp/.gpu_performance_level
|
||||
fi
|
||||
|
||||
if [ "${DEVICE_HAS_FAN}" = "true" ]
|
||||
|
@ -466,12 +462,14 @@ then
|
|||
fi
|
||||
fi
|
||||
|
||||
### Remove GPU performance helper
|
||||
if [ -e "/tmp/.gpuperf" ]
|
||||
GPUPERF=$(get_setting "system.gpuperf")
|
||||
if [ ! -z ${GPUPERF} ]
|
||||
then
|
||||
rm -f /tmp/.gpuperf
|
||||
systemctl restart powerstate
|
||||
gpu_performance_level ${GPUPERF}
|
||||
else
|
||||
gpu_performance_level auto
|
||||
fi
|
||||
rm -f /tmp/.gpu_performance_level 2>/dev/null
|
||||
|
||||
### Backup save games
|
||||
CLOUD_BACKUP=$(get_setting "cloud.backup")
|
||||
|
|
|
@ -4,10 +4,6 @@
|
|||
|
||||
. /etc/profile
|
||||
|
||||
battery_percent() {
|
||||
cat /sys/class/power_supply/{BAT,bat}*/uevent 2>/dev/null | grep -E "^POWER_SUPPLY_CAPACITY=" | sed -e s+'^POWER_SUPPLY_CAPACITY='++ | sort -rn | head -1
|
||||
}
|
||||
|
||||
AUDIOTEST=$(ps -ef | grep [p]ulseaudio)
|
||||
if [ ! $? = 0 ]
|
||||
then
|
||||
|
|
|
@ -95,7 +95,7 @@ function get_game_setting() {
|
|||
EES=$(sed -n "${PAT}" "${CONF}" | head -1)
|
||||
fi
|
||||
|
||||
[ -z "${EES}" ] && EES="false"
|
||||
( [ -z "${EES}" ] || [ "${EES}" == "auto" ] ) && EES="false"
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
jslisten set "mpv"jslisten set "mpv"
|
||||
. /etc/profile
|
||||
|
||||
jslisten set "mpv"
|
||||
/usr/bin/mpv --input-ipc-server=/tmp/mpvsocket "${1}"
|
||||
exit 0
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
PKG_NAME="linux"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_VERSION="6.3.9"
|
||||
PKG_VERSION="6.4"
|
||||
PKG_URL="https://www.kernel.org/pub/linux/kernel/v6.x/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
||||
PKG_SITE="http://www.kernel.org"
|
||||
PKG_DEPENDS_HOST="ccache:host rsync:host openssl:host"
|
||||
|
|
|
@ -2,8 +2,12 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
# Copyright (C) 2022-present Fewtarius (https://github.com/fewtarius)
|
||||
|
||||
get_gpu_power_profile() {
|
||||
cat /sys/class/drm/card0/device/power_dpm_state 2>/dev/null
|
||||
}
|
||||
|
||||
gpu_power_profile() {
|
||||
for card in /sys/class/drm/card*/device/pp_power_profile_mode
|
||||
for card in /sys/class/drm/card*/device/power_dpm_state
|
||||
do
|
||||
if [ -e "${card}" ]
|
||||
then
|
||||
|
@ -12,6 +16,10 @@ gpu_power_profile() {
|
|||
done
|
||||
}
|
||||
|
||||
get_gpu_performance_level() {
|
||||
cat /sys/class/drm/card0/device/power_dpm_force_performance_level 2>/dev/null
|
||||
}
|
||||
|
||||
gpu_performance_level() {
|
||||
for card in /sys/class/drm/card*/device/power_dpm_force_performance_level
|
||||
do
|
||||
|
@ -23,6 +31,11 @@ gpu_performance_level() {
|
|||
}
|
||||
|
||||
pcie_aspm_policy() {
|
||||
PCIEPOWERSAVE=$(get_setting system.pcie.powersave)
|
||||
if [ ! "${PCIEPOWERSAVE}" = "1" ]
|
||||
then
|
||||
return 0
|
||||
fi
|
||||
if [ -e "/sys/module/pcie_aspm/parameters/policy" ]
|
||||
then
|
||||
echo ${1} >/sys/module/pcie_aspm/parameters/policy 2>/dev/null
|
||||
|
@ -30,6 +43,11 @@ pcie_aspm_policy() {
|
|||
}
|
||||
|
||||
cpu_perftune() {
|
||||
CPUPOWERSAVE=$(get_setting system.cpu.powersave)
|
||||
if [ ! "${CPUPOWERSAVE}" = "1" ]
|
||||
then
|
||||
return 0
|
||||
fi
|
||||
CPU="$(awk '/vendor_id/ {print $3;exit}' /proc/cpuinfo)"
|
||||
if [ "${CPU}" = "AuthenticAMD" ]
|
||||
then
|
||||
|
@ -54,6 +72,11 @@ cpu_perftune() {
|
|||
}
|
||||
|
||||
audio_powersave() {
|
||||
AUDIOPOWERSAVE=$(get_setting system.audio.powersave)
|
||||
if [ ! "${AUDIOPOWERSAVE}" = "1" ]
|
||||
then
|
||||
return 0
|
||||
fi
|
||||
for MODULE in snd_hda_intel snd_ac97_codec
|
||||
do
|
||||
if [ -e "/sys/module/${MODULE}/parameters/power_save" ]
|
||||
|
@ -64,6 +87,11 @@ audio_powersave() {
|
|||
}
|
||||
|
||||
device_powersave() {
|
||||
USBPOWERSAVE=$(get_setting system.usb.powersave)
|
||||
if [ ! "${USBPOWERSAVE}" = "1" ]
|
||||
then
|
||||
return 0
|
||||
fi
|
||||
case ${1} in
|
||||
1)
|
||||
PSMODE=auto
|
||||
|
@ -78,3 +106,15 @@ device_powersave() {
|
|||
echo ${PSMODE} >"${DEVICE}" 2>/dev/null
|
||||
done
|
||||
}
|
||||
|
||||
device_powerlevel() {
|
||||
USBPOWERSAVE=$(get_setting system.USB.powersave)
|
||||
if [ ! "${USBPOWERSAVE}" = "1" ]
|
||||
then
|
||||
return 0
|
||||
fi
|
||||
for device in $(find /sys/devices/pci* -name level)
|
||||
do
|
||||
echo ${1} >${device} 2>/dev/null
|
||||
done
|
||||
}
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
. /etc/profile
|
||||
|
||||
BATCNT=0
|
||||
while true
|
||||
do
|
||||
if [ "$(get_setting system.powersave)" = 1 ]
|
||||
|
@ -20,38 +21,51 @@ do
|
|||
case ${STATUS} in
|
||||
Disch*)
|
||||
log $0 "Switching to battery mode."
|
||||
if [ -e "/tmp/.gpuperf" ]
|
||||
if [ -e "/tmp/.gpu_performance_level" ]
|
||||
then
|
||||
GPUMODE=$(cat /tmp/.gpuperf)
|
||||
GPUPROFILE=$(cat /tmp/.gpu_performance_level)
|
||||
else
|
||||
GPUMODE=$(get_setting system.gpuperf)
|
||||
if [ -z "${GPUMODE}" ]
|
||||
then
|
||||
GPUMODE=auto
|
||||
set_setting system.gpuperf auto
|
||||
fi
|
||||
GPUPROFILE=$(get_setting system.gpuperf)
|
||||
fi
|
||||
if [ -z "${GPUPROFILE}" ]
|
||||
then
|
||||
GPUPROFILE="auto"
|
||||
fi
|
||||
ledcontrol
|
||||
audio_powersave 1
|
||||
cpu_perftune battery
|
||||
gpu_performance_level ${GPUMODE}
|
||||
gpu_power_profile 1
|
||||
gpu_performance_level ${GPUPROFILE}
|
||||
pcie_aspm_policy powersave
|
||||
device_powersave 1
|
||||
device_powerlevel auto
|
||||
;;
|
||||
*)
|
||||
log $0 "Switching to performance mode."
|
||||
ledcontrol
|
||||
audio_powersave 0
|
||||
cpu_perftune performance
|
||||
gpu_performance_level profile_standard
|
||||
gpu_power_profile 1
|
||||
gpu_performance_level auto
|
||||
pcie_aspm_policy default
|
||||
device_powersave 0
|
||||
device_powerlevel on
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
CURRENT_MODE="${STATUS}"
|
||||
fi
|
||||
### Until we have an overlay. :rofl:
|
||||
if (( "${BATCNT}" >= "90" )) &&
|
||||
[[ "${STATUS}" =~ Disch ]]
|
||||
then
|
||||
BATLEFT=$(battery_percent)
|
||||
AUDIBLEALERT=$(get_setting system.battery.warning)
|
||||
if (( "${BATLEFT}" < "25" )) &&
|
||||
[ "${AUDIBLEALERT}" = "1" ]
|
||||
then
|
||||
say "BATTERY AT ${BATLEFT}%"
|
||||
BATCNT=0
|
||||
fi
|
||||
fi
|
||||
BATCNT=$(( ${BATCNT} + 1 ))
|
||||
sleep 2
|
||||
done
|
||||
|
|
|
@ -131,9 +131,21 @@ mkcontroller 2>/dev/null ||:
|
|||
DOWN="down"
|
||||
REPEAT_MOD=${BRIGHTNESS_REPEAT_MOD}
|
||||
elif [[ "${FUNCB_PRESSED}" == "yes" ]]; then
|
||||
COMMAND="/usr/bin/say"
|
||||
UP="-b"
|
||||
DOWN="-b"
|
||||
if [[ "${line}" == ${VOL_UP} ]]; then
|
||||
COMMAND="/usr/bin/say"
|
||||
UP="-b"
|
||||
else
|
||||
COMMAND="/usr/bin/wifictl"
|
||||
WIFISTATE=$(get_setting wifi.enabled)
|
||||
if [ "${WIFISTATE}" = 0 ]
|
||||
then
|
||||
DOWN="reconnect"
|
||||
/usr/bin/say "WIFI On"
|
||||
else
|
||||
DOWN="disable"
|
||||
/usr/bin/say "WIFI Off"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
# Default to 'volume' if Fn a or b is not pressed
|
||||
COMMAND="/usr/bin/system_utils vol"
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
<string name="LogLevel" value="warning" />
|
||||
<string name="OMXAudioDev" value="both" />
|
||||
<string name="Overclock" value="none" />
|
||||
<string name="PowerSaverMode" value="default" />
|
||||
<string name="PowerSaverMode" value="enhanced" />
|
||||
<string name="Scraper" value="ScreenScraper" />
|
||||
<string name="ScrapperImageSrc" value="ss" />
|
||||
<string name="ScrapperLogoSrc" value="" />
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Copyright (C) 2020-present Fewtarius
|
||||
|
||||
PKG_NAME="emulationstation"
|
||||
PKG_VERSION="22c2c16"
|
||||
PKG_VERSION="a9a1ddb"
|
||||
PKG_GIT_CLONE_BRANCH="main"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
|
|
|
@ -840,7 +840,7 @@ makeinstall_target() {
|
|||
add_es_system doom
|
||||
|
||||
### Media Player
|
||||
add_emu_core mpv mpv true
|
||||
add_emu_core mplayer mplayer mplayer true
|
||||
add_es_system mplayer
|
||||
|
||||
### Moonlight
|
||||
|
|
|
@ -103,7 +103,7 @@ CONFIG_NO_HZ_COMMON=y
|
|||
# CONFIG_HZ_PERIODIC is not set
|
||||
CONFIG_NO_HZ_IDLE=y
|
||||
# CONFIG_NO_HZ_FULL is not set
|
||||
CONFIG_NO_HZ=y
|
||||
# CONFIG_NO_HZ is not set
|
||||
CONFIG_HIGH_RES_TIMERS=y
|
||||
CONFIG_CLOCKSOURCE_WATCHDOG_MAX_SKEW_US=100
|
||||
# end of Timers subsystem
|
||||
|
@ -346,20 +346,8 @@ CONFIG_PARAVIRT_XXL=y
|
|||
# CONFIG_PARAVIRT_DEBUG is not set
|
||||
CONFIG_PARAVIRT_SPINLOCKS=y
|
||||
CONFIG_X86_HV_CALLBACK_VECTOR=y
|
||||
CONFIG_XEN=y
|
||||
CONFIG_XEN_PV=y
|
||||
CONFIG_XEN_512GB=y
|
||||
CONFIG_XEN_PV_SMP=y
|
||||
CONFIG_XEN_PV_DOM0=y
|
||||
CONFIG_XEN_PVHVM=y
|
||||
CONFIG_XEN_PVHVM_SMP=y
|
||||
CONFIG_XEN_PVHVM_GUEST=y
|
||||
CONFIG_XEN_SAVE_RESTORE=y
|
||||
# CONFIG_XEN_DEBUG_FS is not set
|
||||
CONFIG_XEN_PVH=y
|
||||
CONFIG_XEN_DOM0=y
|
||||
CONFIG_XEN_PV_MSR_SAFE=y
|
||||
CONFIG_KVM_GUEST=y
|
||||
CONFIG_XEN=n
|
||||
CONFIG_KVM_GUEST=n
|
||||
CONFIG_ARCH_CPUIDLE_HALTPOLL=y
|
||||
CONFIG_PVH=y
|
||||
CONFIG_PARAVIRT_TIME_ACCOUNTING=y
|
||||
|
@ -714,42 +702,7 @@ CONFIG_COMPAT=y
|
|||
CONFIG_COMPAT_FOR_U64_ALIGNMENT=y
|
||||
# end of Binary Emulations
|
||||
|
||||
CONFIG_HAVE_KVM=y
|
||||
CONFIG_HAVE_KVM_PFNCACHE=y
|
||||
CONFIG_HAVE_KVM_IRQCHIP=y
|
||||
CONFIG_HAVE_KVM_IRQFD=y
|
||||
CONFIG_HAVE_KVM_IRQ_ROUTING=y
|
||||
CONFIG_HAVE_KVM_DIRTY_RING=y
|
||||
CONFIG_HAVE_KVM_DIRTY_RING_TSO=y
|
||||
CONFIG_HAVE_KVM_DIRTY_RING_ACQ_REL=y
|
||||
CONFIG_HAVE_KVM_EVENTFD=y
|
||||
CONFIG_KVM_MMIO=y
|
||||
CONFIG_KVM_ASYNC_PF=y
|
||||
CONFIG_HAVE_KVM_MSI=y
|
||||
CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT=y
|
||||
CONFIG_KVM_VFIO=y
|
||||
CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT=y
|
||||
CONFIG_KVM_COMPAT=y
|
||||
CONFIG_HAVE_KVM_IRQ_BYPASS=y
|
||||
CONFIG_HAVE_KVM_NO_POLL=y
|
||||
CONFIG_KVM_XFER_TO_GUEST_WORK=y
|
||||
CONFIG_HAVE_KVM_PM_NOTIFIER=y
|
||||
CONFIG_KVM_GENERIC_HARDWARE_ENABLING=y
|
||||
CONFIG_VIRTUALIZATION=y
|
||||
CONFIG_KVM=m
|
||||
CONFIG_KVM_WERROR=y
|
||||
CONFIG_KVM_INTEL=m
|
||||
CONFIG_X86_SGX_KVM=y
|
||||
CONFIG_KVM_AMD=m
|
||||
CONFIG_KVM_AMD_SEV=y
|
||||
CONFIG_KVM_SMM=y
|
||||
CONFIG_KVM_XEN=y
|
||||
CONFIG_KVM_EXTERNAL_WRITE_TRACKING=y
|
||||
CONFIG_AS_AVX512=y
|
||||
CONFIG_AS_SHA1_NI=y
|
||||
CONFIG_AS_SHA256_NI=y
|
||||
CONFIG_AS_TPAUSE=y
|
||||
CONFIG_AS_GFNI=y
|
||||
# CONFIG_HAVE_KVM=n
|
||||
|
||||
#
|
||||
# General architecture-dependent options
|
||||
|
@ -10282,9 +10235,9 @@ CONFIG_FUSE_DAX=y
|
|||
CONFIG_OVERLAY_FS=m
|
||||
CONFIG_OVERLAY_FS_REDIRECT_DIR=y
|
||||
CONFIG_OVERLAY_FS_REDIRECT_ALWAYS_FOLLOW=y
|
||||
CONFIG_OVERLAY_FS_INDEX=y
|
||||
CONFIG_OVERLAY_FS_XINO_AUTO=y
|
||||
CONFIG_OVERLAY_FS_METACOPY=y
|
||||
# CONFIG_OVERLAY_FS_INDEX is not set
|
||||
# CONFIG_OVERLAY_FS_XINO_AUTO is not set
|
||||
# CONFIG_OVERLAY_FS_METACOPY is not set
|
||||
|
||||
#
|
||||
# Caches
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
esac
|
||||
|
||||
# kernel command line
|
||||
EXTRA_CMDLINE="quiet console=tty0 ssh consoleblank=0 systemd.show_status=0 loglevel=0 panic=20 intel_pstate=disable"
|
||||
EXTRA_CMDLINE="quiet console=tty0 ssh consoleblank=0 systemd.show_status=0 loglevel=0 panic=20 intel_pstate=active amd_pstate=active amd_pstate.shared_mem=1 amdgpu.dpm=1 usbcore.autosuspend=5"
|
||||
|
||||
# Partition label
|
||||
PARTITION_TABLE="msdos"
|
||||
|
|
3
projects/PC/packages/linux/modprobe.d/audio.conf
Normal file
3
projects/PC/packages/linux/modprobe.d/audio.conf
Normal file
|
@ -0,0 +1,3 @@
|
|||
options snd_hda_intel power_save=1
|
||||
options snd_ac97_codec power_save=1
|
||||
|
2
projects/PC/packages/linux/modprobe.d/iwlwifi.conf
Normal file
2
projects/PC/packages/linux/modprobe.d/iwlwifi.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
options iwlwifi power_save=1 power_level=5
|
||||
options iwlmvm power_scheme=3
|
|
@ -69,7 +69,7 @@ CONFIG_NO_HZ_COMMON=y
|
|||
# CONFIG_HZ_PERIODIC is not set
|
||||
CONFIG_NO_HZ_IDLE=y
|
||||
# CONFIG_NO_HZ_FULL is not set
|
||||
CONFIG_NO_HZ=y
|
||||
# CONFIG_NO_HZ is not set
|
||||
CONFIG_HIGH_RES_TIMERS=y
|
||||
# CONFIG_PREEMPT_NONE is not set
|
||||
CONFIG_PREEMPT_VOLUNTARY=y
|
||||
|
@ -382,11 +382,11 @@ CONFIG_HOTPLUG_CPU=y
|
|||
CONFIG_ARCH_NR_GPIO=256
|
||||
# CONFIG_NUMA is not set
|
||||
CONFIG_HOLES_IN_ZONE=y
|
||||
# CONFIG_HZ_100 is not set
|
||||
CONFIG_HZ_100=y
|
||||
# CONFIG_HZ_250 is not set
|
||||
CONFIG_HZ_300=y
|
||||
# CONFIG_HZ_300 is not set
|
||||
# CONFIG_HZ_1000 is not set
|
||||
CONFIG_HZ=300
|
||||
CONFIG_HZ=100
|
||||
CONFIG_SCHED_HRTICK=y
|
||||
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
|
||||
CONFIG_ARCH_HAS_HOLES_MEMORYMODEL=y
|
||||
|
|
|
@ -69,7 +69,7 @@ CONFIG_NO_HZ_COMMON=y
|
|||
# CONFIG_HZ_PERIODIC is not set
|
||||
CONFIG_NO_HZ_IDLE=y
|
||||
# CONFIG_NO_HZ_FULL is not set
|
||||
CONFIG_NO_HZ=y
|
||||
# CONFIG_NO_HZ is not set
|
||||
CONFIG_HIGH_RES_TIMERS=y
|
||||
# CONFIG_PREEMPT_NONE is not set
|
||||
CONFIG_PREEMPT_VOLUNTARY=y
|
||||
|
@ -382,11 +382,11 @@ CONFIG_HOTPLUG_CPU=y
|
|||
CONFIG_ARCH_NR_GPIO=256
|
||||
# CONFIG_NUMA is not set
|
||||
CONFIG_HOLES_IN_ZONE=y
|
||||
# CONFIG_HZ_100 is not set
|
||||
CONFIG_HZ_100=y
|
||||
# CONFIG_HZ_250 is not set
|
||||
CONFIG_HZ_300=y
|
||||
# CONFIG_HZ_300 is not set
|
||||
# CONFIG_HZ_1000 is not set
|
||||
CONFIG_HZ=300
|
||||
CONFIG_HZ=100
|
||||
CONFIG_SCHED_HRTICK=y
|
||||
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
|
||||
CONFIG_ARCH_HAS_HOLES_MEMORYMODEL=y
|
||||
|
|
Loading…
Reference in a new issue