opensuse
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| opensuse [2026-07-26 12:54] – [Flatpaks] mathog | opensuse [2026-07-26 13:15] (current) – [On wake up from sleep] mathog | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| - Remove zypper hook from Discover | - Remove zypper hook from Discover | ||
| - Move Flatpaks to user space | - Move Flatpaks to user space | ||
| + | - Add swap | ||
| ===== Flatpaks ===== | ===== Flatpaks ===== | ||
| Line 24: | Line 25: | ||
| - < | - < | ||
| - Make a note of apps. | - Make a note of apps. | ||
| - | - `sudo flatpak remote-delete flathub` | + | - < |
| - | - `flatpak remote-add --user --if-not-exists flathub https:// | + | - < |
| - | - Reinstall apps. `flatpak install ...` | + | - Reinstall apps. < |
| - | | + | |
| + | Not needed, will be pulled in when needed: `flatpak install org.freedesktop.Platform` | ||
| Or just accept that they are in root. Bazaar forces it. **Discover however, does not!!** | Or just accept that they are in root. Bazaar forces it. **Discover however, does not!!** | ||
| Line 33: | Line 35: | ||
| ===== Discover ===== | ===== Discover ===== | ||
| - | **Always update with commandline:** `sudo zypper dup`!!!!! | + | **Always update with commandline!!!!** |
| + | | ||
| To that end, it's advantageous to remove zypper hook into Discover. Native packages should **not** be updated with it and notifications become useless: | To that end, it's advantageous to remove zypper hook into Discover. Native packages should **not** be updated with it and notifications become useless: | ||
| Line 54: | Line 57: | ||
| ===== Steam permissions ===== | ===== Steam permissions ===== | ||
| - | Fuck SELinux and install with AppArmor instead. | + | ==== Context menu ==== |
| - | Btw: Install to fix context menu < | + | Install to fix context menu of Steam in the tray: |
| + | < | ||
| + | |||
| + | ==== AppArmor ==== | ||
| + | Fuck SELinux and install AppArmor instead. | ||
| ==== SELinux ==== | ==== SELinux ==== | ||
| Line 75: | Line 82: | ||
| ===== Swap ===== | ===== Swap ===== | ||
| - | The default 2 GB can easily be filled, causing freezes with 16 GB RAM. Add more swap! | + | The default 2 GB can easily be filled, causing freezes with 16 GB RAM. Add more swap and use zswap! |
| - | + | ||
| - | The default 2GB is not enough. Add more swap space for medium to low RAM: | + | |
| ==== Add/change swap (btrfs) ==== | ==== Add/change swap (btrfs) ==== | ||
| Line 107: | Line 112: | ||
| More detailed but mostly unecessary: | More detailed but mostly unecessary: | ||
| - | | + | < |
| - | * [https:// | + | * [[https:// |
| ==== zram ==== | ==== zram ==== | ||
| Line 151: | Line 156: | ||
| sudo opensuse-migration-tool | sudo opensuse-migration-tool | ||
| sudo reboot | sudo reboot | ||
| + | | ||
| + | ===== Bluetooth ===== | ||
| + | ==== On log in ==== | ||
| + | Make a .desktop file in the ~/ | ||
| + | /bin/sh -c ' | ||
| + | |||
| + | ==== On wake up from sleep ==== | ||
| + | Having specifik devices connect on bluetooth when logging in or waking from sleep requires a systemd service. | ||
| + | Make a script with contents: | ||
| + | sudo nano / | ||
| + | <code bash> | ||
| + | #!/bin/sh | ||
| + | |||
| + | LOCK_FILE="/ | ||
| + | # LOG_FILE="/ | ||
| + | |||
| + | # Exit if another instance is running | ||
| + | #if [ -f " | ||
| + | # echo " | ||
| + | # exit 0 | ||
| + | #fi | ||
| + | |||
| + | # Create lock file | ||
| + | # echo $$ > " | ||
| + | # trap 'rm -f " | ||
| + | |||
| + | # Log the start of the script | ||
| + | # echo " | ||
| + | |||
| + | # Wait for the Bluetooth adapter to initialize (max 10 seconds) | ||
| + | MAX_RETRIES=10 | ||
| + | RETRY_DELAY=1 | ||
| + | |||
| + | for i in $(seq 1 $MAX_RETRIES); | ||
| + | if bluetoothctl show | grep -q " | ||
| + | echo " | ||
| + | bluetoothctl connect E8: | ||
| + | if [ $? -eq 0 ]; then | ||
| + | # echo " | ||
| + | exit 0 | ||
| + | else | ||
| + | # echo " | ||
| + | sleep $RETRY_DELAY | ||
| + | fi | ||
| + | else | ||
| + | # echo " | ||
| + | sleep $RETRY_DELAY | ||
| + | fi | ||
| + | done | ||
| + | </ | ||
| + | Then make a system ini file: | ||
| + | sudo nano / | ||
| + | <code ini> | ||
| + | [Unit] | ||
| + | Description=Reconnect Bluetooth after wakeup from sleep | ||
| + | After=suspend.target hibernate.target hybrid-sleep.target | ||
| + | |||
| + | [Service] | ||
| + | Type=oneshot | ||
| + | RemainAfterExit=no | ||
| + | ExecStart=/ | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=suspend.target hibernate.target hybrid-sleep.target | ||
| + | </ | ||
| + | Note that adding **WantedBy=multi-user.target** is for logging in, and could potentially make autostart not needed. Untested, probably affected by **After** so more work needed. | ||
| + | |||
| + | |||
opensuse.1785070476.txt · Last modified: by mathog
