You are not logged in.

#1 2017-12-21 19:06:16

shasten
Member
Registered: 2017-12-21
Posts: 9

[Solved]Dual graphics (intel & nvidia gtx 960M) on dell inspiron i7559

I have been fussing and reading ad nauseum about this issue on Linux to try and solve my problem of the Kernel not recognizing my Nvidia card (at least, that is what I think) from this, but not entirely sure.

lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)

Now, when I do a similar command, it shows up.

lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
02:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)

I understand that Nvidia is the discrete driver, but if you look at my script on pastebin https://pastebin.com/ZWNnxUT0.  These are the steps I've taken to install the Nvidia Drivers.  When I get to the modprobe stage (just before systemctl), I get the errors listed at the bottom of that pastebin document.  If I attempt to reboot, I will get a black frozen screen from hell.

So, I thought this might just be a problem with DM's, so I changed from LightDM to SDDM, and back a couple of times, and no such luck  I tried to go through the .xinitrc file, and startx but it wouldn't detect my screen or hardware (not sure which).  There was a bug reported yesterday.  Months ago, I ran nvidia 352, and the screen tearing was horrible.  I was looking for a solution, so I shut it off by installing bumblebee, and I haven't been able to start my system in Nvidia since.

Here is my dmesg:
https://pastebin.com/v8dFMgTH

Xorg log
https://pastebin.com/EPpaiDfN

pacman -Qs nvidia

local/lib32-nvidia-utils 387.34-1
    NVIDIA drivers utilities (32-bit)
local/lib32-opencl-nvidia 387.34-1
    OpenCL implemention for NVIDIA (32-bit)
local/libvdpau 1.1.1+3+ga21bf7a-1
    Nvidia VDPAU library
local/libxnvctrl 387.34-1
    NVIDIA NV-CONTROL X extension
local/nvidia 387.34-13
    NVIDIA drivers for linux
local/nvidia-settings 387.34-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 387.34-1
    NVIDIA drivers utilities

Here is my hardware setup:
https://pastebin.com/s3Y435ej

I am not a total newbie, but this is a little over my head as to why it doesn't work.  Can you please take a look, and give me some input.  Any help is greatly appreciated.
Thanks.

Last edited by shasten (2017-12-23 06:50:33)

Offline

#2 2017-12-21 19:29:58

loqs
Member
Registered: 2014-03-06
Posts: 18,920

Re: [Solved]Dual graphics (intel & nvidia gtx 960M) on dell inspiron i7559

What type of Hybrid_graphics system are you trying to configure optimus or bumblebee?
Looking at the Xorg.log /etc/X11/xorg.conf please remove / rename the config file then after picking which type of system you want and attempting to configure it please share updated logs / configs.

Offline

#3 2017-12-21 19:50:01

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

Re: [Solved]Dual graphics (intel & nvidia gtx 960M) on dell inspiron i7559

Thanks for creating your own thread and including all of the outputs I've asked for, a small additional thing you might want to do is replace output in [ quote ] tags and put them into [ code ] tags instead.

There are a few things we have to do here, first and foremost, a lot of errors related to the CPU microcode,  make sure that you set that up

Second, remove that /etc/X11/xorg.conf and that /etc/X11/xorg.conf.d/20-nvidia.conf (you'll have to trust me on this, as they stand they are completely nonsensical)  uninstall xf86-video-intel if you have that installed and do not execute those manual modprobe commands you've been experimenting with, they shouldn't be necessary.

For some reason nouveau is being loaded, however that should usually be blacklisted when installing the nvidia package. Do you have any overrides in /etc/modprobe.d and/or /etc/modules.load.d ? Post them if so, or rather, remove them if you load nouveau explicitly somewhere, you might also want to add the outputs of

 ls -l /usr/share/X11/xorg.conf.d/
cat /usr/lib/modprobe.d/nvidia.conf
cat /usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf
cat /etc/mkinitcpio.conf

Having done these steps, reboot and post an updated set of outputs should the problem persist.

Last edited by V1del (2017-12-21 19:53:23)

Online

#4 2017-12-21 19:51:12

shasten
Member
Registered: 2017-12-21
Posts: 9

Re: [Solved]Dual graphics (intel & nvidia gtx 960M) on dell inspiron i7559

I would like to configure to optimus if I can.  I really don't want the bumblebee crap.  The video rendering will be really bad.

Offline

#5 2017-12-21 19:57:42

shasten
Member
Registered: 2017-12-21
Posts: 9

Re: [Solved]Dual graphics (intel & nvidia gtx 960M) on dell inspiron i7559

OK, I am away from my laptop, but I did remove the xorg.conf files.  Don't have xf86 install, and I will look into setting up cpu microcode.  I took a look at your link.  What else do I need to set up other than grub-mkconfig?  I will put everything in quote tags when I get back, so everyone can see it.  I didn't install nouveau, so it must be coming from modprobe.d which I will comment out.  I will give some more info when I get back to my house.

Offline

#6 2017-12-21 22:06:52

loqs
Member
Registered: 2014-03-06
Posts: 18,920

Re: [Solved]Dual graphics (intel & nvidia gtx 960M) on dell inspiron i7559

For optimus everything covered in section 2 NVIDIA_Optimus#Using_nvidia

Offline

#7 2017-12-21 23:13:12

shasten
Member
Registered: 2017-12-21
Posts: 9

Re: [Solved]Dual graphics (intel & nvidia gtx 960M) on dell inspiron i7559

new dmesg file:

[78198.205210] device-mapper: uevent: version 1.0.3
[78198.205277] device-mapper: ioctl: 4.37.0-ioctl (2017-09-20) initialised: dm-devel@redhat.com
[78298.413639] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[78298.428094] JFS: nTxBlock = 8192, nTxLock = 65536
[78298.451405] ntfs: driver 2.1.32 [Flags: R/W MODULE].
[78298.532088] raid6: sse2x1   gen() 10817 MB/s
[78298.588694] raid6: sse2x1   xor()  7504 MB/s
[78298.645361] raid6: sse2x2   gen() 14410 MB/s
[78298.702025] raid6: sse2x2   xor()  9667 MB/s
[78298.758703] raid6: sse2x4   gen() 10851 MB/s
[78298.815369] raid6: sse2x4   xor()  9755 MB/s
[78298.872034] raid6: avx2x1   gen() 17639 MB/s
[78298.928693] raid6: avx2x1   xor() 12130 MB/s
[78298.985368] raid6: avx2x2   gen() 27757 MB/s
[78299.042026] raid6: avx2x2   xor() 13828 MB/s
[78299.098695] raid6: avx2x4   gen() 28683 MB/s
[78299.155395] raid6: avx2x4   xor() 19346 MB/s
[78299.155397] raid6: using algorithm avx2x4 gen() 28683 MB/s
[78299.155397] raid6: .... xor() 19346 MB/s, rmw enabled
[78299.155398] raid6: using avx2x2 recovery algorithm
[78299.156258] xor: automatically using best checksumming function   avx       
[78299.215768] Btrfs loaded, crc32c=crc32c-intel
[78299.223286] fuse init (API version 7.26)

Last edited by shasten (2017-12-21 23:43:25)

Offline

#8 2017-12-21 23:16:25

shasten
Member
Registered: 2017-12-21
Posts: 9

Re: [Solved]Dual graphics (intel & nvidia gtx 960M) on dell inspiron i7559

xorg log

[   22.075]
X.Org X Server 1.19.5
Release Date: 2017-10-12
[    22.075] X Protocol Version 11, Revision 0
[    22.075] Build Operating System: Linux 4.9.54-1-lts x86_64
[    22.076] Current Operating System: Linux shasten 4.14.6-1-ARCH #1 SMP PREEMPT Thu Dec 14 21:26:16 UTC 2017 x86_64
[    22.076] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=bf10fba2-4b29-4080-8c59-bac1ef1222ef rw quiet
[    22.076] Build Date: 12 October 2017  09:59:53PM
[    22.076] 
[    22.076] Current version of pixman: 0.34.0
[    22.076]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[    22.076] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    22.077] (==) Log file: "/home/shasten/.local/share/xorg/Xorg.0.log", Time: Tue Dec 19 20:30:13 2017
[    22.078] (==) Using config file: "/etc/X11/xorg.conf"
[    22.078] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    22.078] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    22.078] (==) ServerLayout "layout"
[    22.078] (**) |-->Screen "nvidia" (0)
[    22.078] (**) |   |-->Monitor "Monitor0"
[    22.079] (**) |   |-->Device "nvidia"
[    22.079] (**) |   |-->GPUDevice "nvidia"
[    22.079] (**) |-->Inactive Device "intel"
[    22.079] (==) Automatically adding devices
[    22.079] (==) Automatically enabling devices
[    22.079] (==) Automatically adding GPU devices
[    22.079] (==) Automatically binding GPU devices
[    22.079] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    22.079] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[    22.079]    Entry deleted from font path.
[    22.079] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[    22.079]    Entry deleted from font path.
[    22.079]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[    22.079] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[    22.079]    Entry deleted from font path.
[    22.079]    (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[    22.079] (==) FontPath set to:
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/,
    /usr/share/fonts/OTF/
[    22.079] (==) ModulePath set to "/usr/lib/xorg/modules"
[    22.079] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[    22.079] (II) Loader magic: 0x563d6b4dfd60
[    22.079] (II) Module ABI versions:
[    22.079]    X.Org ANSI C Emulation: 0.4
[    22.079]    X.Org Video Driver: 23.0
[    22.079]    X.Org XInput driver : 24.1
[    22.079]    X.Org Server Extension : 10.0
[    22.080] (++) using VT number 2

[    22.080] (--) controlling tty is VT number 2, auto-enabling KeepTty
[    22.084] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[    22.085] (II) xfree86: Adding drm device (/dev/dri/card0)
[    22.086] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0
[    22.090] (--) PCI:*(0:0:2:0) 8086:191b:1028:0706 rev 6, Mem @ 0xdd000000/16777216, 0xb0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[    22.090] (--) PCI: (0:2:0:0) 10de:139b:1028:0706 rev 162, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[    22.090] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    22.090] (II) LoadModule: "glx"
[    22.090] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    22.091] (II) Module glx: vendor="X.Org Foundation"
[    22.091]    compiled for 1.19.5, module version = 1.0.0
[    22.091]    ABI class: X.Org Server Extension, version 10.0
[    22.091] (II) LoadModule: "nvidia"
[    22.091] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[    22.092] (II) Module nvidia: vendor="NVIDIA Corporation"
[    22.092]    compiled for 4.0.2, module version = 1.0.0
[    22.092]    Module class: X.Org Video Driver
[    22.092] (II) LoadModule: "modesetting"
[    22.092] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    22.092] (II) Module modesetting: vendor="X.Org Foundation"
[    22.092]    compiled for 1.19.5, module version = 1.19.5
[    22.092]    Module class: X.Org Video Driver
[    22.092]    ABI class: X.Org Video Driver, version 23.0
[    22.092] (II) NVIDIA dlloader X Driver  387.34  Tue Nov 21 01:38:22 PST 2017
[    22.092] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    22.092] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    22.092] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[    22.092] (WW) Falling back to old probe method for modesetting
[    22.092] (II) modeset(0): using default device
[    22.092] (II) modeset(G0): using drv /dev/dri/card0
[    22.092] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    22.092] (EE) Screen 0 deleted because of no matching config section.
[    22.092] (II) UnloadModule: "modesetting"
[    22.092] (EE) Device(s) detected, but none match those in the config file.
[    22.092] (EE)
Fatal server error:
[    22.092] (EE) no screens found(EE)

[    22.092] (EE)
Please consult the The X.Org Foundation support
     at http://wiki.x.org
for help.
[    22.092] (EE) Please also check the log file at "/home/shasten/.local/share/xorg/Xorg.0.log" for additional information.
[    22.092] (EE)
[    22.108] (EE) Server terminated with error (1). Closing log file.

Offline

#9 2017-12-21 23:31:26

shasten
Member
Registered: 2017-12-21
Posts: 9

Re: [Solved]Dual graphics (intel & nvidia gtx 960M) on dell inspiron i7559

Here are the outputs you asked for.  I am still a little fuzzy on the errors on my CPU microcode.  I will look a little further to find out what happened.

ls -l /usr/share/X11/xorg.conf.d/
total 12
-rw-r--r-- 1 root root  323 Nov 25 02:33 10-nvidia-drm-outputclass.conf
-rw-r--r-- 1 root root 1350 Oct 12 20:01 10-quirks.conf
-rw-r--r-- 1 root root  945 Sep 15 18:31 40-libinput.conf

cat /usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf
Section "OutputClass"
    Identifier "intel"
    MatchDriver "i915"
    Driver "modesetting"
EndSection

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "PrimaryGPU" "yes"
    ModulePath "/usr/lib/nvidia/xorg"
EndSection

cat /etc/mkinitcpio.conf
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES=(piix ide_disk reiserfs)
MODULES=()

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=()

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES=()

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No raid, lvm2, or encrypted root is needed.
#    HOOKS=(base)
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
#    HOOKS=(base udev autodetect block filesystems)
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS=(base udev block filesystems)
#
##   This setup assembles a pata mdadm array with an encrypted root FS.
##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS=(base udev block mdadm encrypt filesystems)
#
##   This setup loads an lvm2 volume group on a usb device.
#    HOOKS=(base udev block lvm2 filesystems)
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    usr, fsck and shutdown hooks.
HOOKS=(base udev autodetect modconf block filesystems keyboard fsck)

# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=()

cat /usr/lib/modprobe.d/nvidia.conf
blacklist nouveau

Offline

#10 2017-12-22 00:03:53

shasten
Member
Registered: 2017-12-21
Posts: 9

Re: [Solved]Dual graphics (intel & nvidia gtx 960M) on dell inspiron i7559

OK, I got this figured out.  Now, I just got to figure out how to manage the power because it is overheating a little.  So, bascially just I had to put those two lines in the xrandr, put the modeset for nvidia in grub file, grub-mkconfig, and for show, I did mkinitcpio -p linux to make sure everything checked out.   This is solved. 

lspci -v
02:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
    Subsystem: Dell GM107M [GeForce GTX 960M]
    Flags: bus master, fast devsel, latency 0, IRQ 131
    Memory at de000000 (32-bit, non-prefetchable) [size=16M]
    Memory at c0000000 (64-bit, prefetchable) [size=256M]
    Memory at d0000000 (64-bit, prefetchable) [size=32M]
    I/O ports at e000 [size=128]
    [virtual] Expansion ROM at df000000 [disabled] [size=512K]
    Capabilities: <access denied>
    Kernel driver in use: nvidia
    Kernel modules: nouveau, nvidia_drm, nvidia

Offline

#11 2017-12-22 05:32:32

shasten
Member
Registered: 2017-12-21
Posts: 9

Re: [Solved]Dual graphics (intel & nvidia gtx 960M) on dell inspiron i7559

Just to help others out, I just reinstalled this, and did this again.  It took a couple of tries, but now I got it.  My fan is running all the time, so I will figure that out.  But, here are the steps that worked for me.  Also, I am not sure I can reboot, shutdown, etc.  I had to do a cold shutdown, but I just logged into my system on XFCE4.  Thank you all so much for your help. 

1. 
    nano /etc/default/grub     
    nvidia-drm modeset=1
        example:  GRUB_CMDLINE_LINUX_DEFAULT="quiet"
              GRUB_CMDLINE_LINUX="nvidia-drm modeset=1"   
2. 
    nano /etc/lightdm/display_setup.sh

#!/bin/sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto


chmod +x /etc/lightdm/display_setup.sh

    nano /etc/lightdm/lightdm.conf
        [Seat:*]  uncomment*

display-setup-script=/etc/lightdm/display_setup.sh

sddm:
nano /usr/share/sddm/scripts/Xsetup

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

3. 
sudo pacman -S intel-ucode


4.     
sudo pacman -S lib32-mesa-demos mesa-demos libva-vdpau-driver nvidia nvidia-libgl lib32-nvidia-utils nvidia-settings lib32-opencl-nvidia


5.    systemctl enable nvidia-persistenced.service
    sudo grub-mkconfig -o /boot/grub/grub.cfg
    mkinitcpio -p linux
    reboot

Last edited by shasten (2017-12-22 05:34:18)

Offline

#12 2017-12-22 10:18:40

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

Re: [Solved]Dual graphics (intel & nvidia gtx 960M) on dell inspiron i7559

Not quote tags [ code ] tags!

Please mark the topic as [SOLVED] by editing the title of your initial post. Try to not do double and triple posts and append new information to previous posts if no one else has replied in between, read our code of conduct on forum posting guidelines prior to your next post.

Online

Board footer

Powered by FluxBB