You are not logged in.

#1 2016-06-12 10:04:56

ytterbium
Member
Registered: 2016-05-29
Posts: 9

[SOLVED] Can't start Xorg

Hello,

I have just installed a fresh installation of arch, but I block on the installation of Xorg. I have a laptop with an i5-6440HQ (with integrated graphic chipset) and a nvidia GeForce 950M GPU.

At first, I wanted to do simple, and I only installed the xf86-video-intel drivers along with mesa-libgl, and vesa as a fallback. I have also installed xorg-server, xorg-utils, xorg-server-utils and xorg-apps.
So according to the wiki, it should be OK to start X.

However, when I use startx, X doesn't start and after a few time this is printed :

waiting for X server to begin accepting connection.

Then nothing happens except printing of dots.
Several minutes later, the server is finally killed.

Using htop, I found that `/usr/lib/xorg-server/Xorg.wrap -nolisten tcp :0 vt1 -auth /tmp/serverauth.jPkKMTgMSL` is running and permanently using a core (with a kernel usage).

The same problem happens when I use `Xorg :0 -configure`

My problem may be related to the fact that lspci and lshw don't work. They work in a liveUSB, but when I launch them from my installation, I have a warning (nouveau 0000:01:00.0: pci: failed to adjust lnkctl speed) and they freeze and use a full core of my processor too.

Do you have any idea to solve my problem?


The lspci got with a liveUSB:

00:00.0 Host bridge: Intel Corporation Sky Lake Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation Sky Lake PCIe Controller (x16) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Device 191b (rev 06)
00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller (rev 31)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-H Thermal subsystem (rev 31)
00:16.0 Communication controller: Intel Corporation Sunrise Point-H CSME HECI #1 (rev 31)
00:17.0 SATA controller: Intel Corporation Sunrise Point-H SATA Controller [AHCI mode] (rev 31)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #5 (rev f1)
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-H PCI Express Root Port #6 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-H LPC Controller (rev 31)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-H PMC (rev 31)
00:1f.3 Audio device: Intel Corporation Sunrise Point-H HD Audio (rev 31)
00:1f.4 SMBus: Intel Corporation Sunrise Point-H SMBus (rev 31)
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 950M] (rev a2)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5287 (rev 01)
02:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12)
03:00.0 Network controller: Intel Corporation Wireless 8260 (rev 3a)

Last edited by ytterbium (2016-06-12 23:36:17)

Offline

#2 2016-06-12 13:17:04

matthew_TKA
Member
From: Texas
Registered: 2016-06-02
Posts: 34
Website

Re: [SOLVED] Can't start Xorg

I get pretty much the same issue with my laptop with Nvidia 970M GPU.

The only way I have been able to boot into X has been by installing nvidia and bumblebee but NOT bbswitch.  The minute I install bbswitch it will hang again with no logs even if I unload the module.

This obviously will run the Nvidia GPU at all times and waste power sad.  The only workaround I haven't tried yet, but sounds like it should sorta work was mentioned here.

I just wasn't sure how safe it was to randomly send ACPI calls as noted in the linked stack overflow post.


If anyone knows of a solution to running without the Nvidia chip on these newer GPUs that would be awesome.

I have also tried PRIME but that doesn't work either.

It sounds like Ubuntu may already have a solution using vendor supplied PRIME as discussed here.  I personally haven't tried this yet either as I would prefer to avoid Ubuntu.


Hybrid graphics have been around for several years now, but there still seems to be a great deal of confusion.  I don't think the Arch wiki is up to date on the topic either.

Last edited by matthew_TKA (2016-06-12 13:20:35)


MSI GS40 6QE PHANTOM
Website

Offline

#3 2016-06-12 20:50:51

matthew_TKA
Member
From: Texas
Registered: 2016-06-02
Posts: 34
Website

Re: [SOLVED] Can't start Xorg

I finally found a hack that works well for me.  I just need to decide on the best way to automate it.

Basically if I only install the video drivers from the PRIME wiki page.  In my case xf86-video-nouveau AND xf86-video-intel and also the mesa and mesa-libgl as in the Intel Graphics wiki page.  So I be sure to uninstall nvidia, nvidia-utils, primus, bumblebee and any other thing I have there.

Then if I blacklist nvidia and nouveau by adding a file named modprobe.conf to /etc/modprobe.d/ with the following:

blacklist nvidia
blacklist nouveau

Then just build the initramfs again with mkinitcpio -p linux.


I can then log in to X as usual (oddly enough the GPU is still on at this point) then I can turn off the GPU by:

sudo modprobe nouveau

Give it a few seconds and it works.  My battery time jumps up and my indicator for GPU turns red rather then the amber color it normally has.


So now I just need to execute that modprobe step after X login.


The only downside is that it doesn't shutdown all the way any longer, but I may be able to rmmod the module again and see if that works LOL.


MSI GS40 6QE PHANTOM
Website

Offline

#4 2016-06-12 23:35:02

ytterbium
Member
Registered: 2016-05-29
Posts: 9

Re: [SOLVED] Can't start Xorg

OK, thank you a lot for your hints.

The only thing I had to do with my initial problem was to uninstall the intel drivers and install nouveau, and I could start X.

Now I have to study all your links and hints…

For my information, how do you check if the GPU is powered on or when it is in use?

Offline

#5 2016-06-12 23:40:19

matthew_TKA
Member
From: Texas
Registered: 2016-06-02
Posts: 34
Website

Re: [SOLVED] Can't start Xorg

Many systems have an indicator light of some sort.  Mine is oddly enough on the power button and it just changes color from RED to AMBER when the GPU is on.

I believe you can use the the glxinfo command much like this stackoverflow answer.


MSI GS40 6QE PHANTOM
Website

Offline

Board footer

Powered by FluxBB