You are not logged in.

#1 2016-11-20 12:44:50

stetim94
Member
Registered: 2015-01-09
Posts: 16

nvidia installation

I am not sure this is the right place, but i am struggling to install the nvidia driver. (nouveau works fine)

I have a acer aspire 5742g which has both a intel graphic card on the motherboard and a nvidia card, command:

lspci -k | grep -A 2 -E "(VGA|3D)"

output:

00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
	Subsystem: Acer Incorporated [ALI] Device 0488
	Kernel driver in use: i915
--
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 540M] (rev a1)
	Subsystem: Acer Incorporated [ALI] Device 0488
	Kernel driver in use: nouveau

now i want to install nvidia (or do i need optimus?) lets say i want to use the nvidia card, so i went here:

https://wiki.archlinux.org/index.php/NVIDIA

then i look at which card i have:

NVC1 (GF108) 	GeForce GT (415M, 420, 420M, 425M, 430, 435M, 520M, 525M, 530, 540M, 550M, 555M, 620, 630M, 635M, 640M LE)
Quadro 600, 1000M 

then the wiki says:

For GeForce 400 series cards and newer [NVCx and newer], install the nvidia or nvidia-lts package along with nvidia-libgl. If these packages do not work, nvidia-betaAUR may have a newer driver version that offers support.

i have NVC1, so this means i could install nvidia, nvidia-lts and nvidia-libgl, right? So i installed this

so then i ran:

sudo nvidia-xconfig

and the following config file is configured:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 375.20  (buildmeister@swio-display-x86-rhel47-06)  Tue Nov 15 17:49:44 PST 2016


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 "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

so then i rebooted (again), and ran startx (i don't have a DM installed), but then i get an error, here is the content of xorg.0.log:

[  5391.128] 
X.Org X Server 1.18.4
Release Date: 2016-07-19
[  5391.134] X Protocol Version 11, Revision 0
[  5391.136] Build Operating System: Linux 4.5.4-1-ARCH x86_64 
[  5391.138] Current Operating System: Linux steven 4.8.8-2-ARCH #1 SMP PREEMPT Thu Nov 17 14:51:03 CET 2016 x86_64
[  5391.138] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=32e727f6-b56a-41c9-a22c-2d1ba060a195 rw quiet splash acpi_backlight=vendor acpi_osi=Linux
[  5391.140] Build Date: 19 July 2016  05:54:24PM
[  5391.142]  
[  5391.143] Current version of pixman: 0.34.0
[  5391.146] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[  5391.146] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  5391.152] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Nov 20 13:24:07 2016
[  5391.154] (==) Using config file: "/etc/X11/xorg.conf"
[  5391.155] (==) Using config directory: "/etc/X11/xorg.conf.d"
[  5391.157] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  5391.157] (==) ServerLayout "Layout0"
[  5391.157] (**) |-->Screen "Screen0" (0)
[  5391.157] (**) |   |-->Monitor "Monitor0"
[  5391.157] (**) |   |-->Device "Device0"
[  5391.157] (**) |   |-->GPUDevice "Nvidia Card"
[  5391.157] (**) |   |-->GPUDevice "Device0"
[  5391.157] (**) |-->Input Device "Keyboard0"
[  5391.157] (**) |-->Input Device "Mouse0"
[  5391.157] (==) Automatically adding devices
[  5391.157] (==) Automatically enabling devices
[  5391.157] (==) Automatically adding GPU devices
[  5391.157] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  5391.157] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[  5391.157] 	Entry deleted from font path.
[  5391.157] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[  5391.157] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[  5391.157] 	Entry deleted from font path.
[  5391.157] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[  5391.157] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/Type1/
[  5391.157] (==) ModulePath set to "/usr/lib/xorg/modules"
[  5391.157] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[  5391.157] (WW) Disabling Keyboard0
[  5391.157] (WW) Disabling Mouse0
[  5391.157] (II) Loader magic: 0x821d40
[  5391.157] (II) Module ABI versions:
[  5391.157] 	X.Org ANSI C Emulation: 0.4
[  5391.157] 	X.Org Video Driver: 20.0
[  5391.157] 	X.Org XInput driver : 22.1
[  5391.157] 	X.Org Server Extension : 9.0
[  5391.158] (++) using VT number 1

