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

 

 

 

[SOLVED] Is graphic card running?

Need help with peripherals or devices?
Post Reply
Message
Author
Daguhh
Posts: 10
Joined: 2017-09-04 18:14

[SOLVED] Is graphic card running?

#1 Post by Daguhh »

Hi everyone,

I recently install debian 9 with kde/plasms5 and try to get my graphic card working :

Code: Select all

3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev a2)
I got also an integrated graphic controller :

Code: Select all

VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06) (prog-if 00 [VGA controller])
So I got some questions :
1) nouveau or nvidia-driver?
I decide to keep the "nouveau" driver install, after some search it seems that my card is supported. but I don't found any benchmark or performence information to know if my graphic card is well-supported

2) start my GPU
I don't remenber if I installed it or if it come with "nouveau", but I got the package :
bbswitch-dkms
But I don't know if it get my card running
I install "primus/primusrun" in place of optirun
but I got an error while trying running it :

Code: Select all

sudo primusrun blender
[sudo] Mot de passe de david : 
/usr/bin/primusrun: ligne 41: avertissement :command substitution: ignored null byte in input
primus: fatal: Bumblebee daemon reported: error: [XORG] (EE) Failed to load module "mouse" (module does not exist, 0)
After some search I don't found what this error refers to (C++ error I think), so here is the 41 ligne, just in case:

Code: Select all

# On some distributions, e.g. on Gentoo, libnvidia-tls.so is not available
# in default search paths.  Add its path manually after the primus library
bblibs=$(echo -ne 'Q LibraryPath\0' | \
  socat - UNIX-CONNECT:/var/run/bumblebee.socket | sed 's/^Value: \(.*\)/\1/')
dmesg give me :

Code: Select all

[33439.338860] bbswitch: enabling discrete graphics
[33439.550992] ACPI Warning: \_SB.PCI0.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160831/nsarguments-95)
[33439.551050] ACPI Warning: \_SB.PCI0.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160831/nsarguments-95)
[33439.551223] i915 0000:00:02.0: optimus capabilities: enabled, status dynamic power, hda bios codec supported
[33439.551251] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160831/nsarguments-95)
[33439.551291] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160831/nsarguments-95)
[33439.551437] pci 0000:01:00.0: optimus capabilities: enabled, status dynamic power, hda bios codec supported
[33439.551439] VGA switcheroo: detected Optimus DSM method \_SB_.PCI0.PEG0.PEGP handle
[33439.551440] nouveau: detected PR support, will not use DSM
[33439.551549] nouveau 0000:01:00.0: NVIDIA GM107 (117120a2)
[33439.566701] nouveau 0000:01:00.0: bios: version 82.07.3e.00.0d
[33439.671019] nouveau 0000:01:00.0: fb: 2048 MiB GDDR5
[33439.671074] nouveau 0000:01:00.0: priv: HUB0: 10ecc0 ffffffff (1a40822c)
[33440.972533] vga_switcheroo: enabled
[33440.972618] [TTM] Zone  kernel: Available graphics memory: 4049900 kiB
[33440.972618] [TTM] Zone   dma32: Available graphics memory: 2097152 kiB
[33440.972619] [TTM] Initializing pool allocator
[33440.972622] [TTM] Initializing DMA pool allocator
[33440.972639] nouveau 0000:01:00.0: DRM: VRAM: 2048 MiB
[33440.972640] nouveau 0000:01:00.0: DRM: GART: 1048576 MiB
[33440.972642] nouveau 0000:01:00.0: DRM: Pointer to TMDS table invalid
[33440.972644] nouveau 0000:01:00.0: DRM: DCB version 4.0
[33440.972645] nouveau 0000:01:00.0: DRM: Pointer to flat panel table invalid
[33441.097756] nouveau 0000:01:00.0: DRM: MM: using COPY for buffer copies
[33441.097763] [drm] Initialized nouveau 1.3.1 20120801 for 0000:01:00.0 on minor 1
[33447.565194] nouveau 0000:01:00.0: DRM: evicting buffers...
[33447.622904] nouveau 0000:01:00.0: DRM: waiting for kernel channels to go idle...
[33447.622923] nouveau 0000:01:00.0: DRM: suspending client object trees...
[33447.625668] nouveau 0000:01:00.0: DRM: suspending kernel object tree...
[33947.628244] nouveau 0000:01:00.0: DRM: resuming kernel object tree...
[33947.792598] nouveau 0000:01:00.0: priv: HUB0: 10ecc0 ffffffff (1a40822c)
and the 5 last line keep repeting

3) monitoring the GPU
jI also try to launch a game, seems working, but with a lot of lag,
does the "nouveau" driver supported my card not enough?
or my gpu is not start?
So, is there some programm to monitor gpu usage or just a command to see if my card is started?
I found nvidia-smi, but I fear to install it and break "nouveau"

Thank you for attention,

David,
Last edited by Daguhh on 2017-09-11 08:36, edited 1 time in total.


Daguhh
Posts: 10
Joined: 2017-09-04 18:14

Re: Is graphic card running?

#3 Post by Daguhh »

Thank you, but I already read those links, first one is about installing nvidia driver, and I'd like to keep nouveau driver.
second, is the one I follow to install bumblebee, there is some of error that are described but none correspond to the one that I have.

I finally found a dependencie that missing and resolved this error:

Code: Select all

error: [XORG] (EE) Failed to load module "mouse" (module does not exist, 0)
But I got a new error :

Code: Select all

david@pc24:~$ optirun -v glxgear
[72097.064728] [INFO]Configured driver: nouveau
[72097.459731] [INFO]Response: No - error: [XORG] (EE) Unknown chipset: NV117
[72097.459742] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Unknown chipset: NV117
[72097.459755] [ERROR]Aborting because fallback start is disabled.
I've seen on some old forum that it means GPU was not supported,
but my GTX 860M seems to be supported by "nouveau" :
https://nouveau.freedesktop.org/wiki/FeatureMatrix/ & https://nouveau.freedesktop.org/wiki/CodeNames/

I try to edit a bit config files, here is /etc/bumblebee/bumblebee.conf :

Code: Select all

[bumblebeed]
VirtualDisplay=:8
KeepUnusedXServer=false
ServerGroup=bumblebee
TurnCardOffAtExit=false
NoEcoModeOverride=false
Driver=nouveau
XorgConfDir=/etc/bumblebee/xorg.conf.d
XorgBinary=/usr/lib/xorg/Xorg

[optirun]
Bridge=auto
VGLTransport=proxy
PrimusLibraryPath=/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
AllowFallbackToIGC=false

[driver-nvidia]
KernelDriver=nvidia
PMMethod=auto
LibraryPath=/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
XorgModulePath=/usr/lib/nvidia/nvidia,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau
And here is /etc/bumblebee/xorg.conf.nouveau :

Code: Select all

Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddDevices" "false"
    Option      "AutoAddGPU" "false"
EndSection

Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nouveau"
    BusID "PCI:01:00:0"

EndSection

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

Re: Is graphic card running?

#4 Post by stevepusser »

A question that arises is if your card is supported by the version of nouveau that's in Stretch. It's probably not going to be as up-to-date as what you'll see on the driver's home page. Also, many cards will require non-free firmware with nouveau anyway:

https://packages.debian.org/stretch/fir ... sc-nonfree

so if your card does, sorry to shatter your libre dream. :( You may as well try the bumblebee-nvidia solution.
MX Linux packager and developer

Daguhh
Posts: 10
Joined: 2017-09-04 18:14

Re: Is graphic card running?

#5 Post by Daguhh »

ok :( , so let's go with nvidia,
thanks anyway !

Post Reply