[laptop-mode] laptop-mode does not start properly

Tomas Davidek Tomas.Davidek at cern.ch
Fri Jul 31 16:46:52 CEST 2009


--------------010903080106060403000709
Content-Type: text/plain; charset="UTF-8"; format=flowed
Content-Transfer-Encoding: 7bit

Hello,
    I am having troubles with laptop-mode-tools. When turning on my
laptop that is not powered, the system hangs on starting the
laptop-mode. So I had to remove the startup link from /etc/rc2.d and try
to start it manually.

Before I did that, I checked that /var/run/laptop-mode-tools is empty 
(no file "enabled" is present).

So, after starting that manually, the program sort of hangs on the messages:
----------

Invoking module /usr/share/laptop-mode-tools/modules/wireless-ipw-power.
Intel IPW Wireless power setting is disabled.
Invoking module /usr/share/laptop-mode-tools/modules/wireless-iwl-power.
Intel IWL Wireless power setting is disabled.
Module /usr/local/lib/laptop-mode-tools/modules/* is not executable.
Module /usr/local/share/laptop-mode-tools/modules/* is not executable.
Module /etc/laptop-mode/modules/* is not executable.
-----------
At this stage, I realized that the following processes are running:
  3911 pts/0    S+     0:00 /bin/sh /etc/init.d/laptop-mode start
  3973 pts/0    S+     0:00 /bin/sh 
/usr/share/laptop-mode-tools/module-helpers/l
  3980 pts/0    S+     0:00 sleep 150

So laptop-mode is apparently waiting for something? After a while 
(likely 150 sec), program continues and issues these messages:
-------
Determining power state from /sys/class/power_supply/AC/online.
Not trying other options, already found a power supply.
On battery power: Activating, because ENABLE_LAPTOP_MODE_ON_BATTERY is set.
Not on AC and we have battery information in 
/sys/class/power_supply/BAT* -- checking minimum battery charge.
/sys/class/power_supply/AC is of type Mains.
Not of type "Battery", skipping.
/sys/class/power_supply/BAT0 is of type Battery.
Checking levels for /sys/class/power_supply/BAT0.
Present: 1.
Remaining charge: 3817000
Full capacity: 5200000
Checking if desired state is different from current state.
------------------------
This is repeated every 150 sec. Well, is sounds like it works, but in 
fact I never get a prompt, i.e. the startup never finished. Is that a 
feature, bug or some wrong settings ? My 
/etc/laptop-mode/laptop-mode.conf is attached.

Thanks a lot for any hint, best regards
                                          Tomas

P.S: Another question: since laptop-mode can deal with CPU frequency 
scaling, one probably does not need cpufreqd (standalone daemon that 
does similar job). Does someone have any experience which of the two 
ways are better/suitable for certain cases ?

--------------010903080106060403000709
Content-Disposition: inline; filename="laptop-mode.conf"
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

An embedded and charset-unspecified text was scrubbed...
Name: laptop-mode.conf
URL: <http://mailman.samwel.tk/pipermail/laptop-mode/attachments/20090731/ef4a7675/attachment.asc>

--------------010903080106060403000709--


More information about the laptop-mode mailing list