Stretch on Nvidia 960M MSI Gaming Laptop

Getting your soundcard to work, using Debian on non-i386 hardware, etc

Stretch on Nvidia 960M MSI Gaming Laptop

Postby InvisibleRasta » 2018-11-22 14:07

Hello guys, i have been trying to install the nvidia drivers but i cant figure out what is not working. Had to reinstall debian a bunch of times due to messing up the system.

In my previous tries i tried with:
Code: Select all
nvidia-drivers
the screen was just flashing on and off and i had to append 1 to the grub kernel line to be able to enter tty, so yeah was not working

then i tried with
Code: Select all
bumblebee and primus
system was freezing before lightdm loaded
i then also tried with
Code: Select all
bumblebee-nvidia + primus
same thing i was not able to get past lightdm. system was jsut freezing

I also tried installing the drivers that the Nvidia website provide... but it didnt work.

All these tries were made with a clean debian install.. so each time i reinstalled debian as i was not able to get it working

I now have a fresh install with lightdm and fluxbox. I didnt configure any proprietary drivers as of yet so everything is as original install with debian netinstaller. X starts but when i reboot system freezes, making me think it is probably the video driver that came preinstalled with the debian install.

Here is the Xorg log:
http://paste.debian.net/1052808/

daemon.log
http://paste.debian.net/1052809/

kern.log
http://paste.debian.net/1052810/

syslog
http://paste.debian.net/1052811/

nvidia-detect
Code: Select all
# nvidia-detect
Detected NVIDIA GPUs:
01:00.0 3D controller [0302]: NVIDIA Corporation GM107M [GeForce GTX 960M] [10de:139b] (rev a2)

Checking card:  NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
Your card is supported by the default drivers.
It is recommended to install the
    nvidia-driver
package.

Code: Select all
lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                8
On-line CPU(s) list:   0-7
Thread(s) per core:    2
Core(s) per socket:    4
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 94
Model name:            Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
Stepping:              3
CPU MHz:               1941.026
CPU max MHz:           3500.0000
CPU min MHz:           800.0000
BogoMIPS:              5186.00
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              6144K
NUMA node0 CPU(s):     0-7
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp


lightdm.log:
http://paste.debian.net/1052812/

dmesg, not sure if it is helpful as i ran it into the chroot:
http://paste.debian.net/1052813/


I am now chrooted into debian from my archlinux install waiting for somone that can help me figure this out.
On my archlinux isntall everything works with the following packages:
Code: Select all
extra/nvidia-utils 410.78-1
extra/nvidia-utils 410.78-1
InvisibleRasta
 
Posts: 11
Joined: 2018-11-22 13:51

Re: Stretch on Nvidia 960M MSI Gaming Laptop

Postby Head_on_a_Stick » 2018-11-22 17:44

InvisibleRasta wrote:i tried with:
Code: Select all
nvidia-drivers

[...]

then i tried with
Code: Select all
bumblebee and primus

What does "tried with" mean? Please list *exactly* what you did.

From the (truncated) logs it looks like you have an Optimus system, have you seen the relevant page in the Debian wiki?

I would recommend sticking with nouveau in Debian, use Arch if you want a blobby system. [/$0.02]
dbruce wrote:Ubuntu forums try to be like a coffee shop in Seattle. Debian forums strive for the charm and ambience of a skinhead bar in Bacau. We intend to keep it that way.
User avatar
Head_on_a_Stick
 
Posts: 8324
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Stretch on Nvidia 960M MSI Gaming Laptop

Postby InvisibleRasta » 2018-11-22 19:42

tried means i did "apt install " on the described packages, rebooted and things were happening as specified
I jsut said what i was using on arch to be able to maybe track wahts going on. no need to be sandy.
If you mean this page https://wiki.debian.org/NvidiaGraphicsDrivers/Optimus i have not tried that yet cause i preferred to use propreietary drivers

I did follow this wiki tho as i alredy said on the first post:
https://wiki.debian.org/Bumblebee
and i was not able to start X
InvisibleRasta
 
Posts: 11
Joined: 2018-11-22 13:51

Re: Stretch on Nvidia 960M MSI Gaming Laptop

Postby Head_on_a_Stick » 2018-11-22 20:11

InvisibleRasta wrote:I jsut said what i was using on arch to be able to maybe track wahts going on. no need to be sandy.

Sandy? **** off dickhead, I was just offering some advice...

InvisibleRasta wrote:I did follow this wiki tho as i alredy said on the first post

Is your user a member of the bumblebee group?
dbruce wrote:Ubuntu forums try to be like a coffee shop in Seattle. Debian forums strive for the charm and ambience of a skinhead bar in Bacau. We intend to keep it that way.
User avatar
Head_on_a_Stick
 
Posts: 8324
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Stretch on Nvidia 960M MSI Gaming Laptop

Postby InvisibleRasta » 2018-11-22 20:13

ok i tried once again to install the drivers and i cant figure out what is not working. this are the steps i did:
Created /etc/X11/xorg.conf
Code: Select all
Section "Module"
    Load "modesetting"
EndSection

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


Created /usr/local/bin/switch_nvidia.sh
Code: Select all
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
xrandr --dpi 96


Code: Select all
 chmod +x /usr/local/bin/switch_nvidia.sh


Added to /etc/lightdm/lightdm.conf
Code: Select all
[SeatDefaults]
display-setup-script=/usr/local/bin/switch_nvidia.sh

After this setup I went ahead to the Bumblebee wiki https://wiki.debian.org/Bumblebee
and did:
Code: Select all
apt-get install bumblebee-nvidia primus
adduser "myuser" bumblebee


Rebooted the system and after loggin in to tty and doing
Code: Select all
systemctl start lightdm

the system froze forcing me to reset.
InvisibleRasta
 
Posts: 11
Joined: 2018-11-22 13:51

Re: Stretch on Nvidia 960M MSI Gaming Laptop

Postby Head_on_a_Stick » 2018-11-22 20:19

Does `startx` from a console work?

The wiki page suggests GDM & Wayland might work better than LightDM.

EDIT: verbal abuse is allowed on these boards, your report will avail you nothing :mrgreen:
dbruce wrote:Ubuntu forums try to be like a coffee shop in Seattle. Debian forums strive for the charm and ambience of a skinhead bar in Bacau. We intend to keep it that way.
User avatar
Head_on_a_Stick
 
Posts: 8324
Joined: 2014-06-01 17:46
Location: /dev/chair


Re: Stretch on Nvidia 960M MSI Gaming Laptop

Postby Head_on_a_Stick » 2018-11-22 21:09

InvisibleRasta wrote:startx freezes the system

Can you switch to a console screen after this "freeze"?

Have you tried disabling kernel mode setting?

https://wiki.debian.org/KernelModesetting#Disabling_KMS
dbruce wrote:Ubuntu forums try to be like a coffee shop in Seattle. Debian forums strive for the charm and ambience of a skinhead bar in Bacau. We intend to keep it that way.
User avatar
Head_on_a_Stick
 
Posts: 8324
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Stretch on Nvidia 960M MSI Gaming Laptop

Postby InvisibleRasta » 2018-11-22 21:21

No i cannot switch to console or anything.. all i can do is press the hard reset
ok so i did:
Code: Select all
echo blacklist nouveau > /etc/modprobe.d/blacklist-nouveau.conf


/etc/X11/xorg.conf
Code: Select all
Section "Module"
    Load "modesetting"
EndSection

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



That did not work,system was freezing.
i also tried
Code: Select all
Section "Device"
    Identifier "nvidia"
    Driver "nvidia"

but this did not work aswell...

also tried
Code: Select all
Section "Device"
        Identifier      "n"
        Driver          "nv"
EndSection

still freezing
InvisibleRasta
 
Posts: 11
Joined: 2018-11-22 13:51

Re: Stretch on Nvidia 960M MSI Gaming Laptop

Postby milomak » 2018-11-22 22:00

is this by any chance an nvidia optimus laptop?
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Debian Sid, Win10,
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Debian Sid
milomak
 
Posts: 1860
Joined: 2009-06-09 22:20

Re: Stretch on Nvidia 960M MSI Gaming Laptop

Postby InvisibleRasta » 2018-11-22 22:02

yes it is
InvisibleRasta
 
Posts: 11
Joined: 2018-11-22 13:51

Re: Stretch on Nvidia 960M MSI Gaming Laptop

Postby sunrat » 2018-11-22 22:05

You seem to be doing a number of things wrong. I don't have an Optimus system to test, but AFAIK 3D is handled by Nvidia but sent back to the Intel graphics so having nvidia in your xorg.conf will prevent any display.
Also I've read a lot of threads where Nvidia drivers are attempted to be installed but fail, and subsequently Bumblebee installation fails. I would suggest booting to CLI, purging the system of everything nvidia, and then following the wiki exactly to install Bumblebee.

Maybe stevepusser will be along shortly to link to one of his threads where he got a similar laptop working. IIRC he installed a more recent kernel, drivers, and Mesa from backports plus some other magic tweak which got it working.
Or you could search the forums for bumblebee posts from user "stevepusser".
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2495
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: Stretch on Nvidia 960M MSI Gaming Laptop

Postby milomak » 2018-11-22 22:10

delete /etc/X11/xorg.conf

optimus laptops run as intel drivers firstly

and only access the nvidia driver via optirun or primusrun

and there is also this which i assume is created by the intel video xorg package

# cat /etc/X11/xorg.conf.d/20-intel.conf
Code: Select all
Section "Device"
  Identifier  "Intel Graphics"
  Driver      "intel"
  Option      "AccelMethod"
  Option      "TearFree" "true"
#  Option    "DRI"   "false"
EndSection
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Debian Sid, Win10,
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Debian Sid
milomak
 
Posts: 1860
Joined: 2009-06-09 22:20

Re: Stretch on Nvidia 960M MSI Gaming Laptop

Postby milomak » 2018-11-22 22:28

my rig info when i run inxi -F

Code: Select all
Graphics:  Device-1: Intel HD Graphics 530 driver: i915 v: kernel
           Device-2: NVIDIA GM107M [GeForce GTX 960M] driver: N/A
           Display: server: X.org 1.20.3 driver: intel tty: 129x34
           Message: Advanced graphics data unavailable in console. Try -G --display
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Debian Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Debian Sid, Win10,
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Debian Sid
milomak
 
Posts: 1860
Joined: 2009-06-09 22:20

Re: Stretch on Nvidia 960M MSI Gaming Laptop

Postby InvisibleRasta » 2018-11-22 22:47

so i did
sudo apt-get remove --purge '^nvidia-.*'
sudo rm /etc/X11/xorg.conf
echo 'nouveau' | sudo tee -a /etc/modules

added the 20- file you suggested... still cant boot tho
my inxi -F output
Code: Select all
Graphics:  Card-1: Intel HD Graphics 530
           Card-2: NVIDIA GM107M [GeForce GTX 960M]
           Display Server: X.org 1.19.2 drivers: modesetting,nvidia,nouveau (unloaded: fbdev,vesa)
           tty size: N/A Advanced Data: N/A for root
InvisibleRasta
 
Posts: 11
Joined: 2018-11-22 13:51

Next

Return to Hardware

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable