Hi,

On Mon, Sep 14, 2015 at 09:09:38PM +0530, Ritesh Raj Sarraf wrote:
> So, to sum up, I went and verified the behavior.  Suspended the laptop
> which on AC, when LMT was:
> 
> Laptop mode 
> enabled, not active [unchanged]
> 2015-09-14 / 21:01:34 ♒♒♒  ☺    
> 
> 
> Then, unplugged it. And then again resumed it.
> 
> At that point, LMT was:
> 
> Laptop mode 
> enabled, active [unchanged]
> 2015-09-14 / 21:02:11 ♒♒♒  ☺    
> 
> So can you please confirm the behavior on your box. I think that "force
> " is not needed anymore.

Well, but the important thing is whether you're seeing a message without
"[unchanged]" in it after resuming.  It's quite possible that in your use case
(resuming in a different AC state) laptop_mode will be invoked in a way not to
remain "unchanged". But I'm concerned with an entirely different use case:

- suspend
- do nothing at all, especially don't touch the AC cable
- resume
- wait a minute
- not hear the annoying spinning drive any more

For this use case, invoking laptop_mode force is necessary, as the drive
doesn't remember the sleep timeouts and the kernel doesn't care about them at
all.  And I rather suspect that there may be other things that laptop_mode
sets that are forgotten after a resume, but I may be wrong.

Regards,
-- 
Tomáš Janoušek, a.k.a. Pivník, a.k.a. Liskni_si, http://work.lisk.in/

Reply via email to