You are not logged in.

#1 2018-11-16 15:19:24

penguin
Member
From: Gotham City
Registered: 2010-12-31
Posts: 163

[SOLVED] re-installed packages & xorg.conf now nvidia doesn't work

Hi!

I just moved my hard drive to a new laptop (almost the same model), and although I booted into X11/xorg fine, I didn't have working CUDA, so I thought I'd remove nvidia and cuda, and re-install. I also updated my /etc/mkinitcpio.conf as I had a .pacnew version (that switches HOOKS="..." to HOOKS=(...)) I re-generated the xorg config, and linux image file with:

sudo pacman -Rsc nvidia nvidia-settings nvidia-utils cuda cudnn cudnn6 python-tensorflow-cuda python-pytorch-cuda
sudo pacman -S nvidia nvidia-settings nvidia-utils
sudo mkinitcpio -p linux
sudo nvidia-xconfig

But now I can not boot into graphical X11/xorg, instead I'm dropped into TTY/cmdline.

My log:

[   266.117] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[   266.118]
X.Org X Server 1.20.3
X Protocol Version 11, Revision 0
[   266.118] Build Operating System: Linux Arch Linux
[   266.118] Current Operating System: Linux dell 4.14.81-1-lts #1 SMP Tue Nov 13 21:23:49 CET 2018 x86_64
[   266.118] Kernel command line: BOOT_IMAGE=/vmlinuz-linux-lts root=UUID=aba143b4-b869-4687-a370-04ceb2c4df29 rw video=1280x1024 rcutree.rcu_idle_gp_delay=1
[   266.118] Build Date: 25 October 2018  04:42:32PM
[   266.118]
[   266.118] Current version of pixman: 0.34.0
[   266.118]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   266.118] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   266.118] (==) Log file: "/home/penguin/.local/share/xorg/Xorg.0.log", Time: Fri Nov 16 11:09:39 2018
[   266.118] (==) Using config file: "/etc/X11/xorg.conf"
[   266.118] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   266.118] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   266.118] (==) ServerLayout "Layout0"
[   266.118] (**) |-->Screen "Screen0" (0)
[   266.118] (**) |   |-->Monitor "Monitor0"
[   266.118] (**) |   |-->Device "Device0"
[   266.118] (**) |   |-->GPUDevice "Device0"
[   266.118] (**) |-->Input Device "Keyboard0"
[   266.118] (**) |-->Input Device "Mouse0"
[   266.118] (==) Automatically adding devices
[   266.118] (==) Automatically enabling devices
[   266.118] (==) Automatically adding GPU devices
[   266.118] (==) Automatically binding GPU devices
[   266.118] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   266.118] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[   266.118] (WW) Disabling Keyboard0
[   266.118] (WW) Disabling Mouse0
[   266.118] (II) Module ABI versions:
[   266.118]    X.Org ANSI C Emulation: 0.4
[   266.118]    X.Org Video Driver: 24.0
[   266.118]    X.Org XInput driver : 24.1
[   266.118]    X.Org Server Extension : 10.0
[   266.119] (++) using VT number 1

[   266.119] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c21
[   266.120] (II) xfree86: Adding drm device (/dev/dri/card0)
[   266.120] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 1
[   266.120] (EE) Error systemd-logind returned paused fd for drm node
[   266.120] (II) systemd-logind: releasing fd for 226:0
[   266.122] (--) PCI:*(0@0:2:0) 8086:3e9b:1028:087c rev 0, Mem @ 0xeb000000/16777216, 0x80000000/268435456, I/O @ 0x00004000/64, BIOS @ 0x????????/131072
[   266.122] (--) PCI: (1@0:0:0) 10de:1c8c:1028:087c rev 161, Mem @ 0xec000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x00003000/128, BIOS @ 0x????????/524288
[   266.122] (II) Open ACPI successful (/var/run/acpid.socket)
[   266.122] (II) LoadModule: "glx"
[   266.122] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   266.122] (II) Module glx: vendor="X.Org Foundation"
[   266.122]    compiled for 1.20.3, module version = 1.0.0
[   266.122]    ABI class: X.Org Server Extension, version 10.0
[   266.122] (II) LoadModule: "nvidia"
[   266.122] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[   266.123] (II) Module nvidia: vendor="NVIDIA Corporation"
[   266.123]    compiled for 4.0.2, module version = 1.0.0
[   266.123]    Module class: X.Org Video Driver
[   266.123] (II) NVIDIA dlloader X Driver  410.73  Sat Oct 20 22:19:41 CDT 2018
[   266.123] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   266.123] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[   266.123] (EE) No devices detected.
[   266.123] (EE)
Fatal server error:
[   266.123] (EE) no screens found(EE)

