GNU/Linux >> Linux Esercitazione >  >> Ubuntu

Ubuntu 14.04 scarica la batteria del laptop più velocemente rispetto a 12.04 (1 ora contro 4+ ore)?

Di recente ho eseguito l'aggiornamento a Ubuntu 14.04 su un laptop Lenovo T420 (CPU Corei7-2620M @ 2,70 GHz × 4 + Sandybridge Mobile). La batteria ora ha più di 2 anni, ma con Ubuntu 12.04 durava ancora tra le 4 e le 5 ore. Ora con Ubuntu 14.04 dura poco più di un'ora.

Cosa posso fare per questo problema? Installare i driver? Ottimizzare in qualche modo la gestione dell'alimentazione?

Aggiorna io :Per quanto riguarda la scheda grafica:

$ lspci | grep -i --color 'vga'
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)

Aggiornamento II :Di seguito è riportato un esempio di output di PowerTop. Non vedo nulla di strano, anche se non ho mai usato questo programma prima. Qualsiasi approfondimento è il benvenuto.

           Usage       Events/s    Category       Description
        2419 rpm                   Device         Laptop fan
         8.1 ms/s     216.8        Timer          hrtimer_wakeup
        42.5 ms/s     111.7        Process        /usr/lib/firefox/firefox
       100.0%                      Device         Audio codec hwC0D1: Conexant
       100.0%                      Device         Audio codec hwC0D0: Conexant
         6.5 ms/s      73.0        Process        /opt/ibm/lotus/notes/framework/../notes /authenticate
         3.8 ms/s      76.7        Interrupt      PS/2 Touchpad / Keyboard / Mouse
         1.0 ms/s      64.1        kWork          od_dbs_timer
        15.8 ms/s      27.9        Process        compiz
         7.7 ms/s      32.0        Process        gnome-terminal
       214.0 µs/s      26.4        kWork          disk_events_workfn
        24.5 ms/s      26.7        Process        /usr/lib/firefox/plugin-container /usr/lib/flashplugin-installer/libflashplayer.so -greomni /usr/lib/firefox/omni.ja -appomni /
        17.9 ms/s      28.3        Process        /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
         5.3 ms/s      31.4        Process        /usr/bin/java -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms40m -Xmx512m -jar /usr/share/eclipse.kepler//plugins/org.
         1.2 ms/s      32.7        Process        /home/desousa/.rvm/rubies/ruby-1.9.2-p290/bin/ruby script/rails s
         1.5 ms/s      18.7        Timer          tick_sched_timer
       372.4 µs/s      16.3        Process        [rcu_sched]
         3.4 ms/s      12.8        Process        transmission-gtk /home/desousa/Desktop/foo.torrent
         1.2 ms/s      11.0        Interrupt      [42]
       464.6 µs/s       7.7        Process        /usr/lib/firefox/plugin-container /opt/google/talkplugin/libnpgoogletalk.so -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib
         1.8 ms/s      10.2        Process        /opt/ibm/lotus/notes/framework/rcp/eclipse/plugins/com.ibm.rcp.base_6.2.3.20110915-1350/linux/x86/notes2 --launcher.suppressErr
       492.4 µs/s       9.8        Process        [irq/44-iwlwifi]
         1.2 ms/s       8.4        Interrupt      [0] HI_SOFTIRQ
       100.4 µs/s       7.6        Timer          ehci_hrtimer_func
       498.1 µs/s       7.0        Process        /usr/lib/jvm/java-6-sun/jre/bin/java -Djava.util.logging.config.file=/usr/share/tomcat7/conf/logging.properties -Djava.util.log
         0.9 ms/s       6.1        Process        diodon
       130.8 µs/s       6.4        kWork          ieee80211_iface_work
        38.7 µs/s       6.4        kWork          gen6_force_wake_work
        76.9 µs/s       6.1        kWork          intel_unpin_work_fn
       342.9 µs/s       5.6        Process        /usr/sbin/mysqld
         0.7 ms/s       5.4        Interrupt      [3] net_rx(softirq)
        90.6 µs/s       5.5        Interrupt      [44] iwlwifi
         3.1 ms/s       2.9        Process        gedit
       186.7 µs/s       4.1        Process        syndaemon -i 1.0 -t -K -R
       179.0 µs/s       4.2        Process        /opt/google/talkplugin/GoogleTalkPlugin
       238.6 µs/s       4.1        Process        /opt/ibm/lotus/notes/taskldr /opt/ibm/lotus/notes/taskldr

Aggiornamento III :Ho fatto un altro test, facendo funzionare il laptop fino a quando la batteria non è stata completamente scarica. Ci sono due differenze importanti nella gestione della batteria rispetto alla versione 12.04:

  • Mentre con 12.04 lo schermo sarebbe oscurato dopo 30 secondi di inattività, con 14.04 lo schermo rimane sempre con la stessa luminosità. Ci sono anche momenti in cui la ventola accelera quando non sto digitando, questo non è mai successo con 12.04.

  • Anche se ho impostato la sospensione del laptop dopo 10 minuti di inattività con la batteria, non si sospende mai. Una volta trascorsi i 10 minuti, Ubuntu mostra semplicemente la schermata di accesso; non oscura nemmeno lo schermo.

Aggiornamento IV :Ieri ho eseguito gli aggiornamenti e la batteria si sta scaricando ancora più velocemente, ora è sparita in meno di un'ora. Di seguito è riportato l'output di powertop minuti dopo lo scollegamento.

The battery reports a discharge rate of 32.8 W
The estimated remaining time is 0 hours, 56 minutes

Summary: 722.8 wakeups/second,  149.5 GPU ops/seconds, 0.0 VFS ops/sec and 23.3% CPU use

Power est.              Usage       Events/s    Category       Description
  5.55 W     63.2%                      Device         Display backlight
 90.2 mW    162.0 ms/s     220.6        Process        /usr/lib/firefox/firefox
 70.7 mW     31.0 µs/s      26.3        Process        postgres: wal writer process
 21.0 mW    306.3 µs/s      30.0        Process        [irq/44-iwlwifi]
 19.6 mW      8.6 ms/s      63.0        Process        compiz
 7.63 mW      1.7 ms/s      24.5        Process        /opt/ibm/lotus/notes/notes /authenticate
 6.43 mW      2.2 pkts/s                Device         Network interface: wlan0 (iwlwifi)
 1.35 mW    188.5 µs/s       2.3        Process        diodon
 997 µW      77.2 µs/s       2.6        Process        syndaemon -i 1.0 -t -K -R
 798 µW       4.2 ms/s      19.3        Process        /usr/bin/java -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms40m -Xmx512m -jar /usr/share/eclipse.kepler//plugins/org.
 499 µW     394.4 µs/s       1.1        Process        gnome-terminal
 299 µW       2.3 ms/s       7.0        Process        mono /usr/lib/tomboy/Tomboy.exe --search
    0 mW      3.9 µs/s      0.15        Process        sametime_idlemon 20 10
    0 mW     13.7 ms/s       5.1        Process        /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
    0 mW     12.6 ms/s      17.7        Process        /usr/lib/firefox/plugin-container /usr/lib/flashplugin-installer/libflashplayer.so -greomni /usr/lib/firefox/omni.ja -appomni /
    0 mW      6.1 ms/s     163.9        Timer          hrtimer_wakeup
    0 mW      2.7 ms/s      25.6        Interrupt      [42] i915
    0 mW      2.5 ms/s      14.4        Timer          tick_sched_timer
    0 mW      2.0 ms/s      19.2        Process        rhythmbox
    0 mW      1.9 ms/s       7.5        Process        /usr/bin/pulseaudio --start --log-target=syslog
    0 mW      1.3 ms/s      63.2        kWork          od_dbs_timer
    0 mW      1.3 ms/s      0.00        Timer          delayed_work_timer_fn
    0 mW      0.9 ms/s      0.05        kWork          acpi_os_execute_deferred
    0 mW      0.8 ms/s      0.00        Interrupt      [1] timer(softirq)
    0 mW      0.7 ms/s      53.4        kWork          disk_events_workfn
    0 mW    629.9 µs/s       0.8        Process        chromium-browser --enable-pinch
    0 mW    561.9 µs/s      19.5        Process        /home/desousa/.rvm/rubies/ruby-1.9.2-p290/bin/ruby script/rails s
    0 mW    508.1 µs/s      0.10        Process        powertop
    0 mW    496.9 µs/s       5.3        Process        /opt/ibm/lotus/notes/framework/rcp/eclipse/plugins/com.ibm.rcp.base_6.2.3.20110915-1350/linux/x86/notes2 --launcher.suppressErr
    0 mW    468.2 µs/s       0.8        Interrupt      [7] sched(softirq)
    0 mW    281.6 µs/s       4.1        Interrupt      [4] block(softirq)
    0 mW    276.5 µs/s       3.1        kWork          iwl_bg_run_time_calib_work
    0 mW    260.5 µs/s      0.00        Interrupt      PS/2 Touchpad / Keyboard / Mouse
    0 mW    200.0 µs/s      15.6        kWork          intel_unpin_work_fn
    0 mW    173.5 µs/s       4.6        Process        /usr/lib/jvm/java-6-sun/jre/bin/java -Djava.util.logging.config.file=/usr/share/tomcat7/conf/logging.properties -Djava.util.log
    0 mW    160.9 µs/s      0.00        Process        [kworker/u16:0]
    0 mW    160.3 µs/s      0.25        Process        pool
    0 mW    159.0 µs/s      0.00        Interrupt      [9] RCU(softirq)
    0 mW    147.4 µs/s       4.0        Process        /usr/sbin/mysqld
    0 mW    144.9 µs/s       0.4        Interrupt      [9] acpi
    0 mW    131.4 µs/s      10.3        Interrupt      [44] iwlwifi
    0 mW    129.5 µs/s       2.0        Process        /usr/lib/firefox/plugin-container /opt/google/talkplugin/libnpgoogletalk.so -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib
    0 mW    128.7 µs/s       4.7        kWork          ieee80211_iface_work
    0 mW    118.9 µs/s      0.00        Interrupt      [40] SATA controller

