added AAC audio \& APX bluetooth

This commit is contained in:
2025-11-29 22:12:18 +00:00
parent 49bb479805
commit 80fd466e34

View File

@@ -10,6 +10,7 @@
- [Kde Plasma](#kde-plasma) - [Kde Plasma](#kde-plasma)
- [flatpak](#flatpak) - [flatpak](#flatpak)
- [pixp](#pixp) - [pixp](#pixp)
- [AAC audio \& APX](#aac-audio--apx)
- [System Patches](#system-patches) - [System Patches](#system-patches)
- [G20S PRO - Remote Control](#g20s-pro---remote-control) - [G20S PRO - Remote Control](#g20s-pro---remote-control)
- [keys remaps](#keys-remaps) - [keys remaps](#keys-remaps)
@@ -177,6 +178,20 @@ export PATH="$PIPX_BIN_DIR:$PATH"
sudo chmod +x /etc/profile.d/pipx.sh 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 ### System Patches
*If your logs are flooded with repeated messages like: *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 ```bash
devices: 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" output_name: "G20S PRO Remapped"
remappings: remappings:
KEY_BACK: KEY_BACK:
@@ -270,17 +285,33 @@ sudo systemctl status g20s-bluetooth-keys-remap
Thanks for: <https://github.com/stanford-scs/hid-g20s>, for the real solution. Thanks for: <https://github.com/stanford-scs/hid-g20s>, 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 ```bash
apt install dkms apt install dkms
apt install proxmox-headers-$(uname -r) apt install proxmox-headers-$(uname -r)
git clone https://github.com/stanford-scs/hid-g20s.git git clone https://github.com/stanford-scs/hid-g20s.git
cd hid-g20s cd hid-g20s
./install.sh sudo mkdir -p /usr/src/hid-g20s-1.0
# should show the device and basic remote functions should be working 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 **Confirm everything is ok:**
#N: Name="G20S PRO"
``` bash
sudo lsmod | grep g20s sudo lsmod | grep g20s
# ou put
# hid_g20s 12288 0 # hid_g20s 12288 0
# hid 253952 5 usbhid,hid_apple,hid_g20s,hid_generic,uhid # hid 253952 5 usbhid,hid_apple,hid_g20s,hid_generic,uhid
sudo dmesg | grep g20s sudo dmesg | grep g20s
@@ -288,12 +319,12 @@ sudo lsmod | grep g20s
sudo dkms status sudo dkms status
# hid-g20s/1.0, 6.14.11-4-pve, x86_64: installed (Original modules exist) # 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 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:** *Module loads on boot:**
```
```bash ```bash
echo "hid-g20s" | sudo tee /etc/modules-load.d/hid-g20s.conf 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", \ SUBSYSTEM=="bluetooth", ATTR{product}=="0xc081", ATTR{vendor}=="0x1d5a", \
RUN+="/sbin/modprobe hid-g20s" 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). **Problem - requires restart bluetooth -** after first connection for remote control to work (for example after reboot).