Skip to content

Instantly share code, notes, and snippets.

View Langerz82's full-sized avatar

Joshua L Langerz82

View GitHub Profile
@Langerz82
Langerz82 / amiberry.start
Last active October 26, 2025 21:35
EmuELEC - amiberry.start
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 0riginally created by Escalade (https://github.com/escalade)
# Copyright (C) 2018-present 5schatten (https://github.com/5schatten)
# Copyright (C) 2025-present Langerz82 (https://github.com/Langerz82)
. /etc/profile
# Set some common variables
AMIBERRY_DIR=/storage/.config/amiberry
@Langerz82
Langerz82 / show_splash.sh
Last active October 16, 2025 12:22
EmuELEC - show_splash.sh v4.8 testing
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2019-present SumavisionQ5 (https://github.com/SumavisionQ5)
# Modifications by Shanti Gilbert (https://github.com/shantigilbert)
# 2025-present Mod by DiegroSan
# 2025-present Mod by WorstcaseSecenario (https://github.com/worstcase-scenario)
# 2025-present Mod by Langerz82 (https://github.com/Langerz82)
# 12/07/2019 use mpv for all splash
@Langerz82
Langerz82 / amiberry.start
Last active October 10, 2025 12:33
EmuELEC - v4.8 - amiberry.start - v7 - test file.
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 0riginally created by Escalade (https://github.com/escalade)
# Copyright (C) 2018-present 5schatten (https://github.com/5schatten)
# Copyright (C) 2025-present Langerz82 (https://github.com/Langerz82)
. /etc/profile
# Set some common variables
AMIBERRY_DIR=/storage/.config/amiberry
find_gamepad() {
local SDLJOYTEST="/tmp/emulation/amiberry/sdljoytest"
sdljoytest -skip_loop > ${SDLJOYTEST}
local GC_NAME=$(cat ${SDLJOYTEST} | grep "Joystick 0 name" | cut -d"'" -f2)
if [[ ! -z "${GC_NAME}" ]] && [[ -f "/tmp/joypads/${GC_NAME}.cfg" ]]; then
sed -i "s|joyport1_friendlyname=.*|joyport1_friendlyname=${GC_NAME}|" "$AMIBERRY_TMP_CONFIG"
fi
}
@Langerz82
Langerz82 / rr_audio.sh
Last active June 27, 2025 13:52
Emuelec - rr_audio.sh test
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2018-present Frank Hartung (supervisedthinking@gmail.com)
# Modifications by Shanti Gilbert (shantic@gmail.com) to work on EmuELEC Copyright (C) 2019-present
. /etc/profile
# Set common paths and defaults
export PULSE_RUNTIME_PATH=/run/pulse
RR_AUDIO_DEVICE="hw:$(get_ee_setting ee_audio_device)"
[ ${RR_AUDIO_DEVICE} = "hw:" ] && RR_AUDIO_DEVICE="hw:0"
@Langerz82
Langerz82 / rr_audio.sh
Created June 27, 2025 11:44
Emuelec - rr_audio fix audio 100% bug.
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2018-present Frank Hartung (supervisedthinking@gmail.com)
# Modifications by Shanti Gilbert (shantic@gmail.com) to work on EmuELEC Copyright (C) 2019-present
. /etc/profile
# Set common paths and defaults
export PULSE_RUNTIME_PATH=/run/pulse
RR_AUDIO_DEVICE="hw:$(get_ee_setting ee_audio_device)"
[ ${RR_AUDIO_DEVICE} = "hw:" ] && RR_AUDIO_DEVICE="hw:0"
@Langerz82
Langerz82 / emustation_arguments.sh
Last active June 27, 2025 05:16
EmuELEC - emustation_arguments - ability to send additional argument to the emulationstation service.
#!/bin/bash
# ABOUT - Overrides the emustation service start with the ability to send arguments.
# CREDITS - https://www.github.com/Langerz82 - Joshua L - 2025.
# WARNING - Use at your own risk.
# copy to /emuelec/bin and "chmod +x rotate_emu_station.sh" to allow script to execute.
# type in: "emustation_arguments.sh delete" to remove arguments parsed to service
# type in: "emustation_arguments.sh --screenrotate 1" to rotate 90deg for example
@Langerz82
Langerz82 / rotate_emu_station.sh
Last active June 27, 2025 04:54
emuelec - rotate_emu_station.sh
#!/bin/bash
# ABOUT - Rotate EmulationStation by overriding the service and applying the screen rotation argument.
# CREDITS - https://www.github.com/Langerz82 - Joshua L - 2025.
# WARNING - Use at your own risk.
# copy to /emuelec/bin and "chmod +x rotate_emu_station.sh" to allow script to execute.
# type in: "rotate_emu_station.sh 0" to restore rotation
# type in: "rotate_emu_station.sh 1" to rotate 90deg
# type in: "rotate_emu_station.sh 2" to rotate 180deg
@Langerz82
Langerz82 / rr_audio.sh
Created June 25, 2025 05:54
Emuelec - test - rr_audio.sh - volume bug
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2018-present Frank Hartung (supervisedthinking@gmail.com)
# Modifications by Shanti Gilbert (shantic@gmail.com) to work on EmuELEC Copyright (C) 2019-present
. /etc/profile
# Set common paths and defaults
export PULSE_RUNTIME_PATH=/run/pulse
RR_AUDIO_DEVICE="hw:$(get_ee_setting ee_audio_device)"
[ ${RR_AUDIO_DEVICE} = "hw:" ] && RR_AUDIO_DEVICE="hw:0"
@Langerz82
Langerz82 / setres.sh
Created January 1, 2025 07:39
linux setres Amlogic-ne bypass
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert)
# Copyright (C) 2022-present Joshua L (https://github.com/Langerz82)
# Read the video output mode and set it for emuelec to avoid video flicking.
# This file sets the hdmi output and frame buffer to the argument in pixel width.
# Allowed argument example ./setres.sh 1080p60hz <-- For height 1080 pixels.