My machine Spec:
- Alienware X15 R1
- QHD w/ GSync
- RTX3070 MaxQ
It is definitely not an easy process, as everyone is posting this issue yet there is virtually no one posting their config when their setup is working. So I hope this helps someone with a setup like mine: Intel + Nvidia + Advanced Optimus.
I will list the steps I do here:
- Disable Advanced Optimus through BIOS (mine is V1.4.0), use only dGPU mode (until Nvidia fixes hybrid)
- Ensure there is
nvidia_0
under/sys/class/backlight
. (I will expand on this in the later section) - Ensure that in
/usr/share/X11/xorg.conf.d/**-nvidia**.conf
, The optionOption "RegistryDWords" "EnableBrightnessControl=1"
is added.
If you are on manjaro
and Nvidia driver 460.xx, nvidia_0
should already be the default.
For an installation using archinstall
or via EndeavourOS ISO, I initially had acpi_video0
, acpi_video1
, acpi_video2
under /sys/class/backlight
, and that doesn't work. In kernel parameter, I changed nvidia-drm.modeset=1
to nvidia-drm.modeset=0
and nvidia_0 is detected again.
On arch linux, run sudo grub-mkconfig -o /boot/grub/grub.cfg
after changing /etc/default/grub
. On ubuntu it should be something like sudo update-grub-??
. Reboot.
The FN keys should be working now!
What did not work for me
- all the
acpi_osi
andacpi_backlight
kernel flags - i915 dpcd flags
- Nvidia driver/kernel changes
- PopOS? <-- it didn't work on PopOS as well, which is famous for their graphic compat capabilities
- various xorg server layouts
- anything to do with intel (modesetting driver, xf86-intel-video etc)
- optimus-manager or bumblebee (suggest that you avoid this)
xrandr --brightness .2
makes my eyes less sore, but it is not a real fix
I also had to fix audio by installing sof-firmware
- sudo pacman -S sof-firmware pavucontrol
, and use Pavucontrol to find the correct output.
Hope this helps someone!
Refer to https://gist.github.com/sagittaros/96e76b96f325e3c24c88f9de45a55d0f
ibt=off seems to be required
When system fails to boot, try ctrl+alt+f2 or ctrl+alt+f6 to enter cli mode. Most of the time nvidia and kernel aren't in friendly terms after an upgrade.
Refer to this when stuck https://wiki.archlinux.org/title/NVIDIA
Also, make sure to always have the lts kernal as an extra option