Graphics Drivers 960M & Intel HD

Everything about X, Gnome, KDE, ... and everything running on it

Re: Graphics Drivers 960M & Intel HD

Postby matheos96 » 2018-02-03 15:59

Wheelerof4te wrote:You shouldn't have broken dependencies for linux-headers, dkms and glx. Some package(s), that you removed, caused them to be considered by apt for removal. What did you do before these packages started appearing there?
Better yet, what does your sources.list look like?
Code: Select all
cat /etc/apt/sources.list


When bumblebee was messing with my GPU fan and I tried to uninstall it I ran
Code: Select all
sudo apt-get remove --auto-remove bumblebee

and when that did not stop the fan bug I also ran
Code: Select all
sudo apt-get remove --purge nvidia-*

Don't quote me on it being apt-get, could have done apt too... Don't know if there really is any difference?

sources.list
Code: Select all
# deb cdrom:[Debian GNU/Linux 9.3.0 _Stretch_ - Official amd64 DVD Binary-1 20171209-12:11]/ stretch contrib main

#deb cdrom:[Debian GNU/Linux 9.3.0 _Stretch_ - Official amd64 DVD Binary-1 20171209-12:11]/ stretch contrib main

deb http://ftp.fi.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.fi.debian.org/debian/ stretch main contrib non-free

deb http://security.debian.org/debian-security stretch/updates main contrib non-free
deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free

# stretch-updates, previously known as 'volatile'
deb http://ftp.fi.debian.org/debian/ stretch-updates main contrib non-free
deb-src http://ftp.fi.debian.org/debian/ stretch-updates main contrib non-free

#Chrome
deb http://dl.google.com/linux/chrome/deb/ stable main
matheos96
 
Posts: 11
Joined: 2018-02-01 16:27

Re: Graphics Drivers 960M & Intel HD

Postby stevepusser » 2018-02-03 16:44

First of all, just make sure your Intel graphics are working correctly. Everything else depends on that. Forget about kernels for now.

Let's see if it is...install inxi and give the result of

Code: Select all
inxi -G


It should look similar to mine with a Skylake 520, except you'll have different hardware:

Graphics: Card-1: Intel HD Graphics 520
Card-2: NVIDIA Device 179c
Display Server: x11 (X.Org 1.19.2 ) driver: intel Resolution: 1920x1080@60.01hz
OpenGL: renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2) version: 4.5 Mesa 13.0.6

When Bumblebee is working correctly, "optirun inxi -G" will show the openGL rendering switched to the Nvidia card.



The Liquorix kernel backport post is still good...I'm the one that maintains that repo (among others).
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.3, Pale Moon 27.7.2, Yacreader 9.0, Calligra 3.1, VLC 3.0.0, Firefox 58.0.2, OBS-Studio 21.0.2
User avatar
stevepusser
 
Posts: 9234
Joined: 2009-10-06 05:53

Re: Graphics Drivers 960M & Intel HD

Postby matheos96 » 2018-02-03 17:16

stevepusser wrote:First of all, just make sure your Intel graphics are working correctly. Everything else depends on that. Forget about kernels for now.

Let's see if it is...install inxi and give the result of

Code: Select all
inxi -G


It should look similar to mine with a Skylake 520, except you'll have different hardware:

Graphics: Card-1: Intel HD Graphics 520
Card-2: NVIDIA Device 179c
Display Server: x11 (X.Org 1.19.2 ) driver: intel Resolution: 1920x1080@60.01hz
OpenGL: renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2) version: 4.5 Mesa 13.0.6

When Bumblebee is working correctly, "optirun inxi -G" will show the openGL rendering switched to the Nvidia card.



The Liquorix kernel backport post is still good...I'm the one that maintains that repo (among others).


This is inxi -G (was already installed...)
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 (unloaded: fbdev,vesa)
           Resolution: 1920x1080@60.00hz
           GLX Renderer: Mesa DRI Intel HD Graphics 530 (Skylake GT2)
           GLX Version: 3.0 Mesa 13.0.6


What does it look like? Should I try bumblee again?
matheos96
 
Posts: 11
Joined: 2018-02-01 16:27

Re: Graphics Drivers 960M & Intel HD

Postby stevepusser » 2018-02-03 19:39

Are you still having to use nomodeset to boot with the modesetting driver that Debian uses as default? That seems at cross-purposes, and may be why you have trouble with it. I use the xserver-xorg-video-intel "intel" driver myself with my Optimus setup. To use that, make sure that package is installed and create an /etc/X11/xorg.conf.d/20-intel.conf file with the contents:

Code: Select all
Section "Device"
    Identifier  "Intel Graphics"
    Driver      "intel"
    Option      "AccelMethod"    "sna"
    Option      "TearFree"    "true"
EndSection


and restart. Inxi should show that you're now using the "intel" driver.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.3, Pale Moon 27.7.2, Yacreader 9.0, Calligra 3.1, VLC 3.0.0, Firefox 58.0.2, OBS-Studio 21.0.2
User avatar
stevepusser
 
Posts: 9234
Joined: 2009-10-06 05:53

Re: Graphics Drivers 960M & Intel HD

Postby matheos96 » 2018-02-03 23:00

stevepusser wrote:Are you still having to use nomodeset to boot with the modesetting driver that Debian uses as default? That seems at cross-purposes, and may be why you have trouble with it. I use the xserver-xorg-video-intel "intel" driver myself with my Optimus setup. To use that, make sure that package is installed and create an /etc/X11/xorg.conf.d/20-intel.conf file with the contents:

Code: Select all
Section "Device"
    Identifier  "Intel Graphics"
    Driver      "intel"
    Option      "AccelMethod"    "sna"
    Option      "TearFree"    "true"
EndSection


and restart. Inxi should show that you're now using the "intel" driver.


I will try it tomorrow. I did remove all my boot"flags" except quiet when I had bumblebee if u meant that. So together with bumblebee I did not have nomodeset
matheos96
 
Posts: 11
Joined: 2018-02-01 16:27

Re: Graphics Drivers 960M & Intel HD

Postby matheos96 » 2018-02-04 14:44

Okay so now I have given ur tip a test.

First I wanna mention I know realized that indeed the computer rarely boots when using nouveau.modeset=0 instead of nomodeset. Sometimes it does but it seems VERY random and rare.

Turns out, xserver-xorg-video-intel was already installed and the latest version... The file however, did not exist. So I created it and rebooted. (Using nouveau.modeset=0 still).
I got to the login screen but when it was about to show the desktop it typically went black (this is what always happens if I don't use nomodeset). So I put nomodeset as boot option instead of nouveau.modeset=0 and rebooted.
Now I didn't even get into X... Verbose boot stopped at a screen saying "FAILED to start Light Desktop Manager"... So to even get it booted in anyway again, after trying your fix, I had to set "nomodeset" in /etc/default/grub and also
rm -rf /etc/X11/xorg.conf.d

So I am back to square one so to speak...
matheos96
 
Posts: 11
Joined: 2018-02-01 16:27

Re: Graphics Drivers 960M & Intel HD

Postby Ardouos » 2018-02-06 20:18

Using Steve's Liquorix repo, it is working great. Thanks!
Code: Select all
$ uname -a
Linux pcspec-lt 4.14.0-17.1-liquorix-amd64 #1 ZEN SMP PREEMPT liquorix 4.14-23~obs (2018-02-05) x86_64 GNU/Linux
User avatar
Ardouos
 
Posts: 982
Joined: 2013-11-03 00:30
Location: Elicoor II

Re: Graphics Drivers 960M & Intel HD

Postby stevepusser » 2018-02-07 01:51

Ardouos wrote:Using Steve's Liquorix repo, it is working great. Thanks!
Code: Select all
$ uname -a
Linux pcspec-lt 4.14.0-17.1-liquorix-amd64 #1 ZEN SMP PREEMPT liquorix 4.14-23~obs (2018-02-05) x86_64 GNU/Linux


Thanks to openSUSE for providing the build farm and hosting the repo for free! I just edit a few lines in a few files in the Liquorix debian folder, run a command to regenerate the files in /debian from the changed defines, regenerate the source files with "debuild -S -uc -us -d", upload them and it does the rest. If someone wants to do it locally, the recipe is

/debian/config/defines: change where it reads "gcc-7" to "gcc". This means it will use the default gcc for your release.

Run
Code: Select all
PYTHONHASHSEED=0 debian/bin/gencontrol.py
to regenerate your files from the new defines.

Build packages with

Code: Select all
debuild -uc -us -jX
where X=numbers of cores you wish to devote to the build. This leaves out creating a new version in the changelog, though.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Krita 3.3.3, Pale Moon 27.7.2, Yacreader 9.0, Calligra 3.1, VLC 3.0.0, Firefox 58.0.2, OBS-Studio 21.0.2
User avatar
stevepusser
 
Posts: 9234
Joined: 2009-10-06 05:53

Re: Graphics Drivers 960M & Intel HD [Solved-ish]

Postby matheos96 » 2018-02-13 20:13

Hello guys. A quick update. I got fed up and got rid of debian. These optimus computers really are pain with linux... Anyway, I managed to get Manjaro Linux working using its architect-iso. The way I got bumblebee working on there might have worked on debian too... who knows. But I am perfectly happy with my Manjaro now so I won't switch back. It's working without problems but if anyone wanna know how I made it work it can be read here: https://forum.manjaro.org/t/cant-get-in ... =matheos96

Hope it helps someone with a similar computer :)
matheos96
 
Posts: 11
Joined: 2018-02-01 16:27

Re: Graphics Drivers 960M & Intel HD

Postby Wheelerof4te » 2018-02-14 11:33

^Glad that you solved your problem. Manjaro is good for people who need quick Arch and AUR features. In my experience, it is a very buggy, duct-tape patched version of Arch that is seriously understaffed for what it tries to do.
User avatar
Wheelerof4te
 
Posts: 660
Joined: 2015-08-30 20:14

Previous

Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable