When the machine is plugged in, I mostly close the lid to turn off the screen so that it does not disturb me from sleep, but can still be alive finishing a build.
When it's not plugged, I'm probably travelling and I close the lid so that I can carry the laptop in my bag.
This even sounds like a sane default to me and I'll miss the setting terribly if it goes away from my desktop.
Posted Jan 16, 2013 18:45 UTC (Wed) by mathstuf (subscriber, #69389)
[Link]
In systemd 196, I added the option of 'lock' to the lid switch, though it appears as though F18 has 195 and probably won't get that upgrade (though a backport should be minimal work/maintenence; I'd certainly love to see it in RHEL7 at least). This causes all sessions to receive a 'lock' signal. If there's a signal for when the lid closes as well, the listener in the DEs could check if they're on AC and suspend if so. I'm writing a minimal Python daemon which does what I want (with flexibility); haven't worked on it for a while though.
The Grumpy Editor's Fedora 18 experience
Posted Jan 17, 2013 8:52 UTC (Thu) by michich (subscriber, #17902)
[Link]
Posted Jan 18, 2013 22:37 UTC (Fri) by mathstuf (subscriber, #69389)
[Link]
Ah, I had missed it in Koji because it has a trailing '.1' instead of fc18. Sounds good :) .
The Grumpy Editor's Fedora 18 experience
Posted Jan 18, 2013 9:06 UTC (Fri) by Kamilion (subscriber, #42576)
[Link]
Forgive me for sidebusting here, both as a normally ubuntu user and the occasional windows 7 gamer. I've been playing with FC18-lxde in a client project for the last few days, but have been actively lurking the systemd and wayland MLs since they were wee footnotes on LWN, and frowning my little heart out at *ubuntu for keeping upstart over systemd. But hey, least it isn't the tangle of LFS sysv scripts or openrc!
My Asus netbook currently has the exact settings you speak of, under windows 7. If the machine is on AC, display off. If the machine is on battery, suspend. I find myself instinctively pulling the cord out before closing the screen when I'm about to take it somewhere. Just consider it another plus one to the idea, since I think it's Asus's fancy 'superhybridengine' power profiles that seem to invoke this behavior.
Can't complain, since they threw a free windows license in my face, might as well stick steam on it.
On the upside, FC18 ships with systemd 19*, so it'd be pretty sane to send a patch to the ML and expect to be able to build and utilize the resulting fix. (haha, systemd-44 patches? YGTBSM.)
The Grumpy Editor's Fedora 18 experience
Posted Jan 29, 2013 8:15 UTC (Tue) by Duncan (guest, #6647)
[Link]
Anybody that's serious about having their laptop run differently on wall power than it does on battery should have a look at laptop-mode-tools.
Originally designed to deal with the kernel's laptop-mode, it now ships a plethora of scripts designed to control all sorts of things. The defaults are sane and reasonable in most cases, but those who feel the need can tweak settings to their heart's content (as naturally I have, being a gentooer =:^)
rpmfind doesn't appear to list any fedora packages, but it does list mandriva/opensuse/sourceforge/mageia/dagfabian-rhel noarch packages, upto 1.61, which is only a version behind the 1.62 that's showing up here on gentoo (and that adds systemd support according to the changelog, so anyone running that will probably want to grab 1.62 from the home page, there's Fedora-specific instructions), and it lists homepages/sites for it as well, so that would appear to be a reasonable place for rpm-based-distro folks at least to start looking for more, if they're interested.
But you really have to take a look in the tarball to see all the modules it comes with, and thus the configuration options. =:^)
While I don't see a direct lid-switch module in the 1.60 tarball that's what I have on my (slightly dated) netbook install, there's hooks for adding commandlines to execute at plug/unplug, and it'd be simple enough to add the commands above, there.