Skip to content

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.

2 points3 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
2 · 100% up
Kind
Text
ID
g17tti

Author

5
posts
6
comments
0
media
View profile

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.

5 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.