Skip to content

Instantly share code, notes, and snippets.



Last active Feb 11, 2021
What would you like to do?
Linux Desktop User: Sane defaults

Being a Linux desktop user is not easy, but it doesn't have to be difficult.

Enabling persistent journals

This is especially useful for collecting logs of system issues.
journalctl --boot=-1 --pager-end

Attempts to fix display freeze

My system will often freeze the display and the only way to recover is by a hard reboot. These are the steps I have tried


Remove any vga= or video= options from the kernel boot parameters

Went from:

quiet loglevel=3 vga=current resume=UUID=de4366d9-ba05-43da-b70b-e7bb53fbed7a nouveau.modeset=0 nvidia-drm.modeset=1 video=SVIDEO-1:d lsm=lockdown,yama


quiet loglevel=3 resume=UUID=de4366d9-ba05-43da-b70b-e7bb53fbed7a nouveau.modeset=0 nvidia-drm.modeset=1lsm=lockdown,yama

Enabling Hybrid Graphics

Hybrid graphics in Nvidia
  • Install optimus manager

  • Aur

  • Follow the README

  • Enable power management

  • See this wiki

  • Apply the automated setup as outlined on Nvidia website

  • Install the system tray icon

  • Aur

  • Make it compatible with SDDM

See this comment

Disable Wake-on-LAN

More power saving

Disable IPv6

Random wifi restart Similar to the problem faced here.


Fix graphics corruption after suspend

Follow the guide found [here](

Just need to set options nvidia NVreg_PreserveVideoMemoryAllocations=1

Save system configuration

Use [aconfmgr for arch linux]( This works similar to nixos configuration file, and it enables us to save the state of the system in case we need to restore it on a different machine

Sharing bluetooth with Windows Partition

See this article which explains how to do this. Also comes with a script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment