Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HARDWARE] Mini-upgrade
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Anard
Apprentice
Apprentice


Joined: 01 Oct 2020
Posts: 216

PostPosted: Tue Mar 07, 2023 8:36 pm    Post subject: [HARDWARE] Mini-upgrade Reply with quote

Salut.
Je me prépare à une légère upgrade de mon système et j'avoue que je ne sais pas exactement ni comment m'y prendre, ni comment ça va se passer.
Première chose, extension de mon disque système de 120 à 250 Go, car celui-ci est souvent plein à 70%. Ca laissera plus de marge et je m'inquièterai moins des
Code:
eclean packages && eclean distfiles
. Mais cette partie ne devrait pas trop me poser de problème.

Seconde chose qui me fait un peu plus peur (sachant que je viens de macOS puis Ubuntu) l'achat d'une carte graphique (pour le moment c'est le proc qui gère tout)). En l'occurrence Asus GTX670 (car j'en ai une cramée en stock, donc j'aurais des pièces si besoin). Je vois moins comment m'y prendre pour la mise à jour système :
  • Est-ce que je pourrais démarrer ma Gentoo avec la CG branchée sans avoir préparé le système à l'avance ou dois-je configurer le noyau, les modules et logiciels nécéssaires avant d'éteindre le PC pour ajouter l'hardware ?
  • Je pense commencer sur les drivers Nouveau avant de switcher sur les Nvidia, parce que la version OpenSource me semble plus simple à configurer pour une première approche, je suis preneur de retours d'expérience et est-ce que je ne ferais pas mieux de configurer directement la config finale ?
  • Est-ce qu'il y a des choses à savoir / à ne pas faire dans cette situation ?


Merci pour vos conseils avisés.
_________________
"iMack" : GA-H97M-D3H, Intel i5 4460, 16Go DDR3, Intel HD4600, 2x SSD 256Go, HDD 500Go+2To / Clover - macOS Mojave / Gentoo-Xfce
"Portable" : HP 350G3, HDD 500Go / rEFInd - Xubuntu 20.04 / Windows 10


Last edited by Anard on Wed Apr 05, 2023 6:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
Anard
Apprentice
Apprentice


Joined: 01 Oct 2020
Posts: 216

PostPosted: Wed Mar 08, 2023 8:11 pm    Post subject: Reply with quote

Je vois par exemple dans la page Legacy de Nvidia que la GTX670 en fait partie, mais supporte la version 470.xx.
Est ce qu'à la place de
Code:
>x11-drivers/nvidia-drivers-391
dans /etc/portage/package.mask, je dois mettre
Code:
>x11-drivers/nvidia-drivers-470
ou est-ce que je peux simplement ignorer cette partie ?
_________________
"iMack" : GA-H97M-D3H, Intel i5 4460, 16Go DDR3, Intel HD4600, 2x SSD 256Go, HDD 500Go+2To / Clover - macOS Mojave / Gentoo-Xfce
"Portable" : HP 350G3, HDD 500Go / rEFInd - Xubuntu 20.04 / Windows 10
Back to top
View user's profile Send private message
Anard
Apprentice
Apprentice


Joined: 01 Oct 2020
Posts: 216

PostPosted: Thu Mar 09, 2023 7:25 am    Post subject: Reply with quote

Aussi, il semble qu'il n'y ait aucun besoin de placer nvidia-drivers (ou nouveau) dans mon world. La simple modification de la variable VIDEO_CARDS pousse nvidia drivers (ou nouveau) suffit à recompiler les paquets nécessaire. (Dites-moi si je me trompe).

D'après la doc, il est possible de mettre nvidia et nouveau dans la variable VIDEO_CARDS. Est-ce que mettre nvidia et intel peut créer des instabilités ou est-ce que ça peut au contraire permettre au système de sélectionner le GPU le plus adapté à la situation :

Code:
anard@imack ~ $ VIDEO_CARDS="nvidia" emerge -pvuDU @world

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 29.65 s.

[ebuild   R    ] x11-base/xorg-drivers-21.1-r2::gentoo  INPUT_DEVICES="libinput -elographics -evdev -joystick -synaptics -vmmouse -void -wacom" VIDEO_CARDS="nvidia* -amdgpu -ast -dummy -fbdev (-freedreno) (-geode) -i915 -intel* -mga -nouveau (-omap) -qxl -r128 -radeon -radeonsi -siliconmotion (-tegra) (-vc4) -vesa -via -virtualbox -vmware" 0 KiB
[ebuild  N     ] x11-libs/libvdpau-1.5::gentoo  USE="dri -doc -test" ABI_X86="(64) -32 (-x32)" 140 KiB
[ebuild  N     ] x11-drivers/nvidia-drivers-525.89.02:0/525::gentoo  USE="X driver static-libs tools -dist-kernel -kernel-open -persistenced -wayland" ABI_X86="(64) -32" 415 669 KiB
[ebuild   R    ] x11-libs/libdrm-2.4.115::gentoo  USE="-valgrind" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="-amdgpu (-exynos) (-freedreno) -intel* -nouveau (-omap) -radeon (-tegra) (-vc4) (-vivante) -vmware" 0 KiB
[ebuild   R    ] media-libs/mesa-22.3.6::gentoo  USE="X gles2 llvm proprietary-codecs vulkan zstd -d3d9 -debug -gles1 -lm-sensors -opencl -osmesa (-selinux) -test -unwind -vaapi -valgrind -vdpau -vulkan-overlay -wayland -xa -zink" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="sse2" VIDEO_CARDS="-d3d12 (-freedreno) -intel* (-lima) -nouveau (-panfrost) -r300 -r600 -radeon -radeonsi (-v3d) (-vc4) -virgl (-vivante) -vmware" 0 KiB
[ebuild   R    ] sys-apps/hwloc-2.8.0-r1:0/15::gentoo  USE="X cairo cpuid pci svg udev xml (-cuda) -debug -nvml -static-libs" ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="nvidia*" 0 KiB
[ebuild   R    ] xfce-extra/xfce4-sensors-plugin-1.4.4::gentoo  USE="acpi hddtemp libnotify lm-sensors" VIDEO_CARDS="nvidia*" 0 KiB

Total: 7 packages (2 new, 5 reinstalls), Size of downloads: 415 809 KiB
anard@imack ~ $ grep VIDEO_CARDS /etc/portage/make.conf
VIDEO_CARDS="intel i965"
anard@imack ~ $ VIDEO_CARDS="intel i965 nvidia" emerge -pvuDU @world

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 29.16 s.

[ebuild   R    ] x11-base/xorg-drivers-21.1-r2::gentoo  INPUT_DEVICES="libinput -elographics -evdev -joystick -synaptics -vmmouse -void -wacom" VIDEO_CARDS="intel nvidia* -amdgpu -ast -dummy -fbdev (-freedreno) (-geode) -i915 -mga -nouveau (-omap) -qxl -r128 -radeon -radeonsi -siliconmotion (-tegra) (-vc4) -vesa -via -virtualbox -vmware" 0 KiB
[ebuild  N     ] x11-libs/libvdpau-1.5::gentoo  USE="dri -doc -test" ABI_X86="(64) -32 (-x32)" 140 KiB
[ebuild  N     ] x11-drivers/nvidia-drivers-525.89.02:0/525::gentoo  USE="X driver static-libs tools -dist-kernel -kernel-open -persistenced -wayland" ABI_X86="(64) -32" 415 669 KiB
[ebuild   R    ] sys-apps/hwloc-2.8.0-r1:0/15::gentoo  USE="X cairo cpuid pci svg udev xml (-cuda) -debug -nvml -static-libs" ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="nvidia*" 0 KiB
[ebuild   R    ] xfce-extra/xfce4-sensors-plugin-1.4.4::gentoo  USE="acpi hddtemp libnotify lm-sensors" VIDEO_CARDS="nvidia*" 0 KiB

Total: 5 packages (2 new, 3 reinstalls), Size of downloads: 415 809 KiB

_________________
"iMack" : GA-H97M-D3H, Intel i5 4460, 16Go DDR3, Intel HD4600, 2x SSD 256Go, HDD 500Go+2To / Clover - macOS Mojave / Gentoo-Xfce
"Portable" : HP 350G3, HDD 500Go / rEFInd - Xubuntu 20.04 / Windows 10
Back to top
View user's profile Send private message
Anard
Apprentice
Apprentice


Joined: 01 Oct 2020
Posts: 216

PostPosted: Sun Mar 12, 2023 9:38 am    Post subject: Reply with quote

Bien, ça semble aller bien, la carte fonctionne nickel.
Code:
$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GK104 [GeForce GTX 670] (rev a1)

$ glxinfo | grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce GTX 670/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 470.161.03
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6.0 NVIDIA 470.161.03
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 470.161.03
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:


En revanche, mon écran de démarrage Plymouth ne fonctionne plus (j'ai bien relancé
Code:
dracut --force
pour recréer mon initramfs).
Au lieu de ça, il m'affiche quelque chose comme
Code:
Starting systemd udev version ...

Je ne vois pas non plus toutes les lignes qui s'affichent habituellement au démarrage d'OpenRC et j'arrive directement sur mon bureau.

Pourriez-vous m'aider à trouver pourquoi mon splash Plymouth ne s'affiche plus ? Merci.

Aussi , je peux voir une erreur dans dmesg :
Code:
$ dmesg -lerr

[   33.955563] i915 0000:00:02.0: [drm] *ERROR* Unclaimed access detected prior to suspending


Voici une partie de dmesg au moment du chargement de nvidia puis de Plymouth :
Code:
[    1.209266] nvidia: loading out-of-tree module taints kernel.
[    1.209277] nvidia: module license 'NVIDIA' taints kernel.
[    1.209278] Disabling lock debugging due to kernel taint
[    1.215723] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[    1.399017] tsc: Refined TSC clocksource calibration: 3192.606 MHz
[    1.399024] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x2e050166e04, max_idle_ns: 440795273449 ns
[    1.399688] clocksource: Switched to clocksource tsc
[    1.406391] i915 0000:00:02.0: enabling device (0000 -> 0003)
[    1.407446] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[    1.471178] [drm] Initialized i915 1.6.0 20201103 for 0000:00:02.0 on minor 0
[    1.472394] nvidia-nvlink: Nvlink Core is being initialized, major device number 242

[    1.472974] ACPI: video: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
[    1.473184] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input3
[    1.473650] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[    1.485696] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
[    1.489426] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
[    1.493048] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
[    2.988160] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  470.161.03  Wed Oct 19 00:10:36 UTC 2022
[    2.997456] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  470.161.03  Wed Oct 19 00:05:15 UTC 2022
[    2.999563] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[    2.999564] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1
[    3.016004] dracut: Starting plymouth daemon
[    3.122505] ahci 0000:00:1f.2: version 3.0
[    3.123836] ahci 0000:00:1f.2: AHCI 0001.0300 32 slots 6 ports 6 Gbps 0x1f impl SATA mode
[    3.123840] ahci 0000:00:1f.2: flags: 64bit ncq led clo pio slum part ems apst
[    3.130969] cryptd: max_cpu_qlen set to 1000

_________________
"iMack" : GA-H97M-D3H, Intel i5 4460, 16Go DDR3, Intel HD4600, 2x SSD 256Go, HDD 500Go+2To / Clover - macOS Mojave / Gentoo-Xfce
"Portable" : HP 350G3, HDD 500Go / rEFInd - Xubuntu 20.04 / Windows 10
Back to top
View user's profile Send private message
Silentd
n00b
n00b


Joined: 18 Jan 2015
Posts: 5

PostPosted: Sat Mar 18, 2023 9:10 am    Post subject: Reply with quote

Bonjour,


Si tu ne vois plus tes lignes s'afficher au boot, c'est surement un problème de FB (FrameBuffer).
J'ai pas mal galéré aussi a ce niveau entre mon Ryzen 9 et ma RTX.

SI tu veux l'affichage des lignes au démarrage de ta Gentoo, tu dois avoir ceci d'activé dans ton kernel:

Code:

Bus options (PCI etc.)  --->
   [*] Mark VGA/VBE/EFI FB as generic system framebuffer
Device Drivers --->
   Graphics support --->
      Frame buffer Devices -->
         <*> Support for frame buffer devices -->
            <*> Simple framebuffer support


Regarde bien dans la doc ici:
https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers/fr
Back to top
View user's profile Send private message
El_Goretto
Moderator
Moderator


Joined: 29 May 2004
Posts: 3169
Location: Paris

PostPosted: Wed Apr 05, 2023 8:37 am    Post subject: Reply with quote

Salut Anard,

Peux-tu STP mettre ton titre en conformité avec les règles en usage sur notre forum (Le format choisi est : [THEME] description (état))?
_________________
-TrueNAS & jails: µ-serv Gen8 E3-1260L, 16Go ECC + µ-serv N40L, 10Go ECC
-Réseau: APU2C4 (OpenWRT) + GS726Tv3 + 2x GS108Tv2 + Archer C5v1 (OpenWRT)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum