Skip to content

Instantly share code, notes, and snippets.

@Polygonalr
Last active March 21, 2026 00:00
Show Gist options
  • Select an option

  • Save Polygonalr/d9c5b2a4b4bb12210ce115c8bc8fce4d to your computer and use it in GitHub Desktop.

Select an option

Save Polygonalr/d9c5b2a4b4bb12210ce115c8bc8fce4d to your computer and use it in GitHub Desktop.
Getting Kubuntu 25.04 to work probably on a system with an Nvidia GPU

Nvidia drivers stopped working after a system update

Purge everything Nvidia-related, remove PPA and reinstall via ubuntu-drivers.

sudo apt remove --purge "*nvidia*"
sudo dpkg -P --force-all $(dpkg -l | grep "nvidia-" | grep -v lib | awk '{print $2}')
sudo apt-add-repository -r ppa:graphics-drivers/ppa
sudo apt update
sudo apt autoremove
sudo ubuntu-drivers install
reboot

Firefox not utilizing GPU acceleration

Can't blame Nvidia for this, use the core24 candidate of Firefox.

sudo snap refresh --channel=latest/candidate/core24 firefox

KDE Plasma glitches out upon waking up from sleep

Create file /etc/modprobe.d/nvidia.conf with contents:

options nvidia-drm fbdev=1
options nvidia NVreg_PreserveVideoMemoryAllocations=1
options nvidia NVreg_TemporaryFilePath=/tmp

Execute:

sudo update-initramfs -u
systemctl enable nvidia-suspend.service

Verify:

❯ cat /proc/driver/nvidia/params | grep Preserve 
PreserveVideoMemoryAllocations: 1
@PurpleHel

Copy link
Copy Markdown

Hey, thanks for this! That first block of code helped me get my graphics driver working right!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment