I had this problem myself and solved it with this guide
This should be on the Manjaro wiki but it is not. Attention that I did not figure it out myself I will just post the info here so it is reachable.
Step 1:
Delete the current video driver.
$ sudo mhwd -r pci video-hybrid-intel-nvidia-bumblebee
Step 2:
Install video-nvidia.
$ sudo mhwd -i pci video-nvidia -f
Step 3:
Find your correct BUS ID:
$ lspci | grep -E "VGA|3D"
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 3D controller: NVIDIA Corporation GM204M [GeForce GTX 980M] (rev a1)
Step 4:
Edit config for NVIDIA Prime Synchronization as well as screen tearing fix. Accelmethod might give you problems with SNA depending on your hardware. If so, change to UXA. The AllowEmptyInitialConfiguration must go into the Screen section as stated on Nvidia website.
$ cat /etc/X11/xorg.conf.d/90-mhwd.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 375.26
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0:2:0"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration" "true"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
Section "Extensions"
Option "Composite" "Enable"
Option "RENDER" "Enable"
EndSection
Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "yes"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
Step 5:
Make the X server use KMS with root rights.
$ cat /etc/X11/Xwrapper.config
needs_root_rights = yes
Step 6:
Add the xrandr lines to SDDM config and than reboot after:
$ cat /usr/share/sddm/scripts/Xsetup
#!/bin/sh
# Xsetup - run as root before the login dialog appears
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
Step 7:
Put this in for GRUB settings for KMS and performance.
GRUB_CMDLINE_LINUX_DEFAULT="i915.enable_rc6=0 nvidia-drm.modeset=1 intel_idle.max_cstate=0"
Step 8:
Add i915 and nvidia to mkinitcpio
MODULES="i915 nvidia nvidia_modeset nvidia_uvm nvidia_drm"
Step 9: Reboot and enjoy.
Best Answer
There are many ways to do this, but since it seems that your graphics card is made by Nvidia, I think the way which works best is the following (assuming you use
nvidia
-driver):10-brightness.conf
to/etc/X11/xorg.conf.d/
Write the following lines to the file you just created:
Now restart X (use
pkill X
to kill X, and then display manager should cause new instance of X to be spawned. If you don't have a display manager (such as GDM, KDM), then log in to virtual console and writestartx
) or reboot your computer, and then you should be able to adjust the brightness of backlight by hitting brightness keys.Another way of doing it
This way should work with all graphics cards, and this is also some kind of fallback way if your brightness keys don't work.
Note: In the following commands,
#
states for root prompt, although you actually don't need root rights until the last point, andacpi_video0
is just placeholder for the actual card name, replace it with the name you will find in the point 1.To find the card which manages the screen, run this command:
There should be only one entry, so it's the card.
To find the maximum brightness, run this command:
This command often prints 15.
To adjust the brightness, run this command (as root, as stated previously):
You can echo there any number you want, although the screen cannot be brighter than its maximum brightness, so if you echo higher number, say 50, there, the screen should just set its brightness to the maximum.
Sources