Slashdot Mirror


ACPI and S3 Sleep on the Linux Desktop?

niko9 asks: "After reading that development would be ramped up in the ACPI department of the 2.6 kernel series, I was hoping to finally get the one feature that Mac and Windows users have been enjoying for more than a few years: S3 Sleep, also known as Suspend-To-Ram. How important is ACPI and the sleep states on the desktop to you? Are there any ACPI S3 success stories on the Linux desktop out there? If yes, what hardware are you guys using? I would also welcome comments from Mac and Window users concerning their use of sleep on the desktop."

"For those of you not familiar with S3, this feature allows you to save the current state of your machine to RAM, power down all of your internal devices (PCI cards, AGP, CPU) and shut down down all your fans. The machine is now in a deep sleep, using but only a few watts to keep the RAM refreshed. Pressing a key or the power switch brings you back to your desktop and applications in a matter of seconds. In contrast to leaving your machine on constantly, and with today's high wattage processors and graphics cards, using S3 is not only environmentally friendly, but can save you more than a few bucks on your electric bill. Getting Linux and ACPI working is a whole other story. I have had no luck getting ACPI sleep states working on an Intel D875PBZ motherboard, even with extensive help from the gentlemen on the ACPI mailing list."

104 comments

  1. Sleep on an x86 machine by josefcub · · Score: 3, Informative

    I have never, ever, in all the years of using Windows or Linux had suspend, either S3 or suspend-to-disk work properly. None of the machines (many of them at this point) ever resumed, forcing a hard reset, fsck, and all the usual attendant issues. It also doesn't matter the vintage of the machine, or even the vintage of the OS. My experience (or lack of a successful one) spans everything from Linux kernel 2.0 and Windows 95 to kernel 2.4 and Windows 2000 Pro.

    --
    Bleakness... Desolation... Plastic Forks...
    1. Re:Sleep on an x86 machine by mdielmann · · Score: 3, Informative

      I'm supplied with an IBM laptop through work, previous was Win2KPro, current is WinXPPro. I didn't have (many) problems with the 2K box - about once a week, it would require a full reboot, and certain (non-standard) apps would fail in one way or another after S3 or suspend-to-disk. Overall, it was worth the more-regular-than-I-hoped-for reboots. My WinXP works fine for both S3 and suspend-to-disk, no noticeable issues requiring reboots, and same issues with the non-standard apps. I only reboot once or twice a month now, mostly to clean up the garbage from apps that don't quite behave (which probably isn't a suspend issue).

      Not to say your experience is an exception. These are the first two computers where I've had it work, and only in the last 3 years. There were others where I work that didn't behave sufficiently to do S3 at all.

      --
      Sure I'm paranoid, but am I paranoid enough?
    2. Re:Sleep on an x86 machine by AKnightCowboy · · Score: 2, Interesting
      I have never, ever, in all the years of using Windows or Linux had suspend, either S3 or suspend-to-disk work properly.

      I've got a generic AMD Athlon machine I built from pieces with a recent MSI motherboard running Windows XP Pro that goes in and out of S3 perfectly. Press the power button or select suspend and the system saves the state to memory in a couple of seconds and powers off all the peripherals including the fans. Press power again (don't have a USB keyboard to try, but PS/2 keyboard doesn't seem to be able to wake it, nor does a PS/2 mouse) and the machine powers up and is ready to use in a couple of seconds. For a Windows box that I use primarily for gaming and browsing the web there's no need for it to be on all the time. The only time I reboot it is applying patches or installing software that force me to. The machine runs rock solid. Windows XP Pro is awesomely stable on my box, but I'm sure people will chime in with their horror stories. YMMV. Same thing goes for my Apple iBook. I never shut it off or reboot it unless I'm applying updates. I just let it suspend to ram when I close the lid. Wakes up just fine all the time. As for Linux boxes.. I couldn't tell you I ever tried. All my Linux boxes are setup as servers and I never logon to the console unless they're crashed. Unfortunately one of my loudest systems is a Linux box in a rackmount case. I probably should replace it with a Via Epia system. ;-)

    3. Re:Sleep on an x86 machine by Methuseus · · Score: 1

      From what I've seen, S3 didn't work well til 2000, and only on certain configurations. When XP rolled around, both worked on every single machine I tried.

      I know that doesn't help you, but that's my experience.

      --
      Two things are infinite: the universe and human stupidity, though I'm not yet sure about the universe. - A Einstein
    4. Re:Sleep on an x86 machine by FattMattP · · Score: 3, Informative
      Interesting. That doesn't reflect my experience at all. I have an IBM Thinkpad T30 running WinXP. I suspend it all the time. It's better than rebooting and I rarely have a problem.

      I suspend two or three times a day: I suspend it before I go to sleep, and before I leave work to take it home. Sometimes I listen to MP3s in the morning while I'm getting ready for work and I suspend it when I leave to go to work. I reboot maybe once every month, sometimes I go longer without a reboot. This is using a real mix of software: Cygwin, xemacs, resin, Oracle 9, Mozilla, SecureCRT, Winamp, Photoshop, MS Outlook, Cisco VPN client, OpenOffice, Propellerheads Reason, ACID Pro, and even some games (Warcraft III, Diablo II, Dungeon Siege). All work without causing any problems and without needing to reboot.

      I'd say that you have faulty hardware if you haven't been able to get anything to suspend with all of those operating systems.

      --
      Prevent email address forgery. Publish SPF records for y
    5. Re:Sleep on an x86 machine by hughk · · Score: 1
      Actually, a DELL Inspiron 7500 notebook worked very well under RH8.0 for a suspend to disk (hibernate). It also worked ok under Windows 98SE and 2K but sucked under 95.

      It can b done and slowly a lot of big companies want it for their desktops. Power and especially room heat are issues now, especially outside the US where energy prices are higher. If a business PC isn't working, particularly overnight or at weekends then it should sleep.

      --
      See my journal, I write things there
    6. Re:Sleep on an x86 machine by excessive · · Score: 1
      don't have a USB keyboard to try, but PS/2 keyboard doesn't seem to be able to wake it, nor does a PS/2 mouse

      Theres usually BIOS settings for waking it up from keyboard.

    7. Re:Sleep on an x86 machine by FrostedWheat · · Score: 1

      The old Panasonic CF-41 (a 486 based laptop) has a sleep function that works perfectly with any OS. I'm not sure how it works, but it works really well. Because of it, my 486 laptop's uptime is now better than my server.

    8. Re:Sleep on an x86 machine by Anonymous Coward · · Score: 0

      i don't have any problems with my intel D850EMV2 mobo. It resumes with no problems. I sleep my system, hard drives and everything...

      Maybe your problems are related to buying OEM pc's with crappy components.

      Never listen to any marketing that refers to you as "dude" and you'll be good... It pays to buy a motherboard that costs more than $30 ; ) If you don't want to choose your own pc components, then put them together, don't complain... those of us with pc's that operate properly did some work to get them there and (sometimes) pay a lot of money to get good components.

      I can't believe that people expect a $500 pc to do it all... it's amazing that they even boot, forget about advanced features, power saving or otherwise.

      When you consider that a decent HD is $100, the mobo is at least $70(bottom of the quality barrel here) and a 2.53Ghz cpu is around $200, you are already up to $370 and you haven't even purchased memory yet. Add in the tower case, power supply, cd/dvd rom, memory, and most importantly labor, and you can see that those $500 pc's that a four letter named manufacturer sells, must be crap. There's no 2 ways about it or any possibility that it is any other way.

      Don't expect them to do much more than run windows, play a few games, and run word. Anything else is too much to ask for at that price.

      You get what you pay for. Remember that and your complaints will begin to seem a little silly.

      If you paid more than $1000 for a PC, you can double your power if you put it together yourself. Believe that. Even at $1000 most OEM pc's are still junk, through and through. You are buying 2 year old technology.

      I just plunked down $600 for a cpu, motherboard, and 1GB of memory. Know why? I am buying quality. I'll have advanced power management, 6 (yes 6) SATA channels that can do RAID 0,1 and 0+1(aka RAID 10), 4 IDE ATA channels, GBit ethernet (not on PCI either), a 800Mhz FSB, 3 firewire ports, 8 USB2.0 ports, and 1GB of fast DDR memory. I betcha power savings will work perfectly. The fans literally spin up as the cpu load becomes greater, spin down with a reduced load, and go to sleep like a baby.

      The same types and amount of components from the unnamed manufacturer, would most likely tally up to about $200, retail, and this is being kind.

      Don't buy junk, and if you do, don't complain about it when it doesn't work. Those of us with properly running PC's did a lot of research and legwork to get there. It's a complex and expensive device.

      l8,
      ac

    9. Re:Sleep on an x86 machine by Anonymous Coward · · Score: 0

      I've got a sony civpk notebook running win2kpro. both suspend to ram and disk work fine. touching a keyboard key wakes it up from S3. On another box, a dell 4100 w/ win2kpro, suspend works reliably, but it doesnt shut off the fans. I haven.t tried it on linux lately, though.

    10. Re:Sleep on an x86 machine by darkjedi521 · · Score: 1

      I have a T30 too. The last time I tried ACPI on it under Linux, it would either kernel panic or fail to find things like the power adapter or batteries - leaving ACPI worthless for power monitoring.

    11. Re:Sleep on an x86 machine by phoenix_rizzen · · Score: 1

      You've had bad hardware.

      My first desktop (IBM something or other) was a 486/100 running Windows 95. Suspend and sleep worked great.

      My first laptop (Fujitsu Lifebook 765 Dx) was a P166 running Windows 95 OSR2.1. Suspend, sleep, and hibernate (suspend to disk) worked flawlessly. It's now running DragonflyBSD; suspend and sleep still work.

      My work systems running Windows 98, 2000, and XP all suspend and sleep without problems (Seanix, Compaq, and Dell systems). My laptop running FreeBSD 5.x has working suspend and sleep as well.

  2. Dell Latitude C610 Sucess(mostly) by kdm · · Score: 5, Informative

    Using a stock 2.6.x kernel, I've gotten my Dell Latitude C610 to sleep fully and come out of it 95% of the time. The other 5% of the time I get weird video issues. I've not taken the time to debug this properly yet. I use "echo 3 > /proc/acpi/sleep" to put it to sleep, and pressing the power button brings it out.

    Hope this helps.

    1. Re:Dell Latitude C610 Sucess(mostly) by stick_figure_of_doom · · Score: 1

      HOW?!?! I know this is slashdot, and maybe not the place to ask for help, but I have a Dell Latitude Cpx and I would kill to get some help with this process. My experiences have been quite negative and I used to have this on Win2K, so I crave it. Then again I have some weird hardware issues we might not share, but please, email!

      --
      If someone drops a fort on Will, he makes a reflex save.
    2. Re:Dell Latitude C610 Sucess(mostly) by theantix · · Score: 1

      Yes, it's really too bad that he didn't tell you exactly how he got it to work. Forshame!

      --
      501 Not Implemented
    3. Re:Dell Latitude C610 Sucess(mostly) by blixel · · Score: 3, Funny

      I use "echo 3 > /proc/acpi/sleep" to put it to sleep

      Is that a requirement?

      I can just hear myself on the phone with my mom "OK ... click on your K menu, go to system, tools, now click on Konsole. Now type "su" and hit enter. Now type your root password. No, your *root* password, not your user password. Of course I don't know what *your* root password is." .... an hour later ... "OK now type echo, that's e like edward, c like cat, h like house, o like oliver. Now press the space bar, now type the number 3, now press space again, now type the greater than sign. Hold down shift and press the period key. Now press space again. Now forward slash. That's the one on the same key as the question mark. Now type proc. That's p like postal, r like romeo, o like oliver, c like cat. Now type another forward slash, again that's the one with the question mark. No mom, no space. Now type acpi. That's a like apple, c like cat, p like postal, i like illusion. Now type another forward slash. No mom, no space. Now type sleep. That's s like scott, l like linda, e like edward, e like edward - yes mom - 2 e's, p like postal. Now press enter." ..... "OK. You must have made a typo. Let's try again..."

    4. Re:Dell Latitude C610 Sucess(mostly) by !the!bad!fish! · · Score: 1
      I can just hear myself on the phone with my mom ...

      My mom doesn't even want to suspend to RAM you insensitive clod.

      --
      Kids today are tyrants. They contradict their parent, gobble their food, and tyrannize their teachers. - Socrates 400 BC
    5. Re:Dell Latitude C610 Sucess(mostly) by Anonymous Coward · · Score: 0

      Ever heard of shell scripts?

    6. Re:Dell Latitude C610 Sucess(mostly) by Gaewyn+L+Knight · · Score: 1

      Ummm
      1) Havn't you heard of menu items?
      2) Havn't you heard of shell scripts?
      3) If you are supporting your mom and she doesn't have a network connection and vncserver running on her machine you are stupid :}

      --
      Telcos have alot of dark fibre in the States. Most people assume that's optical fibre...but it's actually moral fibre.
    7. Re:Dell Latitude C610 Sucess(mostly) by blixel · · Score: 1

      Ever heard of shell scripts?

      "OK - Mom ... now I'm going to upload a shell script to your machine via secure ftp. I need you to make sure the ssh daemon is running on your machine. And I need to forward port 22 on your router to your computer. And I need a userid on your system, or I need you to give me your userid and password." ... 5 hours later ...

      "Nevermind mom, ... I'm flying out there to visit you next August, it will be faster for me to just write the shell script for you when I get there."

    8. Re:Dell Latitude C610 Sucess(mostly) by blixel · · Score: 1

      1) Havn't you heard of menu items?
      2) Havn't you heard of shell scripts?
      3) If you are supporting your mom and she doesn't have a network connection and vncserver running on her machine you are stupid :}


      Yeah - you are right. Silly me. All of that is so much easier than the hardware simply suspending to RAM when the lid is closed as part of the Laptop's default behavior.

    9. Re:Dell Latitude C610 Sucess(mostly) by dheltzel · · Score: 1
      and once you finally get her computer to sleep, she asks "Now where do I go to check my emails?"

      You're such a patient son! I just tell her to turn it off at the power strip, and that the filesystem check is the normal startup procedure.

    10. Re:Dell Latitude C610 Sucess(mostly) by RossyB · · Score: 1

      The point of ACPI is that the software has a say in what happens -- that is the failing of APM (the hardware controls it all).

      It's very trivial to configure acpid to switch to S3 when the lid shuts, and I'm just surprised more distributions don't ship like that out of the box (though I have a feeling Mandrake does).

    11. Re:Dell Latitude C610 Sucess(mostly) by silicon+not+in+the+v · · Score: 1

      Oh, man! It's YOU 3, SLASHBOTS 0. Those were awesome. Um yeah, root console, echo ...something, shell scripts, and the thought of getting your mom to set up a vnc server is great. Yet again someone reminds the technophiles what it's like in the real world.

      I don't have a laptop, so I had never tried a sleep or suspend mode until fairly recently. I've never tried it on Linux. I did it several times on my WinXP machine, and stopped because it would only come out of it half the time. I wonder why it is so difficult for them to get this kind of thing right.

      --
      We may experience some slight turbulence and then...explode. -Capt. Mal Reynolds
  3. Powerbook users experience by Zorton · · Score: 3, Informative

    As I type this I have a uptime of about 4 days. I have found on mac systems the sleep and resume features are excellent. I never turn off this machine and just wake it from sleep all the time. Works great. My sisters x86 though.....not so great, resuming take forever and sometimes the thing just crashes on resume.

    1. Re:Powerbook users experience by baryon351 · · Score: 1

      I've done the same with powerbooks since my 540c. Sleep it, everything goes off, leave it sitting for a few days - then wake. Works about 95% perfect on the old powerbooks (there's the odd time sleeping won't complete), and 100% on anything I've used with OSX. Going from working to folded up & sleeping under 10 seconds has been VERY useful over the years. I know a few mac people with TiBooks and AlBooks with natural uptimes in the 10-15 days. They just don't need to be turned off, so they don't go off.

      I don't know if the early powerbooks support exactly what's described in the Ask, but I'm guessing it's close. Staying unplugged and working for a few days with very little battery drain but everything still loaded & working sounds effectively the same.

  4. acpi=off noapic nolapic by BrookHarty · · Score: 1

    Mandrake 10 was crashing my nforce2 board all the time, read slashdot actually, that turning off acpi and apic fixed the issues. It did, my AMD box is stable now. Not sure why its on by default it not stable, not a good experience for a new distros with 2.6 kernels.

    A buddy of mine was having the same issue with Gentoo, so I think its a common issue. Wonder how the BSD kernel support for nforce is stable?

    I've stuck with the 2.4 kernel on my servers for now, if my workstation isn't stable on 2.6.x, its not touching my server. imho

    1. Re:acpi=off noapic nolapic by Anonytroll · · Score: 1

      You will be happy to know that the acpi-problem with the nforce2 chipset has been solved in Kernel 2.6.6. NVidia disclosed the info about what goes wrong and it is in the kernel now.

    2. Re:acpi=off noapic nolapic by Anonymous Coward · · Score: 0

      The solution is to pick a more Linux-friendly vendor. Intel wrote the ACPI core for Linux and also contributes chipset support.

      Stuff for VIA and nVidia is reverse-engineered and more likely to be incomplete and buggy.

    3. Re:acpi=off noapic nolapic by blixel · · Score: 1

      You will be happy to know that the acpi-problem with the nforce2 chipset has been solved in Kernel 2.6.6. NVidia disclosed the info about what goes wrong and it is in the kernel now.

      Very cool ... I was not aware of that. I've been checking the changelog for every new kernel, including the 2.6.6 kernel, and I've yet to see where this issue was addressed. But I'll take your word for it and give the 2.6.6 kernel a try on my ASUS nForce2 board later today when I get some time.

  5. My iBook by Dylbert · · Score: 1

    I've only had my iBook a few months, but in that time I've rebooted/shut it down... three times? four? Usually only when an Apple software update requires me to.

    Its just so much easier unplugging everything and closing the screen than it is waiting for the machine to boot down, and of course the same goes for booting up.

    I wouldn't do without it now.

    (Last "reboot" was two weeks ago, after an apple update)

    --
    I swear, if I see another Slashdot comment with "It will be interesting to see"...
  6. No Sleep for the Wicked by Anonymous Coward · · Score: 0

    My box never sleeps.
    HD is all ways spinning uploading and downloading for P2P.
    It's all about the pr0n biziches.

  7. Not for me, personally... by Chasing+Amy · · Score: 4, Informative

    S3 suspend works fine for me under WinXP, but I can't say that I've ever used it except to see if it really worked. I don't really know anyone who's ever used it except on a laptop that suspends when the lid is closed, and they only use it them because that's default behaviour for their hardware.

    I'm sure it's a valuable feature for those who really use it, and that there are many advantages that people will point out like saving application states etc. But for me and everyone I know, except the laptop users I mentioned whose hardware automatically suspends, we either have our PC's on 24/7 or turn them off when not in use. Mine is on 24/7 for broadband filesharing, while the average users I know just turn their computers on and off as needed.

    Personally, I found myself wanting an application-specific suspend-to-disk option for saving Mozilla tabs whenever I have to reboot every few weeks for hardware/driver/general-wonkyness reasons, since I have the nasty habit of queueing up a bunch of pages for later reading. But I've never had a reason personally to want to suspend the whole system state.

    --

    Chasing Amy
    (We all chase Amy...)
    "The more corrupt the state, the more numerous the laws"-Tacitus
    1. Re:Not for me, personally... by Methuseus · · Score: 1

      I've used hibernate in WinXP for my desktop, and exclusively used suspend/hibernate on my laptop when it was running Windows. I'm sorta pissed that now I have my laptop running Linux that suspend and hibernate don't work :(

      --
      Two things are infinite: the universe and human stupidity, though I'm not yet sure about the universe. - A Einstein
    2. Re:Not for me, personally... by shachart · · Score: 1

      Or you could just bookmark the tab set. That's what I do.

      --
      Those who can, do. Those who can't, consult.
    3. Re:Not for me, personally... by Gaewyn+L+Knight · · Score: 1

      At least in the newer versions of Mozilla you can bookmark a set of tabs... Works great... just have to remember to do it :}

      --
      Telcos have alot of dark fibre in the States. Most people assume that's optical fibre...but it's actually moral fibre.
    4. Re:Not for me, personally... by niko9 · · Score: 1

      If the average user knew that they could get to a working system with all their applications and files open just like they were the night before, in a matter of seconds, I'm sure alot more would make use of it, and almost demand it as a standard feature.

      The sleep states aren't widely advertised in the Windows world. Mac users are, from what I read, fond of the sleep mode. That fact that the LED on Mac machines "snores" (flashed briefly with and increasing intesity, followed by a decreasing intensity) really says something.

      If the PC is to become a de facto part of life, like cable TV and the telephone, it has to be ready to be used at a moments notice. People hate (myself included) waiting for their machines to boot up, even if it's 1-2 minutes.

      Personally, I think when ACPI in Linux has matured, and if the hardware manufactures even get their act straight regarding their ACPI tables, S3 sleep will be a rock solid feature that many "average" computer users will embrace.

  8. Save your Mozilla tabs (OT) by OldMiner · · Score: 2, Insightful

    You can use Tab Browser Extentions to save your tab session, either on log off automatically, or manually. Be warned, there is some slightly weird menu placement, partially due to the fact that the author is not a native English speaker. I believe Opera does this automatically, with Nordic instead of Japanese authors.

    --
    You like splinters in your crotch? -Jon Caldara
    1. Re:Save your Mozilla tabs (OT) by Anonymous Coward · · Score: 0

      Opera indeed does do it automatically, if you set it to. It also salvages this data in the event of a crash, so you don't have to worry about that. I've had varrying results depending on the page, but it usually scrolls down to the position you were in and fills forms as they were, too.

    2. Re:Save your Mozilla tabs (OT) by Anonymous Coward · · Score: 0

      What do you mean with weild menu pracement?
      The Tab Blowsel Extentions look fine to me.

  9. As with Win95, so with Linux now by OldMiner · · Score: 3, Informative

    Windows 95 was often accused of being incredibly unstable, on through Windows 98. ME got weird, but many found it more stable. And with XP and 2000 it seems to have gotten rock solid. Is this the kernel maturing? Only slightly.

    Drivers for all versions of Windows and Linux run in ring 0. They have the capability to bring the kernel down just as hard as a bug in the memory manager. This is the cost of not running a true microkernel, but it's been found often too hard to efficiently transfer large amounts of data through the levels of abstraction of a microkernel. As such, we have the situation we're in now.

    Whenever a power change occurs, a message needs to be sent to every driver asking it to do whatever it needs to do. Often enough, what it needs to do is nothing at all. But even in such a simple case, the driver can hose up, and bring the machine crashing down. Heck, your machine might even have been in a stable state until you brought it awake from hibernating. Then, on getting the awake message, your NVidia driver corrupted something it shouldn't have, and it all comes tumbling down.

    When faced with this in Windows 95 and 98, Microsoft started its signed driver initiative and manufacturers got better at writing drivers. Now, good hardware manufacturers get their drivers vetted, then signed by Microsoft. And Windows XP becomes stable.

    Linux might be in a similar position if either (1) companies got much better at writing Linux drivers or (2) more companies opened the source to their drivers.

    --
    You like splinters in your crotch? -Jon Caldara
    1. Re:As with Win95, so with Linux now by Dausha · · Score: 1

      Heck, your machine might even have been in a stable state until you brought it awake from hibernating.

      *sigh*, yes this, methinks, happened to me. I have a dual-boot WinXP Pro/Gentoo Linux (2.6.3-Current) system that went into hibernation in Windows and I brought it back up in Linux--not realizing the peril therein. I still (1 month later) can't get the WinXP mode to boot. Any run level results in the damn thing hanging--before the system starts to boot up.

      I mean, I use Grub to boot into Windows, and the system will hang at a black screen. If I early enough in the process, I get to set the run level, but all of them result in an immediate hang. Any clues?

      --
      What those who want activist courts fear is rule by the people.
    2. Re:As with Win95, so with Linux now by OldMiner · · Score: 1

      When you go to hibernate, it writes to a specific partition block on disk to save the state of RAM. I believe you can either overwrite the contents of this partition with zeroes or just blow it away entirely, and then you should be able to boot fine. If you can at least get far enough to press F8, this might help. There's also some info which might be related here, but it seems Win95 specific.

      To be honest, though, I've never troubleshot such a problem. I wouldn't even have a suggestion for what tool to use to access the hibernate partition. Best of luck.

      --
      You like splinters in your crotch? -Jon Caldara
  10. sleep vs. restart by snot+whistle · · Score: 1

    I have been putting my Mac (G4/400) to sleep instead of shutting down for at least 2 years. With Panther on my machine, I restart every 2 months or so. I don't log out very often either (like every 2 months or so).

    sleep is good. If I can't get any, at least my computer can.

    seriously, it wakes up in 4 or 5 seconds. It takes almost a minute to restart.

    Panther seems to restart a lot faster than Jaguar. Anyone else notice this or am I just hallucinating again?

    --
    Where's Robin Hood? We could kinda really use him now.
  11. Embedded systems could benefit from this greatly.. by bergeron76 · · Score: 1

    I for one, hope that more information gets posted about this. I think that embedded systems could benefit significantly from this.

    --
    Don't think that a small group of dedicated individuals can't change the world. It's the only thing that ever has.
  12. Not quite ACPI by darkjedi521 · · Score: 1
    I've had a pair of IBM Thinkpads. Whenever I've tried to enable ACPI (last on kernel 2.4.18), one of the following occured:
    • Kernel Panic at boot
    • Failure to recognize the power management hardware, such as batteries
    Failing to get ACPI working, I've had resonable success with using APM sleep and suspend-to-disk on those machines. Just my two cents. YMMV
    1. Re:Not quite ACPI by Zardus · · Score: 1

      I think kernel 2.4.18 was before the ACPI4Linux project's full source was integrated into the kernel. Prior to whenever that happened, the kernel's ACPI implementation sucked horribly. Now it sucks a bit less.

      You should try patching the kernel with their patches, although older versions are kinda hard to find it looks like.

      --
      You can mod your friends, you can mod your nose, but you can't mod your friend's nose.
    2. Re:Not quite ACPI by darkjedi521 · · Score: 1

      I'm currently running 2.4.20 due to 3rd party module constraints, but I'll give it a try again. Thanks. I had just given up on ever getting ACPI to work and stuck with APM.

  13. Use APM suspend, not ACPI suspend by swillden · · Score: 2, Informative

    ACPI is apparently really, really hard to get right, and not just for the OS developers. Hardware vendors typically screw it up, too (which causes even more pain for the programmers).

    APM, however, is pretty well-supported in Linux. On all five of the machines I've used as "mine" in the last three or so years, suspend has worked just fine -- as long as I disabled ACPI and used APM instead.

    --
    Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
    1. Re:Use APM suspend, not ACPI suspend by bersl2 · · Score: 1

      1. Computers made in the last couple of years still have APM?

      2. Apparently, it's just that hard for computer hardware manufacturers to make ACPI work. The heterogeneous nature of x86 doesn't help any, though.

    2. Re:Use APM suspend, not ACPI suspend by Profane+MuthaFucka · · Score: 4, Informative

      I've got a brand spanking new T30 with 2.4 Ghz P4 and 60 gig disk. It's my work laptop, provided by my company, about 6 months old.

      apm -s works perfectly for me. The thing will sleep all weekend just like that, and power up instantly when the top is opened.

      --
      Fascism trolls keeping me up every night. When I starts a preachin', he HITS ME WITH HIS REICH!
    3. Re:Use APM suspend, not ACPI suspend by Tux2000 · · Score: 2, Informative

      APM is only defined for single CPU machines. APM + SMP (Hyperthreading counts as a secondary CPU!) simply does not work with Linux (except for power-off via APM) last time I checked (2.4.20+n).

      I wish my old Dell dual CPU machine had ACPI so I could shut it down using the power button. But alas, APM does not "hook" the power button like ACPI does, so pressing the power button is just like unplugging the power cord - a bad idea. For now, ca::ctrlaltdel:/sbin/shutdown -t5 -h now in /etc/inittab must do the job.

      Tux2000

      --
      Denken hilft.
    4. Re:Use APM suspend, not ACPI suspend by swillden · · Score: 1

      Computers made in the last couple of years still have APM?

      UPS just delivered my brand new IBM ThinkPad T40 yesterday, and APM suspend works perfectly.

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
  14. Macs don't sleep to disk by eyeball · · Score: 3, Interesting

    Someone please correct me if I'm wrong, but I don't think you can call what Mac laptops do "sleep to disk". I have a G4 Powerbook, and when the lid shuts, it suspends, but from what I understand the power manager uses just a bare minimum of power to keep the data in ram, and nothing goes to disk. The whole process is instantaneous -- sleeping as soon as the lid is shut, and returning before I can get the lid fully open. I haven't even managed to fake it out by closing and opening quickly.

    I'm also impressed that included in this is logic to notice hardware changes when the system is asleep (ok, more like cat-napping). For example, I typically shut the lid and disconnect my network cable at work, then bring it home and wake it to my WiFi router, OSX will automatically sense and join the new network (same in reverse). The network libraries are robust enough to not cause terrible application-level errors or crashes.

    Same goes for recognizing the plugging in or removal of an external monitor during sleep, as well as all the USB devices I've tried.

    I can't say I tried disconnecting a Firewire drive or PCMCIA device during sleep, which I won't try since they probably should be properly dismounted. But I bet it would mount a device while asleep (or very shortly after waking).

    Granted if you took the battery out it would probably dump everything in ram, unless there's some kind of internal backup battery specifically for last minute graceful shutdown everything. But I guess that's the trade-off for not having to wait while half a gig of ram transfers to and from the disk.

    Personally I would say Linux is a good year from this level of sleep mode, but then I don't follow kernel dev too closely, so who knows.

    --

    _______
    2B1ASK1
    1. Re:Macs don't sleep to disk by drsmithy · · Score: 4, Insightful
      I'm also impressed that included in this is logic to notice hardware changes when the system is asleep (ok, more like cat-napping). For example, I typically shut the lid and disconnect my network cable at work, then bring it home and wake it to my WiFi router, OSX will automatically sense and join the new network (same in reverse). The network libraries are robust enough to not cause terrible application-level errors or crashes.

      Same goes for recognizing the plugging in or removal of an external monitor during sleep, as well as all the USB devices I've tried.

      FY(and others)I XP also does all this quite well IME. Win2k somewhat less so. I've no experience using Windows 9x on laptops.

      The only thing that gets a bit flaky IME is detecting external monitors when multi-monitor (ie: spanning) is being used. My D600 used to often either not detect the monitor had been unplugged (hence leaving the bit of the Desktop that had been spanned inaccessible) and/or not detect when a new monitor had been plugged in (hence requiring eith er a visit to Display Properties or another Sleep/wake cycle).

      Granted if you took the battery out it would probably dump everything in ram, unless there's some kind of internal backup battery specifically for last minute graceful shutdown everything. But I guess that's the trade-off for not having to wait while half a gig of ram transfers to and from the disk.

      PBs seem to have a backup battery to keep the RAM refreshed while the main battery is not present. How long it lasts I never checked accurately, but my old PB 667 certainly used to survive the typical trip through the X-Ray machine suspended - so at least a few minutes (it won't keep for a day, however).

    2. Re:Macs don't sleep to disk by Matthias+Wiesmann · · Score: 1
      I agree with you, as far as I know, Macs don't sleep to disk. One nice feature is that certain applications, like iChat are notified when the machine goes to sleep and automatically disconnect. I wish ssh would be able to somehow handle a connection when the machine goes to sleep.

      The problem in disconnecting devices like drives while the machine is sleeping is that the device has been shutdown (in particular if, like for an iPod it gets the power from the bus) and parked, but the filesystem has not been unmounted. The data is probably safe (the OS probably does a sync on the filesystem), but force-unmounting a filesystem can confuse applications.

      A thing which I found interesting is that certain buses stay powered on, while others not (USB on, Firewire off). For instance, the buit-in USB port stay powered on, which make sense on a desktop as it is the mechanism to wake up the machine. On the other hand, I have a PCI card with additional USB ports, and this one gets powered off, so if you connect you keyboard mouse on this board, you cannot wake up the machine (it is logical in a way, still took me five minutes to figure it out).

    3. Re:Macs don't sleep to disk by Pathwalker · · Score: 1

      I wish ssh would be able to somehow handle a connection when the machine goes to sleep.

      As long as the session is quiescent while my laptop is asleep, and I wake it back up within a few hours, I very rarely have a ssh session fail to respond.

      Just a few minutes ago, I woke my powerbook back up after it had been asleep for a half hour or so. Once it reconnected to my airport base station, all of the SSH sessions I had been running were fine. These included sessions to local machines, as well as a co-located server.

    4. Re:Macs don't sleep to disk by stoborrobots · · Score: 1

      That's fine as long as your IP address hasn't changed... think work -> home...

      Ideally you would have some (dare I call it intelligent?) way of determining when to disconnect ssh sessions on suspend. I simply cannot think of one, short of using different suspend buttons for "Sleep during lunch" and "I'm going home".

      Just my $0.02...

    5. Re:Macs don't sleep to disk by smcv · · Score: 1

      Personally I would say Linux is a good year from this level of sleep mode, but then I don't follow kernel dev too closely, so who knows.

      Linux on x86, perhaps, but that's at least partly a hardware/APM/ACPI issue; PCs have historically had big problems with any sort of sleep mode, regardless of OS. Linux on Mac hardware, on the other hand, has much the same suspend-to-RAM behaviour as MacOS.

      I've used Linux 2.4.2x and 2.6.5 on my Powerbook; both do pretty much what you said, but they're slower to sleep and wake up than MacOS (about 3 seconds to sleep and 1 second to wake up, while MacOS takes about half those times), and sometimes accidentally wake up when I plug in cables while they're asleep (USB mouse, power lead, network cable). Both of those differences are just trivial annoyances that waste a few seconds now and then, rather than anything serious.

      To put the Powerbook in sleep mode you either run /sbin/snooze (no special priviledges necessary) or just shut the lid. Both are handled by the Mac/PPC power management daemon, pmud.

    6. Re:Macs don't sleep to disk by Anonymous Coward · · Score: 0

      > I wish ssh would be able to somehow handle a connection when the machine goes to sleep.

      Just use gnu-screen, it preserves sessions (and does much more if you take some time to play with it).

    7. Re:Macs don't sleep to disk by RossyB · · Score: 1
      I'm also impressed that included in this is logic to notice hardware changes when the system is asleep (ok, more like cat-napping). For example, I typically shut the lid and disconnect my network cable at work, then bring it home and wake it to my WiFi router, OSX will automatically sense and join the new network (same in reverse). The network libraries are robust enough to not cause terrible application-level errors or crashes.

      My Debian laptop does this -- when I shut the lid it suspends to RAM and I run ifplugd which monitors the link status on the network card. I can come into the office, plug the ethernet into my laptop and open the lid, it resumes, notices the connection and brings up the interface.

      Further magic to detect where I am based on a quick ARP ping means that the laptop knows what mail server to use when sending mails so the messages I wrote on the train to work get sent correctly before I've even sat down.

      It has to be said, the Debian network configuration layer is very easy to setup for the simple case, yet powerful enough for this.

  15. Tecra 8000 Success by Time+Doctor · · Score: 2, Informative

    I've been using my Toshiba Tecra 8000 with suspend-to-ram (S3) under Gentoo for months. It was difficult at first to get it to work, but after scripting the acpi myself, it has consistently worked. Right now I have it resuming via the power key. You can find all sorts of great hints for using ACPI/Sleep modes via the gentoo forums, even if you aren't using gentoo, the acpi script examples there are nice.

    --
    Check out ioquake3.org for a great, free, First-Person Shooter engine!
  16. No luck on Shuttle SN41G2. by karmatic · · Score: 1

    I tried for a couple hours to get it working, with a custom-built Wolk kernel, RedHat 9, and a Shuttle SN41G2 XPC. While I was finally able to get ACPI working like it should, I never did manage to get suspend to ram working.

  17. Re:Embedded systems could benefit from this greatl by k4rm4_p0l7c3 · · Score: 1

    my pda has a resume..

  18. Apple Kit by Game+Genie · · Score: 1

    I only turn off my G4 and iBook for software updates, and put them to sleep when they are not in use. While there is some lag on wake (~1 sec. on iBook, 2-4 sec. on G4) this is far preferable to turning the machines off or keeping them awake. I never have any problems with it.

    -

  19. mac perspective by Polo · · Score: 1

    I have an apple powerbook g4 (tibook dvi) and can't praise the sleep function highly enough. Sleep on this thing is well sorted out.

    You can just close the lid at any time, while playing a movie, while listening to music, etc.. and it just works. A little LED begins to gently pulse on and off and the machine is in a sleep state.

    I have left it in this sleep state for really long periods of time, like a day or two. After coming out of sleep, it doesn't seem to have discharged the battery at all (always like 2 or 3 hours available)

    Once, I was watching a DVD on an airplane and finally discharged the battery all the way. 5 minutes before the battery ran out, the operating system popped up a message that it would put the system to sleep in a few minutes because the battery was low. I kept on watching the dvd and a few minutes later it did put the machine to sleep.

    Later when I got home, my luggage was delayed and I left the machine in sleep all night long until the next day when the luggage was delivered (along with the charger).

    I plugged the charger in and opened the lid and everything was there. discharged battery, all night in sleep and still everything was preserved.

    I am really really impressed with the powerbook sleep. It just works and is trustworthy.

    1. Re:mac perspective by NutscrapeSucks · · Score: 1

      6-7 years ago, I would've agree that Powerbooks were the best in the biz at power management. However, now days basically any name brand PC laptop has caught up -- none of your feats is going to bowl over any peecee users here. Plus the Centrinos have better battery life nowdays.

      Also, I have a Lombard G3 and the power management support under OS X is sorta half-assed and was terribly buggy until 10.2. Even under 10.3 it's less reliable than my PC laptops (video corruption on wakeup sometimes). Its' not the gold standard it was under MacOS.

      --
      Whenever I hear the word 'Innovation', I reach for my pistol.
  20. S3=Instant-on. Why don't more people use it? by Johnno74 · · Score: 1

    Unless I'm going away on holiday or something, my laptop and my desktop don't get turned off, I use S3.

    I've got my laptop set up so when I press the power button, it enters "standby" (Oh, this is WinXP), and its off, almost instantly.

    When I want to use it again, I press power, and its on, in about 2 seconds. I reboot maybe once a month, generally for config changes.

    I don't know how much power S3 uses, but its not much. My battery is fuct, and I only get 30mins of use now, but I've left my lappy on standby for about 24 hours without AC power, and there was still 40% charge or something.

    Every time I see someone shut down ther PC, or especially their laptop, I think why shut the machine down? Everyone is annoyed by long boot times, but hardly anyone I know uses suspend/sleep.

    Every few years/months someone starts talking about how one day computers will be like TVs or radios, no waiting around for them to boot, just press power and they are ready. Well guess what folks? We have the technology! Use it!

    1. Re:S3=Instant-on. Why don't more people use it? by Johnno74 · · Score: 1

      Oh yeah, S3 on linux. For me, S3 support is a must-have. I've considered moving my laptop to linux for a couple of years now, and the major reason I haven't is the lack of proper power managerment support. If its finally there, then I'm installing linux NOW. Can someone advise me what distro is the best for laptop support?

  21. Re:saving moz tabs by R@Bastard · · Score: 1

    There's also "session saver" which is WAY more reliable than tab extensions for doing that. Tab extensions does about a bazillion other cool things, but it can't seem to reliably save the tabs when you close/crash.

    Session saver is so smart that it can figure out when you have multiple windows with multiple tabs and your browser crashes.

    --
    Mucous membranes are the part of your brain that, like, make you think about mucous. --Beavis
  22. Inspired me.. by zcat_NZ · · Score: 5, Informative

    I just decided to see what would be invloved in getting this to work, and was surprised to find that it's remarkably simple.

    Compile a kernel with suspend-to-swap and acpi.

    Install acpid (apt-get install acpid)

    in /etc/acpi/powerbutton.sh, put; /sbin/lilo -R "current resume=/dev/hda1"
    # your label and swap partition will probably be different
    echo "4" > /proc/acpi/sleep

    And that's all. Works perfectly for me, I just tested it.

    --
    455fe10422ca29c4933f95052b792ab2
    1. Re:Inspired me.. by zcat_NZ · · Score: 1

      HAHA, spoke too soon!

      . This is suspend-to-disk, not suspend-to-ram, as originally mentioned.

      . Although it appeared to be working, the system came back up with root mounted read-only. The quick and easy solution is to have a lilo 'resume' label, append the 'resume' option and don't use read-only. Now it all seems to be working.

      . It takes almost as long to suspend/resume as my moderately optimised boot takes!

      . Be aware that many daemons will have no concept of sleeping, and will get really confused when they see the clock jump forward several hours.

      --
      455fe10422ca29c4933f95052b792ab2
  23. S3 on several linux boxes by R@Bastard · · Score: 3, Interesting

    I've tried it under 2.6 on a couple of laptops (Fujitsu w/Transmeta and a big ugly Sony). No dice. I tried it under 2.4 with acpi patch on both. No dice. I tried it on a couple of non-laptops, too. No dice.

    The word on the Fujitsu is that it is actually working properly, but that the PCI bus and/or radeon card doesn't refresh properly upon wake-up.

    This is not a version of "working properly" that works very well for me. No screen, no network. Tough to work with. I think swsusp is the stand-in du jour.

    I was hoping that the new Knoppix would help me get this going.

    Good luck to you. I'm sure that those smart kernel hackers will bring us this good stuff eventually.

    --
    Mucous membranes are the part of your brain that, like, make you think about mucous. --Beavis
  24. I don't like S3 by Rufus88 · · Score: 3, Interesting

    I run Win2K, and I never use suspend-to-RAM. The reason is that the CPU actually halts and does not start up again unless the user takes some explicit action. This makes it impossible to set up scheduled tasks (like backups that I run every day) to wake up the system from sleep mode.

    1. Re:I don't like S3 by Anonymous Coward · · Score: 0

      I have always wished that tasks scheduled by the task scheduler API would bring the machine out of sleep. It would be easy for MS to add... When the machine is going into standby, it should simply set the automatic wake-up time (all ACPI machines support setting a programmed power-on/wake time) to 5 minutes before the next event. Then I could use it like a DVR without leaving it on.

    2. Re:I don't like S3 by EddWo · · Score: 1

      That is already part of the specification, and it apparently works well on some machines.
      The OS, through ACPI can update the RTC wake up time in the BIOS before going to sleep. It works with task scheduler in windows, and there is probably an API for setting it programatically.
      But it is not supported by the bios in all machines.

      To see what capabilities your system has download this utility from microsoft and enter "dumppo cap"
      ftp://ftp.microsoft.com/Products/Oemtest/v1. 1/WOST est/Tools/Acpi/dumppo.exe

      --
      "Taligent is still pure vapor. Maybe they'll be the last who jumps up on Openstep... "
    3. Re:I don't like S3 by man_ls · · Score: 1

      I think it requires some hardware?

      I have a TV tuner card which has in hardware the ability to power the PC on, log in to Windows, record a show, and log back out.

      I don't know how it does this nor do I want to, but it involves running power leads from the card to the mobo and case to card.

      I think the card draws enough standby power to keep an RTC and a relay running...at the appointed hour-10min or so, relay flips, "switches" on, Windows reads some saved statefile, logs in, records.

  25. This should be a huge embarassment.. by Anonymous Coward · · Score: 1, Interesting

    ..for Linux, especially given that the main site is hosted at Intel.

    My Compaq laptop shipped with Win98ME and works (mostly) fine in W2K adn WXP.

    So why, more than 3 years later, is Linux still without decent ACPI support?

    1. Re:This should be a huge embarassment.. by Pozac · · Score: 1

      Because you didn't write it. Sheesh.

  26. Sleeping Computers by returnoftheyeti · · Score: 1

    I have had mixed results with sleep. I had a Compaq Presario 5000 Duron 700 win2k)as a media server that would sleep perfectly, but it would only wake up properly if you used the power button to turn it on. If you used the mouse or the keyboard the mouse to wake it, the mouse pointer dissappeared. It still worked, but but the pointer was gone. I have another P4 Presario that sleeps perfectly in XP but the exact same machine running 2k never sleeps. Its set up in Power management but it never ever goes to sleep. The new media server is on a Tyan Socket 370 board. Win2k goes to sleep just like its supposed to, but when you wake it up it goes through POST and all. But 2k returns to the exact same state. I guess thats Suspend to Disk, or whatever and a setting I could change, but I am too busy posting on /.

  27. Win XP experience by dave1g · · Score: 1

    Well, I used the suspend to disk mode of Win XP (hibernate) all the time since my computer is rather loud, and it saves power.

    I do this mainly because it is much faster than a shut down + startup. And also because I will have many programs open and I just want to pause what I'm doing and come back later.

    Unfortunately this leads me to avoid shutting down at all in order to keep browser windows open mostly. Though I saw a post about a plugin for firefox to save just the tabs to disk, instead of me having to book mark them all.

  28. sleep on the desktop by valshaq · · Score: 1
    ...concerning their use of sleep on the desktop...
    Hmmm, with all that outsourcing and so on, I wonder who is still able to take some sleep on his / her desktop?
  29. S3 is a bad idea IMHO by Gary+Destruction · · Score: 1

    If you get bad RAM, you're screwed. I have Win2k here and I just use standby. I have suspend to RAM as an option in my BIOS, but I have it disabled.

    1. Re:S3 is a bad idea IMHO by TheLink · · Score: 2, Funny

      Re: your sig
      "Suicide prevention put me on hold."

      You said you were going to hang yourself and they told you to hold the line? ;).

      Hang in there...

      --
    2. Re:S3 is a bad idea IMHO by stoborrobots · · Score: 1

      Just wondering... how is Standby different from Suspend-to-RAM?

      It occurs to me that they achieve the same thing...

      Hibernate is the commonly used term for Suspend-to-disk, and I thought that Standby was the commonly used term for Suspend-to-RAM...

    3. Re:S3 is a bad idea IMHO by btbo · · Score: 1

      If you get bad RAM you're screwed anyway! (Unless you have the badram-patch in your kernel of course.)

  30. Whats the difference? by Anonymous Coward · · Score: 0

    I never really investigated the difference between an 'apm -s' which I use _all_ the time and the counterparts of ACPI. Please advise. :)

  31. Use it all the time... by Anonymous Coward · · Score: 0

    on modern mobo's I've had zero problems with 2K and XP.

    On a Dell laptop I had a strange problem whereby an approx 1" x 1" square would remain black in the upper left corner of the screen. It was inconsistent, and required a reboot to fix.

  32. Works fine for me on a Thinkpad R50p by Karora · · Score: 1
    I've been using ACPI sleep from the day I got this laptop, both suspend to ram and suspend to disk, with 2.6.x kernels. Initially I had to apply a few patches for some USB stuff, but that seems no longer needed from 2.6.5 and 2.6.6 has worked all day today (suspended / resumed three times so far).

    Things are much better for me more recently though, now I have built X.Org R6.7 and my Radeon Mobility 9700 is all good to go too.

    If you don't want to build your own kernels, you needn't do that either. The latest Knoppix includes an option to boot a 2.6 kernel (type "knopix26" at the boot prompt), and I have seen success stories discussed on the Debian Laptop mailing list as well, using the standard Debian 2.6 kernel.

    With the Debian kernel you have to add "acpi=on" to the Grub/Lilo command line, but that isn't needed for Knoppix.

    --

    ...heellpppp! I've been captured by little green penguins!
  33. Psh ... I'd be happy ... by blixel · · Score: 1

    ... if I could just get the back light to shut off with my Sony Vaio under Linux. Suspend to disk/RAM is a pipe dream for me at this point. After much google'ing, I've come to the conclusion that I'm just screwed - my laptop just simply isn't "linux friendly". I seriously think I'm just going to buy an iBook for my next laptop. The 12" model really isn't all that terribly expensive for a Laptop (let alone for a Mac).

  34. Personal arsonal, acpi issues by 1eyedhive · · Score: 1

    in my arsonal of boxes, ranging from a paid of PII BX boards to an Nforce2. I've had many, many issues relating to acpi.
    getting a doze box to SLEEP is easy, bringing it back up has historically caused crash issues (on nforce1, a via kt333 and nforce2 running 2kpro), linux acpi has been limited to power off. though on the PII's i have the acpi stuff disabled in the kernel (read; not there), since I NEVER, turn them off unless i'm swapping UPS's or moving them. I could put the appropriate module in, but i'm just lazy).

    As for my windows machines, uptime = 24/7 where possible, one had an uptime of three weeks before i shut it down when i went away for a weekend (SOP here in florida, given the aged nature of the surge box), the other typically has an uptime of a week (updates and the occasional kernel frag), being that the box goes from home to LAN party every two weeks.

    more than ACPI, but the more stuff in a box, the harder it is to shut everything off. I've taken to dividing up what each box actually does, with my game box being stripped down (no parallel, serial or extraneous usb here) just mouse, ps2 keyboard and joystick. with a CD burner and DVD-ROM (2 drives). and a single HD. if i actually wanted to put it to sleep, it'd do it.
    the other desktop nix box by it's side has a DVD burner, CF reader, UPS interface, and the like, not so easy to power to sleep.

    now my iBook, uptime WOULD be 100% since january if not for the latch going and keeping the lid open in transit (rattling kept the screen on, battery died) and the other time the battery came loose... it ran for 50 days before dying.
    same uptime as my best linux server that only goes down when i do something with the power.

    --
    Logistical Chaos Officer http://www.slagg.org - LAN Gaming in Sarasota FL,USA
  35. Suspend to disk ROCKS man... by obtuse · · Score: 1

    I'm very fond of suspend to disk. Suspend to RAM I don't care for at all.

    I prefer to be insensitive to power loss and pay a small penalty in startup time. If I've hibernated a system, I know that if I leave the laptop unplugged too long, or if the PC gets moved and consequently unplugged, I'm fine. I move hardware more often than I'd like. LiveCDs are fun to play with too. Don't lose your state, and pay less of a penalty in boot time.

    Long before hibernate was commonly available, I thought that suspend to disk would be a perfect response to power events. Do your servers have enough battery backup? What about if the same power event kills all the stoplights and elevators in your large city? Why not retain the server's state, instead of incurring the cost of a total shutdown and restart? If my laptop battery is about to be drained, I prefer that it go to a state where I can swap batteries or not worry about rushing to a charger.

    --
    Assembly is the reverse of disassembly.
  36. Just wanted to chime in about the Inspiron 8200 by WhiteWolf666 · · Score: 1, Insightful

    This thing is a brick in linux, because of power management.

    APM works, sorta. Resume from suspend fails about 30% of the time. 20% of the time, resume works okay, but the system is really slow, and the fan stays on 'high' (really noisy) speed.

    ACPI is broken. Battery, buttons, temperature, etc. . . can work, if you use a modified DSDT.
    S1,S3 don't work. S1 doesn't resume, S3 doesn't turn the screen backlight off. S4,S4b resume about 60% of the time, but it already takes so long to come back up I might as well do a proper shutdown.

    BOOO. I WANT A LINUX LAPTOP THAT GOES INTO S3 or S1 PERFECTLY!@!!!!

    PLEASE PLEASE PLEASE!

    I know, I know, I should get a powerbook. In fact, I own a powerbook g4 12" DVI. But I lent it to my sister, 'cause her laptop died.

    Don't get me wrong, OS X is awesome. intergrated bluetooth rocks. Lots of great things about this laptop.

    But I can't install linux on it and have working power management. I like linux. I know my way around linux. I like hacking around on linux.

    But on my laptop, I NEED power management.

    --
    WhiteWolf666 an exBush supporter. All you new-school,compassionate,save the children Republicans can rot in hell
  37. Help my find this laptop. by WhiteWolf666 · · Score: 0, Redundant

    I want a linux laptop.

    Here are my requirements (given that I will be running linux):
    1. Must do ACPI suspend, S1+S3
    2. Must have a good 3D video card, Radeon 9600/Geforce FX GO 5650 or up.
    3. Decent battery life would be nice.
    4. Integrated bluetooth+Intergrated 802.11b

    Don't tell me to get a powerbook. I have a 12" G4 laptop DVI. I want linux, with suspend. Can't do that on the powerbook. Mac OSX is wonderful. Yes, yes. I want a linux laptop with suspend.

    Don't want to do suspend to disk, I want the thing to resume in 5 seconds or less.

    A unit that is in the correct price range for me, and meets my other requirements, is the Dell Inspiron 9100. But, does ACPI suspend work on it?

    I'm guessing not, since Dell has a horrible record about Linux suspend.

    So---HP and Compaq have similar models, in a similar price range (can't remember the model numbers), but remember--- i want a good, fast, opengl card. I believe that each (sorta)company has one system with either a radeon 9600 or a Geforce FX go 5650.

    Do those two models suspend correctly?

    Anyways, I'm open to suggestions. But I can't afford an Alienware, or a Voodoo Laptop.

    If I'm gonna spend 3 grand, I'll get the 17" powerbook.

    Ideally, I can spend about $1500, and get what I want. If the Inspiron 9100 suspended correctly, it would fit the bill nicely.

    --
    WhiteWolf666 an exBush supporter. All you new-school,compassionate,save the children Republicans can rot in hell
    1. Re:Help my find this laptop. by smcv · · Score: 1

      I have a 12" G4 laptop DVI. I want linux, with suspend. Can't do that on the powerbook.

      Actually, you probably can. Debian unstable works fine for me on a 15" Titanium Powerbook (the 1GHz one with DVI), and as I've commented above, suspend-to-RAM is fine (just install pmud and run it in the background; to sleep, close the lid or run /sbin/snooze).

      Unfortunately, the more recent Powerbooks have Airport Extreme, which isn't supported under Linux (because "Airport Extreme" cards are based on Broadcom chipsets, and Broadcom are extremely unhelpful), but if you're just running open-source and you can live with a slower 3D card than you mentioned (Radeon M9, which is the Mobility version of a Radeon 9000 I think), the same model Powerbook I have sounds ideal; you could try to find one second-hand.

      The only component in my Powerbook that I know won't work with open-source drivers is the modem, and I can't say I've ever really wanted to use that anyway; I'm not sure about TV-out and DVI-out, but VGA-out certainly works, and I'm told the Firewire port should be OK too.

      (The XFree86 Radeon driver is open-source and has at least some 3D acceleration, although I'm not sure whether it uses the card's full capabilities - it might not do full T&L or something. ATI has a more capable driver, but it's proprietary and they've only released it for x86.)

    2. Re:Help my find this laptop. by WhiteWolf666 · · Score: 1

      Hmmm.... This sounds very promising....

      I guess I had only been looking at the Yellow Dog pages as to whether or not suspend to ram would work.

      Would an airport regular card work in my powerbook? I got an airport extreme card (because thats what was avaliable on the refurbished site). Hmm...

      Food for thought, anyways :)

      --
      WhiteWolf666 an exBush supporter. All you new-school,compassionate,save the children Republicans can rot in hell
    3. Re:Help my find this laptop. by smcv · · Score: 1

      Sorry, as far as I know, each model of Mac is only compatible with Airport *or* Airport Extreme (the expansion cards are different shapes or something stupid like that, I think) - titanium Powerbooks like mine can only use Airport non-Extreme (Hermes/Orinoco-based 11b chipset and well supported in Linux), the newer aluminium Powerbooks can only use Airport Extreme (based on Broadcom 11g chipset, no Linux drivers).

      For recent Mac hardware in 2.4, you should apply a recent "benh" kernel patch to the appropriate version (in the current Debian unstable, kernel-patch-2.4.25-powerpc is the benh patch, and kernel-tree-2.4.25 provides the corresponding source; the precompiled PowerPC kernels are also compiled with this patch). Ben Herrenschmidt is one of the main Power Mac Linux developers.

      Apparently Linus started using a Mac sometime during 2.5/2.6 development, so this patch is merged in 2.6.

  38. Thinkpad R40 and APM suspend by Khazunga · · Score: 1
    I couldn't get ACPI working properly, but APM suspend to RAM works fine, on both Windows XP and Gentoo Linux on my IBM Thinkpad R40.

    And yes, I was surprised. It's my first computer to ever do this...

    --
    If at first you don't succeed, skydiving is not for you
  39. My Two Cents by FreeForm+Response · · Score: 1

    I have ACPI suspend-to-disk working quite nicely on my Dell Inspiron 4000, running Gentoo and 2.6.4-ck2.I've never tried suspend-to-RAM; I'd rather be certain that my batteries won't die while my computer is unattended.

    It certainly took a while to get there, especially since I originally attempted to use the Dell/RedHat suspend-to-disk-partition-building tools, which did not work at all, but now I've got it saving to swap and I'm golden.

    In fact, I dual-boot Windows XP and Linux on my laptop (for games, you know), and I set up Windows to hibernate with its page file so that I can switch between them with ease. Hibernate one, rouse the other, etc. etc. The only problem I have with that scheme is that my shell replacement in Windows tends to crap out after a few reboots and requires a full restart to repair. The hardware itself is all good, though.

  40. Sleep on PPC. by saintlupus · · Score: 1

    Sleep works perfectly on Debian/PPC running on my Pismo-era Powerbook. I can't remember the last time I had to reboot it -- I just close the lid when its not in use.

    Just thought I'd offer a non x86 perspective.

    --saint

  41. Possible alternative by menscher · · Score: 1
    Sleeping worked for me, but got the clock all screwy. So I gave up on that, and now have it set to UNDERclock the cpu down to 12% of its regular speed. Should save on battery, and it has the advantage if still being accessible (though a little slow) for remote users, if any.

    Of course, this doesn't shut everything down, so it wouldn't be appropriate to put your laptop in its bag and take it to work like this.

  42. Suspend to RAM support on Linux... when? by tetabiate · · Score: 1

    It's been more than two and half years since I
    bought my laptop computer and from the first
    day I was able to suspend to RAM while using W2K.
    But unfortunately I do most of my work on Linux,
    it is unbelievable but even if I tried hard to
    configure ACPI on Linux I haven't yet been able
    to use any power saving feature other than halt.
    Why does the development of ACPI support on Linux
    evolves so slowly?

  43. "resume" with ssh - use screen by janic · · Score: 1

    I will admit to being a screen junkie.

    I have half a dozen login sessions on my box at home running under screen for *months* at a time.

    I can go to work, ssh to my home box, type "screen -rd" and get back to where I left off at home. The apps continue to run just fine and as they are attached to a pty, xterm resizes (or a re-attach from a different sized xterm) are not a problem. (except for btlaunchmanycurses.py Grrrrr...)

    What gets really handy is when you use screen-aware apps like elinks, and you get to use "open link in new window" in a text mode browser.

    Yay!

    My one word of warning (more than one word actually... more like one point) is that ssh-agent forwarding within screen gets a little weird. Google for "ssh agent screen" to find a method of updating your environment that you like.

    Cheers.
    John

    1. Re:"resume" with ssh - use screen by Pathwalker · · Score: 1

      I do use screen - that's why I don't care when one of my ssh sessions does time out.