Outils pour utilisateurs

Outils du site


lenovo_legion_5_15arh05

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
lenovo_legion_5_15arh05 [2024/10/29 18:57] – [5 Easy Ways to Block Page Redirects in a Web Browser] Benjamin Labomedialenovo_legion_5_15arh05 [2026/09/18 20:46] (Version actuelle) – [Convertir un fichier pdf en images et reconstituer un fichier pdf à partir de ces images] Benjamin Labomedia
Ligne 1: Ligne 1:
 ====== Ordinateur Lenovo Legion 5 15ARH05 sous Linux ====== ====== Ordinateur Lenovo Legion 5 15ARH05 sous Linux ======
   * Modèle Lenovo Legion 5 15ARH05 (82B500F1FR) fiche tech from LDLC{{ ::lenovo_legion_5_15arh05_82b500f1fr_ldlc.pdf |}}   * Modèle Lenovo Legion 5 15ARH05 (82B500F1FR) fiche tech from LDLC{{ ::lenovo_legion_5_15arh05_82b500f1fr_ldlc.pdf |}}
-  * F2 pour accéder au bios+  * Hardware Maintenance Manual {{ ::lenovo_legion_5_15arh05_xmpqowzdmqulmp4t.pdf |}} 
 +  * F2 pour accéder au bios, F12 pour choisir le périphérique de boot
  
 ====== Installation Debian 12 bookworm ====== ====== Installation Debian 12 bookworm ======
