You are not logged in.

#1 2018-12-25 07:05:58

cdyrssen
Member
Registered: 2018-12-25
Posts: 8

GDM won't start i3 but will start Gnome - Xorg issue? [Solved]

Hello all,

First time posting and I hope this is the right place for this, but I am not having any luck resolving my issue. My machine is a Dell Inspiron 5577. I have gone through the steps on the Arch wiki here and here to setup Bumblebee for a Nvidia Optimus graphics card. Prior to setting up bumblebee I had a working installation of i3. Now everything seems to be working fine in Gnome, as I can use optirun to run a program on the dedicated GPU instead of the integrated GPU. However, I when switching to i3 (specifically i3-gaps) and logging in with my credentials from GDM I am just brought straight back to the GDM login screen. Even if I disable GDM and try "startx /usr/bin/i3" the machine just stalls until I press ctl+c to cancel the command. It does, however, state that there was an error and to check the "/var/log/Xorg.0.log" file for more information. The contents of that log file are:

[    18.266] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[    18.266] 
X.Org X Server 1.20.3
X Protocol Version 11, Revision 0
[    18.266] Build Operating System: Linux Arch Linux
[    18.267] Current Operating System: Linux Kodia 4.19.12-arch1-1-ARCH #1 SMP PREEMPT Fri Dec 21 13:56:54 UTC 2018 x86_64
[    18.267] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=ac25e205-797d-4a88-bf74-79ff1d3255cc rw quiet
[    18.267] Build Date: 25 October 2018  04:42:32PM
[    18.267]  
[    18.267] Current version of pixman: 0.36.0
[    18.267] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    18.267] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    18.268] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Dec 24 16:45:12 2018
[    18.271] (==) Using config file: "/etc/X11/xorg.conf"
[    18.271] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    18.272] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    18.273] (==) No Layout section.  Using the first Screen section.
[    18.273] (==) No screen section available. Using defaults.
[    18.273] (**) |-->Screen "Default Screen Section" (0)
[    18.273] (**) |   |-->Monitor "<default monitor>"
[    18.275] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[    18.275] (**) |   |-->Device "Nvidia Card"
[    18.275] (**) |   |-->GPUDevice "nvidia"
[    18.275] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[    18.275] (==) Automatically adding devices
[    18.275] (==) Automatically enabling devices
[    18.275] (==) Automatically adding GPU devices
[    18.275] (==) Automatically binding GPU devices
[    18.275] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    18.277] (WW) The directory "/usr/share/fonts/misc" does not exist.
[    18.277] 	Entry deleted from font path.
[    18.278] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[    18.278] 	Entry deleted from font path.
[    18.278] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[    18.278] 	Entry deleted from font path.
[    18.279] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[    18.279] 	Entry deleted from font path.
[    18.279] (==) FontPath set to:
	/usr/share/fonts/TTF,
	/usr/share/fonts/OTF
[    18.279] (==) ModulePath set to "/usr/lib/xorg/modules"
[    18.279] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    18.279] (II) Module ABI versions:
[    18.279] 	X.Org ANSI C Emulation: 0.4
[    18.279] 	X.Org Video Driver: 24.0
[    18.279] 	X.Org XInput driver : 24.1
[    18.279] 	X.Org Server Extension : 10.0
[    18.280] (++) using VT number 1

