Essential Laptop Optimizations
Configure battery charge thresholds, browser hardware acceleration, firmware updates, and touchpad gestures on a Linux laptop.
Overview
Coming from Windows, a few things you took for granted are missing at first: vendor apps like Lenovo Vantage that limit battery charging, hardware-accelerated video playback, and easy firmware updates. Linux covers all of these natively — the kernel supports charge thresholds on ThinkPads, fwupd ships vendor firmware updates, and Chromium browsers just need one flag flipped for hardware decoding. This guide walks through each.
1. Enable Battery Protection (Charge Thresholds)
If you keep your laptop plugged in most of the time, letting the battery sit at 100% will degrade its lifespan over a few years. On Windows, apps like Lenovo Vantage handle this by limiting the charge. On Linux, this capability is built directly into the kernel for supported laptops (like ThinkPads).
How to Limit Charging to 80%
Open your terminal and run the following command to set the charge threshold. This writes the value 80 to the kernel’s power management file for your battery:
echo 80 | sudo tee /sys/class/power_supply/BAT0/charge_control_end_threshold
Note: If your laptop names its battery
BAT1instead ofBAT0, check withls /sys/class/power_supply/and adjust the path.
Tip: Resetting for travel — if you know you are going on a long trip and need the full 100% capacity, run the command again, replacing
80with100.
2. Browser Hardware Acceleration
Linux comes with excellent video drivers (like intel-media-va-driver for Intel graphics). However, web browsers (Chrome, Edge, Brave) often disable hardware-accelerated video decoding by default on Linux. This means your CPU does all the heavy lifting when watching YouTube, leading to high temperatures and rapid battery drain.
How to Force Hardware Decoding
- Open your Chromium-based browser (Chrome, Edge, or Brave).
- In the URL address bar, type
chrome://flags(oredge://flags) and press Enter. - Search for Hardware-accelerated video decode.
- Change the dropdown menu from
Defaultto Enabled. - Restart the browser.
Your graphics card now handles HD video instead of the CPU, which lowers temperatures and extends battery life.
3. BIOS and Firmware Updates
You no longer need to visit your manufacturer’s website, download an .exe file, and reboot nervously. Linux uses the fwupd daemon to fetch and install official firmware updates directly from vendors like Lenovo, Dell, and HP.
Checking for and Installing Updates
You can manage firmware directly from the terminal using these simple commands:
# 1. Refresh the list of available updates from the servers
fwupdmgr refresh
# 2. Check if your hardware has any pending updates
fwupdmgr get-updates
# 3. Apply the updates (your system may prompt you to reboot)
fwupdmgr update
Alternatively, you can open the Firmware or Update Manager GUI apps on Linux Mint to do this visually.
4. Multi-Touch Trackpad Gestures
Wayland environments have built-in 1:1 gestures, but if you are running an X11-based desktop like Linux Mint Cinnamon, you can still get excellent Mac/Windows-style gestures.
Configuring Gestures in Cinnamon
- Open System Settings and go to Gestures (Cinnamon 6.2 and newer).
- Enable the feature if prompted.
- Recommended setup for productivity:
- 3 Fingers Swipe UP: Set to Show Workspaces.
- 3 Fingers Swipe DOWN: Set to Show all Windows (similar to Windows Task View).
- 3 Fingers Swipe LEFT/RIGHT: Set to Switch between workspaces.
This configuration makes navigating with the trackpad feel close to the Windows experience and removes the need to click around for window management.
Discussion