HP EliteOne 800 G4 23.8-in Non-Touch GPU AiO => Dual screen Le sujet est résolu

Demande d'aide : c'est ici.
Répondre
Avatar de l’utilisateur
lol
Site Admin
Site Admin
Messages : 4959
Inscription : 04 avr. 2016, 12:11
Localisation : Madagascar
Status : Hors-ligne

Salut les amis,

Encore un problème avec ATI... :diablo:

Je rencontre un problème d'affichage agaçant avec une machine "All in one" de chez HP (HP EliteOne 800 G4 23.8-in Non-Touch GPU AiO)
Je n'arrive pas à faire fonctionner les deux sorties vidéos en même temps.

Lors de l'installation (Debian 11 + XFCE) le pilote amdgpu est installé.

Code : Tout sélectionner

# uname -a
Linux xxx 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux
Pas de problème, l'écran principal fonctionne bien.

Code : Tout sélectionner

# lspci -nnkd ::300
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 550 640SP / RX 560/560X] [1002:67ff] (rev ef)
	Subsystem: Hewlett-Packard Company Baffin [Radeon RX 550 640SP / RX 560/560X] [103c:83e3]
	Kernel modules: amdgpu

Code : Tout sélectionner

# lspci -v -d 1002:
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 550 640SP / RX 560/560X] (rev ef) (prog-if 00 [VGA controller])
	Subsystem: Hewlett-Packard Company Baffin [Radeon RX 550 640SP / RX 560/560X]
	Flags: bus master, fast devsel, latency 0, IRQ 255, IOMMU group 1
	Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Memory at f0000000 (64-bit, prefetchable) [size=2M]
	I/O ports at 3000 [size=256]
	Memory at f0400000 (32-bit, non-prefetchable) [size=256K]
	Expansion ROM at f0460000 [disabled] [size=128K]
	Capabilities: [48] Vendor Specific Information: Len=08 <?>
	Capabilities: [50] Power Management version 3
	Capabilities: [58] Express Legacy Endpoint, MSI 00
	Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
	Capabilities: [270] Secondary PCI Express
	Capabilities: [320] Latency Tolerance Reporting
	Kernel modules: amdgpu

01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X]
	Subsystem: Hewlett-Packard Company Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X]
	Flags: bus master, fast devsel, latency 0, IRQ 137, IOMMU group 1
	Memory at f0440000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [48] Vendor Specific Information: Len=08 <?>
	Capabilities: [50] Power Management version 3
	Capabilities: [58] Express Legacy Endpoint, MSI 00
	Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

Code : Tout sélectionner

$ glxinfo | grep -i "direct rendering"
direct rendering: Yes
Mais ... la sortie vidéo secondaire (HDMI) n'est pas détectée.
affichage.png

Code : Tout sélectionner

$ xrandr -q
Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 16384 x 16384
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 290mm
   1920x1080     60.00*+  50.00    59.94  
   1680x1050     59.88  
   1600x900      60.00  
   1280x1024     60.02  
   1440x900      59.90  
   1280x800      59.91  
   1280x720      60.00    50.00    59.94  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       60.00    59.94  
   720x400       70.08  
DVI-0 disconnected (normal left inverted right x axis y axis)
VGA-0 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 509mm x 286mm
   1920x1080     60.00*+
   1680x1050     59.95  
   1600x900      60.00  
   1280x1024     60.02  
   1440x900      59.89  
   1280x800      59.81  
   1280x720      60.00  
   1024x768      60.00  
   800x600       60.32  
   640x480       59.94  
   720x400       70.08
J'ai pourtant le sentiment que le système détecte les deux sorties

Code : Tout sélectionner

$ xrandr --listmonitors
Monitors: 2
 0: +*HDMI-0 1920/510x1080/290+0+0  HDMI-0
 1: +VGA-0 1920/509x1080/286+1920+0  VGA-0
A ce moment là, je suppose qu'il faut que j'installe les pilotes non libres (C'est mal, mais je n'ai pas le choix), j'installe donc

Code : Tout sélectionner

# apt install -y firmware-amd-graphics libgl1-mesa-dri amd64-microcode
Bizarrement il manquerait des firmware :017:

Code : Tout sélectionner

update-initramfs: Generating /boot/initrd.img-5.10.0-19-amd64
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_gpu_info.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_ta.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_sos.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_ta.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_asd.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_sos.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_rlc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_mec2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_mec.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_rlc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_mec2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_mec.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_me.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_pfp.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_ce.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_sdma.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_sdma.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi10_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_vcn.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_vcn.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_smc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_smc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_dmcub.bin for module amdgpu
Et je redémarre.
Super, l'écran secondaire fonctionne. Mais plus l'écran principal qui reste désespérément noir... :sad:

"J'aurais" donc une sortie qui fonctionne avec le pilote libre amdgpu et l'autre quand le pilote propriétaire firmware-amd-graphics est installé
Et si je ne me trompe pas, pour une seule et même carte... Perplexe je suis.

Code : Tout sélectionner

# lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers [8086:3ec2] (rev 07)
00:01.0 PCI bridge [0604]: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) [8086:1901] (rev 07)
00:12.0 Signal processing controller [1180]: Intel Corporation Cannon Lake PCH Thermal Controller [8086:a379] (rev 10)
00:14.0 USB controller [0c03]: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller [8086:a36d] (rev 10)
00:14.2 RAM memory [0500]: Intel Corporation Cannon Lake PCH Shared SRAM [8086:a36f] (rev 10)
00:14.3 Network controller [0280]: Intel Corporation Wireless-AC 9560 [Jefferson Peak] [8086:a370] (rev 10)
00:16.0 Communication controller [0780]: Intel Corporation Cannon Lake PCH HECI Controller [8086:a360] (rev 10)
00:16.3 Serial controller [0700]: Intel Corporation Cannon Lake PCH Active Management Technology - SOL [8086:a363] (rev 10)
00:17.0 SATA controller [0106]: Intel Corporation Cannon Lake PCH SATA AHCI Controller [8086:a352] (rev 10)
00:1c.0 PCI bridge [0604]: Intel Corporation Cannon Lake PCH PCI Express Root Port #6 [8086:a33d] (rev f0)
00:1d.0 PCI bridge [0604]: Intel Corporation Cannon Lake PCH PCI Express Root Port #9 [8086:a330] (rev f0)
00:1f.0 ISA bridge [0601]: Intel Corporation Q370 Chipset LPC/eSPI Controller [8086:a306] (rev 10)
00:1f.3 Audio device [0403]: Intel Corporation Cannon Lake PCH cAVS [8086:a348] (rev 10)
00:1f.4 SMBus [0c05]: Intel Corporation Cannon Lake PCH SMBus Controller [8086:a323] (rev 10)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller [8086:a324] (rev 10)
00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection (7) I219-LM [8086:15bb] (rev 10)
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 550 640SP / RX 560/560X] [1002:67ff] (rev ef)
01:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X] [1002:aae0]
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader [10ec:525a] (rev 01)
03:00.0 Non-Volatile memory controller [0108]: Toshiba Corporation BG3 NVMe SSD Controller [1179:0113] (rev 01)
Après installation de firmware-amd-graphics et redémarrage:

Code : Tout sélectionner

# lspci -nnkd ::300
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 550 640SP / RX 560/560X] [1002:67ff] (rev ef)
	Subsystem: Hewlett-Packard Company Baffin [Radeon RX 550 640SP / RX 560/560X] [103c:83e3]
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
affichage-3.png
affichage-2.png
Même en activant ce qui est detecté comme un écran "portable" je n'ai pas d'affichage.

Si ça peut aider:

Code : Tout sélectionner

# radeontool  --debug
Found card 1002:67ff (30000)
Radeon found. Base control address is 7f7bd364d000; base framebuffer address is 7f7bc364d000.
reading RADEON_DAC_CNTL (58) is 00000000
reading RADEON_LVDS_GEN_CNTL (2d0) is 00000000
Version du noyau ? Passer par Grub2 pour forcer le chargement de radeon ?
Merci d'avance pour votre aide et vos idées.
Vous ne pouvez pas consulter les pièces jointes insérées à ce message.
Règles d'usage du forum. Signalez si vous avez posté votre question sur un autre forum. Explications ici
Debian Unstable. Mate/LXQT. Dieu, en créant l'homme, a quelque peu surestimé ses capacités.
Avatar de l’utilisateur
lol
Site Admin
Site Admin
Messages : 4959
Inscription : 04 avr. 2016, 12:11
Localisation : Madagascar
Status : Hors-ligne

Salut,
Voici ce que j'ai tenté:

Noyau backports (5.19) = KO

Grub2 (Soit la ligne 1 soit la 2) = KO
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.cik_support=1 amdgpu.cik_support=0"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.cik_support=0 amdgpu.cik_support=1"


Clonage de firmware de git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
Et copie dans /lib/firmware/amdgpu = KO

Version backports de firmware-amd-graphics = KO

:nea: :sad:

Et en fait je m’aperçois que jamais le drivers radeon n'est chargé. C'est toujours amdgpu. C'est normal ?
Règles d'usage du forum. Signalez si vous avez posté votre question sur un autre forum. Explications ici
Debian Unstable. Mate/LXQT. Dieu, en créant l'homme, a quelque peu surestimé ses capacités.
Avatar de l’utilisateur
lol
Site Admin
Site Admin
Messages : 4959
Inscription : 04 avr. 2016, 12:11
Localisation : Madagascar
Status : Hors-ligne

Hello,

Je viens de réaliser qu'une partie de mes commandes (Notamment celles avec xranrd sont fausses car exécutées depuis un terminal distant (ssh). :pardon:
J'ai réussi à activer le deuxième écran avec firmware-amd-graphics + xrandr, je reviens plus tard avec les commandes (Là je cherche comment les rendre permanentes...)

Je suis trop joisse! :yahoo:
Règles d'usage du forum. Signalez si vous avez posté votre question sur un autre forum. Explications ici
Debian Unstable. Mate/LXQT. Dieu, en créant l'homme, a quelque peu surestimé ses capacités.
Avatar de l’utilisateur
lol
Site Admin
Site Admin
Messages : 4959
Inscription : 04 avr. 2016, 12:11
Localisation : Madagascar
Status : Hors-ligne

Hello,

Donc voici la solution que j'ai trouvé:

Code : Tout sélectionner

# apt install libgl1-mesa-dri amd64-microcode
# echo "deb http://deb.debian.org/debian/ bullseye-backports main contrib non-free" >> /etc/apt/sources.list
# apt update
# apt install -yt bullseye-backports firmware-amd-graphics linux-image-amd64
Le paquet firmware-amd-graphics est nécessaire pour que ça fonctionne (Pas certain que la version de base de bullseye ne suffise pas...)
Pour les autres paquets j'ai des doutes, mais j'ai le flemme de tout désinstaller pour en avoir le cœur net. :blush:

Redémarrage.
Sortie de xrandr après reboot

Code : Tout sélectionner

$ xrandr
Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 16384 x 16384
eDP connected 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   640x480       59.94*
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
HDMI-A-0 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 509mm x 286mm
   1920x1080     60.00*+  50.00    59.94
   1680x1050     59.88
   1600x900      60.00
   1280x1024     60.02
   1440x900      59.90
   1280x800      59.91
   1280x720      60.00    50.00    59.94
   1024x768      60.00
   800x600       60.32
   720x576       50.00
   720x480       60.00    59.94
   640x480       60.00    59.94
   720x400       70.08

Code : Tout sélectionner

$ cvt 1920 1080 60
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
$ xrandr --newmode "1920x1080_50.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
$ xrandr --addmode eDP "1920x1080_50.00"
$ xrandr --output eDP --mode "1920x1080_50.00"
CVT pour s'aider à créer la bonne résolution à envoyer à xrandr
man cvt a écrit :cvt - calculate VESA CVT mode lines
Et on le rend permanent avec X11:

Code : Tout sélectionner

# nano /etc/X11/Xsession.d/45x11-xrandr
Qui contient

Code : Tout sélectionner

#!/bin/sh
xrandr --newmode "1920x1080_50.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
xrandr --addmode eDP "1920x1080_50.00"
xrandr --output eDP --mode "1920x1080_50.00"
Seul inconvénient ce n'est pas pris en charge par lightdm.
Mes essais de commande display-setup-script=/usr/local/bin/xrandr_at_start.sh dans /etc/lightdm/lightdm.conf sont infructueux...
J'ai du mal m'y prendre...
Edit: Voir plus bas. Je me suis simplement planté de section dans /etc/lightdm/lightdm.conf

Edit: Pour lightdm

nano /usr/local/bin/xrandr_at_start.sh

Code : Tout sélectionner

#!/bin/bash
#Activation deuxième écran
xrandr --newmode "1920x1080_50.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
xrandr --addmode eDP "1920x1080_50.00"
xrandr --output eDP --mode "1920x1080_50.00"
Dans la section [Seat:*] de /etc/lightdm/lightdm.conf
display-setup-script=/usr/local/bin/xrandr_at_start.sh
Règles d'usage du forum. Signalez si vous avez posté votre question sur un autre forum. Explications ici
Debian Unstable. Mate/LXQT. Dieu, en créant l'homme, a quelque peu surestimé ses capacités.
Avatar de l’utilisateur
dezix
Membre hyper actif
Membre hyper actif
Messages : 3546
Inscription : 04 juin 2016, 14:50
Status : Hors-ligne

Salut!
Je n'ai pas tout capté, mais je mets ce sujet dans ma liste de "Favoris" :wink:
... ça pourrait donner des pistes pour un futur problème.

Merci.
:good:
**Simple Utilisateur** -- Debian stable - XFCE
Avatar de l’utilisateur
lol
Site Admin
Site Admin
Messages : 4959
Inscription : 04 avr. 2016, 12:11
Localisation : Madagascar
Status : Hors-ligne

Hello,

En fait c'est assez simple.

Il s'agit d'une machine "all in one" (Style MAC mais version PC) avec une carte Radéon et deux sorties vidéos (Une sur l'écran de l'unité centrale et une sortie hdmi).
d54050f99e6e8af29159b94167325b01-hi.jpg

Avec le driver de base amdgpu seul l'écran de l'unité centrale est détecté. C'est bien, mais j'ai besoin de deux écrans...
Lors de l'ajout des firmware non free de amd (firmware-amd-graphics) l'écran principal n'est plus détecté correctement et se met en écran noir... Seul l'écran branché sur la sortie hdmi fonctionne!

Il faut passer par xrandr pour préciser et forcer la bonne résolution et l'automatiser au démarrage.
J'ai toute mon équipe à basculer sur Debian j'ai donc tout intérêt à ce qu'ils puissent bosser convenablement.
Vous ne pouvez pas consulter les pièces jointes insérées à ce message.
Règles d'usage du forum. Signalez si vous avez posté votre question sur un autre forum. Explications ici
Debian Unstable. Mate/LXQT. Dieu, en créant l'homme, a quelque peu surestimé ses capacités.
Avatar de l’utilisateur
dezix
Membre hyper actif
Membre hyper actif
Messages : 3546
Inscription : 04 juin 2016, 14:50
Status : Hors-ligne

C'est le même genre d'équipement (en plus récent) que celui qui pose problème avec un autre carte Radeon (sujet actuellement non résolu) sur iMac 2009/10
**Simple Utilisateur** -- Debian stable - XFCE
Répondre