Control: tag -1 +fixed-upstream

Hello Daniel,


On Tue, 2015-06-02 at 16:50 -0400, Daniel Kahn Gillmor wrote:
> On Wed 2015-05-27 13:43:49 -0400, Ritesh Raj Sarraf wrote:
> > On Friday 22 May 2015 12:16 AM, Daniel Kahn Gillmor wrote:
> > > In practice, it looks like the manpage is correct, and the
> > > comments in
> > > ethernet.conf are wrong.
> > > 
> > > This is too bad, because it would be nice to avoid disabling the
> > > link
> > > when the carrier is still active.
> > IIRC, the configuration comments are correct. This change was
> > proposed
> > by someone later, and the justification was similar. It should be
> > in the
> > git commit logs.
> > 

This is now fixed. The man page is updated. The comments in the
configuration file are correct.

> > > Also, with this flag set (as it is by default, i think), the
> > > ethernet
> > > does not get re-enabled after moving back from Battery to AC
> > > power.
> > By deafult, we wouldn't disable the eth device.
> > 
> > Regarding the behavior, I'll look into this later. Meanwhile, if
> > you
> > root-cause it, please do comment on this bug.
> > 

I just checked the code and it looks good to me. If you run into this
problem, the debug logs will help.

> 
> Ok, looking into it a bit further, it's even more complicated by a
> couple other options.
> 
> DISABLE_ETHERNET_ON_BATTERY=1 is supposed to re-enable the ethernet
> when
> the AC is plugged back in.
> 

With the standard defaults, this should work. I just checked the code
and it looks good to me.

> But if ENABLE_LAPTOP_MODE_ON_AC=0, then i think the
> /usr/share/laptop-mode-tools/modules/ethernet never gets run at all
> after the power has been plugged back in, so it doesn't know to bring
> the NIC back up.
> 

Ummm... I think you have read it differently. That setting would mean
to enable/disable all Laptop Mode Tools Power Savings, even while on AC
Power.

That is why it is disabled by default. There were user reports, running
desktops (and other devices), as Jukebox, and they wanted the machine
to be in low power mode.



.... And now when I go and read the comments/man page myself, it is not
clear enough. Perhaps I will update the man page and config settings.

> Also, while the test for active carrier appears to actually work (as
> seen by set -x within .../modules/ethernet, it avoids bringing down
> eth0
> if there is no NO-CARRIER present from "ip link show eth0"),
> something
> else (also in laptop-mode-tools, because it doesn't happen when the
> package is purged) is bringing down the NIC.
> 

Yes. I think this has also been fixed today in #807338

> So this is still pretty confusing to me, and it looks like there is
> at
> least one bug besides the documentation.
> 
>       --dkg

Thanks for the bug reports. I am hopeful, todays fixes should also
address the issues you've reported.

PS: As I've mentioned in bug #807338, you may want to consider
upgrading to the version in testing/unstable. LMT does not have any
strong dependency, and should work fine. The version in Jessie is old.
Also the newer ones have much much better systemd integration.

And if you are interested to also test the bug fixes from today, you
can look at the upstream git repo. In total, with both the bug reports,
the code fix is 1. The rest are documentation fixes.

https://github.com/rickysarraf/laptop-mode-tools


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

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to