Hey everyone! I just finished a deep optimization of Ubuntu Unity 24.04 on my Dell Latitude 7420 (i7-1165G7). If you're using modern Intel hardware and want to balance heavy 4K rendering with long battery life for writing/research, here is the ultimate workflow.
Why these changes?
Standard Ubuntu is great, but it doesn't always handle the power states of 11th Gen Intel (Tiger Lake) perfectly out of the box, especially regarding the Iris Xe graphics. These tweaks ensure the laptop stays cool at 35°C during light tasks and unleashes full power when plugged in.
1. The Core Update & Snap Support
First, we ensure the base is solid.
Bash
sudo apt update && sudo apt upgrade -y sudo apt install -y snapd
-
Reason: Unity users often choose minimal installs. We need to ensure
snapdis active for the best way to manage power daemons.
2. Intelligent Power Management (The Battery Secret)
Forget TLP or the default Power-Profiles-Daemon. We use auto-cpufreq.
Bash
sudo snap install auto-cpufreq sudo auto-cpufreq --install
-
Why: This tool actively monitors your CPU. On battery, it disables Turbo Boost and uses the "powersave" governor. When plugged in, it automatically switches to "performance". It’s the best way to stop the i7 from "jumping" frequencies and wasting energy while you're just typing or browsing.
3. Unleashing Iris Xe (VA-API Non-Free)
If you edit 4K video, this is mandatory.
Bash
sudo apt install -y intel-media-va-driver-non-free libva-glx2 libva-x11-2 vainfo sudo apt install -y ubuntu-restricted-extras
-
Why: The standard driver is "free", but the
non-freeversion provides full hardware acceleration for H.264/HEVC/AV1. -
Benefit: Your GPU handles the video decode/encode. Your CPU stays free, the laptop doesn't heat up, and rendering is 3x faster.
-
Verify: Run
vainfoto see the Intel iHD driver in action.
4. System Responsiveness (Swappiness)
Bash
sudo bash -c "echo 'vm.swappiness=10' >> /etc/sysctl.conf" sudo sysctl -p
-
Why: By default, Linux starts moving data to Swap when RAM is at 40% usage (swappiness=60). For an SSD-based system, this is unnecessary. Setting it to
10forces the system to use your fast RAM as much as possible, making the Unity desktop feel way snappier when multitasking.
Bonus: The "Unstoppable" Boot USB
If you're having trouble creating your Unity USB on other distros (like Manjaro), don't use GUI tools. Use the terminal:
Bash
# Identify your drive with lsblk, then: sudo wipefs -a /dev/sdX sudo dd bs=4M if=ubuntu-unity-24.04.iso of=/dev/sdX status=progress oflag=sync
-
Why:
ddwrites bit-by-bit and bypasses filesystem mount errors that often plague BalenaEtcher or Rufus.
Current Results on my Latitude 7420:
-
Idle Temp: 35°C
-
Light Work Discharge: ~0.26W (incredible for an i7)
-
Workflow: Smooth as silk.
Hope this helps anyone looking to squeeze every drop of performance out of the Unity desktop!