Ligne 51: Ligne 52:
 Voir https://wiki.debian.org/NVIDIA%20Optimus Voir https://wiki.debian.org/NVIDIA%20Optimus
   accessibility.blockautorefresh true   accessibility.blockautorefresh true
 +  
 +Pour régler le problème de taille de police / icone avec Mate sous le driver NVIDIA [[https://github.com/ubuntu-mate/mate-tweak/issues/45|voir cette issue]]
 +  gsettings set org.mate.interface window-scaling-factor 0
 +
 +    0 is for auto-detect
 +    1 is for Regular
 +    2 is for HiDP
 +    
 +==== Faire en sorte que Fireefox utilise l'accélération matérielle avec driver nvidia ====
 +When using Nvidia proprietary drivers, package nvidia-vaapi-driver must be additionally installed
 +  * https://wiki.debian.org/Firefox#Hardware_Video_Acceleration
 +  * https://www.reddit.com/r/browsers/comments/1agyice/going_full_screen_on_youtube_lags_anyone_have_any/
 +  * Voir 05 2025 https://fostips.com/hardware-acceleration-firefox-ubuntu-debian/
 ===== Troubleshooting ===== ===== Troubleshooting =====
   * Régler le problème du touchpad avec noyau 5.10 https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1887190/comments/189   * Régler le problème du touchpad avec noyau 5.10 https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1887190/comments/189
Ligne 124: Ligne 138:
   systemctl reload NetworkManager   systemctl reload NetworkManager
      
-  +What is the list of the systemd's services ? You can use the following command (root password is required): 
 +  su -l -c "systemctl list-units --type=service" 
 + 
 +==== Pour réactiver ==== 
 +Vérifier que le serveur DHCP donne bien des DNS 
 + 
 +Voir modifs de  
 +  sudo nano /etc/NetworkManager/NetworkManager.conf 
 +  [main] 
 +  dns=default 
 +  plugins=ifupdown,keyfile 
 + 
 +  [ifupdown] 
 +  managed=false 
 + 
 + 
 +https://forums.debian.net/viewtopic.php?t=155294 
 + 
 +Pour régler le nameserver ::1 
 +  sudo nmcli con down pvpn-ipv6leak-protection 
 +Tu peux trouver que ça démarre automatiquement au démarrage, ça devrait l'empêcher 
 +  nmcli c m pvpn-ipv6leak-protection connection.autoconnect no 
 + 
 + 
 +  * https://wiki.debian.org/NetworkManager 
 +  * https://www.reddit.com/r/Fedora/comments/xn6x8z/how_do_i_stop_ipv6leakintrf0/
 ===== Virer les snap inutiles ===== ===== Virer les snap inutiles =====
 https://superuser.com/questions/1310825/how-to-remove-old-version-of-installed-snaps https://superuser.com/questions/1310825/how-to-remove-old-version-of-installed-snaps
Ligne 219: Ligne 258:
 Aller dans paramètre > Editeur de configuration tout en bas de la page et passer le paramètre : Aller dans paramètre > Editeur de configuration tout en bas de la page et passer le paramètre :
   pdfjs.disabled true   pdfjs.disabled true
 +  
 +==== Voir ou convertir des images au format .heic ====
 +Pour voir dans le visualiseur d'images habituel :
 +
 +  sudo apt install heif-gdk-pixbuf
 +
 +Convertir .heic en .jpg
 +  sudo apt install libheif-examples
 +
 +As test files, we have IMG_8123.HEIC, IMG_8227.HEIC and IMG_8273.HEIC. To convert them to JPEG, a for loop is enough:
 +
 +  for i in *.HEIC; do heif-convert "$i" "${i%.HEIC}.jpg"; done
 +  
 +==== Nettoyer sa debian ====
 +  * https://wiki.ght1pc9kc.fr/linux/administration/nettoyer-sa-debian/
 +Virer les vieux paquets dans archive 
 +  apt-get autoclean
 +  apt-get clean
 +  apt-get autoremove
 +  
 +==== Convertir un fichier pdf en images et reconstituer un fichier pdf à partir de ces images ====
 +  pdftoppm -r 96 -png monficher.pdf page
 +  sudo apt install img2pdf
 +  img2pdf page-*.png -o resultat.pdf
 +  
 +
 +==== Firefox freeze sur la lecture de vidéos en plein écran ====
 +
 +
 +Try this sequence; NVIDIA + Firefox freezes are often caused by the video-decoding or compositor path rather than the website itself.
 +
 +1. **Confirm whether hardware acceleration is the cause**
 +
 +Open Firefox → `about:preferences` → **General** → **Performance**:
 +
 +- Uncheck **Use recommended performance settings**
 +- Uncheck **Use hardware acceleration when available**
 +- Restart Firefox
 +
 +Test the same video. Mozilla recommends this as a diagnostic step for graphics-driver-related playback problems. <citation src="8,10"></citation>
 +
 +If playback is stable afterward, leave acceleration disabled temporarily and continue with the driver/VA-API checks below.
 +
 +2. **Check Firefox’s graphics and media status**
 +
 +Open:
 +
 +```text
 +about:support
 +```
 +
 +Check these sections:
 +
 +- **Window Protocol** — whether you are using `wayland` or `x11`
 +- **Compositing**
 +- **Hardware Video Decoding**
 +- **Video Acceleration Information**
 +- **Decision Log**
 +
 +Also test Firefox without extensions:
 +
 +```bash
 +firefox --safe-mode
 +```
 +
 +If the freeze disappears, disable extensions—especially video downloaders, ad blockers, and codec-related extensions—until you identify the cause. Extensions and content blockers can interfere with media playback. <citation src="8"></citation>
 +
 +3. **Update the NVIDIA stack**
 +
 +On Debian, make sure the kernel module, user-space libraries, and firmware are from compatible packages:
 +
 +```bash
 +sudo apt update
 +sudo apt full-upgrade
 +sudo reboot
 +```
 +
 +Then check:
 +
 +```bash
 +nvidia-smi
 +firefox --version
 +uname -r
 +```
 +
 +If `nvidia-smi` fails, fix the NVIDIA driver installation before troubleshooting Firefox. Avoid mixing NVIDIA packages from different Debian releases or random `.run` installers.
 +
 +4. **Test the display protocol**
 +
 +If you are currently using Wayland, test an X11 session from the login screen. If you are using X11, test Wayland.
 +
 +You can also test Firefox explicitly:
 +
 +```bash
 +MOZ_ENABLE_WAYLAND=1 firefox
 +```
 +
 +or, for X11:
 +
 +```bash
 +MOZ_X11_EGL=1 firefox
 +```
 +
 +If the freeze occurs only under Wayland, it is likely in the NVIDIA GBM/DRM/compositor path. If it occurs only under X11, keep testing with the Wayland path instead.
 +
 +5. **Check NVIDIA VA-API support**
 +
 +Firefox uses VA-API for browser video acceleration. Debian notes that proprietary NVIDIA drivers need the third-party `nvidia-vaapi-driver`; VDPAU is not supported by Firefox. <citation src="11,12"></citation>
 +
 +Install the available package:
 +
 +```bash
 +sudo apt install nvidia-vaapi-driver vainfo
 +```
 +
 +Then test:
 +
 +```bash
 +vainfo
 +```
 +
 +If `vainfo` cannot initialize or shows no decode profiles, hardware video decoding is not correctly configured. The package may be unavailable on older Debian releases; in that case, use the corresponding package from your Debian release/backports rather than installing a mismatched binary.
 +
 +6. **Try Firefox’s VA-API setting**
 +
 +In `about:config`, set:
 +
 +```text
 +media.ffmpeg.vaapi.enabled = true
 +```
 +
 +Restart Firefox and check `about:support` again. Debian documents this preference for Firefox VA-API acceleration. <citation src="12"></citation>
 +
 +Do not force every codec to hardware-decode initially. In particular, setting `media.ffvpx.enabled=false` can make playback worse if your GPU does not support the selected VP8/VP9 codec.
 +
 +7. **Test AV1**
 +
 +Some NVIDIA GPUs or driver combinations have problems with AV1 playback. Temporarily set:
 +
 +```text
 +media.av1.enabled = false
 +```
 +
 +Restart Firefox and test YouTube again. Debian specifically recommends disabling AV1 when the GPU cannot decode it reliably, allowing sites to fall back to H.264 or VP9. <citation src="12"></citation>
 +
 +8. **Collect useful logs if it still freezes**
 +
 +Run Firefox from a terminal:
 +
 +```bash
 +LIBVA_DRIVER_NAME=nvidia LIBVA_MESSAGING_LEVEL=1 firefox
 +```
 +
 +For NVIDIA GPU activity, in another terminal run:
 +
 +```bash
 +watch -n 1 nvidia-smi
 +```
 +
 +If the entire desktop locks up rather than only the video frame, after reboot check:
 +
 +```bash
 +journalctl -b -1 -k | grep -Ei 'nvrm|xid|gpu|drm|oom'
 +```
 +
 +An `NVRM: Xid` error points to an NVIDIA driver/GPU reset, not a normal Firefox media setting.
 +
 +The quickest practical workaround is usually: **disable Firefox hardware acceleration, switch between Wayland and X11, update the NVIDIA packages, then re-enable acceleration only after `about:support` shows working video decoding.**
lenovo_legion_5_15arh05.1730228249.txt.gz · Dernière modification : de Benjamin Labomedia