logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 10-09-2022 09:59:21

fabien-dijon
Membre
Distrib. : debian 11
Noyau : Linux 5.10.0-17-amd64
(G)UI : gnome
Inscription : 10-09-2022

Probleme installation gt540M Nvidia optimus

Salut ,
Je n'arrive pas à faire fonctionner la carte graphique sur ce portable .(debian11 avec gnome)
petit test

lspci | egrep "VGA|3D|Display"


00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 540M] (rev a1)



j'ai donc suivi ce tuto  https://debian-facile.org/doc:materiel: … ia:optimus en utilisant le pilote propriétaire.
Pas de problème avec la carte intel.
Par contre avec la carte nvidia:

optirun glxinfo -B
 


[ 6260.983228] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[ 6260.983293] [ERROR]Aborting because fallback start is disable


j'ai donc modifié mon bumblebee.conf

# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia-current
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d
# Xorg binary to run
XorgBinary=/usr/lib/xorg/Xorg

## Client options. Will take effect on the next optirun executed.
[optirun]
# Acceleration/ rendering bridge, possible values are auto, virtualgl and
# primus.
Bridge=auto
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# List of paths which are searched for the primus libGL.so.1 when using
# the primus bridge
PrimusLibraryPath=/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false


# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
#         bbswitch - new in BB 3, recommended if available
#       switcheroo - vga_switcheroo method, use at your own risk
#             none - disable PM completely
# https://github.com/Bumblebee-Project/Bu … PM-methods

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia-current
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/x86_64-linux-gnu:/usr/lib/i386-linux-gnu
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia
# If set to true, will always unload the kernel module(s) even with
# PMMethod=none - useful for newer Optimus models on which the kernel power
# management works out of the box to power the card on/off without bbswitch.
AlwaysUnloadKernelDriver=false

## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau


pas de pb avec

modinfo nvidia-current


filename:       /lib/modules/5.10.0-17-amd64/updates/dkms/nvidia-current.ko
firmware:       nvidia/470.129.06/gsp.bin
alias:          char-major-195-*
version:        470.129.06
supported:      external
license:        NVIDIA
srcversion:     EB51CE03E42F9639560C463
alias:          pci:v000010DEd*sv*sd*bc03sc02i00*
alias:          pci:v000010DEd*sv*sd*bc03sc00i00*
depends:        drm
retpoline:      Y
name:           nvidia
vermagic:       5.10.0-17-amd64 SMP mod_unload modversions
parm:           NvSwitchRegDwords:NvSwitch regkey (charp)
parm:           NvSwitchBlacklist:NvSwitchBlacklist=uuid[,uuid...] (charp)
parm:           NVreg_ResmanDebugLevel:int
parm:           NVreg_RmLogonRC:int
parm:           NVreg_ModifyDeviceFiles:int
parm:           NVreg_DeviceFileUID:int
parm:           NVreg_DeviceFileGID:int
parm:           NVreg_DeviceFileMode:int
parm:           NVreg_InitializeSystemMemoryAllocations:int
parm:           NVreg_UsePageAttributeTable:int
parm:           NVreg_RegisterForACPIEvents:int
parm:           NVreg_EnablePCIeGen3:int
parm:           NVreg_EnableMSI:int
parm:           NVreg_TCEBypassMode:int
parm:           NVreg_EnableStreamMemOPs:int
parm:           NVreg_RestrictProfilingToAdminUsers:int
parm:           NVreg_PreserveVideoMemoryAllocations:int
parm:           NVreg_EnableS0ixPowerManagement:int
parm:           NVreg_S0ixPowerManagementVideoMemoryThreshold:int
parm:           NVreg_DynamicPowerManagement:int
parm:           NVreg_DynamicPowerManagementVideoMemoryThreshold:int
parm:           NVreg_EnableGpuFirmware:int
parm:           NVreg_EnableUserNUMAManagement:int
parm:           NVreg_MemoryPoolSize:int
parm:           NVreg_KMallocHeapMaxSize:int
parm:           NVreg_VMallocHeapMaxSize:int
parm:           NVreg_IgnoreMMIOCheck:int
parm:           NVreg_NvLinkDisable:int
parm:           NVreg_EnablePCIERelaxedOrderingMode:int
parm:           NVreg_RegisterPCIDriver:int
parm:           NVreg_RegistryDwords:charp
parm:           NVreg_RegistryDwordsPerDevice:charp
parm:           NVreg_RmMsg:charp
parm:           NVreg_GpuBlacklist:charp
parm:           NVreg_TemporaryFilePath:charp
parm:           NVreg_ExcludedGpus:charp
parm:           rm_firmware_active:charp