[    18.284] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[    18.285] (II) xfree86: Adding drm device (/dev/dri/card0)
[    18.286] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[    18.292] (--) PCI:*(0@0:2:0) 8086:591b:1028:07e1 rev 4, Mem @ 0xdd000000/16777216, 0xb0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[    18.292] (--) PCI: (1@0:0:0) 10de:1c8d:1028:07e1 rev 161, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[    18.292] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    18.292] (II) "glx" will be loaded by default.
[    18.292] (II) LoadModule: "modesetting"
[    18.295] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    18.301] (II) Module modesetting: vendor="X.Org Foundation"
[    18.301] 	compiled for 1.20.3, module version = 1.20.3
[    18.301] 	Module class: X.Org Video Driver
[    18.301] 	ABI class: X.Org Video Driver, version 24.0
[    18.301] (II) LoadModule: "glx"
[    18.301] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    18.318] (II) Module glx: vendor="X.Org Foundation"
[    18.318] 	compiled for 1.20.3, module version = 1.0.0
[    18.318] 	ABI class: X.Org Server Extension, version 10.0
[    18.318] (II) LoadModule: "nvidia"
[    18.319] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[    18.329] (II) Module nvidia: vendor="NVIDIA Corporation"
[    18.329] 	compiled for 4.0.2, module version = 1.0.0
[    18.329] 	Module class: X.Org Video Driver
[    18.330] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    18.331] (II) NVIDIA dlloader X Driver  415.25  Wed Dec 12 10:05:51 CST 2018
[    18.331] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    18.332] (WW) Falling back to old probe method for modesetting
[    18.332] (WW) Falling back to old probe method for modesetting
[    18.332] (II) modeset(G0): using drv /dev/dri/card0
[    18.332] (EE) No devices detected.
[    18.332] (EE) 
Fatal server error:
[    18.333] (EE) no screens found(EE) 
[    18.333] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[    18.333] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    18.333] (EE) 
[    18.357] (EE) Server terminated with error (1). Closing log file.

It seems to me that i3 cannot find my laptop's screen? But Gnome has no problems finding it. I am at a bit of a loss as to what I am missing and am hoping someone here can point me in the right direction to get i3 up and working again.

Last edited by cdyrssen (2018-12-25 20:07:38)

Offline

#2 2018-12-25 09:07:00

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,807

Re: GDM won't start i3 but will start Gnome - Xorg issue? [Solved]

[    18.271] (==) Using config file: "/etc/X11/xorg.conf"
…
	Using the first device section listed.
[    18.275] (**) |   |-->Device "Nvidia Card"
[    18.275] (**) |   |-->GPUDevice "nvidia"

You've an xorg.conf around (probably written by nvidia-xconfig) which tries to use the nvidia GPU, but that's initially deactivated by the bumblebee setup.
Move away that config.

Offline

#3 2018-12-25 09:54:50

cdyrssen
Member
Registered: 2018-12-25
Posts: 8

Re: GDM won't start i3 but will start Gnome - Xorg issue? [Solved]

I didn't use nvidia-xconfig to generate that file as I had read others noting that it is not a very good tool. Instead I manually generated the file with these contents as per the Nvidia Optimus Arch Wiki page:

Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "01:00.0"
    Option "AllowEmptyInitialConfiguration"
EndSection

I used this output from the "lspci" command to find my nvidia GPU BusID:

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 05)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 05)
00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 05)
00:14.0 USB controller: Intel Corporation 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller (rev 31)
00:14.2 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Thermal Subsystem (rev 31)
00:15.0 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Serial IO I2C Controller #0 (rev 31)
00:16.0 Communication controller: Intel Corporation 100 Series/C230 Series Chipset Family MEI Controller #1 (rev 31)
00:17.0 SATA controller: Intel Corporation HM170/QM170 Chipset SATA Controller [AHCI Mode] (rev 31)
00:1c.0 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #5 (rev f1)
00:1c.5 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #6 (rev f1)
00:1e.0 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Serial IO UART #0 (rev 31)
00:1f.0 ISA bridge: Intel Corporation HM175 Chipset LPC/eSPI Controller (rev 31)
00:1f.2 Memory controller: Intel Corporation 100 Series/C230 Series Chipset Family Power Management Controller (rev 31)
00:1f.3 Audio device: Intel Corporation CM238 HD Audio Controller (rev 31)
00:1f.4 SMBus: Intel Corporation 100 Series/C230 Series Chipset Family SMBus (rev 31)
01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
03:00.0 Network controller: Intel Corporation Wireless 3165 (rev 79)

I also tried using my integrated intel GPU BusID "00:02.0". Both of these configurations as well as removing the xorg.conf file completely has produced the same results.

Any other thoughts?

Offline

#4 2018-12-25 09:58:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,807

Re: GDM won't start i3 but will start Gnome - Xorg issue? [Solved]

Yes, remove that file.
You've got it from the optimus section labeled "Using nvidia" - which you're not. You do, by your own account "setup Bumblebee for a Nvidia Optimus graphics card".

Offline

#5 2018-12-25 10:06:11

cdyrssen
Member
Registered: 2018-12-25
Posts: 8

Re: GDM won't start i3 but will start Gnome - Xorg issue? [Solved]

I think you misunderstood. I have tried removing that file and it did not change anything. I also tried it with that file using two different BusIDs: one for the nvidia GPU and one for the intel GPU. None of these three configurations have been able to successfully start i3.

edit1: grammar

edit2: A follow up question. Since I am being told not to use the xorg.conf file from the "Using nvidia" section, should I also remove the two desktop files it had me create for GDM at these two locations:
/usr/share/gdm/greeter/autostart/optimus.desktop
/etc/xdg/autostart/optimus.desktop

Their contents are:

[Desktop Entry]
Type=Application
Name=Optimus
Exec=sh -c "xrandr --setprovideroutputsource modesetting NVIDIA-0; xrandr --auto"
NoDisplay=true
X-GNOME-Autostart-Phase=DisplayServer

edit3: Removing the above desktop files does not seem to change anything.

Last edited by cdyrssen (2018-12-25 10:29:39)

Offline

#6 2018-12-25 11:46:24

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,378

Re: GDM won't start i3 but will start Gnome - Xorg issue? [Solved]

New xorg.log after having moved all these files away?

Also for completeness sake, it shouldn't be working fine with gnome either, however that is likely masked by the fact that you are starting GNOME on Wayland as opposed to xorg.

Last edited by V1del (2018-12-25 11:48:54)

Offline

#7 2018-12-25 17:38:17

cdyrssen
Member
Registered: 2018-12-25
Posts: 8

Re: GDM won't start i3 but will start Gnome - Xorg issue? [Solved]

Updated log:

[    27.409] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[    27.410] 
X.Org X Server 1.20.3
X Protocol Version 11, Revision 0
[    27.410] Build Operating System: Linux Arch Linux
[    27.410] Current Operating System: Linux Kodia 4.19.12-arch1-1-ARCH #1 SMP PREEMPT Fri Dec 21 13:56:54 UTC 2018 x86_64
[    27.410] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=ac25e205-797d-4a88-bf74-79ff1d3255cc rw quiet
[    27.411] Build Date: 25 October 2018  04:42:32PM
[    27.411]  
[    27.411] Current version of pixman: 0.36.0
[    27.411] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    27.411] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    27.412] (==) Log file: "/home/toffer/.local/share/xorg/Xorg.0.log", Time: Tue Dec 25 11:25:21 2018
[    27.414] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    27.414] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    27.416] (==) No Layout section.  Using the first Screen section.
[    27.416] (==) No screen section available. Using defaults.
[    27.416] (**) |-->Screen "Default Screen Section" (0)
[    27.416] (**) |   |-->Monitor "<default monitor>"
[    27.417] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[    27.417] (**) |   |-->Device "Nvidia Card"
[    27.417] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[    27.417] (==) Automatically adding devices
[    27.417] (==) Automatically enabling devices
[    27.417] (==) Automatically adding GPU devices
[    27.417] (==) Automatically binding GPU devices
[    27.417] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    27.419] (WW) The directory "/usr/share/fonts/misc" does not exist.
[    27.419] 	Entry deleted from font path.
[    27.421] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[    27.421] 	Entry deleted from font path.
[    27.421] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[    27.421] 	Entry deleted from font path.
[    27.421] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[    27.421] 	Entry deleted from font path.
[    27.421] (==) FontPath set to:
	/usr/share/fonts/TTF,
	/usr/share/fonts/OTF
