lenovo_legion_5_15arh05
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| lenovo_legion_5_15arh05 [2023/04/20 23:36] – [Désactiver le fait que Network Manager gère les DNS] Benjamin Labomedia | lenovo_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{{ :: | * Modèle Lenovo Legion 5 15ARH05 (82B500F1FR) fiche tech from LDLC{{ :: | ||
| + | * Hardware Maintenance Manual {{ :: | ||
| + | * F2 pour accéder au bios, F12 pour choisir le périphérique de boot | ||
| + | |||
| + | ====== Installation Debian 12 bookworm ====== | ||
| + | Installation d'une debian 12 sur ssd avec partition chiffré via LVM sans entrave (ne pas utiliser les dépôts ircam !) | ||
| + | |||
| + | Ne pas oublier d' | ||
| + | |||
| + | La source.list : | ||
| + | |||
| + | < | ||
| + | deb http:// | ||
| + | deb-src http:// | ||
| + | |||
| + | deb http:// | ||
| + | deb-src http:// | ||
| + | |||
| + | deb http:// | ||
| + | deb-src http:// | ||
| + | |||
| + | deb http:// | ||
| + | deb-src http:// | ||
| + | |||
| + | deb http:// | ||
| + | deb-src http:// | ||
| + | </ | ||
| + | |||
| + | ===== **Un petit paquet de logiciels en plus** ===== | ||
| + | |||
| + | < | ||
| + | sudo apt install htop locate nmap ffmpeg iotop sox keepassxc pidgin-otr audacity aircrack-ng alsa-utils apt-transport-https arandr build-essential caca-utils caja-actions-common caja-actions caja-admin caja-common caja-extensions-common caja-open-terminal chromium-common curl ecasound espeak-ng-data etherape filezilla firmware-amd-graphics firmware-iwlwifi fldigi fluid-soundfont-gm frei0r-plugins gparted-common gqrx-sdr guitarix-common guvcview gzip hackrf hasciicam imagemagick inetutils-traceroute inkscape iputils-arping iputils-ping jack-tools links2 linphone macchanger mate-tweak mencoder minimodem minicom mixxx mpv mplayer mumble net-tools network-manager-openvpn nload openshot-qt openvpn otpclient pavucontrol-qt pd-* qsstv qtractor rfkill rtl-sdr sonic-pi-samples sooperlooper tcpdump tempest-for-eliza terminator thunderbird thunderbird-l10n-fr thunderbird-l10n-es-es thunderbird-l10n-en-gb transmission-gtk unzip unrar usbutils uvcdynctrl v4l-utils vlc webcamoid wget wireshark | ||
| + | |||
| + | </ | ||
| + | |||
| + | ===== Remettre en place les rsyslog ===== | ||
| + | F*** systemctl (plus de syslog, kern.log dans debian 12) : https:// | ||
| + | |||
| + | sudo apt install rsyslog | ||
| + | | ||
| + | ===== Des ressources complémentaires pour configuration de la carte graphique ou + ===== | ||
| + | * Pas mal de tips notamment pour s' | ||
| + | * Une autre avec des scripts (pb avec sortie HDMI et drivers NVIDIA ?) https:// | ||
| + | * Install " | ||
| + | |||
| + | ====== Commandes utils pour Debian 10 bulleyes potentiellement toujours valables ====== | ||
| Ligne 6: | Ligne 51: | ||
| __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxgears | __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxgears | ||
| Voir https:// | Voir https:// | ||
| + | accessibility.blockautorefresh true | ||
| + | | ||
| + | Pour régler le problème de taille de police / icone avec Mate sous le driver NVIDIA [[https:// | ||
| + | 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' | ||
| + | When using Nvidia proprietary drivers, package nvidia-vaapi-driver must be additionally installed | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * Voir 05 2025 https:// | ||
| ===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
| * Régler le problème du touchpad avec noyau 5.10 https:// | * Régler le problème du touchpad avec noyau 5.10 https:// | ||
| Ligne 55: | Ligne 113: | ||
| Suite à https:// | Suite à https:// | ||
| rm / | rm / | ||
| + | |||
| ===== Webcam fait 2 devices /dev/video ===== | ===== Webcam fait 2 devices /dev/video ===== | ||
| depuis une évolution du noyau cf https:// | depuis une évolution du noyau cf https:// | ||
| Ligne 79: | Ligne 138: | ||
| systemctl reload NetworkManager | systemctl reload NetworkManager | ||
| | | ||
| - | | + | What is the list of the systemd' |
| + | su -l -c " | ||
| + | |||
| + | ==== Pour réactiver ==== | ||
| + | Vérifier que le serveur DHCP donne bien des DNS | ||
| + | |||
| + | Voir modifs de | ||
| + | sudo nano / | ||
| + | [main] | ||
| + | dns=default | ||
| + | plugins=ifupdown, | ||
| + | |||
| + | [ifupdown] | ||
| + | managed=false | ||
| + | |||
| + | |||
| + | https:// | ||
| + | |||
| + | 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' | ||
| + | nmcli c m pvpn-ipv6leak-protection connection.autoconnect no | ||
| + | |||
| + | |||
| + | * https:// | ||
| + | * https:// | ||
| ===== Virer les snap inutiles ===== | ===== Virer les snap inutiles ===== | ||
| https:// | https:// | ||
| Ligne 94: | Ligne 178: | ||
| </ | </ | ||
| + | |||
| + | ===== Monter une appareil android en ligne de commande pour transfert de fichiers ===== | ||
| + | |||
| + | Avec l' | ||
| + | | ||
| + | |||
| + | SYNOPSIS | ||
| + | | ||
| + | |||
| + | DESCRIPTION | ||
| + | This manual page documents briefly the go-mtpfs command. | ||
| + | |||
| + | | ||
| + | | ||
| + | |||
| + | | ||
| + | |||
| + | mkdir xoom | ||
| + | | ||
| + | cp -a ~/ | ||
| + | | ||
| + | |||
| + | After a file is closed (e.g., if cp completes in the above example), it is safe to | ||
| + | | ||
| + | | ||
| + | |||
| + | ===== Thunderbird vs pgp ===== | ||
| + | |||
| + | Thunderbird ne voulait ps prendre en compte le nouvel alias de mail benjamin@la... que j' | ||
| + | |||
| + | la solution était de modifier ma clef en ligne de commande et de l' | ||
| + | soit : | ||
| + | gpg --list-secret-keys | ||
| + | > sec | ||
| + | ... | ||
| + | [ inconnue] Benjamin Labomedia.org < | ||
| + | |||
| + | pgp --remove-expiration-date < | ||
| + | gpg --export-secret-key -a " | ||
| + | gpg --export -a " | ||
| + | |||
| + | |||
| + | pas testé le fait d' | ||
| + | |||
| + | Puis d' | ||
| + | |||
| + | J'ai maintenant la bonne clef dans Tb, cf signature ... | ||
| + | |||
| + | ===== Configuration Transmission ===== | ||
| + | Ajout de la liste i-block level 2 https:// | ||
| + | |||
| + | ===== Mettre le num lock sur on au démarrage de lightdm ===== | ||
| + | ça se passe ici : | ||
| + | sudo apt-get install numlockx | ||
| + | sudo nano / | ||
| + | greeter-setup-script=/ | ||
| + | |||
| + | ===== Envoyer l' | ||
| + | En utilisant jack2, il faut installer le module pulseaudio-module-jack et cocher " | ||
| + | pavucontrol-qt | ||
| + | Dans l' | ||
| + | |||
| + | voir https:// | ||
| + | |||
| + | {{ :: | ||
| + | |||
| + | |||
| + | ===== 5 Easy Ways to Block Page Redirects in a Web Browser ===== | ||
| + | |||
| + | Pour éviter d' | ||
| + | accessibility.blockautorefresh true | ||
| + | |||
| + | ===== Désactiver les lecteurs PDF intégrés à Firefox et Thunderbird ===== | ||
| + | ==== Dans Firefox ==== | ||
| + | Paramètres > Applications > PDF > Portable Document Format (PDF) (application/ | ||
| + | Utiliser l' | ||
| + | |||
| + | === Dans thunderbird === | ||
| + | Aller dans paramètre > Editeur de configuration tout en bas de la page et passer le paramètre : | ||
| + | pdfjs.disabled true | ||
| + | | ||
| + | ==== Voir ou convertir des images au format .heic ==== | ||
| + | Pour voir dans le visualiseur d' | ||
| + | |||
| + | sudo apt install heif-gdk-pixbuf | ||
| + | |||
| + | Convertir .heic en .jpg | ||
| + | sudo apt install libheif-examples | ||
| + | |||
| + | As test files, we have IMG_8123.HEIC, | ||
| + | |||
| + | for i in *.HEIC; do heif-convert " | ||
| + | | ||
| + | ==== Nettoyer sa debian ==== | ||
| + | * https:// | ||
| + | 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: | ||
| + | |||
| + | - 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. < | ||
| + | |||
| + | If playback is stable afterward, leave acceleration disabled temporarily and continue with the driver/ | ||
| + | |||
| + | 2. **Check Firefox’s graphics and media status** | ||
| + | |||
| + | Open: | ||
| + | |||
| + | ```text | ||
| + | about: | ||
| + | ``` | ||
| + | |||
| + | 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, | ||
| + | |||
| + | 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/ | ||
| + | |||
| + | 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`; | ||
| + | |||
| + | 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/ | ||
| + | |||
| + | 6. **Try Firefox’s VA-API setting** | ||
| + | |||
| + | In `about: | ||
| + | |||
| + | ```text | ||
| + | media.ffmpeg.vaapi.enabled = true | ||
| + | ``` | ||
| + | |||
| + | Restart Firefox and check `about: | ||
| + | |||
| + | 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. < | ||
| + | |||
| + | 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 ' | ||
| + | ``` | ||
| + | |||
| + | 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, | ||
lenovo_legion_5_15arh05.1682033810.txt.gz · Dernière modification : de Benjamin Labomedia