pas de pb non plus avec

dpkg -l | egrep "xserver-xorg-video-nvidia"


ii  xserver-xorg-video-nvidia              470.129.06-6~deb11u1             amd64        NVIDIA binary Xorg driver
 


J'ai bien sur testé en redémarrant l'ordi ,mais toujours le meme problème.

Merci d'avance pour toutes aides

Hors ligne

#2 10-09-2022 10:46:42

èfpé
Membre
Inscription : 10-07-2016

Re : Probleme installation gt540M Nvidia optimus

Bonjour fabien-dijon, et bienvenue !

fabien-dijon a écrit :

# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia-current

## Section with nvidia driver specific options, only parsed if Driver=nvidia


Pourquoi 'Driver=nvidia-current' ? Le tuto que tu as 'suivi' et les commentaires sont pourtant clairs.

Hors ligne

#3 10-09-2022 11:31:04

fabien-dijon
Membre
Distrib. : debian 11
Noyau : Linux 5.10.0-17-amd64
(G)UI : gnome
Inscription : 10-09-2022

Re : Probleme installation gt540M Nvidia optimus

Merci pour cette réponse.
Oui j'ai juste voulu tester .
j'ai rectifié mon fichier mais le problème est identique
fichier rectifié

# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d
# Xorg binary to run
XorgBinary=/usr/lib/xorg/Xorg

## Client options. Will take effect on the next optirun executed.
[optirun]
# Acceleration/ rendering bridge, possible values are auto, virtualgl and
# primus.
Bridge=auto
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# List of paths which are searched for the primus libGL.so.1 when using
# the primus bridge
PrimusLibraryPath=/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false


# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
#         bbswitch - new in BB 3, recommended if available
#       switcheroo - vga_switcheroo method, use at your own risk
#             none - disable PM completely
# https://github.com/Bumblebee-Project/Bu … PM-methods

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia-current
PMMethod=bbswitch
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/x86_64-linux-gnu:/usr/lib/i386-linux-gnu
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia
# If set to true, will always unload the kernel module(s) even with
# PMMethod=none - useful for newer Optimus models on which the kernel power
# management works out of the box to power the card on/off without bbswitch.
AlwaysUnloadKernelDriver=false

## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=bbswitch
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau



Je viens d'essayer avec ce tuto avec malheureusement le même résultat.
https://wiki.debian-fr.xyz/NVidia_Optimus_Bumblebee

Hors ligne

#4 11-09-2022 16:52:24

fabien-dijon
Membre
Distrib. : debian 11
Noyau : Linux 5.10.0-17-amd64
(G)UI : gnome
Inscription : 10-09-2022

Re : Probleme installation gt540M Nvidia optimus

Salut,
En mettant mon système à jour j'ai remarqué ça :

-------- Uninstall Beginning --------
Module:  nvidia-current
Version: 470.129.06
Kernel:  5.10.0-17-amd64 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

nvidia-current.ko:
- Uninstallation
   - Deleting from: /lib/modules/5.10.0-17-amd64/updates/dkms/
- Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-current-modeset.ko:
- Uninstallation
   - Deleting from: /lib/modules/5.10.0-17-amd64/updates/dkms/
- Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-current-drm.ko:
- Uninstallation
   - Deleting from: /lib/modules/5.10.0-17-amd64/updates/dkms/
- Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

nvidia-current-uvm.ko:
- Uninstallation
   - Deleting from: /lib/modules/5.10.0-17-amd64/updates/dkms/
- Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


nvidia-current-peermem.ko:
- Uninstallation
   - Deleting from: /lib/modules/5.10.0-17-amd64/updates/dkms/
- Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.

------------------------------
Deleting module version: 470.129.06
completely from the DKMS tree.
------------------------------



Mais aucune amélioration pour autant.
sos.gif

Hors ligne

#5 11-09-2022 17:28:40

ylag
Membre
Inscription : 16-03-2020

Re : Probleme installation gt540M Nvidia optimus

Bonsoir,

Pour cette carte NVIDIA :

NVIDIA Corporation GF108M [GeForce GT 540M] (rev a1)


Je doute fort qu'il soit proposé l'installation du paquet :

