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 [2021/09/11 16:29] – [Compiler le dernier noyau pour support touchpad et luminosité sur debian 11] Benjamin Labomedialenovo_legion_5_15arh05 [2024/04/10 15:35] (Version actuelle) – [Envoyer l'audio dans jack via Pulseaudio] 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 |}}
 +
 +====== 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'activer le Trackpad avec Fn + F10 pour ne pas avoir l'impression qu'il est nécessaire decompiler le noyau once again pour le faire marcher ...
 +
 +La source.list :
 +
 +<code>
 +deb http://deb.debian.org/debian/ bookworm contrib main non-free non-free-firmware
 +deb-src http://deb.debian.org/debian/ bookworm contrib main non-free non-free-firmware
 +
 +deb http://deb.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware
 +deb-src http://deb.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware
 +
 +deb http://deb.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware
 +deb-src http://deb.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware
 +
 +deb http://deb.debian.org/debian/ bookworm-backports contrib main non-free non-free-firmware
 +deb-src http://deb.debian.org/debian/ bookworm-backports contrib main non-free non-free-firmware
 +
 +deb http://deb.debian.org/debian-security/ bookworm-security contrib main non-free non-free-firmware
 +deb-src http://deb.debian.org/debian-security/ bookworm-security contrib main non-free non-free-firmware
 +</code>
 +
 +===== **Un petit paquet de logiciels en plus** =====
 + 
 +<code>
 +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 
 +
 +</code> 
 +
 +===== Remettre en place les rsyslog =====
 +F*** systemctl (plus de syslog, kern.log dans debian 12) : https://kifarunix.com/enable-rsyslog-logging-on-debian-12/?expand_article=1
 +
 +  sudo apt install rsyslog
 +  
 +===== Des ressources complémentaires pour configuration de la carte graphique ou + =====
 +  * Pas mal de tips notamment pour s'assurer que le dGPU fonctionne on demand https://github.com/wottreng/Linux-Mint-on-Lenovo-Legion-5
 +  * Une autre avec des scripts (pb avec sortie HDMI et drivers NVIDIA ?) https://github.com/antony-jr/lenovo-legion5-15arh05-scripts
 +  * Install "clean" des drivers nvidia ? https://www.linuxcapable.com/install-nvidia-drivers-on-debian/
 +
 +====== Commandes utils pour Debian 10 bulleyes potentiellement toujours valables ======
  
  
Ligne 12: Ligne 55:
  
 ===== Compiler le dernier noyau pour support touchpad et luminosité sur debian 11 ===== ===== Compiler le dernier noyau pour support touchpad et luminosité sur debian 11 =====
-Pour le backlight control, voir https://unix.stackexchange.com/questions/616371/backlight-control-not-working-on-lenovo-ideapad-gaming-3-with-renoir-amdgpu/637154#637154+Pour le backlight control, voir https://unix.stackexchange.com/questions/616371/backlight-control-not-working-on-lenovo-ideapad-gaming-3-with-renoir-amdgpu/637154#637154 et https://gitlab.freedesktop.org/drm/amd/-/issues/1438
  
   * Voir https://debian-facile.org/doc:systeme:kernel:compiler   * Voir https://debian-facile.org/doc:systeme:kernel:compiler
   * Ou script https://gist.github.com/jbuncle/7dacde983b3c33b3b816b10e2fd2308a   * Ou script https://gist.github.com/jbuncle/7dacde983b3c33b3b816b10e2fd2308a
-  * Thread forum à ce propos https://forums.lenovo.com/t5/Gaming-Laptops/Lenovo-Legion-5-15ARH05-Touchpad-not-working-in-any-Linux/m-p/5035512?page=9+  * Thread forum à ce propos https://forums.lenovo.com/t5/Gaming-Laptops/Lenovo-Legion-5-15ARH05-Touchpad-not-working-in-any-Linux/m-p/5035512?page=9 et la solution https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1887190 
 + 
 +===== Installer une imprimante Epson L3050 ===== 
 +  * https://forum.ubuntu-fr.org/viewtopic.php?id=1988746 
 + 
 +===== Utiliser le zoom du bureau Mate ===== 
 +Pour cela utiliser Compiz comme gestionnaire de fenetre https://doc.ubuntu-fr.org/compizconfig-settings-manager 
 + 
 +===== Change LED on a Logitech G series mouse ===== 
 +Utiliser un logiciel qui s'appelle  
 +  piper 
 + 
 +  * https://www.addictivetips.com/ubuntu-linux-tips/how-to-change-led-logitech-g-series-mouse-in-linux/ 
 + 
 +===== carte wifi iwlwifi croute après sleep ===== 
 +Please create the file /etc/modprobe.d/iwlwifi.conf with content 
 +  options iwlwifi remove_when_gone=1 
 +Remove dev from PCIe bus if it is deemed inaccessible 
 + 
 +Since then I had no Problem anymore with connection after wakeup from suspend to ram or suspend to disk. More Option for the module  
 +  modinfo iwlwifi | fgrep parm 
 + 
 +Voir si pertinent : https://ubuntuforums.org/showthread.php?t=2441297 
 +  This added to a file created in /etc/modprobe.d/iwlwifi-opt.conf: 
 +  options iwlwifi remove_when_gone=1 swcrypto=1 bt_coex_active=0 power_save=0 11n_disable=1 
 + 
 + 
 +===== Tenter de régler le problème de freeze aléatoire de l'OS du à la carte wifi ? ===== 
 +dans les logs : 
 +  Nov 10 11:58:41 db NetworkManager[973]: <info>  [1668077921.0712] device (wlp4s0): set-hw-addr: set MAC address to D2:DF:D1:3B:08:6C (scanning) 
 +  Nov 10 11:58:41 db NetworkManager[973]: <info>  [1668077921.1116] device (wlp4s0): supplicant interface state: inactive -> disconnected 
 +  Nov 10 11:58:41 db NetworkManager[973]: <info>  [1668077921.1117] device (p2p-dev-wlp4s0): supplicant management interface state: inactive -> disconnected 
 +  Nov 10 11:58:41 db NetworkManager[973]: <info>  [1668077921.1167] device (wlp4s0): supplicant interface state: disconnected -> inactive 
 +  Nov 10 11:58:41 db NetworkManager[973]: <info>  [1668077921.1168] device (p2p-dev-wlp4s0): supplicant management interface state: disconnected -> inactive 
 +   
 +Does your wifi device support p2p-client/p2p-go interfaces? You can check under interfaces by doing "iw list"  
 + 
 +Suite à https://superuser.com/questions/1468973/wpa-cli-choose-interface-p2p-dev-wlan0-automatically-when-i-is-not-specified, décision de supprimer :  
 +  rm /var/run/wpa_supplicant/p2p-dev-wlp4s0 
 +===== Webcam fait 2 devices /dev/video ===== 
 +depuis une évolution du noyau cf https://unix.stackexchange.com/questions/512759/multiple-dev-video-for-one-physical-device 
 + 
 +===== Encrypting the Home Partition on an Existing Linux Installation ===== 
 + 
 +https://techblog.dev/posts/2022/03/encrypting-the-home-partition-on-an-existing-linux-installation/ 
 + 
 +===== Tester une carte SD pour savoir si elle peut encore fonctionner ===== 
 +  sudo apt install f3 
 +  sudo f3probe --destructive --time-ops /dev/sdb 
 +   
 +===== Désactiver le fait que Network Manager gère les DNS ===== 
 +Créer un fichier  
 +  sudo nano /etc/NetworkManager/conf.d/90-dns-none.conf 
 +avec comme contenu 
 +  [main] 
 +  dns=none 
 +Editer la config à la main 
 +  sudo nano /etc/resolv.conf 
 +  nameserver 80.67.169.40 
 +  nameserver 80.67.169.12 
 +Relancer Network Manager 
 +  systemctl reload NetworkManager 
 +   
 +   
 +===== Virer les snap inutiles ===== 
 +https://superuser.com/questions/1310825/how-to-remove-old-version-of-installed-snaps 
 +<code> 
 +#!/bin/bash 
 +# Removes old revisions of snaps 
 +# CLOSE ALL SNAPS BEFORE RUNNING THIS 
 +set -eu 
 + 
 +LANG=C snap list --all | awk '/disabled/{print $1, $3}' | 
 +    while read snapname revision; do 
 +        snap remove "$snapname" --revision="$revision" 
 +    done 
 + 
 +</code> 
 + 
 +===== Monter une appareil android en ligne de commande pour transfert de fichiers ===== 
 + 
 +Avec l'utilitaire go-mtpfs 
 +       go-mtpfs - FUSE filesystem for mounting Android device as MTP device 
 + 
 +SYNOPSIS 
 +       go-mtpfs [options] directory 
 + 
 +DESCRIPTION 
 +       This manual page documents briefly the go-mtpfs command. 
 + 
 +       go-mtpfs  is a program that mounts an Android device as an MTP device.  The only ar‐ 
 +       gument the program takes is the directory name. 
 + 
 +       Example usage: 
 + 
 +       mkdir xoom 
 +       go-mtpfs xoom & 
 +       cp -a ~/Music/Some-Album xoom/Music/ 
 +       fusermount -u xoom 
 + 
 +       After a file is closed (e.g., if cp completes in the above example), it is  safe  to 
 +       unplug  the device; the filesystem then will continue to function, but generates I/O 
 +       errors when it reads from or writes to the device. 
 + 
 +===== Thunderbird vs pgp ===== 
 + 
 +Thunderbird ne voulait ps prendre en compte le nouvel alias de mail benjamin@la... que j'avais pourtant ajouté à ma clef pgp 
 + 
 +la solution était de modifier ma clef en ligne de commande et de l'exporter 
 +soit : 
 +  gpg --list-secret-keys 
 +  > sec   rsa4096 2014-06-13 [SCA] 
 +  ... 
 +  [ inconnue] Benjamin Labomedia.org <benjamin@lab...> 
 + 
 +  pgp --remove-expiration-date <user> --passphrase <pass> 
 +  gpg --export-secret-key -a "Benjamin CADON [la Labomedia]" > /home/b01/Clefs/bcadon@labomedia.org2022-secret.key 
 +  gpg --export -a "Benjamin CADON [la Labomedia]" > ~/bcadon@labomedia.org2022-public.key 
 + 
 + 
 +pas testé le fait d'enlever la date d'expiration, possible aussi de la décaler, dans mon cas il s'agissait d'ajouter un alias et de changer l'identité principale de cette clef, cf https://ressources.labomedia.org/asus_n53sv#gpg_generer_une_clefexportercrypterdecrypter 
 + 
 +Puis d'importer la clef privée précédemment exportée dans Thunderbird (> Paramètres des comptes > Chiffrement de bout en bout > Ajouter une clef) 
 + 
 +J'ai maintenant la bonne clef dans Tb, cf signature ...  
 + 
 +===== Configuration Transmission ===== 
 +Ajout de la liste i-block level 2 https://www.iblocklist.com/list.php?list=gyisgnzbhppbvsphucsw 
 + 
 +===== Mettre le num lock sur on au démarrage de lightdm ===== 
 +ça se passe ici : 
 +  sudo apt-get install numlockx 
 +  sudo nano /etc/lightdm/lightdm.conf 
 +  greeter-setup-script=/usr/bin/numlockx on 
 + 
 +===== Envoyer l'audio dans jack via Pulseaudio ===== 
 +En utilisant jack2, il faut installer le module pulseaudio-module-jack et cocher "Enable D-Bus Interface and Enable JACK D-Bus interface" dans Qjackctl, relancer ce soft et dans un terminal, taper : 
 +  pavucontrol-qt 
 +Dans l'onglet lecture, il est alors possible d'envoyer le son des applis (Firefox, VLC, ..) vers Jack Sink 
 + 
 +voir https://github.com/jackaudio/jackaudio.github.com/wiki/WalkThrough_User_PulseOnJack 
 + 
 +{{ ::pulse2jack.png |}}
lenovo_legion_5_15arh05.1631377783.txt.gz · Dernière modification : 2021/09/11 16:29 de Benjamin Labomedia