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:59] – [zswap] 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 34: | 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 111: | Line 113: | ||
| More detailed but mostly unecessary: | More detailed but mostly unecessary: | ||
| < | < | ||
| - | * [https:// | + | * [[https:// |
| ==== zram ==== | ==== zram ==== | ||
| Line 154: | 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.1785070770.txt · Last modified: by mathog
