Update media player configurations and enhance InputPlumber service for HID device management

This commit is contained in:
Douglas Teles
2026-05-11 18:14:35 -03:00
parent a076c636fa
commit 926cca9cd4
8 changed files with 22 additions and 9 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ SYSTEM_MANUFACTURER=" System"
SYSTEM_RELEASE="System"
SYSTEM_HARDWARE="System"
SYSTEM_PATH="/storage/roms/mplayer"
SYSTEM_EXTENSION=".3g2 .3gp .aac .ac3 .asf .avi .divx .dts .eac33 .f4f .f4v .flac .flv .m2p .m2ts .m3u .m4a .mka .mkv .mov .mp3 .mp4 .mpeg .mpg .mxf .ogg .ogm .opus .ps .sh .thd .ts .twi .vob .wav .webm .wma .wmv .wv .ytb"
SYSTEM_EXTENSION=".3g2 .3gp .aac .ac3 .asf .avi .divx .dts .eac33 .f4f .f4v .flac .flv .m2p .m2ts .m3u .m4a .m4v .mka .mkv .mov .mp3 .mp4 .mpeg .mpg .mxf .ogg .ogm .opus .ps .sh .thd .ts .twi .vob .wav .webm .wma .wmv .wv .ytb"
SYSTEM_PLATFORM="mplayer"
SYSTEM_THEME="mplayer"
SYSTEM_WIKI_PATH="mplayer"
+1 -1
View File
@@ -4,7 +4,7 @@ SYSTEM_MANUFACTURER=" System"
SYSTEM_RELEASE="System"
SYSTEM_HARDWARE="computer"
SYSTEM_PATH="/storage/roms/ports"
SYSTEM_EXTENSION=".sh"
SYSTEM_EXTENSION=".sh .appimage"
SYSTEM_PLATFORM="pc"
SYSTEM_THEME="ports"
SYSTEM_WIKI_PATH="ports"
@@ -354,8 +354,13 @@ case ${EMULATOR} in
RUNTHIS='${RUN_SHELL} /usr/bin/start_dolphin_wii.sh "${ROMNAME}" "${PLATFORM}" "${CORE}"'
;;
"ports")
RUNTHIS='${EMUPERF} ${RUN_SHELL} "${ROMNAME}"'
sed -i "/^ACTIVE_GAME=/c\ACTIVE_GAME=\"${ROMNAME}\"" /storage/.config/PortMaster/mapper.txt
if [[ "${ROMNAME,,}" == *".appimage" ]]; then
RUNTHIS='${EMUPERF} "${ROMNAME}"'
else
RUNTHIS='${EMUPERF} ${RUN_SHELL} "${ROMNAME}"'
fi
chmod +x "${ROMNAME}"
sed -i "/^ACTIVE_GAME=/c\ACTIVE_GAME=\"${ROMNAME}\"" /storage/.config/PortMaster/mapper.txt
sed -i "/^ACTIVE_PLATFORM=/c\ACTIVE_PLATFORM=\"${PLATFORM}\"" /storage/.config/PortMaster/mapper.txt
;;
"windows")
@@ -36,8 +36,8 @@ input_enable_hotkey_btn = "8"
input_exit_emulator_btn = "7"
input_menu_toggle_btn = "3"
input_pause_toggle_btn = "1"
input_fps_toggle_btn = "0"
input_screenshot_btn = "2"
input_fps_toggle_btn = "2"
input_screenshot_btn = "0"
input_load_state_btn = "4"
input_save_state_btn = "5"
input_rewind_axis = "+2"
@@ -15,8 +15,8 @@ case ${DEVICE} in
PKG_PATCH_DIRS+=" 6.12-LTS"
;;
*)
PKG_VERSION="39da994bb6fc8819e5e8c1873907dd21d17e53c1"
PKG_URL="http://github.com/archr/mali_kbase/archive/${PKG_VERSION}.tar.gz"
PKG_VERSION="422e192b7e3aa3140f34de34765b798817c1f749"
PKG_URL="https://github.com/archr-linux/mali_kbase/archive/${PKG_VERSION}.tar.gz"
;;
esac
@@ -3,7 +3,7 @@
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
PKG_NAME="mpv"
PKG_VERSION="f4210f84906c3b00a65fba198c8127b6757b9350" # 0.36.0
PKG_VERSION="02254b92dd237f03aa0a151c2a68778c4ea848f9" # 0.38.0
PKG_LICENSE="GPLv2+"
PKG_SITE="https://github.com/mpv-player/mpv"
PKG_URL="${PKG_SITE}/archive/${PKG_VERSION}.tar.gz"
@@ -0,0 +1,6 @@
[Unit]
Description=Restart InputPlumber to pick up new HID devices
[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl restart inputplumber.service
@@ -0,0 +1,2 @@
# Restart InputPlumber when new HID devices appear so it can pick them up
ACTION=="add", SUBSYSTEM=="hidraw", TAG+="systemd", ENV{SYSTEMD_WANTS}="inputplumber-refresh.service"