[    27.421] (==) ModulePath set to "/usr/lib/xorg/modules"
[    27.421] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    27.421] (II) Module ABI versions:
[    27.421] 	X.Org ANSI C Emulation: 0.4
[    27.421] 	X.Org Video Driver: 24.0
[    27.421] 	X.Org XInput driver : 24.1
[    27.421] 	X.Org Server Extension : 10.0
[    27.422] (++) using VT number 1

[    27.426] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[    27.426] (II) xfree86: Adding drm device (/dev/dri/card0)
[    27.427] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[    27.429] (--) PCI:*(0@0:2:0) 8086:591b:1028:07e1 rev 4, Mem @ 0xdd000000/16777216, 0xb0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[    27.429] (--) PCI: (1@0:0:0) 10de:1c8d:1028:07e1 rev 161, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[    27.429] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    27.429] (II) LoadModule: "glx"
[    27.434] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    27.453] (II) Module glx: vendor="X.Org Foundation"
[    27.453] 	compiled for 1.20.3, module version = 1.0.0
[    27.453] 	ABI class: X.Org Server Extension, version 10.0
[    27.453] (II) LoadModule: "nvidia"
[    27.453] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[    27.463] (II) Module nvidia: vendor="NVIDIA Corporation"
[    27.463] 	compiled for 4.0.2, module version = 1.0.0
[    27.463] 	Module class: X.Org Video Driver
[    27.466] (II) NVIDIA dlloader X Driver  415.25  Wed Dec 12 10:05:51 CST 2018
[    27.466] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    27.467] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[    27.467] (EE) No devices detected.
[    27.467] (EE) 
Fatal server error:
[    27.467] (EE) no screens found(EE) 
[    27.467] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[    27.467] (EE) Please also check the log file at "/home/toffer/.local/share/xorg/Xorg.0.log" for additional information.
[    27.467] (EE) 
[    27.493] (EE) Server terminated with error (1). Closing log file.

I checked to see if xorg or wayland was being used for Gnome and it in fact was being powered by wayland. Attempting to log in with gnome on xorg gave the same results as trying to log into i3.

Offline

#8 2018-12-25 17:54:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,807

Re: GDM won't start i3 but will start Gnome - Xorg issue? [Solved]

Something's still pulling the nvidia driver:

grep -ir nvidia /etc/X11/xorg.conf.d /usr/share/X11/xorg.conf.d

Offline

#9 2018-12-25 18:18:47

cdyrssen
Member
Registered: 2018-12-25
Posts: 8

Re: GDM won't start i3 but will start Gnome - Xorg issue? [Solved]

grep -ir nvidia /etc/X11/xorg.conf.d /usr/share/X11/xorg.conf.d

Output:

/etc/X11/xorg.conf.d/20-nvidia.conf:        Identifier "Nvidia Card"
/etc/X11/xorg.conf.d/20-nvidia.conf:        Driver "nvidia"
/etc/X11/xorg.conf.d/20-nvidia.conf:        VendorName "NVIDIA Corporation"
/usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf:    Identifier "nvidia"
/usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf:    MatchDriver "nvidia-drm"
/usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf:    Driver "nvidia"
/usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf:    ModulePath "/usr/lib/nvidia/xorg"

Offline

#10 2018-12-25 18:52:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,807

Re: GDM won't start i3 but will start Gnome - Xorg issue? [Solved]

Move away the /etc/X11/xorg.conf.d/20-nvidia.conf?
(/usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf should be from nvidia-utils and not kick in here because nvidia-drm shouldn't be loaded)

Offline

#11 2018-12-25 20:07:02

cdyrssen
Member
Registered: 2018-12-25
Posts: 8

Re: GDM won't start i3 but will start Gnome - Xorg issue? [Solved]

That seems to have fixed things. Thanks for all the help! This issue is resolved.

Offline

Board footer

Powered by FluxBB