You are not logged in.

#1 2018-11-19 22:49:03

Steinberg2010
Member
Registered: 2016-01-28
Posts: 73

[SOLVED] Thinkpad X1 Extreme (nvidia 1050 ti) and Xorg

I'm trying to install arch on my new x1 extreme. I currently have a bootable system with NetworkManager configured and working. I cannot figure out how to configure and start Xorg (I eventually want to run i3wm).
I'm currently getting

 fatal server error: (EE) no screens found(EE)

I'm guessing this is somehow related to the nvidia hybrid graphics (I have installed bumblebee). I have no experience of configuring this sort of hardware with arch and am unsure how to proceed.

EDIT

Just for clarity:
I have installed

xf86-video-intel

(for the integrated card)

nvidia

and

nvidia-utils
 bumblebee

and

bbswitch

(and I have enabled bumblebeed.service

Last edited by Steinberg2010 (2018-11-24 14:16:54)

Offline

#2 2018-11-20 15:20:37

mleone87
Member
From: Italy
Registered: 2012-10-30
Posts: 8

Re: [SOLVED] Thinkpad X1 Extreme (nvidia 1050 ti) and Xorg

I dont have the solution but I would install arch too.


This is what I have learned in the last few days:

1) did you switch the bios in discrete only? this seems to be the only way to install the base os without hangs.

1b) you should also install nvidia drivers and blacklist nuveau. I did not understand what works between bumblebee and bbswitch

2) with this setup you can then switch to hybrid graphics in bios but I dont know what appens then.

popOS works well with this notebook, so there is a recipe to make it working on arch too.

Offline

#3 2018-11-20 16:21:28

Steinberg2010
Member
Registered: 2016-01-28
Posts: 73

Re: [SOLVED] Thinkpad X1 Extreme (nvidia 1050 ti) and Xorg

It's currently running in hybrid (only other option is discrete only). I was able to prevent hangs with the kernel parameter

 nouveau.modeset=0

when using the installation usb. I added this parameter to my install as a precaution, but have been deleting it manually at the bootloader.

I installed the nvidia drivers - but have not tried blacklisting nouveau yet (I don't have it installed).

Offline

#4 2018-11-20 16:58:12

mleone87
Member
From: Italy
Registered: 2012-10-30
Posts: 8

Re: [SOLVED] Thinkpad X1 Extreme (nvidia 1050 ti) and Xorg

nouveau should be default one I suppose?

Offline

#5 2018-11-20 17:17:40

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [SOLVED] Thinkpad X1 Extreme (nvidia 1050 ti) and Xorg

If you've installed nvidia nouveau is already blacklisted and if you properly installed bumblebee your xorg should automatically only be started on the intel card. Please post the entire xorg log and information on how you are logging in and how you are starting X, and which config files you've set up if any, as well as

pacman -Qs nvidia
systemctl status bumblebeed

Last edited by V1del (2018-11-20 17:19:37)

Offline

#6 2018-11-20 17:43:07

Steinberg2010
Member
Registered: 2016-01-28
Posts: 73

Re: [SOLVED] Thinkpad X1 Extreme (nvidia 1050 ti) and Xorg

Ok - at work right now will check on this when I get home. What's the easiest way to post this info to the forum from a console (elinks?)

Offline

#7 2018-11-20 22:01:10

Steinberg2010
Member
Registered: 2016-01-28
Posts: 73

Re: [SOLVED] Thinkpad X1 Extreme (nvidia 1050 ti) and Xorg

Ok

 pacman -Qs nvidia

gives

local/bumblebee 3.2.1-20
local/nvidia 410.78-1
local/nvidia-utils 410.78-1
systemctl status bumbleed

says that it is active and running.

The xorg log in my home directory gives:

[   996.478] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[   996.480] 
X.Org X Server 1.20.3
X Protocol Version 11, Revision 0
[   996.483] Build Operating System: Linux Arch Linux
[   996.484] Current Operating System: Linux x1 4.19.2-arch1-1-ARCH #1 SMP PREEMPT Tue Nov 13 21:16:19 UTC 2018 x86_64
[   996.484] Kernel command line: initrd=\intel-ucode.img initrd=\initramfs-linux.img root=PARTUUID=431fc736-e4d6-0d49-9d2b-a215f3de433b  rootfstype=ext4 add_efi_memmap
[   996.486] Build Date: 25 October 2018  04:42:32PM
[   996.486]  
[   996.487] Current version of pixman: 0.34.0
[   996.489] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   996.489] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   996.493] (==) Log file: "/home/nicolas/.local/share/xorg/Xorg.0.log", Time: Tue Nov 20 17:03:37 2018
[   996.494] (==) Using config file: "/etc/X11/xorg.conf"
[   996.496] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   996.497] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   996.497] (==) ServerLayout "Layout0"
[   996.497] (**) |-->Screen "Screen0" (0)
[   996.497] (**) |   |-->Monitor "Monitor0"
[   996.497] (==) No device specified for screen "Screen0".
	Using the first device section listed.
