On 05/22/2013 09:07 AM, Ritesh Raj Sarraf wrote:
tag 709239 -patch
thanks
On Wednesday 22 May 2013 01:37 AM, Marco wrote:
Dear Maintainer,
after the last laptop-mode-tool upgrade in testing I noticed that cpu
governor was not correctly set after boot (it was my kernel default, not as set
in /etc/laptop-mode/conf.d/cpufreq.conf). Manually restarting laptop-mode via
invoke-rc.d restored the situation.
This could be caused by another service interfering. What other service
are you running?
And what Window manager are you on? They tend to control the cpu too.
Well i tested it without X11 starting at boot. By the way the only other
service I feared that could be in the way is cpufrequtils, but disabling
it with update-rc.d did not change anything.
Now, I found out that in /usr/sbin/laptop_mode is taouched the file /var/run
/laptop-mode/enabled just because $ENABLE_LAPTOP_MODE_TOOLS is '1', regardless
of the fact that the script may have been called with 'stop' parameter.
Since the same file is created/removed by the init.d script I tried to comment
out the line in /usr/sbin/laptop_mode (643) and this fixed the problem for me.
I'm not sure if this could break some other usecase though.
The reliance on that file is not important now. We have kept it only for
backward compatibility reasons.
LMT now is events based. It acts on events generated by the kernel.
Hence I have a strong feeling there's something else interfering with
the settings.
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.
Thanks
Marco
|||
|
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org