Slashdot Mirror


OpenBSD Gains Centrino Power Management

In a recent email, Theo de Raadt announced support in -current for power management on the Pentium M series of processors. This allows the CPU to be throttled and therefore power saved. Additionally, dhclient was modified so that it is not necessary to find the process of the already-running dhclient and kill it before running dhclient again. This is useful for laptops that spend time roaming between different wireless networks, when dhclient is used fairly often.

49 comments

  1. Before anyone comments, on linux it's cpufreq by Ayanami+Rei · · Score: 3, Informative
    --
    THIS THING CAN TURN ON A DIME, MACROSSZERO STYLE ALSO FUCK BETA, ~NYORON
    1. Re:Before anyone comments, on linux it's cpufreq by Anonymous Coward · · Score: 3, Interesting

      A little offtopic maybe, but I've always been curious... One of the things I love the most about my PowerBook is how it wakes up immediately when I open the cover, in contrast to my friend's Dell laptop (running Windows XP) that takes forever to wake up from hibernate. How long does it take for a Linux system with Gnome or KDE to wake up from sleep and be usable?

      I have no firsthand experience in this area so I'd be interested to know. Thanks...

  2. In fact, the only OS that doesn't have a native by Ayanami+Rei · · Score: 3, Informative

    interface now seems to be Windows NT 5.x. (okay, so XP SP1 supports automatic throttling, but you can't control it)
    Yawn. 3rd party software? Bleah.

    --
    THIS THING CAN TURN ON A DIME, MACROSSZERO STYLE ALSO FUCK BETA, ~NYORON
    1. Re:In fact, the only OS that doesn't have a native by slittle · · Score: 1
      Yawn. 3rd party software? Bleah.
      So anything a user would expect to "just work" out of the box is fair game? I hope you've never complained about Microsoft "integrating" IE into Windows then...
      --
      Opportunity knocks. Karma hunts you down.
  3. If it's hibernating, it won't be any faster. by Ayanami+Rei · · Score: 2, Informative

    But if it was just asleep, it takes about 3 or 4 seconds to be usable (that's about how long it takes to intialize the video and spin up the hard drive if necessary).

    It seems about consistent for linux and windows. I imagine FreeBSD is the same; I've never used it on a laptop.

    --
    THIS THING CAN TURN ON A DIME, MACROSSZERO STYLE ALSO FUCK BETA, ~NYORON
    1. Re:If it's hibernating, it won't be any faster. by Anonymous Coward · · Score: 2, Interesting

      Thanks for your informative reply. I didn't know there was a difference between hibernate and sleep. I googled around a bit and found this explanation. However, it seems that in sleep mode the battery will only last a day or two (on a Dell laptop, at least), and that's just unacceptable--my PowerBook lasts a week or more. I imagine this has more to do with the hardware than the software, however, so I guess the only way to find out how long it would take for my PowerBook to wake up from sleep under Linux and BSD would be to just try it myself. Perhaps I'll get around to it someday. :)

    2. Re:If it's hibernating, it won't be any faster. by addaon · · Score: 3, Informative

      Yup, there are three differences between the powerbooks and (most, not all) pc laptops. First, the powerbooks are energy-star compliant, which is a goofy way of saying they draw 1W of power when suspended (on battery; they actually take about 3W when on AC, for reasons I don't quite get). This is what allows such long suspend times. Second, they don't support hibernate at all; if you're going away for vacation for a month or more, you have no choice really but to either plug in the powerbook, or shut it down; with a pc, you'd probably just hibernate it. Third, the lid switches work really damn well. There are a lot of PC's that have that, now, but it's still not consistent... the goal, just to let the pc makers know, is so that closing suspends immediately, and opening has an image on the screen before the screen is visible to the user.

      --

      I've had this sig for three days.
    3. Re:If it's hibernating, it won't be any faster. by dvmiller · · Score: 2, Informative

      (on battery; they actually take about 3W when on AC, for reasons I don't quite get)

      It's charging the battery as well when it's on AC power.
    4. Re:If it's hibernating, it won't be any faster. by addaon · · Score: 1

      Nah, battery charge has to be around 20W or so, I think. Certainly at least 10W. I think the extra few watts are for things like wake-on-lan, and other useless junk I don't much care about.

      --

      I've had this sig for three days.
  4. OpenBSD and Laptops by Sloppy · · Score: 3, Interesting
    Anyone have any recommendations for a laptop, for which the built-in stuff (particularly wireless interfaces) is supported by OpenBSD?

    I don't care much about processor speed or fancy video (as long as XFree86 works with it). Just need to run a web browser and an IMAP client.

    I think this OS might be a good choice for laptops, since those tend to get connected to hostile networks without a friendly firewall between me and "them."

    I would also want an encrypted /home, at a minimum, since lightweight computers are more vulnerable to loss/theft than typical desktops. (And my home dir would contain config files for my IMAP client, which would contain authentication info.) OpenBSD can do that, right?

    --
    As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
    1. Re:OpenBSD and Laptops by lcde · · Score: 2, Informative

      I've run 3.2 and now 3.4 on my Compaq E500 Armada. Everything seems to be supported without any problems. I also have a Dlink DWL-650 wireless card.

      --
      :%s/teh/the/g
    2. Re:OpenBSD and Laptops by damian.gerow · · Score: 4, Interesting

      Have you looked into FreeBSD? 5.x is coming along {nicely,horribly}, and has GEOM, CPU throttling, ACPI, and pretty extensive hardware support. It's also got a more modern compiler, which has caused some small issues with OpenBSD (namely, PowerDNS won't compile and/or run).

      Don't get me wrong -- OpenBSD definitely has its place, but it's possible to secure /any/ OS. And these changes to dhclient most certainly /would/ be welcome. But I know that FreeBSD has native support for low-level encryption, and that seems to be pretty important for laptops. I also find FreeBSD makes a better desktop, but that's a matter of personal choice.

    3. Re:OpenBSD and Laptops by Sloppy · · Score: 1
      OpenBSD definitely has its place, but it's possible to secure /any/ OS.
      I understand that, and am quite willing to consider other OSes. OpenBSD just comes to mind first, that's all.

      Have you used FreeBSD on a laptop?

      --
      As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
    4. Re:OpenBSD and Laptops by jschauma · · Score: 3, Interesting

      Dunno 'bout OpenBSD, but NetBSD will certainly be a good choice, too. See this page for some reports of NetBSD on laptops.

      As for encrypted /home, take a look at NetBSD's cryptographic disk driver. I use it on my IBM T30 to encrypt /home and swap. Neato.

      --

      -- "Tradition is the illusion of permanence."
    5. Re:OpenBSD and Laptops by Brandybuck · · Score: 2, Informative

      Don't know about OpenBSD, but FreeBSD-5.2 runs just fine on my Compaq Presario 2591. Everything but the winmodem worked out-of-the-box. I've never used it, but the FreeBSD GEOM system supports an encrypted filesystem.

      --
      Don't blame me, I didn't vote for either of them!
    6. Re:OpenBSD and Laptops by Anonymous Coward · · Score: 0

      I do not have any specific recommendations. However, information on OpenBSD and i386 laptops is available at:

      http://www.openbsd.org/i386-laptop.html

      Otherwise the platforms specific pages will have tell you what is supported.

      index - http://www.openbsd.org/plat.html
      I386 - http://www.openbsd.org/i386.html
      Mac Powerpc - http://www.openbsd.org//macppc.html

    7. Re:OpenBSD and Laptops by Anonymous Coward · · Score: 2, Informative
      check out openbsd-mobile@monkey.org

      i highly recommend IBM Thinkpads, in particular the X series (very portable). OpenBSD runs like a charm on most thinkpads -- many OpenBSD developers use thinkpads, so you know that the video card, etc will work ;)

    8. Re:OpenBSD and Laptops by damian.gerow · · Score: 1

      Yes. I've used FBSD on an IBM A21m and on a T23 (don't remember which model). FWIW, I've also run Linux on both, and I actually found the FBSD hardware support to be a little bit better. However, I have not run OBSD on any laptops, so I'm not in a position to compare those two.

    9. Re:OpenBSD and Laptops by SteelX · · Score: 2, Informative

      Not sure if it's helpful, but I run OpenBSD on a Dell Latitude L400 (yes, it's old). Most things work, except the sound toggle buttons (I can't increase/decrease the volume via the keyboard's Fn+{F5,F6} buttons).

      If all you need is XFree86, a web browser, and IMAP client, I highly recommend OpenBSD. OpenBSD is more than sufficient. You can make a really slick desktop with it, but it does take more time to set up than Linux or possibly FreeBSD. However, you'll learn heaps as you go along.

      Disclosure: I'm also a Slackware user, and absolutely love tinkering with stuff and learning the internals of systems. :) That may be the reason why I don't mind all the tinkering that goes into getting a beautiful OpenBSD desktop up and running. That might put other people off, though. YMMV.

    10. Re:OpenBSD and Laptops by Game+Genie · · Score: 1

      If you go to the OpenBSD website and look at the pics from their 'hackathon' they are all using Apple PowerBooks. If the commiters are on PowerBooks it seems like asure bet that they support them.

    11. Re:OpenBSD and Laptops by Anonymous Coward · · Score: 0

      "I don't know anything about what you asked, so I'll respond with some unrelated information!" Thanks.

  5. Re:The Straight Dope by 101percent · · Score: 3, Funny

    Netcraft runs on FreeBSD!

  6. Linux and Pentium-M by lonesometrainer · · Score: 3, Interesting

    I don't know. 3 months age we bought 4 Thinkpads T40p, mainly because of the incredible batterie times everyone seemed to be experiencing with these machines. Kernel 2.6+ACPI+cpufreq+some tricks from several mailing lists give us max. 3h with display set to darkest level and bios settings to max battery life.

    Windows may not be able to fine-control the machine as much as you can with the upper configuration, but a xp-test-installation kept the machine up and running for nearly 5 hours (nearly same work on the machine...).

    Any tips from Linux Pentium-M experts???

    1. Re:Linux and Pentium-M by drix · · Score: 1, Flamebait

      The XP ACPI implementation is much, much further along than the Linux's is, or may ever be. When implemented fully, ACPI can do all sorts of nifty things like shutting down individual peripherals to save power, even if they're on the USB bus (do a search for "usb 'selective suspend'" and see how many hits for Linux you get), throttle the CPU (now superceded by SpeedStep et. al), etc. Also, as much as I hate to admit it, Unix simply was never designed with this type of role in mind. It takes tons of tweaking to get a Unix system to mimic the same basic features found out-of-the-box in Windows, things like HDD spindown, intilligent CPU throttling (cpudynd does not count), etc. Even then everything is wont to thrash your disk with reckless abandon

      --

      I think there is a world market for maybe five personal web logs.
    2. Re:Linux and Pentium-M by evilviper · · Score: 1
      Also, as much as I hate to admit it, Unix simply was never designed with this type of role in mind. It takes tons of tweaking to get a Unix system to mimic the same basic features found out-of-the-box in Windows,

      First off, I seriously doubt that you honestly "hate to admit it". Considering some of your previous posts, I'd say you're quite anxious to say it as often as possible.

      Secondly, I really don't have any idea what you mean. Obviously those functions have to be codec into the operating system, but it hardly "takes tons of tweaking". Once it's implimented, it'll work just fine. What is it about the nature of Unix that you think makes it impossible to power-down unused devices?

      I'll admit that hdparm for HDD spindown is a bit of a hack, but that's only because of how Linux developers chose to impliment it. All other forms of Unix do it differently.
      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    3. Re:Linux and Pentium-M by Anonymous Coward · · Score: 0

      I assume you are running cpufreqd and it's actually working properly (check your /etc/cpufreqd.conf and see if /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_f req does show reduced CPU speed.

      I have a Thinkpad X31 and get 4.5h of normal (for me ) usage - i.e. editing documents, occasional compilation, some web browsing and email. I get about 4h when watching a DIVX movie... down to around 3 hours of constant compilation (disk thrashing, 100% CPU). This seems to be about what people get in Windows, though I don't use Windows on this machine.

      You might like to try the linux laptop mode patches, combined with a short hard disk spin-down delay. This will make your laptop just write to disk every 10 (or so - configurable) minutes so have the hard drive spun down most of the time - you can save a lot of power that way.

  7. That is good! by Anonymous Coward · · Score: 2, Funny

    daniel parsons has no wang.

    Good for him. Wang hasn't been a computer maker anyone has bothered to care about for years.

    The only reason to hold onto a wang at this point is nostalaga and a high electric bill to keep it powered.

  8. Too hard to... by henrik · · Score: 1

    As it is just too hard to run:

    pkill dhclient; dhclient

  9. GEOM Based Disk Encryption by Anonymous Coward · · Score: 0

    "FreeBSD GEOM system supports encrypted filesystems"

    I've heard that while it's untested, it theoretically offers such a high level of encryption that it would take all of the computers that currently exist or are planned to exist, a few times the current age of the Universe to obtain the original information via a brute force attack.

    Unfortunately, it seems as though it's going to take me nearly as long to figure out how to set it up...

  10. Great, how about USB2, Firewire, 802.11g progress? by Anonymous Coward · · Score: 0

    I use OpenBSD all day long, and run in on my Dell Lattitude. I'll have to try the latest snapshot and see if these changes are supported on my hardware.

    I use OpenBSD for it's security, and would like to use it everywhere I can to mantain sanity. Thus I want the following supported:

    USB 2.0
    Firewire
    More wireless cards (A and G, I support 400 wireless uses, and soon it will be 1500) I know the drawback is NDAs and unpublished documents and waiting for reverse engineering the hardware, but I could really use it!
    Support for my Kodak digital camera. (Theo uses a Canon, so I suppose my next should be a Canon.)

    Oh, and just so no one complains, I regularly buy between 5 and 10 of every release, as my way of supporting the project.