Skip to content

At my wit's end trying to install Arch with Optimus laptop

Hi, as the title says, I've spent the better part of two days trying to install Arch on my laptop, and I could really use some help.

My main issue is that I have no idea what to do when I install Xorg. I think I'm following the wiki instructions well, which says to install xorg-server (which I'm then trying to launch into plasma via sddm), but then I'm not sure what to do with the video drivers. I'm installing on an Optimus laptop with Intel HD Graphics 620 + Nvidia Geforce 940MX, so I think I need mesa and xf86-video-intel for sure. But Plasma then puts me into a black screen, with which I can get krunner to open, but crashes when I try and interact with it. (Typing, clicking on it.)

I then try the Nvidia Optimus/PRIME render offload setup, so I install nvidia-prime, and, same issues. Then, I think the nvidia-prime setup implies that I should install the nvidia drivers too, which, okay, I do, and sddm won't even start up then. So, yeah, I have no idea what to do. I suppose I might need an xorg.conf to sort this out, but I wouldn't know what to put in it? Also, if there's any way I can get this to work without an xorg.conf, that'd be nice...

EDIT: Xorg.0.log https://pastebin.com/6xvWCA7e

EDIT 2: Fixed, see here.

Edited 21 Dec 2019. We only hold this version.

1 points9 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
1 · 100% up
Kind
Text
ID
ecimi2

Author

3
posts
25
comments
0
media
View profile

9 comments

Have you tried optimus-manager? It solved all my problems.

2 points

I looked into it, and I didn't think it'd help; I can't even get any video output working, let alone switching between them. It's definitely on the list of things to try though

1 points

I messed up trying to get it to work with every solution on the Arch Wiki. I just didn't want to use open source drivers.

Finally I didn't clean install, booting up with nomodeset enabled. Installed the Intel, mesa and Nvidia drivers. And then optimus-manager.

1 points

Sometimes Xorg borks when both intel and nvidia is present. From Xorg.log it seems your case is also that. Blacklist all nvidia related modules (nouveau, nvidia etc) in a config file in /etc/modprobe.d/ . At this point your Xorg should start with Intel only and you should have at least a desktop to use. You can try nvidia-xrun for running Xorg with Nvidia GPUs.

2 points

I'm convinced it's not a driver issue any more; I uninstalled all the driver packages - so I'm now down to the modesetting driver - and tried Xfce, which worked, under both sddm and lightdm (but plasma failed under both). So... it's now an issue with Kwin/Plasma, it seems.

1 points

Had a similar issue. Lots of frustration. I've gone with the nouveau drivers instead. It works (don't ask me why)

2 points

You should definitely install optimus manager. I used to have the same problem of getting a black screen after installing propreitory Nvidia drivers on a fresh install.

What Optimus Manager does is it auto sets up the configuration files for you and has safeguards built in to switch to the Intel video driver if it cannot load the nvidia module, so worst case scenario you are gonna get a display output on your screen with the Intel GPU if your Nvidia driver doesn't load.

I think in your current scenario, if you wanna check, you could try connecting your laptop to a display through HDMI. You'll notice that you get output in the display. Thats because the configuration files are misconfigured and don't recognise that they are supposed to be outputting to the laptop display. Optimus manager fixes that for you.

If you don't wanna install Optimus You could grab a working config from someone who has nvidia set up and replace the PCI id with your own and it should work. Definitely the harder way to do things if you ask me.

Tldr:Install Nvidia propreitory driver and try optimus-manager. It should definitely work.

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.