[  5391.159] (--) controlling tty is VT number 1, auto-enabling KeepTty
[  5391.162] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[  5391.163] (II) xfree86: Adding drm device (/dev/dri/card1)
[  5391.164] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 8 paused 0
[  5391.165] (II) xfree86: Adding drm device (/dev/dri/card0)
[  5391.165] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 9 paused 0
[  5391.167] (--) PCI:*(0:0:2:0) 8086:0046:1025:0488 rev 2, Mem @ 0xd1400000/4194304, 0xc0000000/268435456, I/O @ 0x00004050/8, BIOS @ 0x????????/131072
[  5391.167] (--) PCI: (0:1:0:0) 10de:0df4:1025:0488 rev 161, Mem @ 0xd0000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00003000/128, BIOS @ 0x????????/524288
[  5391.167] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[  5391.167] (II) LoadModule: "glx"
[  5391.168] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  5391.174] (II) Module glx: vendor="NVIDIA Corporation"
[  5391.174] 	compiled for 4.0.2, module version = 1.0.0
[  5391.174] 	Module class: X.Org Server Extension
[  5391.174] (II) NVIDIA GLX Module  375.20  Tue Nov 15 16:38:52 PST 2016
[  5391.174] (II) LoadModule: "nvidia"
[  5391.175] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[  5391.175] (II) Module nvidia: vendor="NVIDIA Corporation"
[  5391.175] 	compiled for 4.0.2, module version = 1.0.0
[  5391.175] 	Module class: X.Org Video Driver
[  5391.175] (II) NVIDIA dlloader X Driver  375.20  Tue Nov 15 16:15:23 PST 2016
[  5391.175] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[  5391.175] (II) systemd-logind: releasing fd for 226:1
[  5391.176] (EE) No devices detected.
[  5391.176] (EE) 
Fatal server error:
[  5391.176] (EE) no screens found(EE) 
[  5391.176] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[  5391.176] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  5391.176] (EE) 

the no screen found is pretty worrying, what have i done wrong?

Offline

#2 2016-11-20 19:45:29

atomicbeef
Member
Registered: 2015-09-30
Posts: 98

Re: nvidia installation

On my desktop (that has an NVIDIA graphics card) I don't have an xorg.conf and everything works out of the box, so you may want to try running X without it. It could also be caused by having two graphics chips and not disabling one of them in the BIOS. In this case, you've got two choices.

You can either disable one of the graphics chips in the BIOS and go with either the Intel or the NVIDIA one. This has some drawbacks though, especially if you opt to use the NVIDIA card, as it will drain your battery quicker. The other, more complex option is to configure Bumblebee. I don't have experience configuring Bumblebee, but you should be able to figure it out with the help of the wiki page.

Offline

#3 2016-11-21 09:50:44

stetim94
Member
Registered: 2015-01-09
Posts: 16

Re: nvidia installation

so i blacklisted nouveau, and now it says the nvidia driver is in use:

00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
	Subsystem: Acer Incorporated [ALI] Device 0488
	Kernel driver in use: i915
--
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 540M] (rev a1)
	Subsystem: Acer Incorporated [ALI] Device 0488
	Kernel driver in use: nvidia

but if i then try to run nvidia settings, i get an error message sad

also, i triple checked, there is no option to disable the integrated chip in the bios (i don't care about the battery drain, i am on the charger 99% of the time.


lets say i do want optimus, i install nvidia, nvidia-libgl and xorg-xrandr and then have this as xorg.conf:

Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    Option "AllowEmptyInitialConfiguration"
EndSection

then in .xinitrc:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

# exec gnome-session
# exec startkde
exec startxfce4
# ...or the Window Manager of your choice

i get rougly the same error messages, see:

[  8361.322] 
X.Org X Server 1.18.4
Release Date: 2016-07-19
[  8361.329] X Protocol Version 11, Revision 0
[  8361.331] Build Operating System: Linux 4.5.4-1-ARCH x86_64 
[  8361.333] Current Operating System: Linux steven 4.8.8-2-ARCH #1 SMP PREEMPT Thu Nov 17 14:51:03 CET 2016 x86_64
[  8361.333] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=32e727f6-b56a-41c9-a22c-2d1ba060a195 rw quiet splash acpi_backlight=vendor acpi_osi=Linux
[  8361.337] Build Date: 19 July 2016  05:54:24PM
[  8361.339]  
[  8361.341] Current version of pixman: 0.34.0
[  8361.344] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[  8361.344] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  8361.352] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Nov 21 13:30:51 2016
[  8361.354] (==) Using config file: "/etc/X11/xorg.conf"
[  8361.356] (==) Using config directory: "/etc/X11/xorg.conf.d"
[  8361.358] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  8361.358] (==) No Layout section.  Using the first Screen section.
[  8361.358] (==) No screen section available. Using defaults.
[  8361.358] (**) |-->Screen "Default Screen Section" (0)
[  8361.358] (**) |   |-->Monitor "<default monitor>"
[  8361.358] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[  8361.358] (**) |   |-->Device "Intel Graphics"
[  8361.358] (**) |   |-->GPUDevice "Nvidia Card"
[  8361.358] (**) |   |-->GPUDevice "nvidia"
[  8361.358] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[  8361.358] (==) Automatically adding devices
[  8361.358] (==) Automatically enabling devices
[  8361.358] (==) Automatically adding GPU devices
[  8361.358] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  8361.358] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[  8361.358] 	Entry deleted from font path.
[  8361.358] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[  8361.358] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[  8361.358] 	Entry deleted from font path.
[  8361.358] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[  8361.358] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/Type1/
[  8361.358] (==) ModulePath set to "/usr/lib/xorg/modules"
[  8361.358] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[  8361.358] (II) Loader magic: 0x821d40
[  8361.358] (II) Module ABI versions:
[  8361.358] 	X.Org ANSI C Emulation: 0.4
[  8361.358] 	X.Org Video Driver: 20.0
[  8361.358] 	X.Org XInput driver : 22.1
[  8361.358] 	X.Org Server Extension : 9.0
[  8361.360] (++) using VT number 1

[  8361.360] (--) controlling tty is VT number 1, auto-enabling KeepTty
[  8361.363] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[  8361.364] (II) xfree86: Adding drm device (/dev/dri/card1)
[  8361.365] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 8 paused 0
[  8361.365] (II) xfree86: Adding drm device (/dev/dri/card0)
[  8361.366] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 9 paused 0
[  8361.368] (--) PCI:*(0:0:2:0) 8086:0046:1025:0488 rev 2, Mem @ 0xd1400000/4194304, 0xc0000000/268435456, I/O @ 0x00004050/8, BIOS @ 0x????????/131072
[  8361.368] (--) PCI: (0:1:0:0) 10de:0df4:1025:0488 rev 161, Mem @ 0xd0000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00003000/128, BIOS @ 0x????????/524288
[  8361.368] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[  8361.368] (II) "glx" will be loaded by default.
[  8361.368] (II) LoadModule: "modesetting"
[  8361.368] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[  8361.369] (II) Module modesetting: vendor="X.Org Foundation"
[  8361.369] 	compiled for 1.18.4, module version = 1.18.4
[  8361.369] 	Module class: X.Org Video Driver
[  8361.369] 	ABI class: X.Org Video Driver, version 20.0
[  8361.369] (II) LoadModule: "glx"
[  8361.369] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  8361.376] (II) Module glx: vendor="NVIDIA Corporation"
[  8361.376] 	compiled for 4.0.2, module version = 1.0.0
[  8361.376] 	Module class: X.Org Server Extension
[  8361.376] (II) NVIDIA GLX Module  375.20  Tue Nov 15 16:38:52 PST 2016
[  8361.376] (II) LoadModule: "intel"
[  8361.376] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[  8361.376] (II) Module intel: vendor="X.Org Foundation"
[  8361.376] 	compiled for 1.18.4, module version = 2.99.917
[  8361.376] 	Module class: X.Org Video Driver
[  8361.376] 	ABI class: X.Org Video Driver, version 20.0
[  8361.376] (II) LoadModule: "nvidia"
[  8361.376] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[  8361.377] (II) Module nvidia: vendor="NVIDIA Corporation"
[  8361.377] 	compiled for 4.0.2, module version = 1.0.0
[  8361.377] 	Module class: X.Org Video Driver
[  8361.377] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[  8361.377] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
	i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
	915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
	Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
	GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[  8361.377] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[  8361.377] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[  8361.377] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[  8361.377] (II) NVIDIA dlloader X Driver  375.20  Tue Nov 15 16:15:23 PST 2016
[  8361.377] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[  8361.377] (II) modeset(G0): using drv /dev/dri/card0
[  8361.377] (II) systemd-logind: releasing fd for 226:1
[  8361.379] (II) Loading sub module "fb"
[  8361.379] (II) LoadModule: "fb"
[  8361.379] (II) Loading /usr/lib/xorg/modules/libfb.so
[  8361.380] (II) Module fb: vendor="X.Org Foundation"
[  8361.380] 	compiled for 1.18.4, module version = 1.0.0
[  8361.380] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  8361.381] (II) Loading sub module "wfb"
[  8361.381] (II) LoadModule: "wfb"
[  8361.381] (II) Loading /usr/lib/xorg/modules/libwfb.so
[  8361.382] (II) Module wfb: vendor="X.Org Foundation"
[  8361.382] 	compiled for 1.18.4, module version = 1.0.0
[  8361.382] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  8361.382] (II) Loading sub module "ramdac"
[  8361.382] (II) LoadModule: "ramdac"
[  8361.382] (II) Module "ramdac" already built-in
[  8361.385] (EE) Screen 0 deleted because of no matching config section.
[  8361.385] (II) UnloadModule: "nvidia"
[  8361.385] (II) UnloadSubModule: "wfb"
[  8361.385] (II) UnloadSubModule: "fb"
[  8361.385] (EE) Device(s) detected, but none match those in the config file.
[  8361.385] (EE) 
Fatal server error:
[  8361.385] (EE) no screens found(EE) 
[  8361.385] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[  8361.385] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  8361.385] (EE) 
[  8361.402] (EE) Server terminated with error (1). Closing log file.

the moment i fiddle with xorg.conf, things go wrong, but nvidia isn't working without it

Last edited by stetim94 (2016-11-21 12:35:44)

Offline

#4 2016-11-21 13:50:55

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: nvidia installation

You need to read the Optimus Wiki entry. If your laptop is like mine, you don't have a choice whether you want to use Optimus. You either use the Intel card alone, or install an optimus setup.


Matt

"It is very difficult to educate the educated."

Offline

#5 2016-11-22 12:24:20

stetim94
Member
Registered: 2015-01-09
Posts: 16

Re: nvidia installation

so for optimus i implanted the follow xorg.conf:

Section "Device"
    Identifier  "intel"
    Driver      "modesetting"
    BusID       "PCI:0:2:0"
    Option      "AccelMethod"  "sna"
    #Option      "TearFree" "True"
    #Option      "Tiling" "True"
    #Option      "SwapbuffersWait" "True"
EndSection

but this won't allow me to run nvidia-settings?

so i went on and installed bumblebee (bumblebee wiki pages), which means i had to ditch the xorg.conf, and now i can run nvidia-settings with optirun:

optirun -b none nvidia-settings -c :8

and the gears also run fine:

optirun glxgears -info

does this mean i have done it right? i can run on the nvidia card with optirun and otherwise my intel graphic card is used?

Last edited by stetim94 (2016-11-22 12:25:12)

Offline

Board footer

Powered by FluxBB