How to make X work with intel/nvidia gpu madness?
I have a Dell 5530 with integrated Intel 630 and Nvidia P2000m.
I’ve got a vanilla arch kernel 5.6.x running with:
- base
- linux
- linux-firmware
- xorg-xserver
- xorg-xinit
- xorg-fonts
- xorg-xrandr
- i3
I have not installed any intel-xf86 or nvidia drivers.
~/.xinitrc
exec i3
When I run startx X crashes with:
could not resolve keysym XF86FullScreen
I can’t see anything obvious in the X log file but in dmesg I can see nouveau errors.
After hours of googling I’ve learnt that I have what’s called a NVIDIA Optimus graphics config. By default arch is using the modesetting kernel driver for the Intel GPU and nouveau for the NVIDIA GPU. The wiki seems to suggest the latter is the issue.
I could really use some guidance on how to best configure the graphics so that X will work.
I need the internal laptop screen to work and for an external hdmi screen/projector to work when necessary (presentations). I don’t play games but watch videos e.g YouTube and video conferencing.
From the wiki it seems that if I disable the Nvidia GPU I won’t be able to use an external display. That’s not an option.
Is [Prime render offload](https://wiki.archlinux.org/index.php/PRIME#PRIME_render_offload the approach) what I should follow?
Very grateful for your help!
UPDATE 1 Just so I don’t hear I haven’t tried I just did the following AFAIU the wiki instructions:
pacman -S nvidia nvidia-prime
reboot
After tty login black screen caps lock blinking. \o/
UPDATE 2
Ok kernel panic was due to the nvidia driver not blacklisting nouveau as it said it would in the wiki :( manual blacklist created and it booted.
xrandr —listproviders
Can’t open display
BUT startx still fails 😡
Edited 14 Apr 2020. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 2 · 100% up
- Kind
- Text
- ID
- g17tti
4 comments
Note that the Dell 5530 can't use the Nvidia GPU for display as it does not have a video output (crazy right?). It's a compute only dedicated GPU.
It's the only laptop I know of that uses that configuration and this is not an optimus configuration. You should be able to use an external display even if you disable the nvidia gpu. But I never tried.
Deleted before we saved it.
I've got an optimus laptop myself, and I've installed
nvidia-xrun(package should be in AUR). Relevant wiki section: https://wiki.archlinux.org/index.php/Nvidia-xrun .Basically, my nvidia card is always off, and when I want to game, I fire
nvidia-xrun openboxin another tty and I'm good to go.Optimus manager is the best option for optimus laptops. It works flawless!
https://github.com/Askannz/optimus-manager