[   996.497] (**) |   |-->Device "Nvidia Card"
[   996.497] (**) |   |-->GPUDevice "nvidia"
[   996.497] (**) |-->Input Device "Keyboard0"
[   996.497] (**) |-->Input Device "Mouse0"
[   996.497] (==) Automatically adding devices
[   996.497] (==) Automatically enabling devices
[   996.497] (==) Automatically adding GPU devices
[   996.497] (==) Automatically binding GPU devices
[   996.497] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   996.497] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/misc".
[   996.497] 	Entry deleted from font path.
[   996.497] 	(Run 'mkfontdir' on "/usr/share/fonts/misc").
[   996.497] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[   996.497] 	Entry deleted from font path.
[   996.497] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   996.497] 	Entry deleted from font path.
[   996.497] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   996.497] 	Entry deleted from font path.
[   996.497] (==) FontPath set to:
	/usr/share/fonts/100dpi,
	/usr/share/fonts/75dpi
[   996.497] (==) ModulePath set to "/usr/lib/xorg/modules"
[   996.497] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[   996.497] (WW) Disabling Keyboard0
[   996.497] (WW) Disabling Mouse0
[   996.497] (II) Module ABI versions:
[   996.497] 	X.Org ANSI C Emulation: 0.4
[   996.497] 	X.Org Video Driver: 24.0
[   996.497] 	X.Org XInput driver : 24.1
[   996.497] 	X.Org Server Extension : 10.0
[   996.498] (++) using VT number 1

[   996.499] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[   996.499] (II) xfree86: Adding drm device (/dev/dri/card0)
[   996.500] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[   996.502] (--) PCI: (0@0:2:0) 8086:3e9b:17aa:2267 rev 0, Mem @ 0x604a000000/16777216, 0x4000000000/268435456, I/O @ 0x00003000/64
[   996.502] (--) PCI:*(1@0:0:0) 10de:1c8c:17aa:2267 rev 161, Mem @ 0xa3000000/16777216, 0x60000000/268435456, 0x70000000/33554432, I/O @ 0x00002000/128, BIOS @ 0x????????/524288
[   996.502] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   996.502] (II) "glx" will be loaded by default.
[   996.502] (II) LoadModule: "modesetting"
[   996.502] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   996.502] (II) Module modesetting: vendor="X.Org Foundation"
[   996.502] 	compiled for 1.20.3, module version = 1.20.3
[   996.502] 	Module class: X.Org Video Driver
[   996.502] 	ABI class: X.Org Video Driver, version 24.0
[   996.502] (II) LoadModule: "glx"
[   996.502] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   996.503] (II) Module glx: vendor="X.Org Foundation"
[   996.503] 	compiled for 1.20.3, module version = 1.0.0
[   996.503] 	ABI class: X.Org Server Extension, version 10.0
[   996.503] (II) LoadModule: "nvidia"
[   996.503] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[   996.503] (II) Module nvidia: vendor="NVIDIA Corporation"
[   996.503] 	compiled for 4.0.2, module version = 1.0.0
[   996.503] 	Module class: X.Org Video Driver
[   996.503] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   996.503] (II) NVIDIA dlloader X Driver  410.78  Sat Nov 10 22:15:52 CST 2018
[   996.503] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   996.503] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[   996.503] (WW) Falling back to old probe method for modesetting
[   996.503] (II) Loading sub module "fb"
[   996.503] (II) LoadModule: "fb"
[   996.503] (II) Loading /usr/lib/xorg/modules/libfb.so
[   996.504] (II) Module fb: vendor="X.Org Foundation"
[   996.504] 	compiled for 1.20.3, module version = 1.0.0
[   996.504] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   996.504] (II) Loading sub module "wfb"
[   996.504] (II) LoadModule: "wfb"
[   996.504] (II) Loading /usr/lib/xorg/modules/libwfb.so
[   996.504] (II) Module wfb: vendor="X.Org Foundation"
[   996.504] 	compiled for 1.20.3, module version = 1.0.0
[   996.504] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   996.504] (II) Loading sub module "ramdac"
[   996.504] (II) LoadModule: "ramdac"
[   996.504] (II) Module "ramdac" already built-in
[   996.524] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[   996.524] (EE) NVIDIA:     system's kernel log for additional error messages and
[   996.524] (EE) NVIDIA:     consult the NVIDIA README for details.
[   996.524] (WW) Falling back to old probe method for modesetting
[   996.524] (II) modeset(G0): using drv /dev/dri/card0
[   996.524] (EE) No devices detected.
[   996.524] (EE) 
Fatal server error:
[   996.524] (EE) no screens found(EE) 
[   996.524] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   996.524] (EE) Please also check the log file at "/home/nicolas/.local/share/xorg/Xorg.0.log" for additional information.
[   996.524] (EE) 
[   996.529] (EE) Server terminated with error (1). Closing log file.

/etc/X11/xorg.conf is:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 410.73

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection
Section "Module"
	Load "modesetting"
EndSection

