Advertisement
Mr_Djole

Untitled

Apr 1st, 2023
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. 404OP
  2. 03/20/2023 10:04 AM
  3. As you know, NIX systems are known to be very bad when it comes to out-of-the-box driver support.
  4.  
  5. A fatal bug that STILL exists in ubuntu-drivers, even in the latest Ubuntu release, can render the whole user's ui frozen in darkness, due to improper configuration. (aka Black Screen)
  6.  
  7. What you have to do is to manually patch your system as follows:
  8.  
  9. ⚠️ Ubuntu developers are lazy sometimes ⚠️
  10.  
  11. ⚠️ Never ever install **nvidia open kernel*** drivers if you are an ordinary user and not some developer. Its slow and buggy atm of writing. Use the recommanded version, but proprietary version instead of open, if it recommanded you.
  12.  
  13. # Blacklist nouveau driver
  14. # You will jot get blackscreen by disabling this driver, as nouveau is part of nvidia. Fallback is Intel iGPU, so you are safe.
  15. sudo tee /etc/modprobe.d/blacklist-nvidia-nouveau.conf << EOF > /dev/null
  16. blacklist nouveau
  17.  
  18. options nouveau modeset=0
  19. EOF
  20.  
  21. # reboot
  22. sudo reboot
  23.  
  24.  
  25.  
  26.  
  27. # If you have default ubuntu install, you do not need to replace "lightdm"
  28.  
  29. sudo service lightdm stop
  30.  
  31. # Enter CLI mode. You will need to re-enter your username and password ti proceed
  32.  
  33. sudo init 3
  34.  
  35. # The best practice is to install the latest NON OPEN proprietary driver. (but it does not always work)
  36. # SERVER driver is NOT for desktop users.
  37.  
  38. # Install dependencies
  39. sudo apt update
  40. sudo apt install dialog pkg-config build-essential
  41.  
  42. read -p "Choose between autoinstall (1) and semiautomatic install (2) : " opt
  43.  
  44. case $opt in
  45.  
  46. 1)
  47. sudo ubuntu-drivers autoinstall
  48. ;;
  49.  
  50. 2)
  51. sudo apt install nvidia-driver-525
  52.  
  53. *)
  54. echo "Unknown option"
  55. exit 1
  56.  
  57. esac
  58.  
  59. # reboot
  60. sudo reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement