Problèmes et questions concernant le noyau et le support matériel.
Répondre

Drivers 2 cartes graphiques

#1Messageil y a 2 semaines

Bonjour,
J'ai installé récemment Manjaro Xfce sur un ordinateur portable MSI-GP72-6QE avec la config suivante :
inxi -Fx

System:    Host: msi-gp726qe Kernel: 5.6.12-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Xfce 4.14.2 
           Distro: Manjaro Linux 
Machine:   Type: Laptop System: Micro-Star product: GP72 6QE v: REV:1.0 serial: <filter> 
           Mobo: Micro-Star model: MS-1795 v: REV:0.A serial: <filter> UEFI [Legacy]: American Megatrends v: E1795IMS.11D 
           date: 01/19/2018 
Battery:   ID-1: BAT1 charge: 37.2 Wh condition: 38.0/42.4 Wh (90%) model: MSI BIF0_9 status: Unknown 
           Device-1: hidpp_battery_0 model: Logitech Wireless Mouse B330/M330/M331 charge: 55% (should be ignored) 
           status: Discharging 
CPU:       Topology: Quad Core model: Intel Core i7-6700HQ bits: 64 type: MT MCP arch: Skylake-S rev: 3 L2 cache: 6144 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 41621 
           Speed: 1000 MHz min/max: 800/2600 MHz Core speeds (MHz): 1: 1000 2: 1001 3: 1000 4: 1000 5: 1001 6: 1000 7: 1000 
           8: 1000 
Graphics:  Device-1: Intel HD Graphics 530 vendor: Micro-Star MSI driver: i915 v: kernel bus ID: 00:02.0 
           Device-2: NVIDIA GM107M [GeForce GTX 950M] vendor: Micro-Star MSI driver: nouveau v: kernel bus ID: 01:00.0 
           Display: x11 server: X.Org 1.20.8 driver: intel,nouveau unloaded: modesetting resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa Intel HD Graphics 530 (SKL GT2) v: 4.6 Mesa 20.0.6 direct render: Yes 
Audio:     Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel 
           bus ID: 00:1f.3 
           Device-2: NVIDIA GM107 High Definition Audio [GeForce 940MX] driver: snd_hda_intel v: kernel bus ID: 01:00.1 
           Sound Server: ALSA v: k5.6.12-1-MANJARO 
Network:   Device-1: Intel Wireless 3165 driver: iwlwifi v: kernel port: e000 bus ID: 02:00.0 
           IF: wlp2s0 state: down mac: <filter> 
           Device-2: Qualcomm Atheros Killer E2400 Gigabit Ethernet vendor: Micro-Star MSI driver: alx v: kernel port: d000 
           bus ID: 03:00.0 
           IF: enp3s0 state: up speed: 100 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 2.26 TiB used: 279.11 GiB (12.1%) 
           ID-1: /dev/sda vendor: Kingston model: SM2280S3G2480G size: 447.13 GiB 
           ID-2: /dev/sdb vendor: Seagate model: ST2000LM015-2E8174 size: 1.82 TiB 
Partition: ID-1: / size: 33.48 GiB used: 10.01 GiB (29.9%) fs: ext4 dev: /dev/sda5 
           ID-2: /home size: 84.85 GiB used: 20.90 GiB (24.6%) fs: ext4 dev: /dev/sda6 
           ID-3: swap-1 size: 25.17 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sdb3 
Sensors:   System Temperatures: cpu: 61.0 C mobo: 27.8 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 236 Uptime: 1h 14m Memory: 23.38 GiB used: 2.14 GiB (9.2%) Init: systemd Compilers: gcc: 9.3.0 
           Shell: bash v: 5.0.16 inxi: 3.0.37
Le portable a donc 2 cartes graphiques (Nvidia et Intel), et le pilote installé est video-linux.
mhwd -li -d --pci

   NAME:	video-linux
   ATTACHED:	PCI
   VERSION:	2018.05.04
   INFO:	Standard open source drivers.
   PRIORITY:	2
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 0380 0302 
   VENDORIDS:	1002 8086 10de 
Dans la configuration matérielle, j'ai une liste importante de drivers (hybrid-Intel-Nvidia; Nvidia simple ; prime ou bumblebee,...).
Lequel choisir ?
Doit-on désactiver la Video-linux ensuite ?
Comment installer les bons pilotes pour ce portable ?
Merci pour votre aide.

Drivers 2 cartes graphiques

#2Messageil y a 2 semaines

bonsoir normalement pour les portables
c'est hybride , bumblebee fonctionne de moins en moins , sans doute sur des vieux modèles
il reste a voir en prime et les autres

sujet à lire
https://forum.manjaro.org/t/howto-set-u ... iver/40225

comme tu n'as pas installé avec l'option no-free drivers , il ne faut pas s'attendre à un résultat immédiat pour le fonctionnement ( acpid , group , UEFI[legacy] , version drivers 440 ou moins ? )

Drivers 2 cartes graphiques

#3Messageil y a 1 semaine

J'ai exécuté les directives comme défini dans https://forum.manjaro.org/t/howto-set-u ... iver/40225
soit :
1- Installer le driver video-hybrid-intel-nvidia-440xx-prime à l'aide de la "Configuration matériel"
mhwd -li -d --pci

   NAME:	video-linux
   ATTACHED:	PCI
   VERSION:	2018.05.04
   INFO:	Standard open source drivers.
   PRIORITY:	2
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 0380 0302 
   VENDORIDS:	1002 8086 10de 

   NAME:	video-hybrid-intel-nvidia-440xx-prime
   ATTACHED:	PCI
   VERSION:	2019.10.25
   INFO:	Hybrid prime solution for NVIDIA Optimus Technology - Closed source NVIDIA driver & open source intel driver.
   PRIORITY:	21
   FREEDRIVER:	false
   DEPENDS:	-
   CONFLICTS:	video-hybrid-intel-nvidia-340xx-bumblebee video-hybrid-intel-nvidia-390xx-bumblebee video-hybrid-intel-nvidia-418xx-bumblebee video-hybrid-intel-nvidia-430xx-bumblebee video-hybrid-intel-nvidia-435xx-prime video-nvidia-340xx video-nvidia-390xx video-nvidia-418xx video-nvidia-430xx video-nvidia-435xx video-nvidia-440xx 
   CLASSIDS:	0300 0302 0300 
   VENDORIDS:	10de 8086 
On constate un conflit !
2- Supprimer /etc/X11/xorg.conf.d/90-mhwd.conf
Créer le fichier /etc/X11/xorg.conf.d/optimus.conf
ll /etc/X11/xorg.conf.d/

-rw-r--r-- 1 root root  266 21 mai   18:00 00-keyboard.conf
-rw-r--r-- 1 root root  191 24 mai   14:39 optimus.conf
cat /etc/X11/xorg.conf.d/optimus.conf

Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    Option "AllowEmptyInitialConfiguration"
EndSection
lspci | grep -E "VGA|3D"

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 950M] (rev a2)
3- Réagencer le dossier /etc/modprobe.d
ll /etc/modprobe.d

total 24
drwxr-xr-x   2 root root 4096 24 mai   14:44 ./
drwxr-xr-x 101 root root 4096 24 mai   14:15 ../
-rw-r--r--   1 root root   62 24 mai   14:23 nvidia.conf
-rw-r--r--   1 root root   29 24 mai   14:34 nvidia-drm.conf
cat /etc/modprobe.d/nvidia.conf

blacklist nouveau
blacklist nvidiafb
blacklist rivafb
cat /etc/modprobe.d/nvidia-drm.conf

options nvidia_drm modeset=1
4- Définir la source de sortie du DM : ici Xfce
ll /usr/local/bin/optimus.sh

-rwxr-xr-x 1 root root 80 24 mai   14:46 /usr/local/bin/optimus.sh*
cat /usr/local/bin/optimus.sh

#!/bin/sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
5 - Démarrage de LightDM
head /etc/lightdm/lightdm.conf

[Seat:*]
#
# General configuration
#
display-setup-script=/usr/local/bin/optimus.sh
#
# start-default-seat = True to always start one seat if none are defined in the configuration
# greeter-user = User to run greeter as
# minimum-display-number = Minimum display number to use for X servers
# minimum-vt = First VT to run displays on
6- Bon maintenant il me reste à redémarrer la machine !
---- Suspense
Apparemment, tout c'est bien passé, pas de blocage au démarrage. Ouf!
Petite vérification :

glxinfo | grep -i vendor
server glx vendor string: NVIDIA Corporation
client glx vendor string: NVIDIA Corporation
OpenGL vendor string: NVIDIA Corporation
Bien, Je fonctionne en graphique via le dGPU et non l'iGPU.
Seconde vérification :

sudo dmesg --level err
[    0.167814] DMAR: [Firmware Bug]: No firmware reserved region can cover this RMRR [0x000000007b800000-0x000000007fffffff], contact BIOS vendor for fixes
[    0.168077] DMAR: DRHD: handling fault status reg 2
[    0.168079] DMAR: [INTR-REMAP] Request device [f0:1f.0] fault index 0 [fault reason 37] Blocked a compatibility format interrupt request
Bon, la, il y a un petit soucis. Pourtant, j'ai bien la dernier version du Bios de MSI (E1795IMS.11D)

sudo dmesg --level warn
[    0.167815] DMAR: [Firmware Bug]: Your BIOS is broken; bad RMRR [0x000000007b800000-0x000000007fffffff]
               BIOS vendor: American Megatrends Inc.; Ver: E1795IMS.11D; Product Version: REV:1.0
