Skip to content

Instantly share code, notes, and snippets.

@rafalimaz
Last active July 31, 2023 18:16
Show Gist options
  • Save rafalimaz/763c2786d1835ed400c3c8ac9fdc6b2f to your computer and use it in GitHub Desktop.
Save rafalimaz/763c2786d1835ed400c3c8ac9fdc6b2f to your computer and use it in GitHub Desktop.
Solve problem: Monitor not working with Ubuntu
After connect HDMI cable, the monitor was working with Windows System, but not working on Linux (I run dual boot on a Acer Predator)
My GPU is an RTX2060 and I also have Intel onboard card installed.
So I tried to check GPU nvidia driver and card status. In the Additional Drivers tab it was not showing any information. I tried to run
a lot of commands such as:
nvidia-settings
nvidia-smi
prime-select
xrandr
bumblubee
At last, I could realize that GPU driver was not being opened bu bumblubee. Than I found this post:
https://askubuntu.com/questions/902636/nvidia-smi-command-not-found-ubuntu-16-04
And tried the first solution
sudo apt purge nvidia-*
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install nvidia-381
After add the repository i could not install the driver suggested (nvidia-381). Then I checked again on Additional Drivers tab on Software & Updates
and it was showing fresh drivers, including 510 and 470. I then tried 510 but got error. Tried 470 it worked. It also asked
a password to disable secure boot in order to install the driver.
When I reboot the system it showed a screen to enroll MOK. At first I continued boot, but then I did the same process again and choose
enroll MOK, put the password and it worked, finally.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment