Advertisement
Kimarite

nvidia-settings | Ubuntu 24.04 Noble

May 18th, 2024 (edited)
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | Software | 0 0
  1. *** Problems (for example)
  2.  
  3. Unable to open X config file '/etc/X11/xorg.conf' for writing.
  4.  
  5. Error executing /usr/share/screen-resolution-extra/nvidia-polkit: Permission denied
  6.  
  7. *** Fixit
  8.  
  9. sudo chmod u+x /usr/share/screen-resolution-extra/nvidia-polkit
  10.  
  11. *** Problems with config files (is empty)
  12.  
  13. First step is reinstall Screen Resolution Extra Package | [screen-resolution-extra_0.18.3.tar.gz]
  14. https://packages.ubuntu.com/noble/screen-resolution-extra
  15.  
  16. sudo apt-get install --reinstall screen-resolution-extra
  17.  
  18. and second steps is...
  19.  
  20. *** Backups
  21.  
  22. sudo cp /usr/share/screen-resolution-extra/nvidia-polkit /usr/share/screen-resolution-extra/nvidia-polkit.ORIG
  23.  
  24. sudo cp /usr/share/polkit-1/actions/com.ubuntu.screen-resolution-extra.policy /usr/share/polkit-1/actions/com.ubuntu.screen-resolution-extra.policy.ORIG
  25.  
  26. *** Download and copy the files
  27.  
  28. wget -O nvidia-polkit https://pastebin.com/raw/M80a5MU1 ; sudo cp nvidia-polkit /usr/share/screen-resolution-extra/nvidia-polkit
  29.  
  30. wget -O com.ubuntu.screen-resolution-extra.policy https://pastebin.com/raw/f6Kk6qZ3 ; sudo cp com.ubuntu.screen-resolution-extra.policy /usr/share/polkit-1/actions/com.ubuntu.screen-resolution-extra.policy
  31.  
  32. *** PolicyKit | restart service (or restart the Linux)
  33.  
  34. sudo systemctl restart polkit
  35.  
  36. *** Nvidia Setting | start / use
  37.  
  38. pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY nvidia-settings
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement