Batterie ACER AN515-42-R6GG neuf se décharge très vite - Debian 10

Bonjour à tous,

J’ai installé Debian 10 sur un portable ACER neuf (achat août 2020 - copie caractéristiques techniques jointe ) en virant Windows 10. Ma fille qui l’utilise pour ses études (internet avec cours en distanciel), bureautique, LaTex et pas ou peu de jeux (elle n’a pas le temps !).

Son ordinateur se décharge très vite (parfois en 20 minutes). J’ai lu ici et là que cela pouvait venir des cartes graphiques .

Quelqu’un a-t-il une idée sur ce qu’il est possible de faire sachant que pour l’instant je n’ai pas l’ordinateur à ma disposition.

Ordi-Debian10

Merci d’avance pour votre aide !

Salut
La gestion de l’énergie reste un problème sous Linux.
Il y a des outils pour améliorer comme TLP
https://doc.ubuntu-fr.org/tlp

Mais ça ne fait pas de miracle

Pour suivre la décharge de la batterie je me suis fait un petit script

Merci pour ta réponse.

Je vais tenter TLP et installer ton script dès que j’aurai récupéré l’ordi.

un autre outil
https://doc.ubuntu-fr.org/laptop-mode-tools
https://wiki.archlinux.fr/Laptop_Mode_Tools

Bonjour

20 minutes pour un PC qui aurait 5 heures d’autonomie, je trouve que ça fait une énorme différence
qui pourrait plutôt être causée par une panne ou un défaut matériel.

Il faudrait essayer de tester la machine avec une batterie neuve,
et mieux, en même temps, tester la batterie suspecte sur une autre machine.


[hors sujet]

@grandtoubab

Jette un œil aux fichiers contenus dans le répertoire /var/lib/upower/

Pour convertir les timestamp
qui sont au début de chaque ligne des fichiers contenus dans le répertoire /var/lib/upower/

michel@debT450:~$ date -d @1600081252
lundi 14 septembre 2020, 13:00:52 (UTC+0200)
michel@debT450:~$ 

[/hors sujet]

le fichier /var/lib/upower/history-charge-Primary-40.dat donne les mêmes infos que mon script

je peux extraire le premier champ
cut -f 1 /var/lib/upower/history-charge-Primary-40.dat

mais je ne sais pas le passer en argument de date car ça produit une liste

date -d@$(cut -c 1-10 /var/lib/upower/history-charge-Primary-40.dat)
date: opérande supplémentaire « 1599741070 »
Saisissez « date --help » pour plus d'informations.

date -d@$1599741070
lun. 02 janv. 1989 11:44:30 CET

il y assurement une erreur car la date est fausse 1989???

bref je garde mon script :rofl: :rofl:

@debian:~$ bash batterie
lun. 14 sept. 2020 14:59:28 CEST
capacité 38
lun. 14 sept. 2020 15:00:28 CEST
capacité 36
lun. 14 sept. 2020 15:01:28 CEST
capacité 35

Pour l’instant je ne peux malheureusement pas tester la batterie et je ne sais même pas comment m’y prendre !

J’ai utilisé un peu cet ordinateur au début avec Windows et n’avais pas noté de problème particulier de batterie.
Le fait d’avoir installé Debian en utilisant LVM chiffrée sur la totalité du disque dur peut-il avoir une incidence ?

c’est upower qui donne les infos
https://upower.freedesktop.org/docs/UPower.html

  • Type: the type of the display device, UPS or Battery. Note that this value can change, as opposed to real devices.
  • State: the power state of the display device, such as Charging or Discharging.
  • Percentage: the amount of energy left on the device.
  • Energy: Amount of energy (measured in Wh) currently available in the power source.
  • EnergyFull: Amount of energy (measured in Wh) in the power source when it’s considered full.
  • EnergyRate: Amount of energy being drained from the source, measured in W. If positive, the source is being discharged, if negative it’s being charged.
  • TimeToEmpty: Number of seconds until the power source is considered empty.
  • TimeToFull: Number of seconds until the power source is considered full.
  • IsPresent: Whether a status icon using this information should be presented.
  • IconName: An icon name representing the device state.
  • WarningLevel: The same as the overall WarningLevel

Que l’on retrouve dans les fichiers /var/lib/upower

/var/lib/upower$ ls -alrt
total 60
drwxr-xr-x 75 root root  4096 sept.  4 14:10 ..
-rw-r--r--  1 root root    25 sept. 14 16:09 history-time-full-Wireless_Mouse_M315_M235-4009-17-da-94-7e.dat
-rw-r--r--  1 root root    25 sept. 14 16:09 history-time-empty-Wireless_Mouse_M315_M235-4009-17-da-94-7e.dat
-rw-r--r--  1 root root    25 sept. 14 16:09 history-rate-Wireless_Mouse_M315_M235-4009-17-da-94-7e.dat
-rw-r--r--  1 root root    58 sept. 14 16:09 history-charge-Wireless_Mouse_M315_M235-4009-17-da-94-7e.dat
-rw-r--r--  1 root root   241 sept. 14 16:18 history-rate-Primary-40.dat
-rw-r--r--  1 root root   268 sept. 14 16:18 history-charge-Primary-40.dat
-rw-r--r--  1 root root   257 sept. 14 16:18 history-time-full-Primary-40.dat
-rw-r--r--  1 root root    25 sept. 14 16:18 history-time-empty-Primary-40.dat
drwxr-xr-x  2 root root 20480 sept. 14 16:18 .

Actuellement 
date -d @1600093617
lun. 14 sept. 2020 16:26:57 CEST

mon PC est sur secteur et la batterie chargée à 40%
tail -f history-charge-Primary-40.dat

1600093617	40,000	charging

Le caractère $ est de trop :

michel@debT450:~$ date -d@1599741070
jeudi 10 septembre 2020, 14:31:10 (UTC+0200)
michel@debT450:~$ 

Essaye avec :

gawk '{print strftime("%A %e %B %Y", $1) "\ncapacité : " $2, "\nétat : "$3"\n"}' /var/lib/upower/history-charge-Primary-40.dat

Je n’ai pas testé avec awk,
mais ça fonctionne peut-être aussi bien qu’avec gawk

EDIT : J’ai ajouté le numéro de jour dans le mois que j’avais oublié.

bravo :+1: avec l’heure on comprends mieux

gawk '{print strftime("%d %B %Y %H:%M:%S", $1) "\ncapacité : " $2, "\nétat : "$3"\n"}' /var/lib/upower/history-rate-Primary-40.dat
14 septembre 2020 15:58:56
capacité : 0,000 
état : unknown

14 septembre 2020 16:02:56
capacité : 24,883 
état : charging

14 septembre 2020 16:04:56
capacité : 27,401 
état : charging

14 septembre 2020 16:06:56
capacité : 24,439 
état : charging

14 septembre 2020 16:08:56
capacité : 22,958 
état : charging

14 septembre 2020 16:10:56
capacité : 25,179 
état : charging

14 septembre 2020 16:12:56
capacité : 24,439 
état : charging

14 septembre 2020 16:14:56
capacité : 27,401 
état : charging

14 septembre 2020 16:16:56
capacité : 24,439 
état : charging

14 septembre 2020 16:18:57
capacité : 22,874 
état : charging

14 septembre 2020 16:20:57
capacité : 25,104 
état : charging

14 septembre 2020 16:22:57
capacité : 24,395 
état : charging

14 septembre 2020 16:24:57
capacité : 27,401 
état : charging

14 septembre 2020 16:26:57
capacité : 24,439 
état : charging

14 septembre 2020 16:28:58
capacité : 22,874 
état : charging

14 septembre 2020 16:30:58
capacité : 25,104 
état : charging

14 septembre 2020 16:32:58
capacité : 24,395 
état : charging

14 septembre 2020 16:34:58
capacité : 27,401 
état : charging

14 septembre 2020 16:36:58
capacité : 24,439 
état : charging

14 septembre 2020 16:38:59
capacité : 22,874 
état : charging

14 septembre 2020 16:40:59
capacité : 25,104 
état : charging

14 septembre 2020 16:42:59
capacité : 24,395 
état : charging

14 septembre 2020 16:44:59
capacité : 22,958 
état : charging

14 septembre 2020 16:46:59
capacité : 25,179 
état : charging

14 septembre 2020 16:49:00
capacité : 24,351 
état : charging

14 septembre 2020 16:51:00
capacité : 22,889 
état : charging

14 septembre 2020 16:53:00
capacité : 20,699 
état : charging

14 septembre 2020 16:55:00
capacité : 20,736 
état : charging

14 septembre 2020 16:57:00
capacité : 20,736 
état : charging

14 septembre 2020 16:59:01
capacité : 20,662 
état : charging

14 septembre 2020 17:01:01
capacité : 16,245 
état : charging

14 septembre 2020 17:03:01
capacité : 17,003 
état : charging

14 septembre 2020 17:05:01
capacité : 18,514 
état : charging

14 septembre 2020 17:07:01
capacité : 16,293 
état : charging

14 septembre 2020 17:09:02
capacité : 12,543 
état : charging

14 septembre 2020 17:11:01
capacité : 10,374 
état : charging

14 septembre 2020 17:13:01
capacité : 10,380 
état : charging

14 septembre 2020 17:15:01
capacité : 10,387 
état : charging

14 septembre 2020 17:17:01
capacité : 10,368 
état : charging

14 septembre 2020 17:21:41
capacité : 0,000 
état : unknown

14 septembre 2020 17:27:41
capacité : 6,380 
état : charging

14 septembre 2020 17:59:32
capacité : 0,000 
état : unknown

14 septembre 2020 18:28:20
capacité : 20,736 
état : discharging

14 septembre 2020 18:30:20
capacité : 20,736 
état : discharging

14 septembre 2020 18:32:20
capacité : 25,179 
état : discharging

14 septembre 2020 18:34:20
capacité : 24,439 
état : discharging



Ooops, j’avais oublié le numéro de jour dans le mois

gawk '{print strftime("%A %e %B %Y %H:%M:%S", $1) "\ncapacité : " $2, "\nétat : "$3"\n"}' /var/lib/upower/history-charge-Primary-40.dat
gawk '{print strftime("%A %e %B %Y %H:%M:%S", $1) "\ncapacité : " $2, "\nétat : "$3"\n"}' /var/lib/upower/history-charge-Primary-40.dat
lundi 14 septembre 2020 15:58:56
capacité : 0,000 
état : unknown

lundi 14 septembre 2020 16:00:56
capacité : 13,000 
état : charging

lundi 14 septembre 2020 16:02:56
capacité : 15,000 
état : charging

lundi 14 septembre 2020 16:04:56
capacité : 17,000 
état : charging

lundi 14 septembre 2020 16:06:56
capacité : 19,000 
état : charging

lundi 14 septembre 2020 16:08:56
capacité : 21,000 
état : charging

lundi 14 septembre 2020 16:10:56
capacité : 23,000 
état : charging

lundi 14 septembre 2020 16:12:56
capacité : 25,000 
état : charging

lundi 14 septembre 2020 16:14:56
capacité : 28,000 
état : charging

lundi 14 septembre 2020 16:16:56
capacité : 29,000 
état : charging

lundi 14 septembre 2020 16:18:57
capacité : 31,000 
état : charging

lundi 14 septembre 2020 16:20:57
capacité : 34,000 
état : charging

lundi 14 septembre 2020 16:22:57
capacité : 35,000 
état : charging

lundi 14 septembre 2020 16:24:57
capacité : 38,000 
état : charging

lundi 14 septembre 2020 16:26:57
capacité : 40,000 
état : charging

lundi 14 septembre 2020 16:28:58
capacité : 41,000 
état : charging

lundi 14 septembre 2020 16:30:58
capacité : 44,000 
état : charging

lundi 14 septembre 2020 16:32:58
capacité : 46,000 
état : charging

lundi 14 septembre 2020 16:34:58
capacité : 48,000 
état : charging

lundi 14 septembre 2020 16:36:58
capacité : 50,000 
état : charging

lundi 14 septembre 2020 16:38:59
capacité : 52,000 
état : charging

lundi 14 septembre 2020 16:40:59
capacité : 54,000 
état : charging

lundi 14 septembre 2020 16:42:59
capacité : 56,000 
état : charging

lundi 14 septembre 2020 16:44:59
capacité : 58,000 
état : charging

lundi 14 septembre 2020 16:46:59
capacité : 60,000 
état : charging

lundi 14 septembre 2020 16:49:00
capacité : 62,000 
état : charging

lundi 14 septembre 2020 16:51:00
capacité : 64,000 
état : charging

lundi 14 septembre 2020 16:53:00
capacité : 65,000 
état : charging

lundi 14 septembre 2020 16:55:00
capacité : 67,000 
état : charging

lundi 14 septembre 2020 16:57:00
capacité : 69,000 
état : charging

lundi 14 septembre 2020 16:59:01
capacité : 70,000 
état : charging

lundi 14 septembre 2020 17:01:01
capacité : 71,000 
état : charging

lundi 14 septembre 2020 17:03:01
capacité : 73,000 
état : charging

lundi 14 septembre 2020 17:05:01
capacité : 75,000 
état : charging

lundi 14 septembre 2020 17:07:01
capacité : 76,000 
état : charging

lundi 14 septembre 2020 17:11:01
capacité : 77,000 
état : charging

lundi 14 septembre 2020 17:13:01
capacité : 78,000 
état : charging

lundi 14 septembre 2020 17:15:01
capacité : 79,000 
état : charging

lundi 14 septembre 2020 17:17:01
capacité : 80,000 
état : charging

lundi 14 septembre 2020 17:21:41
capacité : 0,000 
état : unknown

lundi 14 septembre 2020 17:23:41
capacité : 82,000 
état : charging

lundi 14 septembre 2020 17:59:32
capacité : 0,000 
état : unknown

lundi 14 septembre 2020 18:01:32
capacité : 100,000 
état : fully-charged

lundi 14 septembre 2020 18:26:20
capacité : 98,000 
état : discharging

lundi 14 septembre 2020 18:28:20
capacité : 96,000 
état : discharging

lundi 14 septembre 2020 18:30:20
capacité : 94,000 
état : discharging

lundi 14 septembre 2020 18:32:20
capacité : 92,000 
état : discharging

lundi 14 septembre 2020 18:34:20
capacité : 90,000 
état : discharging

Heureusement même bilan: décharge de 1% par minute donc 1h40 mn d’autonomie

Je suis quand même étonné qu’un simple chiffrement puisse faire baisser l’autonomie de la machine de 5 heures à 20 minutes.

Je pensais à essayer de trouver un magasin qui vendrait la même machine,
et dont le vendeur accepterait de tester la batterie suspecte qu’on lui aurait apportée après l’avoir complètement chargée.

Faut d’abord mettre en place les outils d’optimisation TLP ou laptop-mode-tools

Avant d’installer un quelconque outil, il faut comprendre pourquoi la batterie se décharge aussi vite.
A priori, il n’y a que deux causes possibles :

  • la batterie est défectueuse ;
  • un processus consomme beaucoup trop de ressources.

En attendant un test de la batterie, il faudrait donc surveiller la charge du système avec un es outils disponibles sous debian : top, htop, outil de surveillance disponible sur l’environnement de bureau, etc.

Merci pour toutes ces infos. Je vais voir ce qu’il est possible de faire avec les outils de surveillance et reviens vers le forum dès que j’en saurai plus.

D’après ce lien https://www.gamertech.fr/pc-portable-gamer/acer-nitro-5 ce PC consomme 25W au repos et 120 à pleine charge.
Donc avec une batterie de 48W/h, cela fait 2h d’autonomie au repos, disons donc 1h en utilisation normale et ~20mn à pleine charge. Il est probable que Linux (via le firmware actuellement présent) gère mal le GPU Je commencerais par regarder s’il existe différents firmware pour ce modèle …
PS : un portable bureautique de base n’a pas besoin de GPU à part, est moins cher et, avec une batterie équivalente, dispose d’une autonomie supérieure.

Merci pour le lien.

J’ai eu des problèmes lors de l’installation (voir Affichage écran noir après le démarrage de debian) résolus avec l’installation du paquet firmware-amd-graphics.

Pour l’instant je vais essayer de récupérer le résultat de htop, hardinfo, lshw-gtk et du script de décharge de batterie de grantoubab et je reviendrai sur le forum.

Je n’arrive pas pour l’instant à paramétrer correctement TLP : il ne conserve pas mes paramètres et j’hésite à installer tlpui car il manque des dépendances sous Debian 10 et je ne peux pas me permettre de laisser l’ordi en rade car ma fille l’utilise…

Je vérifie les commandes avec une VM debian 10 sur mon ordi mais je ne peux malheureusement pas tout tester.

@eugenie,
Bonjour je suis étonné qu’un ennui tel que celui qui arrive ? En premier jamais il faut garder la batterie de ce laptop Acer . Il faut brancher ce notebook avec le câble de la prise électrique. Jamais il y aura des ennuis de déchargement de cette batterie de cet Acer tout neuf. Qu’on soit a la maison ou ailleurs . Utiliser ce notebook qu’avec la batterie connectée hors de la maison… :wink:

Pour l’énergie sous Linux, il y a un outil top :wink: c’est : powertop. La difficulté principale n’est pas «la gestion par Linux» mais l’absence de norme claires et respectées, ainsi que les implémentations par la fameuse méthode La Rache par les fabricants de matériel.

Une cause de décharge rapide, c’est souvent quand il y a 2 chipset graphique, il faut éteindre celui qui ne sert pas.

Dans un cas aussi extrême que le tiens, je soupçonne un problème de détection et de calibrage de la batterie qui peut reporter des valeurs aberrantes, il faut que tu cherche s’il n’y aurait pas des paramètres a modifier.

Amicalement