Skip to main content

Power saving setting on my laptop machine Debian Jessie is running on

I have not paid a little effort on power-saving setting of my laptop machine, but I finally made it to some extent.

After searching around the web pages, the article on the https://forums.bunsenlabs.org/viewtopic.php?id=1920 page reminded me of laptop-mode-tool package and tried it.

At first, I installed laptop-mode-tool, rebooted and launched the powertop.
The following screen capture is its screen:

PowerTOP 2.6.1    Overview   Idle stats   Frequency stats   Device stats   Tunab


>> Bad           Wireless Power Saving for interface wlan0                     
   Bad           Enable Audio codec power management
   Bad           Enable SATA link power management for host0
   Bad           Enable SATA link power management for host1
   Bad           Enable SATA link power management for host2
   Bad           Enable SATA link power management for host3
   Bad           NMI watchdog should be turned off
   Bad           VM writeback timeout
   Good          Autosuspend for unknown USB device 1-1 (8087:0020)
   Good          Autosuspend for unknown USB device 2-1 (8087:0020)
   Good          Autosuspend for USB device EHCI Host Controller [usb1]
   Good          Autosuspend for USB device EHCI Host Controller [usb2]
   Good          Runtime PM for PCI Device Intel Corporation Core Processor QPI
   Good          Runtime PM for PCI Device Intel Corporation 5 Series/3400 Serie
   Good          Runtime PM for PCI Device Intel Corporation 5 Series/3400 Serie
   Good          Runtime PM for PCI Device Intel Corporation 5 Series/3400 Serie
   Good          Runtime PM for PCI Device Intel Corporation 5 Series/3400 Serie
   Good          Runtime PM for PCI Device Intel Corporation 5 Series/3400 Serie
   Good          Runtime PM for PCI Device Intel Corporation 5 Series/3400 Serie
   Good          Runtime PM for PCI Device Intel Corporation 5 Series/3400 Serie
   Good          Runtime PM for PCI Device Intel Corporation 82577LM Gigabit Net
   Good          Runtime PM for PCI Device Intel Corporation Core Processor Inte
   Good          Runtime PM for PCI Device Intel Corporation 5 Series/3400 Serie
   Good          Runtime PM for PCI Device Intel Corporation Core Processor DRAM
   Good          Runtime PM for PCI Device Intel Corporation 82801 Mobile PCI Br
   Good          Runtime PM for PCI Device Intel Corporation Mobile 5 Series Chi
   Good          Runtime PM for PCI Device Intel Corporation 5 Series/3400 Serie
   Good          Runtime PM for PCI Device Intel Corporation Core Processor Quic
   Good          Runtime PM for PCI Device Intel Corporation Core Processor Quic
   Good          Runtime PM for PCI Device Intel Corporation 1st Generation Core
   Good          Runtime PM for PCI Device Intel Corporation 1st Generation Core
   Good          Runtime PM for PCI Device Intel Corporation 1st Generation Core
   Good          Runtime PM for PCI Device Intel Corporation Centrino Advanced-N
   Good          Runtime PM for PCI Device Ricoh Co Ltd CardBus bridge
   Good          Runtime PM for PCI Device Ricoh Co Ltd MMC/SD Host Controller
   Good          Runtime PM for PCI Device Intel Corporation 5 Series/3400 Serie
   Good          Wake-on-lan status for device wlan0
   Good          Wake-on-lan status for device eth0



 <ESC> Exit | <Enter> Toggle tunable | <r> Window refresh                      


The laptop-mode-tool was doing good job, but some items remained untuned.
So, as the article suggested, I added the systemd service like:

# cat /etc/systemd/system/powertop.service
[Unit]
Description=Powertop tunings

[Service]
Type=oneshot
RemainAfterExit=no
ExecStart=/usr/sbin/powertop --auto-tune
Environment="TERM=xterm"

[Install]
WantedBy=multi-user.target

and typed:

sudo systemctl enable powertop.service

This brought a complete setting as long as I watched the powertop 'Tunables' tab.
Have fun!

Comments

Popular posts from this blog

Configuring Network Manager for PPPoE connection

When I'm home, I use fiber-optic line with a dedicated old small router (YAMAHA RT107e) for access to the Internet. But I recently became anxious about the router. If it fails, how can I survive until I get another one? So, I tried to connect my Debian desktop PC to the fiber-optic line without the router. The PC have to talk to the other side of the line with PPPoE but I did not know how. In my PC, the Network Manager manages network configuration. So, I had to configure the Network Manager to utilize the pppoe like : nmcli connection add ifname eth0 connection.type pppoe username USERNAME password PASSWORD

Some adjustment to run some daemon services within LXC container

 I built and am running a mail server, using dovecot for IMAP4 server and Power DNS (pdns) for DNS authoritative server, and memcached for back-end service for some mail filter. I also use LXC for staging environment to test my mail server, but running those services is not straight forward. My understanding is that it is because some security features of systemd using Linux kernel namespace function conflict with the use of namespace in LXC container. So, if you want to run memcached, dovecot, and pdns via systemd within LXC container, you have to disable some security features of systemd by configuration. My additional configuration to systemd is as follows: root@myhost:/# cat /etc/systemd/system/memcached.service.d/99-ns.conf [Service] ProtectSystem = no ProtectHome = no PrivateDevices = no PrivateTmp = no cat /etc/systemd/system/dovecot.service.d/99-ns.conf [Service] ProtectSystem = no PrivateDevices = no PrivateTmp = no root@myhost:/# grep -v '#' /etc/systemd/system/pdns.s...

The final update to Debian 11 has come

Recently, the 11th point release of Debian 11 has been announced, and it will be the last one. For I am still maintaining one Debian 11 machine, I am starting to prepare its upgrade to Debian 12. Because it is a dual boot machine, I must not forget about the change of grub OS probing. Before I ugrade, I have to add  GRUB_DISABLE_OS_PROBER=false to / etc/default/grub,  or I lose grub menu for Windows OS.  Another thing that impacts me is the change of gnome-text-editor. In Debian 11, gnome-text-editor is a kind of alias of gedit controlled under the Debian alternative system with update-alternatives command. On the other hand, a new package gnome-text-editor appears in Debian 12, and it is a different thing from gedit. For I am an uim user, I was confused when I tried to use launch a Japanese input method via uim on gnome-text-editor in Debian 12, for it wouldn't work as in Debian 11. Yes, these two things are important reminder to me.