From db7b03ba89cb2316e942afbb121d72a90774bfca Mon Sep 17 00:00:00 2001 From: fewtarius Date: Mon, 23 Jan 2023 17:41:38 -0500 Subject: [PATCH] Reduce services, reduce a few wakeups, disable debugging, update cemu. --- packages/games/emulators/cemu/package.mk | 4 +- packages/jelos/package.mk | 1 - packages/network/bluez/package.mk | 2 +- .../autostart/sources/common/009-bluetooth | 1 + packages/sysutils/busybox/config/profile | 56 ++++++------------- .../system-utils/sources/scripts/fancontrol | 12 ++-- .../devices/handheld/linux/linux.x86_64.conf | 46 +++++++-------- 7 files changed, 49 insertions(+), 73 deletions(-) diff --git a/packages/games/emulators/cemu/package.mk b/packages/games/emulators/cemu/package.mk index 16d202aa4..15a2fa5d2 100644 --- a/packages/games/emulators/cemu/package.mk +++ b/packages/games/emulators/cemu/package.mk @@ -3,11 +3,11 @@ # Copyright (C) 2022-present Fewtarius PKG_NAME="cemu" -PKG_VERSION="33bd10b" #v2.0-25 +PKG_VERSION="9d55f46" PKG_ARCH="x86_64" PKG_LICENSE="MPL-2.0" PKG_SITE="https://github.com/cemu-project/Cemu" -PKG_URL="https://github.com/cemu-project/Cemu.git" +PKG_URL="${PKG_SITE}.git" PKG_DEPENDS_TARGET="toolchain libzip glslang glm curl rapidjson openssl boost libfmt pugixml libpng gtk3 wxwidgets" PKG_LONGDESC="Cemu is a Wii U emulator that is able to run most Wii U games and homebrew in a playable state" PKG_GIT_CLONE_BRANCH="main" diff --git a/packages/jelos/package.mk b/packages/jelos/package.mk index 3ff63b5f2..4c0af7afb 100644 --- a/packages/jelos/package.mk +++ b/packages/jelos/package.mk @@ -152,5 +152,4 @@ EOF sed -i "s#ssh.enabled=0#ssh.enabled=1#g" ${INSTALL}/usr/config/system/configs/system.cfg fi - enable_service bluetooth-agent.service } diff --git a/packages/network/bluez/package.mk b/packages/network/bluez/package.mk index 8fd6f1bd5..3dc38e25e 100644 --- a/packages/network/bluez/package.mk +++ b/packages/network/bluez/package.mk @@ -78,5 +78,5 @@ post_makeinstall_target() { post_install() { enable_service bluetooth-defaults.service #enable_service bluetooth.service - enable_service obex.service + #enable_service obex.service } diff --git a/packages/sysutils/autostart/sources/common/009-bluetooth b/packages/sysutils/autostart/sources/common/009-bluetooth index 87cf63f8a..c30f17c22 100755 --- a/packages/sysutils/autostart/sources/common/009-bluetooth +++ b/packages/sysutils/autostart/sources/common/009-bluetooth @@ -6,6 +6,7 @@ if [ "$(get_setting bluetooth.enabled)" == "1" ] then rfkill unblock bluetooth nohup systemctl start bluetooth & + nohup systemctl start bluetooth-agent & else rfkill block bluetooth fi diff --git a/packages/sysutils/busybox/config/profile b/packages/sysutils/busybox/config/profile index 898ed50d8..4f432fd98 100644 --- a/packages/sysutils/busybox/config/profile +++ b/packages/sysutils/busybox/config/profile @@ -1,47 +1,23 @@ # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv) +# Copyright (C) 2021-present Fewtarius -# parse command line arguments - for arg in $(cat /proc/cmdline); do - case $arg in - debugging) - export DEBUG=yes - ;; - progress) - PROGRESS=yes - ;; - esac - done - - if [ -e /storage/.cache/debug.libreelec ] ; then - export DEBUG=yes +# Read config files +for CONFIG in /etc/profile.d/*; do + if [ -f "${CONFIG}" ] ; then + . ${CONFIG} fi +done -# functions - progress() { - if test "$PROGRESS" = yes; then - logger -s -t Boot "### $1 ###" - else - logger -t Boot "### $1 ###" - fi - } +# Create user profile directory if it does not exist. +if [ ! -d "/storage/.config/profile.d" ] +then + mkdir -p /storage/.config/profile.d +fi -# read config files - for config in /etc/profile.d/*; do - if [ -f "$config" ] ; then - . $config - fi - done - -# read user config files - - if [ ! -d "/storage/.config/profile.d" ] - then - mkdir -p /storage/.config/profile.d +# Read user config files +for CONFIG in /storage/.config/profile.d/*; do + if [ -f "${CONFIG}" ] ; then + . ${CONFIG} fi - - for config in /storage/.config/profile.d/*; do - if [ -f "$config" ] ; then - . $config - fi - done +done diff --git a/packages/sysutils/system-utils/sources/scripts/fancontrol b/packages/sysutils/system-utils/sources/scripts/fancontrol index 2eb7e2827..526ae7133 100755 --- a/packages/sysutils/system-utils/sources/scripts/fancontrol +++ b/packages/sysutils/system-utils/sources/scripts/fancontrol @@ -42,24 +42,24 @@ then TEMPS=(65000 55000 45000 0) else # Quiet. - SPEEDS=(255 192 128 96 64 48) - TEMPS=(70000 60000 55000 50000 47000 0) + SPEEDS=(255 192 128 96 64 48 32) + TEMPS=(70000 60000 55000 50000 49000 47000 0) fi fi while true do INDEX=0 - CPU_TEMP=$(printf "%.0f" $(cat ${DEVICE_TEMP_SENSOR} | awk '{ total += $1; count++ } END { print total/count }')) + CPU_TEMP=$(printf "%.0f" $(awk '{ total += $1; count++ } END { print total/count }' ${DEVICE_TEMP_SENSOR})) $DEBUG && log $0 "CPU TEMP: ${CPU_TEMP}" 2>/dev/null for TEMP in "${TEMPS[@]}" do - $DEBUG && log $0 "INDEX: ${INDEX}" 2>/dev/null - $DEBUG && log $0 "CHK: ${TEMP}" 2>/dev/null - if (( "${CPU_TEMP}" > "${TEMP}" )) + if (( "${CPU_TEMP}" > "${TEMP}" )) && \ + [ ! "${LASTSPEED}" = "${SPEEDS[${INDEX}]}" ] then $DEBUG && log $0 "Setting PWM FAN to ${SPEEDS[${INDEX}]} (${TEMP})" 2>/dev/null echo ${SPEEDS[${INDEX}]} >${FAN_PWM} + LASTSPEED=${SPEEDS[${INDEX}]} break fi INDEX=$(( $INDEX + 1 )) diff --git a/projects/PC/devices/handheld/linux/linux.x86_64.conf b/projects/PC/devices/handheld/linux/linux.x86_64.conf index 7c17cc494..74f07700d 100644 --- a/projects/PC/devices/handheld/linux/linux.x86_64.conf +++ b/projects/PC/devices/handheld/linux/linux.x86_64.conf @@ -359,7 +359,7 @@ CONFIG_X86_TSC=y CONFIG_X86_CMPXCHG64=y CONFIG_X86_CMOV=y CONFIG_X86_MINIMUM_CPU_FAMILY=64 -CONFIG_X86_DEBUGCTLMSR=y +# CONFIG_X86_DEBUGCTLMSR is not set CONFIG_IA32_FEAT_CTL=y CONFIG_X86_VMX_FEATURE_NAMES=y # CONFIG_PROCESSOR_SELECT is not set @@ -498,10 +498,10 @@ CONFIG_PM_AUTOSLEEP=y # CONFIG_PM_USERSPACE_AUTOSLEEP is not set CONFIG_PM_WAKELOCKS=y CONFIG_PM=y -CONFIG_PM_DEBUG=y +# CONFIG_PM_DEBUG is not set # CONFIG_PM_ADVANCED_DEBUG is not set CONFIG_PM_TEST_SUSPEND=y -CONFIG_PM_SLEEP_DEBUG=y +# CONFIG_PM_SLEEP_DEBUG is not set # CONFIG_PM_TRACE_RTC is not set CONFIG_PM_CLK=y CONFIG_PM_GENERIC_DOMAINS=y @@ -768,7 +768,7 @@ CONFIG_HAVE_STATIC_CALL_INLINE=y CONFIG_HAVE_PREEMPT_DYNAMIC=y CONFIG_HAVE_PREEMPT_DYNAMIC_CALL=y CONFIG_ARCH_WANT_LD_ORPHAN_WARN=y -CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y +# CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC is not set CONFIG_ARCH_SUPPORTS_PAGE_TABLE_CHECK=y CONFIG_ARCH_HAS_ELFCORE_COMPAT=y CONFIG_ARCH_HAS_PARANOID_L1D_FLUSH=y @@ -816,7 +816,7 @@ CONFIG_BLK_DEV_BSGLIB=y # CONFIG_BLK_CGROUP_IOLATENCY is not set # CONFIG_BLK_CGROUP_IOCOST is not set # CONFIG_BLK_CGROUP_IOPRIO is not set -CONFIG_BLK_DEBUG_FS=y +# CONFIG_BLK_DEBUG_FS is not set # CONFIG_BLK_SED_OPAL is not set # CONFIG_BLK_INLINE_ENCRYPTION is not set @@ -3106,7 +3106,7 @@ CONFIG_PINCTRL=y CONFIG_PINMUX=y CONFIG_PINCONF=y CONFIG_GENERIC_PINCONF=y -CONFIG_DEBUG_PINCTRL=y +# CONFIG_DEBUG_PINCTRL is not set CONFIG_PINCTRL_AMD=y # CONFIG_PINCTRL_CY8C95X0 is not set CONFIG_PINCTRL_MCP23S08_I2C=y @@ -4505,7 +4505,7 @@ CONFIG_VGA_SWITCHEROO=y CONFIG_DRM=y CONFIG_DRM_MIPI_DSI=y # CONFIG_DRM_DEBUG_MM is not set -CONFIG_DRM_USE_DYNAMIC_DEBUG=y +# CONFIG_DRM_USE_DYNAMIC_DEBUG is not set CONFIG_DRM_KMS_HELPER=y # CONFIG_DRM_DEBUG_DP_MST_TOPOLOGY_REFS is not set # CONFIG_DRM_DEBUG_MODESET_LOCK is not set @@ -6937,20 +6937,20 @@ CONFIG_CONSOLE_LOGLEVEL_DEFAULT=7 CONFIG_CONSOLE_LOGLEVEL_QUIET=4 CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4 # CONFIG_BOOT_PRINTK_DELAY is not set -CONFIG_DYNAMIC_DEBUG=y -CONFIG_DYNAMIC_DEBUG_CORE=y +# CONFIG_DYNAMIC_DEBUG is not set +# CONFIG_DYNAMIC_DEBUG_CORE is not set CONFIG_SYMBOLIC_ERRNAME=y -CONFIG_DEBUG_BUGVERBOSE=y +# CONFIG_DEBUG_BUGVERBOSE is not set # end of printk and dmesg options -CONFIG_DEBUG_KERNEL=y -CONFIG_DEBUG_MISC=y +# CONFIG_DEBUG_KERNEL is not set +# CONFIG_DEBUG_MISC is not set # # Compile-time checks and compiler options # CONFIG_AS_HAS_NON_CONST_LEB128=y -CONFIG_DEBUG_INFO_NONE=y +# CONFIG_DEBUG_INFO_NONE is not set # CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT is not set # CONFIG_DEBUG_INFO_DWARF4 is not set # CONFIG_DEBUG_INFO_DWARF5 is not set @@ -6975,8 +6975,8 @@ CONFIG_MAGIC_SYSRQ=y CONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x1 CONFIG_MAGIC_SYSRQ_SERIAL=y CONFIG_MAGIC_SYSRQ_SERIAL_SEQUENCE="" -CONFIG_DEBUG_FS=y -CONFIG_DEBUG_FS_ALLOW_ALL=y +# CONFIG_DEBUG_FS is not set +# CONFIG_DEBUG_FS_ALLOW_ALL is not set # CONFIG_DEBUG_FS_DISALLOW_MOUNT is not set # CONFIG_DEBUG_FS_ALLOW_NONE is not set CONFIG_HAVE_ARCH_KGDB=y @@ -7001,27 +7001,27 @@ CONFIG_HAVE_KCSAN_COMPILER=y # # CONFIG_PAGE_EXTENSION is not set # CONFIG_DEBUG_PAGEALLOC is not set -CONFIG_SLUB_DEBUG=y +# CONFIG_SLUB_DEBUG is not set # CONFIG_SLUB_DEBUG_ON is not set # CONFIG_PAGE_OWNER is not set # CONFIG_PAGE_TABLE_CHECK is not set # CONFIG_PAGE_POISONING is not set # CONFIG_DEBUG_PAGE_REF is not set # CONFIG_DEBUG_RODATA_TEST is not set -CONFIG_ARCH_HAS_DEBUG_WX=y +# CONFIG_ARCH_HAS_DEBUG_WX is not set # CONFIG_DEBUG_WX is not set CONFIG_GENERIC_PTDUMP=y # CONFIG_PTDUMP_DEBUGFS is not set # CONFIG_DEBUG_OBJECTS is not set # CONFIG_SHRINKER_DEBUG is not set -CONFIG_HAVE_DEBUG_KMEMLEAK=y +# CONFIG_HAVE_DEBUG_KMEMLEAK is not set # CONFIG_DEBUG_KMEMLEAK is not set # CONFIG_DEBUG_STACK_USAGE is not set # CONFIG_SCHED_STACK_END_CHECK is not set -CONFIG_ARCH_HAS_DEBUG_VM_PGTABLE=y +# CONFIG_ARCH_HAS_DEBUG_VM_PGTABLE is not set # CONFIG_DEBUG_VM is not set # CONFIG_DEBUG_VM_PGTABLE is not set -CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y +# CONFIG_ARCH_HAS_DEBUG_VIRTUAL is not set # CONFIG_DEBUG_VIRTUAL is not set # CONFIG_DEBUG_MEMORY_INIT is not set # CONFIG_DEBUG_PER_CPU_MAPS is not set @@ -7067,12 +7067,12 @@ CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=120 # end of Scheduler Debugging # CONFIG_DEBUG_TIMEKEEPING is not set -CONFIG_DEBUG_PREEMPT=y +# CONFIG_DEBUG_PREEMPT is not set # # Lock Debugging (spinlocks, mutexes, etc...) # -CONFIG_LOCK_DEBUGGING_SUPPORT=y +# CONFIG_LOCK_DEBUGGING_SUPPORT is not set # CONFIG_PROVE_LOCKING is not set # CONFIG_LOCK_STAT is not set # CONFIG_DEBUG_RT_MUTEXES is not set @@ -7225,7 +7225,7 @@ CONFIG_IO_DELAY_0X80=y # CONFIG_CPA_DEBUG is not set # CONFIG_DEBUG_ENTRY is not set # CONFIG_DEBUG_NMI_SELFTEST is not set -CONFIG_X86_DEBUG_FPU=y +# CONFIG_X86_DEBUG_FPU is not set # CONFIG_PUNIT_ATOM_DEBUG is not set # CONFIG_UNWINDER_ORC is not set CONFIG_UNWINDER_FRAME_POINTER=y