On Wed, Oct 17, 2012 at 3:53 PM, Ritesh Raj Sarraf <r...@researchut.com> wrote:
> On Wednesday 17 October 2012 06:01 PM, Jasmine Hassan wrote:
>> So if I do `service start laptop-mode`m edit config file to disable
>> LMT, I can still do `service stop laptop-mode` without it enabled.
>
> I don't know what you are intending here.

Sorry I wasn't clear (and for the typo). Rephrase:
1. start laptop-mode
2. nano /etc/laptop-mode/laptop-mode.conf
and change:
ENABLE_LAPTOP_MODE_TOOLS=1
to:
ENABLE_LAPTOP_MODE_TOOLS=0

Now, although laptop-mode is enabled, the init script doesn't tell the
actual status, when invoking `service laptop-mode status`.

And how would `service laptop-mode stop` react in this case? Does it
not bother try to deactivate laptop-mode just because it sees
ENABLE_LAPTOP_MODE_TOOLS=0 in config? i.e. are we accounting for the
possibility that, although config file shows LMT is disabled, that LMT
may have been started (and not manually stopped) before we disabled?
What happens then if I suspend? LMT thinks its disabled, does nothing,
when it should actually be deactivating because we
started-before-config-disable.

Am I making a bit more sense?

>
> Whenever LMT is invoked, it'll call lmt_load_config(). There it checks
> for, if LMT is enabled and proceeds, or otherwise it just exits out.
>
> --
> Ritesh Raj Sarraf
> RESEARCHUT - http://www.researchut.com
> "Necessity is the mother of invention."
>
>


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to