From 80fd466e34a01772a1e32d657ceb564af018ce10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Sat, 29 Nov 2025 22:12:18 +0000 Subject: [PATCH] added AAC audio \& APX bluetooth --- README.md | 49 ++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 40 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index cdd7ae7..35030a3 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ - [Kde Plasma](#kde-plasma) - [flatpak](#flatpak) - [pixp](#pixp) + - [AAC audio \& APX](#aac-audio--apx) - [System Patches](#system-patches) - [G20S PRO - Remote Control](#g20s-pro---remote-control) - [keys remaps](#keys-remaps) @@ -177,6 +178,20 @@ export PATH="$PIPX_BIN_DIR:$PATH" sudo chmod +x /etc/profile.d/pipx.sh ``` +### AAC audio & APX + +Replace pulseaudio with pipewire. + +``` bash +sudo apt install pipewire-audio-client-libraries libspa-0.2-bluetooth +systemctl --user enable --now pipewire pipewire-pulse +sudo apt install libfdk-aac2 libfdk-aac-dev +sudo apt install bluez +systemctl --user restart pipewire pipewire-pulse +systemctl restart bluetooth + +``` + ### System Patches *If your logs are flooded with repeated messages like: @@ -228,7 +243,7 @@ sudo /opt/virtual-smart-tv/pipx/bin/evdevremapkeys --list-devices | grep G20S ```bash devices: - - input_phys: "b4:8c:9d:4f:e8:98" # set value from sudo $(which evdevremapkeys) --list-devices | grep G20S + - input_name: "G20S PRO" output_name: "G20S PRO Remapped" remappings: KEY_BACK: @@ -270,17 +285,33 @@ sudo systemctl status g20s-bluetooth-keys-remap Thanks for: , for the real solution. +For now: + +- i have to execute this after each kernel update; +- And automatic setup from original repo not working; + +Instructions based on original repo readme: + ```bash apt install dkms apt install proxmox-headers-$(uname -r) git clone https://github.com/stanford-scs/hid-g20s.git cd hid-g20s -./install.sh -# should show the device and basic remote functions should be working +sudo mkdir -p /usr/src/hid-g20s-1.0 +sudo cp hid-g20s.c Makefile dkms.conf /usr/src/hid-g20s-1.0/ +sudo cp 99-hid-g20s.rules /etc/udev/rules.d/ +sudo udevadm control --reload-rules +sudo dkms add -m hid-g20s -v 1.0 +sudo dkms build -m hid-g20s -v 1.0 +sudo dkms install -m hid-g20s -v 1.0 +sudo modprobe hid-g20s +``` -cat /proc/bus/input/devices | grep G20S -#N: Name="G20S PRO" +**Confirm everything is ok:** + +``` bash sudo lsmod | grep g20s +# ou put # hid_g20s 12288 0 # hid 253952 5 usbhid,hid_apple,hid_g20s,hid_generic,uhid sudo dmesg | grep g20s @@ -288,12 +319,12 @@ sudo lsmod | grep g20s sudo dkms status # hid-g20s/1.0, 6.14.11-4-pve, x86_64: installed (Original modules exist) -# check if is aplyed +# check if is applied sudo modinfo hid_g20s | grep description -description: G20S Bluetooth Remote HID driver with fixed descriptor and key remapping -``` +# description: G20S Bluetooth Remote H6969ID driver with fixed descriptor and key remapping *Module loads on boot:** +``` ```bash echo "hid-g20s" | sudo tee /etc/modules-load.d/hid-g20s.conf @@ -311,7 +342,7 @@ SUBSYSTEM=="hid", ATTRS{modalias}=="hid:b0005g0001v00001D5Ap0000C081", \ SUBSYSTEM=="bluetooth", ATTR{product}=="0xc081", ATTR{vendor}=="0x1d5a", \ RUN+="/sbin/modprobe hid-g20s" -ACTION=="add", SUBSYSTEM=="hid", ATTRS{name}=="G20S", RUN+="/sbin/modprobe -r hid_g20s; /sbin/modprobe hid_g20s" +#ACTION=="add", SUBSYSTEM=="hid", ATTRS{name}=="G20S", RUN+="/sbin/modprobe -r hid_g20s; /sbin/modprobe hid_g20s" ``` **Problem - requires restart bluetooth -** after first connection for remote control to work (for example after reboot).