You are not logged in.

#1 2016-09-05 20:31:24

cryptodoomchicken
Member
Registered: 2016-09-05
Posts: 6

[SOLVED] Cinnamon crashes after NVIDIA install

Hi, I'm just going to ask for help now since I've tried everything I can find on the Arch Wiki and through Google search.

When I install the nvidia and nvidia-libgl packages and reboot, the slim login manager works fine, but cinnamon crashes on startup. If I uninstall nvidia and nvidia-libgl and go back to mesa-libgl, everything works.

In the working state with using mesa-libgl, lspci -k | grep -A 2 -E "(VGA|3D)" outputs this:

[user@Arch ~]$ lspci -k | grep -A 2 -E "(VGA|3D)"
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
	Subsystem: Lenovo Device 3978
	Kernel driver in use: i915
--
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
	Subsystem: Lenovo Device 3978
	Kernel driver in use: nouveau

It appears I have two graphics cards, one is the NVIDIA card, and the other is the Intel integrated graphics controller in my CPU.

I'd like to exclusively use the NVIDIA card with Steam, with the NVIDIA proprietary drivers. Can anyone help?

EDIT:

In my current state with mesa-libgl being used, the output of xrandr --listproviders is the following:

[user@Arch ~]$ xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x46 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 3 associated providers: 0 name:Intel

This is the non-working xorg.conf file that nvidia-xconfig generates:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 370.23  (buildmeister@swio-display-x86-rhel47-02)  Mon Aug  8 18:33:47 PDT 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

Last edited by cryptodoomchicken (2016-09-06 00:41:44)

Offline

#2 2016-09-05 20:40:11

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

Re: [SOLVED] Cinnamon crashes after NVIDIA install

Offline

#3 2016-09-05 20:47:59

cryptodoomchicken
Member
Registered: 2016-09-05
Posts: 6

Re: [SOLVED] Cinnamon crashes after NVIDIA install

@loqs

Thanks for your reply. But this article doesn't actually help.

Offline

#4 2016-09-05 20:59:22

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

Re: [SOLVED] Cinnamon crashes after NVIDIA install

Did you read the Note

Read NVIDIA Optimus and Bumblebee for details about NVidia using hybrid graphics with NVidia’s proprietary driver.

First section of NVIDIA_Optimus is Disabling_switchable_graphics
Below that in case you can not use only the discrete card it documents what you would need to do to use the nvidia card in conjunction with the integrated card.
What you attempted by just installing nvidia and nvidia-libgl failed because there is no display routed directly to the discrete gpu and your switch to nvidia-libgl removed libgl support from the integrated gpu leaving your system with no functional hardware accelerated displays that cinnamon needs.

Offline

#5 2016-09-05 21:09:16

cryptodoomchicken
Member
Registered: 2016-09-05
Posts: 6

Re: [SOLVED] Cinnamon crashes after NVIDIA install

@loqs

Ok, I checked my BIOS, and it only allows me to disable the NVIDIA card, not the Intel controller. The alternative it seems to use an xorg.conf file. I currently do not have an xorg.conf file. However, whenever I use nvidia-xconfig to generate one, I can't start X server anymore. Does that mean I need to write one my hand?

Offline

#6 2016-09-05 21:54:22

cryptodoomchicken
Member
Registered: 2016-09-05
Posts: 6

Re: [SOLVED] Cinnamon crashes after NVIDIA install

Update:

Still not working. I tried the method in this article that @loqs recommended: https://wiki.archlinux.org/index.php/NV … e_graphics

Just like the wiki page said, I made my xorg.conf file the following:

Section "Module"
    Load "modesetting"
EndSection

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

I also prepended

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

to my xinitrc file.  Whenever I have an xorg.conf file, the X server will not start. Even the autogenerated one that the nvidia-xconfig command generates.

Offline

#7 2016-09-06 00:38:36

cryptodoomchicken
Member
Registered: 2016-09-05
Posts: 6

Re: [SOLVED] Cinnamon crashes after NVIDIA install

Problem Solved:

There was a syntax error in my xorg.conf file, and I uninstalled the slim login manager so I need to type startx every time I log in.

I installed these packages:

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

This is my ~/.xinitrc file:

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
exec cinnamon-session

And this is the correct syntax xorg.conf file

Section "Module"
    Load "modesetting"
EndSection

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

Last edited by cryptodoomchicken (2016-09-06 00:44:12)

Offline

Board footer

Powered by FluxBB