From 51124e42e40b52dc718df034a4a1a3c92b801c57 Mon Sep 17 00:00:00 2001 From: ducoterra Date: Sat, 11 Jan 2025 17:57:37 -0500 Subject: [PATCH] add qmk and fedora wake from sleep error fixes --- .../graduated/fedora/arch.containerfile | 4 +- infrastructure/graduated/fedora/fedora.md | 50 ++++++++++++++++++- 2 files changed, 51 insertions(+), 3 deletions(-) diff --git a/infrastructure/graduated/fedora/arch.containerfile b/infrastructure/graduated/fedora/arch.containerfile index 08c804a..dfedd97 100644 --- a/infrastructure/graduated/fedora/arch.containerfile +++ b/infrastructure/graduated/fedora/arch.containerfile @@ -86,7 +86,9 @@ RUN pacman -S --noconfirm \ # Python static type checker and code formatter. ruff \ # Generate strong passwords. - pwgen + pwgen \ + # Custom keyboard c onfiguration + qmk ######################## ##### Extra Apps ##### diff --git a/infrastructure/graduated/fedora/fedora.md b/infrastructure/graduated/fedora/fedora.md index 93fc31a..079ec42 100644 --- a/infrastructure/graduated/fedora/fedora.md +++ b/infrastructure/graduated/fedora/fedora.md @@ -1,6 +1,9 @@ # Fedora - [Fedora](#fedora) + - [Framework 16 Fixes](#framework-16-fixes) + - [Wake from Sleep](#wake-from-sleep) + - [Wrong keys pressed in the browser](#wrong-keys-pressed-in-the-browser) - [Podman](#podman) - [Autostarting services with quadlets](#autostarting-services-with-quadlets) - [Network](#network) @@ -40,6 +43,7 @@ - [CPU-X](#cpu-x) - [Ungoogled Chromium](#ungoogled-chromium) - [Signal](#signal) + - [Remmina](#remmina) - [Toolbox](#toolbox) - [Reese's Arch Toolbox](#reeses-arch-toolbox) - [Using Reese's Arch Toolbox](#using-reeses-arch-toolbox) @@ -48,6 +52,34 @@ - [Updating Reese's Arch Toolbox](#updating-reeses-arch-toolbox) - [Building Reese's Arch Toolbox](#building-reeses-arch-toolbox) +## Framework 16 Fixes + +### Wake from Sleep + +The keyboard/mouse can be pressed through the lid while in a backpack. Disable them to +prevent wake from sleep. + +`/etc/udev/rules.d/69-suspend.rules` + +```conf +ACTION=="add", SUBSYSTEM=="acpi", DRIVERS=="button", ATTRS{hid}=="PNP0C0D", ATTR{power/wakeup}="disabled" +ACTION=="add", SUBSYSTEM=="serio", DRIVERS=="atkbd", ATTR{power/wakeup}="disabled" +ACTION=="add", SUBSYSTEM=="i2c", DRIVERS=="i2c_hid_acpi", ATTRS{name}=="PIXA3854:00", ATTR{power/wakeup}="disabled" + +# https://askubuntu.com/questions/848698/wake-up-from-suspend-using-usb-device +ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0012", RUN+="/bin/sh -c 'echo disabled > /sys$env{DEVPATH}/power/wakeup'" +``` + +Reload + +```bash +sudo udevadm control --reload-rules && sudo udevadm trigger +``` + +### Wrong keys pressed in the browser + +Sometimes keys will stop working when using search bars or do strange things like move the page around. This seems to be caused by some "alt" keypress combination. Pressing "alt" twice fixes it. + ## Podman Since you'll be using podman for most container-based services, you'll want to set the @@ -217,6 +249,14 @@ flatpak run io.github.ungoogled_software.ungoogled_chromium \ --app='https://discord.com/channels/@me' ``` +Then use + +```bash +qdbus org.kde.KWin /KWin queryWindowInfo +``` + +to get the StartupWMClass name. + Copy this into `~/.local/share/applications/Discord.desktop` ```conf @@ -232,8 +272,6 @@ Icon=discord StartupWMClass=Io.github.ungoogled_software.ungoogled_chromium ``` -Or copy this into - ### Proton Mail Talk to your business partners? @@ -478,6 +516,14 @@ flatpak install org.signal.Signal ln -s ~/.local/share/applications/org.signal.Signal.desktop ~/.config/autostart/ ``` +### Remmina + +REMote desktop IN An app + +```bash +flatpak install org.remmina.Remmina +``` + ## Toolbox ```bash