My assumptions:
- You already have a screen or tty to perform the steps
- You installed arch with nvidia proprietary drivers
- You are going to use Gnome
This also works with manjaro
Lets get started
First you need to install gdm-prime
which is a patched version of gdm.
yay -S gdm-prime
Next open the gdm configuration file
sudo nano /etc/gdm/custom.conf
and uncomment the line
WaylandEnable=false
Note: install yay
using sudo pacman -S yay
Next install optimus-manager
yay -s optimus-manager
Remove everything except the file called
10-optimus-manager.conf
from /etc/X11/xorg.conf.d
(keep the keyboard files, they don’t interfere)
If you don’t have this file. Here is the one I am using to HP Omen Ryzen AMD. Download
Now lets copy the configuration file
sudo cp /usr/share/optimus-manager.conf /etc/optimus-manager/optimus-manager.conf
Next open the configuration file
sudo nano /etc/optimus-manager/optimus-manager.conf
Search and find startup_mode
and check whether it is startup_mode=nvidia
(if not, make it so)
Now lets enable and start the optimus-manager
sudo systemctl enable optimus-manager.service
sudo systemctl start optimus-manager.service
Now you may reboot the system and see whether both the Monitor and Laptop screen works. If not, comment. It is working for me so we both can figure out how to make it work.
Njoy smile