My hardware:

01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev a1)
Subsystem: Dell GP107M [GeForce GTX 1050 Ti Mobile]
Kernel modules: nouveau

My installed nvidia-related packages:

~ $ pacman -Qs nvidia
local/bumblebee 3.2.1-20
    NVIDIA Optimus support for Linux through VirtualGL
local/libvdpau 1.1.1+3+ga21bf7a-1
    Nvidia VDPAU library
local/libxnvctrl 410.73-1
    NVIDIA NV-CONTROL X extension
local/nvidia 410.73-2
    NVIDIA drivers for linux
local/nvidia-settings 410.73-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 410.73-1
    NVIDIA drivers utilities
local/xf86-video-nouveau 1.0.15-3 (xorg-drivers)
    Open Source 2D acceleration driver for nVidia cards

I also tried manally adding a nvidia config file, 20-nividia.conf, as described on the wiki, like so:

Section "Device"
        Identifier "Nvidia Card"
        Driver "nvidia"
        VendorName "NVIDIA Corporation"
        BoardName "GeForce GTX 1050 Ti Mobile"
EndSection

also, I tried installing xf86-video-nouveau, as I only had the nvidia package. My end goal is to 1. get X-org working, and then 2. get CUDA (I don't need super-gaming graphcs).

Here's my xorg conf file, that nvidia-xconfig generated:

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


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    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 "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

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

Also, I noticed I don't have a /dev/nvidia, if I'm suppoesed to have that?

Any help is much appreciated.

Last edited by penguin (2018-11-17 18:27:46)

Offline

#2 2018-11-16 15:25:22

loqs
Member
Registered: 2014-03-06
Posts: 17,369

Re: [SOLVED] re-installed packages & xorg.conf now nvidia doesn't work

The Xorg.log shows the system running linux-lts but you have not listed nvidia-lts as installed.

Offline

#3 2018-11-16 15:42:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,525
Website

Re: [SOLVED] re-installed packages & xorg.conf now nvidia doesn't work

penguin wrote:

I had a .pacnew version (that switches HOOKS="..." to HOOKS=(...))

How often do you update?  That change was a long time ago.

EDIT: As below, the old format is indeed still allowed.  But that pacnew file must have been sitting there for quite a while.

Last edited by Trilby (2018-11-16 17:09:54)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2018-11-16 16:19:44

penguin
Member
From: Gotham City
Registered: 2010-12-31
Posts: 163

Re: [SOLVED] re-installed packages & xorg.conf now nvidia doesn't work

daily/weekly. Seems to still work with the old, as the computer I'm using now is still using the old ""-system, and that seems to work.

Offline

#5 2018-11-16 22:50:13

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,919

Re: [SOLVED] re-installed packages & xorg.conf now nvidia doesn't work

[   266.122] (--) PCI:*(0@0:2:0) 8086:3e9b:1028:087c rev 0, Mem @ 0xeb000000/16777216, 0x80000000/268435456, I/O @ 0x00004000/64, BIOS @ 0x????????/131072
[   266.122] (--) PCI: (1@0:0:0) 10de:1c8c:1028:087c rev 161, Mem @ 0xec000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x00003000/128, BIOS @ 0x????????/524288
[   266.122] (II) Open ACPI successful (/var/run/acpid.socket)

You have 2 videocards in your system, probably a intel+nvidia hybrid graphics system.
post full lspci -k output so we can be sure what you have.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#6 2018-11-17 08:18:00

penguin
Member
From: Gotham City
Registered: 2010-12-31
Posts: 163

Re: [SOLVED] re-installed packages & xorg.conf now nvidia doesn't work

Thanks for the reply!
Yeah, third entry of lspci -k output mentions Intel, i915:

00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
	Subsystem: Dell 8th Gen Core Processor Host Bridge/DRAM Registers
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 07)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:02.0 VGA compatible controller: Intel Corporation Device 3e9b
	DeviceName:  Onboard IGD
	Subsystem: Dell Device 087c
	Kernel driver in use: i915
	Kernel modules: i915
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 07)
	Subsystem: Dell Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem
	Kernel driver in use: proc_thermal
	Kernel modules: processor_thermal_device
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th Gen Core Processor Gaussian Mixture Model
	Subsystem: Dell Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)
	Subsystem: Dell Cannon Lake PCH Thermal Controller
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
	Subsystem: Dell Cannon Lake PCH USB 3.1 xHCI Host Controller
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
	Subsystem: Dell Cannon Lake PCH Shared SRAM