Section "Device"
    Identifier     "nvidia"
    Driver         "nvidia"
    BusId	"1.0.0"
    Option	"AllowEmptyInitialConfiguration"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Last edited by Steinberg2010 (2018-11-20 22:12:39)

Offline

#8 2018-11-21 08:21:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [SOLVED] Thinkpad X1 Extreme (nvidia 1050 ti) and Xorg

And that is your problem. If you are using bumblebee it sets up correct xorg configuration, you just told the x server to ignore everything set up by the packages and try to load the nvidia card with incompatible configuration. Remove that xorg.config, never run nvidia-xconfig (unless you know why you'd want to run it, because you intend to do more with a skeleton config, it never should be something that fixes anything magically nor something you run "just because").

Last edited by V1del (2018-11-21 08:32:36)

Offline

#9 2018-11-21 13:08:13

Steinberg2010
Member
Registered: 2016-01-28
Posts: 73

Re: [SOLVED] Thinkpad X1 Extreme (nvidia 1050 ti) and Xorg

Ok - I have moved /etc/X11/xorg.conf into my home directory for now under a different name.

startx

is still failing. Here's the current log output: https://ptpb.pw/f7Eg

Offline

#10 2018-11-21 13:33:27

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [SOLVED] Thinkpad X1 Extreme (nvidia 1050 ti) and Xorg

How are you starting X? Post your .xinitrc if you use startx. Post the entire output of

systemctl status bumblebeed
pacman -Qkk bumblebee
sudo journalctl -b

the other bumblebee conditions are met? (Your user is in the bumblebee group etc?)

Offline

#11 2018-11-21 13:51:40

Steinberg2010
Member
Registered: 2016-01-28
Posts: 73

Re: [SOLVED] Thinkpad X1 Extreme (nvidia 1050 ti) and Xorg

I am a member of the bumblebee group.

systemctl status bumblebeed

gives: https://ptpb.pw/wz09

pacman -Qkk bumblebee

gives https://ptpb.pw/XpYi

sudo journalctl -b

gives https://ptpb.pw/h-OK

The contents of .xinitrc are https://ptpb.pw/iOcn

I'm currently trying to start Xorg from the prompt after logging in (eventually I want to run it automatically on login without a display manager - which is how it runs on my other boxes).

Last edited by Steinberg2010 (2018-11-21 13:58:19)

Offline

#12 2018-11-21 14:26:55

Steinberg2010
Member
Registered: 2016-01-28
Posts: 73

Re: [SOLVED] Thinkpad X1 Extreme (nvidia 1050 ti) and Xorg

I also ran the

glxgears

and

glxspheres64

tests from the bumblee guide and they both failed.

Offline

#13 2018-11-21 14:47:10

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [SOLVED] Thinkpad X1 Extreme (nvidia 1050 ti) and Xorg

Decide what you want to do, these lines in your .xinitrc are for the case that you do not want to use bumblebee (which will load xorg on your intel card and disable nvidia) but want to run your system on the nvidia card entirely (with heavily increased power consumption, but relevantly increased graphics perf) this is an either or situation, remove those lines from your .xinitrc if you want to use bumblebee or remove bumblebee and bbswitch if you want to run on your nvidia card. Either way that .xinitrc is incomplete note the second blue box

Last edited by V1del (2018-11-21 14:48:23)

Offline

#14 2018-11-21 17:27:28

Steinberg2010
Member
Registered: 2016-01-28
Posts: 73

Re: [SOLVED] Thinkpad X1 Extreme (nvidia 1050 ti) and Xorg

Ok - my ideal would be to run X on my intel card. I've copied the default

.xinitrc

to

~/.xinitrc

and I have

xterm
xclock
twm

installed. My log now looks like this https://ptpb.pw/y3EL

EDIT

Also I realise previously that I had configured a

20-nvidia.conf

in my

/etc/X11/xorg.conf.d/ 

if I move this elsewhere I get the following logfile:

https://ptpb.pw/Jzln

Last edited by Steinberg2010 (2018-11-21 17:33:41)

Offline

#15 2018-11-23 13:27:46

Steinberg2010
Member
Registered: 2016-01-28
Posts: 73

Re: [SOLVED] Thinkpad X1 Extreme (nvidia 1050 ti) and Xorg

Ok - I found a solution on reddit that seems to be working. reddit.com/r/thinkpad/comments/9fos6i/x … like_linux

I added

i915

to

/etc/mkinitcpio.conf

I created

/etc/X11/xorg.conf.d/20-intel.conf

and added

Section "Device"
    Identifier "Intel Graphics"
    Driver "intel"
EndSection

My installed drivers are

xf86-video-intel
nvidia
nvidia-utils

Thanks for all your help/suggestions everyone!

Offline

#16 2018-11-23 16:24:54

mleone87
Member
From: Italy
Registered: 2012-10-30
Posts: 8

Re: [SOLVED] Thinkpad X1 Extreme (nvidia 1050 ti) and Xorg

can you resume the procedure?

there is enough to start the relative wiki page

Offline

Board footer

Powered by FluxBB