Aggiorna V :Ho utilizzato le informazioni fornite da powertop per fare alcuni calcoli:

  • Alla velocità di scarica indicata, la batteria al momento ha una capacità di circa 32 Wh;
  • La batteria è pubblicizzata con una capacità prossima a 100 Wh da nuova, con una durata fino a 15 ore;
  • Con Ubuntu 12.04 la batteria durava circa 4,5 ore, circa 1/3 di 15 ore, piazzandosi esattamente con una perdita di 2/3 di capacità;
  • Quindi, con Ubuntu 12.04 la velocità di scarica media deve essere stata di circa 7 W.
Correlati:Impossibile individuare il pacchetto" durante il tentativo di installare i pacchetti con APT!

Un aumento del consumo di energia da 7 W a 32 W è a dir poco catastrofico. Qualunque cosa stia causando questo deve essere molto più grave di una semplice applicazione guzzler o di un pacchetto mal configurato.

Aggiorna VI :Sto scrivendo questo da una sessione live 14.04 caricata da una chiave USB. Il consumo energetico sembra essere leggermente inferiore rispetto al sistema HDD (80% - 90%), il che può essere spiegato da un numero ridotto di servizi e applicazioni in esecuzione. Tuttavia, la durata della batteria è molto inferiore rispetto a quella di Ubuntu 12.04.

Aggiornamento VII :i tassi di scarica anormalmente alti sono tornati, apparentemente dopo un aggiornamento a linux-headers-generic intorno al 15 luglio. Questo è ora segnalato come un bug nel launchpad.

Correlati:come impostare il colore/motivo di sfondo in una finestra di Nautilus?

Qualsiasi suggerimento su come ripristinare la durata della batteria sarebbe molto apprezzato.

Risposta accettata:

Puoi provare l'app TLP di linrunner.
Il pacchetto può essere trovato su Launchpad o semplicemente aggiungi il PPA nel tuo sources.list file:

deb http://ppa.launchpad.net/linrunner/tlp/ubuntu trusty main

Quindi esegui:

sudo apt-get update && apt-get install tlp

Ubuntu
  1. Installa Discord su Ubuntu 20.04 - Processo passo dopo passo?

  2. Installa AIDE su Ubuntu 20.04 - Un processo passo dopo passo?

  3. Installa Pyradio su Ubuntu 20.04 - Un processo passo dopo passo?

  4. Installa MAAS su Ubuntu 20.04 - Tramite un processo passo passo?

  5. Installa Drupal su Ubuntu 20.04 LTS - Procedura passo passo?

5 modi per controllare lo stato della batteria del laptop su Ubuntu 20.04 LTS

Visualizza il rapporto dettagliato sulla batteria del laptop su Ubuntu

Usa TLP per estendere la durata della batteria del laptop Linux su Ubuntu 16.04 LTS

Installa Dropbox su Ubuntu 20.04 - Procedura passo passo?

Metodi per controllare lo stato della batteria del laptop su Ubuntu 20.04 LTS?

Ubuntu Mate 16.04 è più caldo di Windows 7 sul laptop Core2 e Ati Mobility Radeon 3xxx?