00:15.0 Serial bus controller [0c80]: Intel Corporation Device a368 (rev 10)
	Subsystem: Dell Device 087c
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:15.1 Serial bus controller [0c80]: Intel Corporation Device a369 (rev 10)
	Subsystem: Dell Device 087c
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
	Subsystem: Dell Cannon Lake PCH HECI Controller
	Kernel driver in use: mei_me
	Kernel modules: mei_me
00:17.0 SATA controller: Intel Corporation Device a353 (rev 10)
	Subsystem: Dell Device 087c
	Kernel driver in use: ahci
	Kernel modules: ahci
00:1b.0 PCI bridge: Intel Corporation Device a340 (rev f0)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1c.0 PCI bridge: Intel Corporation Device a338 (rev f0)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1c.4 PCI bridge: Intel Corporation Device a33c (rev f0)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port 9 (rev f0)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1f.0 ISA bridge: Intel Corporation Device a30e (rev 10)
	Subsystem: Dell Device 087c
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
	Subsystem: Dell Cannon Lake PCH cAVS
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
	Subsystem: Dell Cannon Lake PCH SMBus Controller
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
	Subsystem: Dell Cannon Lake PCH SPI Controller
01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev a1)
	Subsystem: Dell GP107M [GeForce GTX 1050 Ti Mobile]
	Kernel modules: nouveau
3b:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)
	Subsystem: Bigfoot Networks, Inc. QCA6174 802.11ac Wireless Network Adapter
	Kernel driver in use: ath10k_pci
	Kernel modules: ath10k_pci
3c:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01)
	Subsystem: Dell RTS525A PCI Express Card Reader
	Kernel driver in use: rtsx_pci
	Kernel modules: rtsx_pci
3d:00.0 Non-Volatile memory controller: Toshiba America Info Systems XG4 NVMe SSD Controller (rev 01)
	Subsystem: Toshiba America Info Systems XG4 NVMe SSD Controller
	Kernel driver in use: nvme
	Kernel modules: nvme

I've just tried installing xf86-video-intel package, and add an 20-intel.conf to my /etc/X11/xorg.conf.d/20-intel.conf, assuming it would fall back on that if the normal xorg.conf fails, but it didn't fix the issue.

Offline

#7 2018-11-17 18:29:07

penguin
Member
From: Gotham City
Registered: 2010-12-31
Posts: 163

Re: [SOLVED] re-installed packages & xorg.conf now nvidia doesn't work

OK, solved it by removing all the xorg config files, both in /etc/X11/xorg.conf.d and the xorg.conf file itself. I guess the nvidia-xconfig tool tried to make xorg run with nvidia, but really, it's Intel that should be used.

Offline

#8 2018-11-17 18:32:19

loqs
Member
Registered: 2014-03-06
Posts: 17,369

Re: [SOLVED] re-installed packages & xorg.conf now nvidia doesn't work

You do not want to use the nvidia GPU under any circumstances but you installed nvidia, bumblebee etc and ran nvidia-xconfig this is somewhat confusing to me.

Offline

#9 2018-11-17 21:29:45

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,919

Re: [SOLVED] re-installed packages & xorg.conf now nvidia doesn't work

penguin, check https://wiki.archlinux.org/index.php/NVIDIA_Optimus .

It should clarify what options you have for the nvidia card.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#10 2018-11-22 09:07:19

penguin
Member
From: Gotham City
Registered: 2010-12-31
Posts: 163

Re: [SOLVED] re-installed packages & xorg.conf now nvidia doesn't work

loqs wrote:

You do not want to use the nvidia GPU under any circumstances but you installed nvidia, bumblebee etc and ran nvidia-xconfig this is somewhat confusing to me.

That's not what I said. I said: I don't need Nvidia for gaming graphics. I.e. I just want xorg to work. I don't care if it's Intel or Nvidia that "makes it just work".

Once I have xorg up and runnign (as I do now), I want nvidia for computation, e.g. tensorflow / Pytorch -CUDA.

@Lone_Wolf thanks, I'll give it a read thorugh. If I hit problems, I'll open a new issue, as I consider this solved.

Offline

Board footer

Powered by FluxBB