diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2eea525 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env \ No newline at end of file diff --git a/README.md b/README.md index 9bdbd6e..15e9115 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,12 @@ - [Apps](#apps) - [Steam](#steam) - [Greenlight](#greenlight) + - [Microsoft Edge](#microsoft-edge) - [youtube tv](#youtube-tv) - [gamepass](#gamepass) - [System](#system) - [Kde Plasma](#kde-plasma) - - [Flatkpak](#flatkpak) + - [flatpak](#flatpak) - [pixp](#pixp) - [G20S PRO - Remote Control](#g20s-pro---remote-control) - [keys remaps](#keys-remaps) @@ -22,7 +23,7 @@ **Requirements:** -- Flatkpak +- Flatpak **Install:** @@ -47,14 +48,14 @@ Name=Steam Exec=flatpak run --command=steam com.valvesoftware.Steam --steamos Icon=steam Type=Application -Categories=Game;virtual-smart-tv; +Categories=Game ``` ### Greenlight **Requirements:** -- Flatkpak +- Flatpak **Install:** @@ -78,35 +79,32 @@ Type=Application Name=GreenLight Exec=flatpak run io.github.unknownskl.greenlight & Icon=/home/mf/.local/share/waydroid/data/icons/com.android.vending.png +Categories=Game;smart-tv; +``` + +### Microsoft Edge + +**Install:** + +``` bash +sudo 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 +sudo apt install microsoft-edge-stable +sudo apt install wtype #requires to force youtube rebresh on load +``` + +**Run:** + +``` bash +microsoft-edge-stable ``` ### youtube tv -- **~/scripts/start-youtube.sh** - -``` bash -# -#!/bin/bash -chromium --kiosk "https://www.youtube.com/tv?disable_polymer=true&vq=hd1080&persist_quality=true" \ - --user-agent="Mozilla/5.0 (Linux; Android 10; SHIELD Android TV) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36" \ - --noerrdialogs --disable-infobars --disable-session-crashed-bubble \ - --autoplay-policy=no-user-gesture-required --start-fullscreen & -``` - - - -- **/.local/share/applications/youtube.desktop** - -``` bash -[Desktop Entry] -Type=Application -Name=YouTube -Exec=/home/mf/scripts/start-youtube.sh & -Icon=/home/mf/.local/share/waydroid/data/icons/com.android.vending.png -``` +Added as an edge app to . added --start-fullscreen argument. +Requires edge plugin "youtube tv on pc". +Plugin only works correcly if other instance of edge is running for example for gamepass. ### gamepass @@ -139,7 +137,7 @@ Icon=/home/mf/.local/share/waydroid/data/icons/com.android.vending.png sudo sudo apt install kde-plasma ``` -### Flatkpak +### flatpak **Install:** @@ -275,6 +273,9 @@ sudo evtest | grep G20S sudo dkms status # hid-g20s/1.0, 6.14.11-4-pve, x86_64: installed (Original modules exist) +# check if is aplyed +sudo modinfo hid_g20s | grep description +description: G20S Bluetooth Remote HID driver with fixed descriptor and key remapping ``` *Module loads on boot:** @@ -284,50 +285,66 @@ echo "hid-g20s" | sudo tee /etc/modules-load.d/hid-g20s.conf ``` ``` bash -sudo systemctl restart bluetooth +#/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 + +SUBSYSTEM=="hid", ATTRS{modalias}=="hid:b0005g0001v00001D5Ap0000C081", \ + RUN+="/sbin/modprobe hid-g20s" + +# Alternative rule that matches on vendor/product ID +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" ``` -Problem requires restart bluetooth after first connection to control for work (for example after reboot). Even service on boot not working correctly. -For now create desktop shortcut so i can run after reboot. +**Problem - requires restart bluetooth -** after first connection for remote control to work (for example after reboot). +*Remote Control must be in connected bluethooth state.* - **/usr/local/bin/g20s-bluetooth-rebind.sh** ``` bash #!/bin/bash - REMOTE_MAC="00:00:00:00:00:00" # Replace with your remote's MAC - echo "starting..." - # Wait until the remote is connected until bluetoothctl info "$REMOTE_MAC" | grep -q "Connected: yes"; do echo "Waiting for connection..." sleep 2 done - - -echo "Connected! sleep so restart happen only after full connection" -sleep 30 - echo "Restarting Bluethooth" # Restart Bluetooth to trigger HID rebind systemctl restart bluetooth ``` - ``` bash +``` bash chmod +x /usr/local/bin/g20s-bluetooth-rebind.sh ``` ``` bash # /etc/systemd/system/g20s-bluetooth-rebind.service + [Unit] -Description=Restart Bluetooth after G20S remote connects +Description=Bluetooth rebind after SDDM greeter appears +After=display-manager.service +Requires=display-manager.service +ConditionPathExists=!/run/g20s-bluetooth-rebind.done [Service] Type=oneshot ExecStart=/usr/local/bin/g20s-bluetooth-rebind.sh - +ExecStartPost=/bin/touch /g20s-bluetooth-rebind.done +RemainAfterExit=yes [Install] -WantedBy=multi-user.target +WantedBy=graphical.target + +``` + +``` bash +sudo systemctl daemon-reload +sudo systemctl enable g20s-bluetooth-rebind +sudo systemctl start g20s-bluetooth-rebind +sudo systemctl status g20s-bluetooth-rebind ```