fixes - gpk2000/Wiki GitHub Wiki

Fixes I found on the Internet

Wifi drivers in kernel 4.19.x

Thanks to this solution

This fix works only for following drivers RTL8188EE, RTL8192CE, RTL8192CU, RTL8192DE, RTL8192EE, RTL8192SE, RTL8723AE, RTL8723BE, or RTL8821AE

You'll need make, gcc, git, essential packages for building from source and linux headers. Consult your respective linux distribution for how to install them. Below commands work for debian based distributions.

sudo apt-get update
sudo apt-get install make gcc linux-headers-$(uname -r) build-essential git
git clone https://github.com/lwfinger/rtw88.git
cd rtw88
make
sudo make install
sudo modprobe -r rtw_8723de
sudo modprobe rtw_8723de
echo "options rtl8723de ant_sel=2" | sudo tee /etc/modprobe.d/rtl8723de.conf

Weird VSCode Terminal fonts when using powerlevel10k

Solution: Here


Screen tearing in Linux (for Intel-HD graphics)

Make sure to install intel video drivers

On Arch Linux based systems it is xf86-video-intel

On Debian based systems it is xserver-xorg-video-intel

On other distributions consult your distribution forums

Add the following lines in /etc/X11/xorg.conf.d/20-intel.conf (create the directory and file if it doesn't exist)

Section "Device"
  Identifier "Intel Graphics"
  Driver "intel"
  Option "TearFree" "true"
EndSection

Enable hibernation in Arch Linux based systems

Requirements:

  • Have a swap partition size at-least the size of your RAM

Edit the file /etc/mkinitcpio.conf and add resume parameter in hooks as follows

HOOKS=(base udev autodetect modconf block filesystems keyboard resume fsck)

After that execute the following command mkinitcpio -P as root

Then edit the /etc/default/grub file and add the following

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 resume=/dev/sdaX"

Where /dev/sdaX is your swap partition (in case you don't know, you can know it from the output of lsblk)

Rebuild the grub config by executing the command grub-mkconfig -o /boot/grub/grub.cfg as root.

Hibernation should work from the next reboot on wards.