On Wednesday 22 May 2013 01:44 PM, Marco Pattaro wrote:
> Still I believe there's something wrong with it, it's a fact that
> leaving it's creation/deletion just to the init.d script solved the
> problem.
>
> It's ok that cpu governor is changed on kernel events; but here I find
> LMT not starting because it believes it's already started. Reading
> syslog, I find this message at every boot:
>
> |May 21 13:50:42 silmaril laptop-mode: Laptop mode
> May 21 13:50:42 silmaril laptop-mode: enabled,
> May 21 13:50:42 silmaril laptop-mode: not active [unchanged]
>
> |||
>
> and the same apply if I try to manually start LMT without stopping it
> first. It says [unchanged] because the file
> /var/run/laptop_mode/enabled is there before bootup and it's used to
> initialize the $STATE variable in /usr/sbin/laptop_mode. The same file
> is supposed to be removed on
>
> $ invoke-rc.d laptop-mode stop
>
> but it's then created again when
>
> $ /usr/sbin/laptop_mode stop
>
> is called by the init.d script just afterward.
Okay! Thanks for the explanation. Let's try to debug this issue further
then.

In /etc/laptop-mode/conf.d/cpufreq.conf there is a debug switch. Could
you please enable the debug switch for this module, and then run your
tests? The logging will be done to syslog provided you enable the
following settings in /etc/laptop-mode/laptop-mode.conf. Then you can
share your relevant syslog messages.

#
# Set this to 1 if you want to see a lot of information when you start/stop
# laptop_mode.
#
VERBOSE_OUTPUT=0

# Set this to 1 if you want to log messages to syslog
LOG_TO_SYSLOG=1


-- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to