Skip to content

Instantly share code, notes, and snippets.

@smac89
Last active February 11, 2021 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smac89/a7466f6c5933f52670894b38b66c3b26 to your computer and use it in GitHub Desktop.
Save smac89/a7466f6c5933f52670894b38b66c3b26 to your computer and use it in GitHub Desktop.
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

27/06/2020

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

To:

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

https://wiki.archlinux.org/index.php/Power_management#Network_interfaces

Disable IPv6

Random wifi restart Similar to the problem faced here.

See https://wiki.archlinux.org/index.php/IPv6#Disable_functionality

Fix graphics corruption after suspend

Follow the guide found [here](https://wiki.archlinux.org/index.php/NVIDIA/Tips_and_tricks#Preserve_video_memory_after_suspend).

Just need to set options nvidia NVreg_PreserveVideoMemoryAllocations=1

Save system configuration

Use [aconfmgr for arch linux](https://github.com/CyberShadow/aconfmgr) 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