Got proprietary Nvidia drivers installed by Ubuntu itself, graphic card is recognized well by the system yet brightness control does not work when adjusted by either FN
+ F5/6
shortcut or by dragging brightness slider manually (keyboard shortcut triggers slider move as well, so it's heard by the system).
However: xrandr | grep " connected" | cut -f1 -d " "
produces single output DP-2
and xrandr --output DP-2 --brightness 0.7
does change the brightness.
Googled a lot, tried various options, neither works to me. What can I do to make it work when dragging the slider as well?
So, finally - after trying lots and lots of options - following helped me: At the
/usr/share/X11/xorg.conf.d
folder find file related to yournvidia
and append following section:You can find the name of your graphic by searching for "system" in your Ubuntu. In my case it is
GeForce GTX 1660 Ti
so in abovementioned configuration file it gonna beBoardName "GeForce GTX 1660 Ti"
- enclosed in doublequotes.Save and reboot.
Run
nvidia-settings
Select
X Server Display Configuration
Click
Save to X Configuration File
(don't clickSave
on opened dialog)Click
Show preview...
Copy
Section "Device" ... EndSection
(maybe you will need to copyMonitor
andScreen
sections)Create file
/usr/share/X11/xorg.conf.d/10-nvidia-settings.conf
and paste copied text in it, add toDevice
sectionOption "RegistryDwords" "EnableBrightnessControl=1"
, save fileAdd to file
/etc/initramfs-tools/modules
Run
sudo update-initramfs -u
Restart
If you played with file
/etc/default/grub
than try to remove allacpi...
settings fromGRUB_CMDLINE_LINUX_DEFAULT=
Description about steps 7 and 8 is here