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.
About this post
- Posted
- Archived
- Edited
- Score
- 1 · 100% up
- Kind
- Text
- ID
- ecimi2
9 comments
Have you tried optimus-manager? It solved all my problems.
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
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.
I’m not sure how to help you but there is a similar PSA that was posted here: https://www.reddit.com/r/linux_gaming/comments/eca0wh/psa_use_nvidias_own_power_switcher_on_optimus/?utm_source=share&utm_medium=ios_app&utm_name=iossmf
I saw that, but I think it's a power management thing rather than a driver issue (which is what I think I'm dealing with). Thanks though!
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.
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.
Had a similar issue. Lots of frustration. I've gone with the nouveau drivers instead. It works (don't ask me why)
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.