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:49] – [SELinux] 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 22: | Line 23: | ||
| To move to user space: | To move to user space: | ||
| - | - `sudo flatpak list` and make a note of the apps. | + | - < |
| - | - `sudo flatpak remote-delete flathub` | + | - Make a note of apps. |
| - | - `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 32: | 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 53: | 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 74: | 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 106: | Line 112: | ||
| More detailed but mostly unecessary: | More detailed but mostly unecessary: | ||
| - | | + | < |
| - | - | + | |
| ==== zram ==== | ==== zram ==== | ||
| Line 118: | Line 124: | ||
| **Note:** Make sure there' | **Note:** Make sure there' | ||
| - | * [[https:// | + | |
| - | * [[https:// | + | * [[https:// |
| **Note:** Use Myrlyn! 580-packages needs to be removed one by one since it was not installed from the start using meta package. Install 595 meta package. From now on it will also be easier to switch. | **Note:** Use Myrlyn! 580-packages needs to be removed one by one since it was not installed from the start using meta package. Install 595 meta package. From now on it will also be easier to switch. | ||
| Line 130: | Line 136: | ||
| Best work around is to create a call of `nvidia-smi` as an autostart .desktop file. | Best work around is to create a call of `nvidia-smi` as an autostart .desktop file. | ||
| + | ~/ | ||
| + | < | ||
| + | [Desktop Entry] | ||
| + | Comment=Runs nvidia-smi | ||
| + | Exec=/ | ||
| + | Hidden=false | ||
| + | Name=nvidia-smi | ||
| + | NoDisplay=false | ||
| + | StartupNotify=true | ||
| + | Terminal=false | ||
| + | Type=Application | ||
| + | </ | ||
| ===== Migrate rolling release plan (TW/ | ===== Migrate rolling release plan (TW/ | ||
| I have had bad luck with this. Would recommend reinstalling altogether. | I have had bad luck with this. Would recommend reinstalling altogether. | ||
| Line 139: | 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.1785070186.txt · Last modified: by mathog
