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 [2026/04/28 19:47] – [Voir ou convertir des images au format .heic] 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 277: Ligne 277:
   apt-get clean   apt-get clean
   apt-get autoremove   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.1777405679.txt.gz · Dernière modification : de Benjamin Labomedia