Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
laptop mode tools CPU throttle issue when booting on battery
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
koschi
Tux's lil' helper
Tux's lil' helper


Joined: 09 Oct 2004
Posts: 118
Location: Tianjin, CN

PostPosted: Sat Feb 20, 2016 11:51 am    Post subject: laptop mode tools CPU throttle issue when booting on battery Reply with quote

Hello,

I got one issue with laptop mode tools when booting directly on battery. It doesn't throttle my CPU to 50% as set in the config (/etc/laptop_mode/conf.d/intel_pstate.conf).
Code:
# cat /proc/sys/vm/laptop_mode
is reporting a non zero value, so laptop mode tools is running.

After a
Code:
# /etc/init.d/laptop_mode restart
it works as expected.

Seems that laptop mode tools doesn't detect that I'm running on battery at first. When I'm booting on AC and disconnect the power supply the CPU throttle is set correctly to 50%.

Any ideas?
_________________
Der Digitalrechner ist ein Vollidiot mit einer einseitigen Begabung im schnellen Addieren.
Back to top
View user's profile Send private message
commander-keen
n00b
n00b


Joined: 09 Oct 2013
Posts: 47
Location: Europe

PostPosted: Sat Feb 20, 2016 3:23 pm    Post subject: Reply with quote

Just to be sure it's being launched correctly on boot...
what does
Code:
rc-update
give you? Is the laptop_mode thing listed?

Otherwise an hack might be to create a second boot script, forcing the
Code:
/etc/init.d/laptop_mode restart

on boot up. Not pretty I admit, but that might work.


P.S.: Markus?
Back to top
View user's profile Send private message
koschi
Tux's lil' helper
Tux's lil' helper


Joined: 09 Oct 2004
Posts: 118
Location: Tianjin, CN

PostPosted: Sun Feb 21, 2016 3:13 am    Post subject: Reply with quote

Hi,

here is the output of rc-update:
Code:
# rc-update
       NetworkManager |      default                 
                acpid |      default                 
            alsasound |      default                 
               binfmt | boot                         
            bluetooth |      default                 
             bootmisc | boot                         
           consolekit |      default                 
                cupsd |      default                 
                 dbus |      default                 
                devfs |                       sysinit
                dmesg |                       sysinit
                 fsck | boot                         
             hostname | boot                         
              hwclock | boot                         
              keymaps | boot                         
            killprocs |              shutdown       
    kmod-static-nodes |                       sysinit
          laptop_mode |      default                 
                local |      default                 
           localmount | boot                         
             loopback | boot                         
              modules | boot                         
             mount-ro |              shutdown       
                 mtab | boot                         
                mysql |      default                 
               net.lo | boot                         
                 ntpd |      default                 
               procfs | boot                         
                 root | boot                         
                samba |      default                 
            savecache |              shutdown       
                 swap | boot                         
            swapfiles | boot                         
               sysctl | boot                         
                sysfs |                       sysinit
            syslog-ng |      default                 
         termencoding | boot                         
         tmpfiles.dev |                       sysinit
       tmpfiles.setup | boot                         
                 udev |                       sysinit
              urandom | boot                         
           vixie-cron |      default                 
                  xdm |      default

_________________
Der Digitalrechner ist ein Vollidiot mit einer einseitigen Begabung im schnellen Addieren.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum