diff --git a/README.md b/README.md index 8ae42e3..cdd7ae7 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ - [Kde Plasma](#kde-plasma) - [flatpak](#flatpak) - [pixp](#pixp) + - [System Patches](#system-patches) - [G20S PRO - Remote Control](#g20s-pro---remote-control) - [keys remaps](#keys-remaps) - [Setup](#setup) @@ -27,7 +28,7 @@ **Install:** -``` bash +```bash flatpak install flathub com.valvesoftware.Steam ``` @@ -41,7 +42,7 @@ flatpak run com.valvesoftware.Steam - **~/.local/share/applications/steam.desktop** -``` bash +```bash [Desktop Entry] Type=Application Name=Steam @@ -73,7 +74,7 @@ flatpak run io.github.unknownskl.greenlight - **~/.local/share/applications/greenlight.desktop** -``` bash +```bash [Desktop Entry] Type=Application Name=GreenLight @@ -86,7 +87,7 @@ Categories=Game;smart-tv; **Install:** -``` bash +```bash apt install software-properties-common apt-transport-https ca-certificates curl -y curl -fSsL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /usr/share/keyrings/microsoft-edge.gpg > /dev/null echo 'deb [signed-by=/usr/share/keyrings/microsoft-edge.gpg] https://packages.microsoft.com/repos/edge stable main' | sudo tee /etc/apt/sources.list.d/microsoft-edge.list @@ -96,7 +97,7 @@ apt install microsoft-edge-stable -y **Run:** -``` bash +```bash microsoft-edge-stable ``` @@ -116,19 +117,21 @@ Added as an edge app to Create user -ueradd -Ag tv +```bash +useradd -Ag tv +``` ### Kde Plasma **Install:** -``` bash +```bash apt install kde-plasma-desktop -y ``` Disable Sleep states -``` bash +```bash sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target ``` @@ -136,7 +139,7 @@ sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.ta **Install:** -``` bash +```bash sudo apt install flatpak -y sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo ``` @@ -145,11 +148,11 @@ sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub **Install:** -``` bash +```bash sudo apt install pipx pip -y ``` -``` bash +```bash sudo apt install pipx pip sudo mkdir -p /opt/virtual-smart-tv/pipx sudo mkdir -p /opt/virtual-smart-tv/pipx/venvs @@ -170,10 +173,26 @@ export PIPX_BIN_DIR="/opt/virtual-smart-tv/pipx/bin" export PATH="$PIPX_BIN_DIR:$PATH" ``` -``` bash +```bash sudo chmod +x /etc/profile.d/pipx.sh ``` +### System Patches + +*If your logs are flooded with repeated messages like: +drkonqi-coredump-launcher.socket was skipped because of an unmet condition check* + +```bash +drkonqi-coredump-launcher.socket was skipped because of an unmet condition check (ConditionUser=!@system) +``` + + + +```bash +systemctl --user daemon-reload +systemctl daemon-reload +``` + ## G20S PRO - Remote Control ### keys remaps @@ -188,7 +207,7 @@ On kde settings-> keyboard -> shortcuts KWin -> Present Windows (Current Desktop #### evtest -``` bash +```bash apt install evtest -y #check remote control events evtest @@ -198,7 +217,7 @@ evtest **Install:** -``` bash +```bash sudo env PIPX_HOME=/opt/virtual-smart-tv/pipx/venvs \ PIPX_BIN_DIR=/opt/virtual-smart-tv/pipx/bin \ pipx install evdevremapkeys @@ -207,7 +226,7 @@ sudo /opt/virtual-smart-tv/pipx/bin/evdevremapkeys --list-devices | grep G20S **/opt/virtual-smart-tv/evdevremapkeys.config:** -``` bash +```bash devices: - input_phys: "b4:8c:9d:4f:e8:98" # set value from sudo $(which evdevremapkeys) --list-devices | grep G20S output_name: "G20S PRO Remapped" @@ -220,13 +239,13 @@ devices: **Test Configuration:** -``` bash +```bash sudo /opt/virtual-smart-tv/pipx/bin/evdevremapkeys --config /opt/virtual-smart-tv/evdevremapkeys.config ``` **Register as service:** -``` bash +```bash # /etc/systemd/system/g20s-bluetooth-keys-remap.service [Unit] Description=Remap G20S buttons @@ -240,7 +259,7 @@ ExecStart=/opt/virtual-smart-tv/pipx/bin/evdevremapkeys --config /opt/virtual-sm WantedBy=multi-user.target ``` -``` bash +```bash sudo systemctl daemon-reload sudo systemctl enable g20s-bluetooth-keys-remap sudo systemctl start g20s-bluetooth-keys-remap @@ -251,7 +270,7 @@ sudo systemctl status g20s-bluetooth-keys-remap Thanks for: , for the real solution. -``` bash +```bash apt install dkms apt install proxmox-headers-$(uname -r) git clone https://github.com/stanford-scs/hid-g20s.git @@ -280,7 +299,7 @@ description: G20S Bluetooth Remote HID driver with fixed descriptor and key r echo "hid-g20s" | sudo tee /etc/modules-load.d/hid-g20s.conf ``` -``` bash +```bash #/etc/udev/rules.d/99-hid-g20s.rules # Automatically load hid-g20s driver for G20S Bluetooth Remote # This rule triggers when the G20S device is detected and loads the custom driver @@ -300,7 +319,7 @@ ACTION=="add", SUBSYSTEM=="hid", ATTRS{name}=="G20S", RUN+="/sbin/modprobe -r hi - **/usr/local/bin/g20s-bluetooth-rebind.sh** -``` bash +```bash #!/bin/bash REMOTE_MAC="00:00:00:00:00:00" # Replace with your remote's MAC echo "starting..." @@ -314,11 +333,11 @@ echo "Restarting Bluethooth" systemctl restart bluetooth ``` -``` bash +```bash chmod +x /usr/local/bin/g20s-bluetooth-rebind.sh - ``` +``` -``` bash +```bash # /etc/systemd/system/g20s-bluetooth-rebind.service [Unit] @@ -338,7 +357,7 @@ WantedBy=graphical.target ``` -``` bash +```bash sudo systemctl daemon-reload sudo systemctl enable g20s-bluetooth-rebind sudo systemctl start g20s-bluetooth-rebind