LWN.net Logo

The Grumpy Editor's Fedora 18 experience

The Grumpy Editor's Fedora 18 experience

Posted Jan 29, 2013 8:15 UTC (Tue) by Duncan (guest, #6647)
In reply to: The Grumpy Editor's Fedora 18 experience by lkundrak
Parent article: The Grumpy Editor's Fedora 18 experience

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.

http://www.rpmfind.net/linux/rpm2html/search.php?query=la...

http://www.samwel.tk/laptop_mode/

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.

Duncan


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds