Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Stretch on Nvidia 960M MSI Gaming Laptop

Need help with peripherals or devices?
Message
Author
InvisibleRasta
Posts: 15
Joined: 2018-11-22 13:51

Stretch on Nvidia 960M MSI Gaming Laptop

#1 Post by InvisibleRasta »

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

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Stretch on Nvidia 960M MSI Gaming Laptop

#2 Post by Head_on_a_Stick »

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]
deadbang

InvisibleRasta
Posts: 15
Joined: 2018-11-22 13:51

Re: Stretch on Nvidia 960M MSI Gaming Laptop

#3 Post by InvisibleRasta »

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

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Stretch on Nvidia 960M MSI Gaming Laptop

#4 Post by Head_on_a_Stick »

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?
deadbang

InvisibleRasta
Posts: 15
Joined: 2018-11-22 13:51

Re: Stretch on Nvidia 960M MSI Gaming Laptop

#5 Post by InvisibleRasta »

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.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Stretch on Nvidia 960M MSI Gaming Laptop

#6 Post by Head_on_a_Stick »

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:
deadbang


User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Stretch on Nvidia 960M MSI Gaming Laptop

#8 Post by Head_on_a_Stick »

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
deadbang

InvisibleRasta
Posts: 15
Joined: 2018-11-22 13:51

Re: Stretch on Nvidia 960M MSI Gaming Laptop

#9 Post by InvisibleRasta »

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

milomak
Posts: 2158
Joined: 2009-06-09 22:20
Been thanked: 1 time

Re: Stretch on Nvidia 960M MSI Gaming Laptop

#10 Post by milomak »

is this by any chance an nvidia optimus laptop?
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid

InvisibleRasta
Posts: 15
Joined: 2018-11-22 13:51

Re: Stretch on Nvidia 960M MSI Gaming Laptop

#11 Post by InvisibleRasta »

yes it is

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: Stretch on Nvidia 960M MSI Gaming Laptop

#12 Post by sunrat »

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!

milomak
Posts: 2158
Joined: 2009-06-09 22:20
Been thanked: 1 time

Re: Stretch on Nvidia 960M MSI Gaming Laptop

#13 Post by milomak »

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: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid

milomak
Posts: 2158
Joined: 2009-06-09 22:20
Been thanked: 1 time

Re: Stretch on Nvidia 960M MSI Gaming Laptop

#14 Post by milomak »

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: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid

InvisibleRasta
Posts: 15
Joined: 2018-11-22 13:51

Re: Stretch on Nvidia 960M MSI Gaming Laptop

#15 Post by InvisibleRasta »

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

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Stretch on Nvidia 960M MSI Gaming Laptop

#16 Post by stevepusser »

Argghhh--why does everyone run inxi as root!

Anyway, your hardware is probably supported by the stock 4.9 kernel, but will be happier with a newer kernel from backports for better powersavings for Skylake, and you must have firmware-misc-nonfree from the non-free section to support your Skylake hardware. The stock Mesa 13.06 is fine.

I just recently got my MSI working with Bumblebee after some months, and then helped an MX user with an older gaming MSI laptop also get it working. It seems they need some tweaking to get it to work, unlike my Acer where it just worked out of the box.

I'd try just editing the conf file first after installing Bumblebee, then trying virtualgl packages if that doesn't help. MX 17 is the Stretch-based version for packages.

https://forum.mxlinux.org/viewtopic.php?f=104&t=47042

http://mxrepo.com/mx/testrepo/pool/test/v/virtualgl/
MX Linux packager and developer

InvisibleRasta
Posts: 15
Joined: 2018-11-22 13:51

Re: Stretch on Nvidia 960M MSI Gaming Laptop

#17 Post by InvisibleRasta »

sorry i think i didnt understand what i have to do, i added the backports repo for stretch and installed the 4.18 kernel.
after that i installed the firmware-misc-nonfree package. After that i tried to reboot but X was not wroking
do i still need /etc/X11/xorg.conf.d/20-intel.conf

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Stretch on Nvidia 960M MSI Gaming Laptop

#18 Post by Head_on_a_Stick »

InvisibleRasta wrote:do i still need /etc/X11/xorg.conf.d/20-intel.conf
No, Bumblebee requires no xorg configuration files.

See the warning on the wiki page:
Warning: If you choose to install bumblebee-nvidia and the dependent nvidia driver packages, during postinst, you will see a debconf prompt warning you that you need to create a xorg.conf file in order to use the proprietary nvidia driver. This prompt only applies to non-Optimus users, i.e. single Nvidia GPU systems. Do NOT allow debconf to create a xorg.conf file, and do NOT run nvidia-xconfig!
EDIT: if you are switching back to nouveau from the blobby drivers see https://wiki.debian.org/NvidiaGraphicsD ... of_failure
deadbang

milomak
Posts: 2158
Joined: 2009-06-09 22:20
Been thanked: 1 time

Re: Stretch on Nvidia 960M MSI Gaming Laptop

#19 Post by milomak »

InvisibleRasta wrote: echo 'nouveau' | sudo tee -a /etc/modules
why have you done this step?
Head_on_a_Stick wrote:
InvisibleRasta wrote:do i still need /etc/X11/xorg.conf.d/20-intel.conf
No, Bumblebee requires no xorg configuration files.
that conf file is to load the intel graphics driver not for use with bumblebee
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Stretch on Nvidia 960M MSI Gaming Laptop

#20 Post by stevepusser »

The 20-intel.conf file tells Debian to use the driver provided by xserver-xorg-video-intel instead of the kernel's modesetting driver. Without it, you'll get modesetting. The "intel" driver works fine for me with the blobby Nvidia driver with Bumblebee. Nothing installs that file for you (except MX Tweak, not in Debian), somehow you must have managed to follow instructions to create it. Those directions were poor, because the line:

Code: Select all

  Option      "AccelMethod"
is, as the error messages say it, "malformed".

Bumblebee does install a conf file for Nvidia, it's just in /etc/bumblebee, and is what I had to edit to get working on my MSI, and it seems to have helped that other MX user--please read the thread, and experiment with virtualgl if that doesn't help.

You don't need any xorg.conf files at all.
MX Linux packager and developer

Post Reply