nvidia-current


...qui installera le pilote proprio courant le plus récent sur Debian 11, le 470 je crois.

Ce pilote ne convient pas à ta carte relativement ancienne, qui doit utiliser le pilote «legacy» de série 390, voir dans la liste sur ce site :
https://www.nvidia.com/en-us/drivers/unix/legacy-gpu/

Pour vérifier, installe le paquet nvidia-detect : https://packages.debian.org/bullseye/nvidia-detect
...et passe la commande :

nvidia-detect


...qui devrait te proposer l'installation du paquet

nvidia-legacy-390xx-driver



Par contre, je ne saurais dire si ça faciliterait pour toi le basculement entre le chipset Intel et la carte NVIDIA.

A+

Dernière modification par ylag (11-09-2022 17:32:11)

Hors ligne

#6 11-09-2022 17:40:59

fabien-dijon
Membre
Distrib. : debian 11
Noyau : Linux 5.10.0-17-amd64
(G)UI : gnome
Inscription : 10-09-2022

Re : Probleme installation gt540M Nvidia optimus

Merci pour ta réponse.
Oui je me suis dis la même chose car avant j'avais installé ma carte direct comme tu viens de décrire mais ça ne fonctionnait pas et du coup en cherchant j'ai testé ce tuto.
C'est bien le paquet  nvidia-legacy-390xx-driver qui m'est proposé .
Mais comment je l'installe ?
Je remplace dans mon bumblebee.conf nvidia-current par nvidia-legacy-390xx ?

Hors ligne

#7 11-09-2022 17:55:22

fabien-dijon
Membre
Distrib. : debian 11
Noyau : Linux 5.10.0-17-amd64
(G)UI : gnome
Inscription : 10-09-2022

Re : Probleme installation gt540M Nvidia optimus

Bon j'ai testé en remplaçant nividia-current nvidia-legacy-390xx
sans succès.

optirun firefox
 


[ 4650.183937] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[ 4650.184041] [ERROR]Could not connect to bumblebee daemon - is it running?



J'ai bien sur redémarrer le service avec

sudo systemctl restart bumblebeed
 



J'imagine que je dois installer le driver mais au début du tuto c'est indiqué de ne pas l'installer.

Hors ligne

#8 11-09-2022 20:47:46

ylag
Membre
Inscription : 16-03-2020

Re : Probleme installation gt540M Nvidia optimus

Bonsoir,

C'est bien le paquet  nvidia-legacy-390xx-driver qui m'est proposé .
Mais comment je l'installe ?


sudo apt install nvidia-legacy-390xx-driver


...ça devrait aussi entraîner l'installation des dépendances requises.


Je remplace dans mon bumblebee.conf nvidia-current par nvidia-legacy-390xx ?


Je ne sais pas pour la configuration de bumblebee, désolé...



J'imagine que je dois installer le driver mais au début du tuto c'est indiqué de ne pas l'installer.


Là aussi je ne saurais quoi te conseiller, faudrait l'intervention des spécialistes en la matière...

Si pas déjà fait, en plus du tuto que tu as suivi, peut-être consulter cette page sur wiki.debian.org (en anglais, ne semble pas y avoir de traduction française) : https://wiki.debian.org/NVIDIA%20Optimus

A+

Dernière modification par ylag (11-09-2022 21:00:45)

Hors ligne

#9 21-09-2022 19:43:58

fabien-dijon
Membre
Distrib. : debian 11
Noyau : Linux 5.10.0-17-amd64
(G)UI : gnome
Inscription : 10-09-2022

Re : Probleme installation gt540M Nvidia optimus

Salut après bien des heures d'essai .
J'ai mis ubuntu sur ce pc.
Le driver propriétaire ne fonctionne pas , mais le driver libre(nouveau) fonctionne de manière simple avec clic droit .
Bon j'aurais bien fait autrement ,mais c'est pas mon pc principal(debian 11) non plus (usage home studio uniquement et un peu de retrogaming).
Merci à tous

Hors ligne

#10 22-09-2022 10:19:42

phlinux
Membre
Distrib. : Buster
Noyau : 5.10
(G)UI : Openbox (+Rox+Feh)
Inscription : 09-05-2009

Re : Probleme installation gt540M Nvidia optimus

Bjr,

C'est quoi comme portable ?

Pages perso : feh, omegat, udisks, passerelle, schroot vraiment transparent

Hors ligne

Pied de page des forums