[    0.404807] MDS CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/mds.html for more details.
[    0.404807] TAA CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/tsx_async_abort.html for more details.
[    0.444363]  #5 #6 #7
[    0.532862] ENERGY_PERF_BIAS: Set to 'normal', was 'performance'
[    0.635820] pci 0000:00:01.0: ASPM: current common clock configuration is broken, reconfiguring
[    3.420449] nvidia: loading out-of-tree module taints kernel.
[    3.420457] nvidia: module license 'NVIDIA' taints kernel.
[    3.420457] Disabling lock debugging due to kernel taint
[    3.534779] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  440.82  Wed Apr  1 20:04:33 UTC 2020
[    3.608548] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20200110/nsarguments-59)
[    4.623246] thermal thermal_zone4: failed to read out thermal zone (-61)
[    5.921273] uvcvideo 1-11:1.0: Entity type for entity Realtek Extended Controls Unit was not initialized!
[    5.921277] uvcvideo 1-11:1.0: Entity type for entity Extension 4 was not initialized!
[    5.921280] uvcvideo 1-11:1.0: Entity type for entity Processing 2 was not initialized!
[    5.921283] uvcvideo 1-11:1.0: Entity type for entity Camera 1 was not initialized!
[    5.947238] kauditd_printk_skb: 46 callbacks suppressed
[   11.520219] kauditd_printk_skb: 21 callbacks suppressed
Votre avis SVP ?

Drivers 2 cartes graphiques

#4Messageil y a 1 semaine

Les messages d'erreur s'accumulent, surtout après une mise en veille :

sudo dmesg --level err
[ 3466.007703] PM: dpm_run_callback(): usb_dev_resume+0x0/0x10 returns -5
[ 3466.007707] PM: Device 1-7 failed to resume async: error -5
[ 5383.619636] PM: dpm_run_callback(): usb_dev_resume+0x0/0x10 returns -5
[ 5383.619640] PM: Device 1-7 failed to resume async: error -5
[ 5383.911190] Bluetooth: hci0: unexpected event for opcode 0xfc2f
[ 5384.054048] pcieport 0000:00:1c.0: AER: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID)
[ 5384.054049] pcieport 0000:00:1c.0: AER:   device [8086:a110] error status/mask=00000001/00002000
[ 5384.054050] pcieport 0000:00:1c.0: AER:    [ 0] RxErr                  (First)
[ 5384.280854] pcieport 0000:00:1c.0: AER: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID)
[ 5384.280864] pcieport 0000:00:1c.0: AER:   device [8086:a110] error status/mask=00000001/00002000
[ 5384.280865] pcieport 0000:00:1c.0: AER:    [ 0] RxErr                  (First)
[ 5387.929155] pcieport 0000:00:1c.0: AER: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID)
[ 5387.929160] pcieport 0000:00:1c.0: AER:   device [8086:a110] error status/mask=00000001/00002000
[ 5387.929164] pcieport 0000:00:1c.0: AER:    [ 0] RxErr                  (First)
[ 5388.924410] pcieport 0000:00:1c.0: AER: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID)
[ 5388.924412] pcieport 0000:00:1c.0: AER:   device [8086:a110] error status/mask=00000001/00002000
[ 5388.924413] pcieport 0000:00:1c.0: AER:    [ 0] RxErr                  (First)
[ 5388.988482] pcieport 0000:00:1c.0: AER: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID)
[ 5388.988489] pcieport 0000:00:1c.0: AER:   device [8086:a110] error status/mask=00000001/00002000
[ 5388.988495] pcieport 0000:00:1c.0: AER:    [ 0] RxErr                  (First)
Voici la sorite de la commande lspci :

lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
00:14.0 USB controller: Intel Corporation 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller (rev 31)
00:14.2 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Thermal Subsystem (rev 31)
00:16.0 Communication controller: Intel Corporation 100 Series/C230 Series Chipset Family MEI Controller #1 (rev 31)
00:17.0 SATA controller: Intel Corporation HM170/QM170 Chipset SATA Controller [AHCI Mode] (rev 31)
00:1c.0 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #1 (rev f1)
00:1c.3 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #4 (rev f1)
00:1f.0 ISA bridge: Intel Corporation HM170 Chipset LPC/eSPI Controller (rev 31)
00:1f.2 Memory controller: Intel Corporation 100 Series/C230 Series Chipset Family Power Management Controller (rev 31)
00:1f.3 Audio device: Intel Corporation 100 Series/C230 Series Chipset Family HD Audio Controller (rev 31)
00:1f.4 SMBus: Intel Corporation 100 Series/C230 Series Chipset Family SMBus (rev 31)
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 950M] (rev a2)
02:00.0 Network controller: Intel Corporation Wireless 3165 (rev 81)
03:00.0 Ethernet controller: Qualcomm Atheros Killer E2400 Gigabit Ethernet Controller (rev 10)

Répondre