These commands were tested on Linux Mint 20.03
Select the latest version which works for you: https://www.makeuseof.com/upgrade-kernel-linux-mint/
-
Add tuxinvider repo:
sudo add-apt-repository ppa:tuxinvader/lts-mainline -y
-
Run package list update:
sudo apt update
-
Use Update Manager to install & use most recent version of kernel (see above).
- Open file:
/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
- Find line:
# Values are 0 (use default), 1 (ignore/don't touch), 2 (disable) or 3 (enable).
wifi.powersave = 2
- To switch on power management change this line to:
wifi.powersave = 3
It is required for correct hardware temperature monitoring.
sudo apt install lm-sensors
sudo apt install hddtemp
For each question just press Enter.
sudo sensors-detect
At the end it will show you lines it added to config file, verify config file doesn't have double lines after this change.
To monitor sensors run:
watch sensors
sudo apt install psensor
It will spin your fans accordingly to hardware temperature.
sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt install tlp tlp-rdw
(if not needed anymore) to uninstall TLP run:
sudo apt-get remove tlp
sudo add-apt-repository --remove ppa:linrunner/tlp
When you use Windows in parallel with Linux they interfere with each other because of time zone handling differences.
One of solutions is to:
- keep Windows as-is (e.g. it handles RTC time with local time zone, synchronizes time and handles daylight saving).
- change Linux configuration to handle RTC time as with local time zone instead of default mode UTC
Run:
timedatectl
After fresh install, at the end of output you should see something like this:
RTC in local TZ: no
Run:
sudo timedatectl set-local-rtc 1
Linux stores timestamp of last file access every time you touch it, so disabling this feature is recommended for SSDs to prolong their's lifetime.
Open:
sudo nano /etc/fstab
Find line responsible for mapping your SSD:
UUID=f3381111-fb76-459a-9837-aabbccdd1234 / ext4 errors=remount-ro 0 1
Add "noatime" before "errors":
UUID=f3381111-fb76-459a-9837-aabbccdd1234 / ext4 noatime,errors=remount-ro 0 1
Check TRIM process has been run recently:
systemctl status fstrim
If not - activate timer for it's scheduled execution:
sudo systemctl enable fstrim.timer && sudo systemctl start fstrim.timer
- Change kernel ACPI configuration:
sudo nano /etc/default/grub
- find line:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
- change to:
GRUB_CMDLINE_LINUX_DEFAULT="nouveau.blacklist=1 acpi_rev_override=1 acpi_osi=Linux nouveau.modeset=0 pcie_aspm=force drm.vblankoffdelay=1 scsi_mod.use_blk_mq=1 nouveau.runpm=0 mem_sleep_default=deep"
where Linux
can be anything from list:
After this run:
sudo update-grub
-
If it doesn't help, consider also switching to "dGPU-only mode" (see below).
-
Switch off hardware acceleration in Firefox (or Chrome) if hangs appear during web browsing sessions.
See: https://support.mozilla.org/en-US/kb/hardware-acceleration-and-windowblinds-crash
If you have dual-GPU setup (iGPU + dGPU) then monitor can be ignored when working on iGPU (Intel). In order to avoid that switch to on-demand mode or dGPU only.
For nVidia:
- toolbar, nvidia icon, right-click
- "Switch-to NVIDIA On-Demand" for on-demand mode
- "Switch-to NVIDIA (Performance mode)" for dGPU only mode