Merge pull request #985 from fewtarius/dev
Reduce services, reduce a few wakeups, disable debugging, update cemu.
This commit is contained in:
commit
e7e3fad58d
7 changed files with 49 additions and 73 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
fi
|
||||
|
||||
# functions
|
||||
progress() {
|
||||
if test "$PROGRESS" = yes; then
|
||||
logger -s -t Boot "### $1 ###"
|
||||
else
|
||||
logger -t Boot "### $1 ###"
|
||||
fi
|
||||
}
|
||||
|
||||
# read config files
|
||||
for config in /etc/profile.d/*; do
|
||||
if [ -f "$config" ] ; then
|
||||
. $config
|
||||
# Read config files
|
||||
for CONFIG in /etc/profile.d/*; do
|
||||
if [ -f "${CONFIG}" ] ; then
|
||||
. ${CONFIG}
|
||||
fi
|
||||
done
|
||||
|
||||
# read user config files
|
||||
|
||||
# Create user profile directory if it does not exist.
|
||||
if [ ! -d "/storage/.config/profile.d" ]
|
||||
then
|
||||
mkdir -p /storage/.config/profile.d
|
||||
fi
|
||||
|
||||
for config in /storage/.config/profile.d/*; do
|
||||
if [ -f "$config" ] ; then
|
||||
. $config
|
||||
# Read user config files
|
||||
for CONFIG in /storage/.config/profile.d/*; do
|
||||
if [ -f "${CONFIG}" ] ; then
|
||||
. ${CONFIG}
|
||||
fi
|
||||
done
|
||||
|
|
|
@ -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 ))
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue