Hibernate or Halt, when battery is down

Hello
I have Archlinux on my laptop. I have acpi daemon up and running. I have configurated suspend2, and now I can hibernate my computer. But How can I configurate it, to halt or hibernate when the battery power drop down. I have installed my arch as basic, and the everything else, and I have no KDE or GNOME, I am using fluxbox.
Thank you
Regards
Last edited by Gruntz (2007-09-14 20:01:12)

Gruntz wrote:
Hello
I have Archlinux on my laptop. I have acpi daemon up and running. I have configurated suspend2, and now I can hibernate my computer. But How can I configurate it, to halt or hibernate when the battery power drop down. I have installed my arch as basic, and the everything else, and I have no KDE or GNOME, I am using fluxbox.
Thank you
Regards
Option one: laptop mode tools from the repos (it has a setting for auto-hibernating when battery is almost out but it's also an excellent all-in-one powersaving solution for laptops).
Option two: a custom script, like one on this wiki page (http://gentoo-wiki.com/HOWTO_Software_Suspend_v2) -  see "Suspend when battery is low" section, towards the bottom of the page.
Both solutions have worked reliably for me in the past (currently I use laptop mode tools).
Last edited by fwojciec (2007-09-14 22:04:09)

Similar Messages

  • Mac falls asleep when battery gets down to roughly, half charged

    it falls asleep once it gets to this point, and then i wake it up and the charge has gone right down.
    Does it need to be calibrated? or is the problem bigger than that?

    Most likely you need a replacement. There are known issues with MBP batteries, and an extension of the battery warranty to 2 years, as described on this page:
    http://www.apple.com/support/macbook_macbookpro/batteryupdate/
    Go to System Profiler (Apple menu > About this mac > More info) and click on Power. If the Full Charge Capacity is less than 4400 mAh for a 15" or less than 5000 mAh for a 17" MBP, your battery is failing. If your Cycle Count is less than 300, your battery is failing prematurely and Apple will replace it for free. If that's the case, call Apple or visit an Apple Store for a free replacement.

  • MBP shuts off when battery goes down to ~20%

    Recently, my MBP started shutting off when the battery level got to 20%. No low battery warning, just shuts off like it got to 0%. I plug it in, turn it on, it boots and battery level is right around 20%.
    Battery Information:
    Model Information:
    Serial Number: SMP-ASMB012-3571-70d
    Manufacturer: SMP
    Device name: ASMB012
    Pack Lot Code: 0001
    PCB Lot Code: 0000
    Firmware Version: 0102
    Hardware Revision: 0300
    Cell Revision: 0200
    Charge Information:
    Charge remaining (mAh): 4420
    Fully charged: Yes
    Charging: No
    Full charge capacity (mAh): 4440
    Health Information:
    Cycle count: 191
    Battery health: Good
    Battery Installed: Yes
    Amperage (mA): 0
    Voltage (mV): 12544
    I took it to the Apple store and the "genious" told me that cycle count is too high and they can't replace the battery under warranty. He said I use it with a battery too much. Last time I checked, I bought a portable computer, it has a battery for a purpose. When I work at a client's office I don't always have it plugged in. What does actually constitute a "cycle"? I've had the laptop for 1 year and 2 months.

    Ok, so I'll tell you guys my experience with the genius bar at the Apple Store.
    It was about 2:20 pm today, I walked up to the genius bar and waited for someone to come to me -- which took all of 30 seconds. So he asked what my reason for visiting was, and I told him the story about how my battery would just cut off at 30%. He then asked for my computer, so I reached into my laptop bag, pulled it out, and placed it in front of him. It was in sleep mode so we just opened it up to get started; he went to the "About this Mac" from the Apple button in the menu bar and took a look at my serial number. After about 2 minutes he said "I'll be right back." I waited for no longer than two minutes, and he came out from the back with a box in hand. He then flipped my computer over and took my battery off, opened the box, pulled out a new battery and placed it in my computer. Then, all that I had left to do was sign for it, and I was on my way in no more than 10 minutes.
    What I find interesting is that he didn't even look at how many "cycles" my battery had; although, it probably wouldn't have made much difference as it was only at 17. At any rate, I asked him if there was a set of defective batteries out there -- including mine -- and basically he told me that yes, there was. So I guess since he looked at my computers serial number, his computer told me that mine was one of the affected ones.
    Anyways, bottom line was it was very easy to do to get it replaced, with zero hassle. For the most part, I'm pretty happy with how the Apple Store and genius bar both opperate, much better than dealing with stores like Best Buy and the like -- in my opinion anyways.
    Good luck everyone.

  • Can i create mcx for shut down properly mac when battery is less 5 %

    Hi hello
    Can i create mcx for shut down properly mac when battery is less 5 % ?
    Thanks for your reply

    You can create a mailing list by using the "Groups" feature of Address Book. Simply select "New Group" from the File menu. Name the group, and drag the contacts you need into the group.
    In Mail, open up Preferences (under the Mail menu), and click on "Composing". Then make sure that "When sending to a group, show all member addresses" is unchecked.
    The auto reply is a feature that is better done on your mail server, as you Mac can only send an auto reply when it is on, with the Mail application open. If you use dot Mac, you can set up a vacation responder through the web, and you can leave your computer switched off.
    If you really want to leave your Mac on when you are on holiday, you can set up a mail rule (Preferences, Rules).

  • Zen Xtra 60 GB: battery goes down too quickly, even when inact

    Hello, folks, this is my problem with Zen Xtra 60 GB, which I own for more than a year. A week ago I suddenly noticed that the battery is completely down the other morning, after I played music last night for a few hours on AC. So I plugged it to AC again and - differently from the other people's experiences - it started operating and charging. And I could play the music while charging, and manage the tracks with Nomad Explorer as well. After it charged completely, I unplugged it from AC, played a few more tracks and then shut it down. Next morning battery was down again. So I kept experimenting a few days in a row: charged it completely, played a few tracks, shut it down... and next morning all from the beginning again. I also tried continuous playing on battery, after it was fully charged - the playing time is also decreased.
    I guess, my battery is damaged (or some settings on my player are wrong? - which seems unlikely to me). So how can I get the battery replacement? Or can I use some other type of battery? If so, what should I know when choosing the other battery?
    Many thanks,
    jetlag

    SSR, your advice was helpful - I was able to access rescue mode. Before that, I thought of this operation as of "press C while holding Ctrl..." - I always released play/stop button after sticking the reset button, but still too quickly, and then player started in normal mode. It appears, that one should not release play/stop still for a few seconds - until the rescue menu appears. Maybe it would be good to emphasize this moment (not releasing too quickly play/stop after sticking reset) in Catherina's instructions about accessing rescue mode?
    But this did not solve my problem!
    I charged the battery fully, upgraded the firmware to the latest, and did cleanup. The player rebuilt my library. I played two tracks and turned the player off. After 2 hours, turned it on - battery was drained off again.
    Then I charged the battery again, removed the battery and put aside. After 24 hours reseated battery, turned the player on - the battery proudly showed all three bars! Then played one track and turned the player off, and after 3 hours turned on. The battery remained with one bar only. And after 8 hours, it was, of course, empty...
    So oh, what can I do? My player is more than one year, so out of warranty. And have no idea, who could repair it here in Lithuania, anyway.
    Should I buy Xtra with 30 Gb (cheapest option), and then do harddisc transplantation, to save my 35 Gb of music? (Don't tell me about backups - almost all my music is also on CDs, or on my PC - it just was too long and tedious process, to upload all that to the player, and then rename and organize tracks there...)

  • My iPad acting so weird tonight. When it shut down automatically because the battery has been drained. When I opened it, it creates some weird sounds like *swoosh* blahblah. It does make me feel nervous. Can someone help me? Does it already broken? :(

    My iPad acting so weird tonight. When it shut down automatically because the battery has been drained. When I opened it, it creates some weird sounds like *swoosh* blahblah. It does make me feel nervous. Can someone help me? Does it already broken?

    adetoye50 wrote:
    Dear Contacts Journal Support Team,
    FYI, this is a user to user support forum.  You are NOT addressing Apple here.
    Honestly, I doubt anyone is really going to take the time to read the novel you have written.

  • Computer Shuts Down When Battery Gets Low

    I have a few interconnected issues and one peripheral issue:
    1) When battery charge gets down to between 20% and 10%, by MacBook shuts off. It doesn't go to sleep. It just shuts off.
    2) Battery loses charge quickly (I get about 1.5 hours of use out of it, which is no good for a machine that's a year old, right?)
    3) I think the machine runs to hot and fan gets too loud.
    The above all occur when set for "better battery life" and when doing light web surfing, ichat, and playing music in itunes. I did the firmware update and no change to these problems.
    Then there's this...
    4) Distorted screen, specifically horizontal green lines, when trying to watch a DVD through FrontRow.
    Anyone experience this? I just am curious what to expect before I take the machine in...again (it was treated for RSD).
    MacBook   Mac OS X (10.4.6)  

    I'm running on battery now.. saving all my work diligently pretty much every minute on the minute... currently 1hr 42mins remaining of battery life - so it says.
    This compleatly unnanounced shut-down has happened twice to me now, and it's very disconcerting. This is the only problem I've ever had with my MacBook (bought it August last year) and is annoying as I KNOW it was this 'update' is responsible. I lost about 40 mins of work because of this yesterday and am pretty annoyed about it frankly. My battery seemed fine before hand - I actually was typing away happily on it in the back of a four hour car journey just last week, eeking out the charge by turing the screen right down etc. SURELY if this is known, and is obviously software/firmware created, Apple can offer a similar patch to correct it??
    I'm in the UK and a day-trip away from any Apple Store. Do I have to phone Apple and ask for a replacement battery? Is that how it works (like I said - I've never had technical difficulties with my MacBook previously). I searched the site and found this number: 0870 876 0753, I think that's right. What should I have ready on the phone?
    REALLY hope this can get sorted soon as I can't really trust the machine at the moment without it being plugged in, making taking it out anywhere (which is why I got it - and loved it) pretty redundant.

  • My macbook (aluminum 13inch) shuts down unexpectedly when battery 45%

    hello there,
    my macbook 13inch-aluminum, 2 years old, shuts down unexpectedly when battery state is at about 45% and when an external hard drive (western digital passport 160gb) is connected, or an iphone on a usb port. This occurs only when my mac is running on battery power. I suppose same thing will happen with any other usb device connected. Last time the same thing happened, i did not have any usb device connected onto my laptop.
    My battery details are
    Charge Information:
    Charge remaining (mAh): 2377
    Fully charged: No
    Charging: Yes
    Full charge capacity (mAh): 3234
    Health Information:
    Cycle count: 276
    Condition: Normal
    Battery Installed: Yes
    Amperage (mA): 376
    Voltage (mV): 12249
    I tried to reset my SMC settings as well, but this did not help. Any thoughts please?

    Your full charge capacity is about 75% of what it should be, even though your cycle count is comparatively low. If you still have AppleCare, you ought to be able to convince them on the phone or at your local Genius Bar that you have a defective battery, because your capacity should be much higher at that number of cycles.
    If you do not have AppleCare, you will probably have to pay for replacement.

  • MacBook shuts down instead of sleeping when battery low

    Like many people, I had the infamous MacBook sudden shutdown problem where my MacBook (original model) would suddenly shut down wihtout warning regardless of if it was running off battery or AC adapter. I took the MacBook into the Apple store, they did their magic, and two weeks later an updated MacBook was shipped to me, free of the problem. I also applied the firmware update when it came out.
    Now I have a new problem...it's that the MacBook doesn't seem to want to sleep when the battery gets low. Instead, it will suddenly shut down without warning. In the past, I seem to recall that it would give alerts saying that my power was low, and eventually force itself to sleep. However, now the battery can be as high as 15-20% and the MacBook will shut down. This never happens when the battery is not on the low side, so I'm wondering if this is a problem with the MacBook guaging how much power it has left. Sometimes, I notice that when I plug it in and reboot, the battery says it is at 0%, even though it clearly was not prior to the shutdown (though that didn't happen just now when it shut down - when I rebooted after connecting the AC adapter, it was at 15%).
    I tried resettting the SMC firmware, which seems to help transietly, but the problem recurs. 90% of the time I use my computer plugged in, so that's why I've not noticed it much

    The same thing happened to me last night -- the Macbook shut down because of low battery instead of sleeping, and it gave no warning messages at all as the battery power got low.
    I never had the sudden shutdown problems, though.
    I also checked the battery capacity with CoconutBattery, and it reported that the Max Battery Capacity was 4105 mAh, which is only 78% of the battery's original max capacity. Today, CoconutBattery reports that the battery's max capacity is 5035 mAh (96% of original capacity), which is more reasonable for a laptop less than a year old.
    Perhaps resetting PRAM or the Power Management Unit could solve this problem.
    Any experts out there with a solution?
    MacBook   Mac OS X (10.4.8)  

  • My MacBook pro shuts down when the battery drops down to 85% charge

    I have a 15inch MacBook Pro Model 1.1. When i run it on battery it always shuts down when the battery gets down to 85%. Does anyone know how to take care of this problem so that i can use the battery for longer?
    thanks!
    r

    Thanks, you're a life saver. Here is the report:
    AC Power:
    System Sleep Timer (Minutes): 10
    Disk Sleep Timer (Minutes): 10
    Display Sleep Timer (Minutes): 10
    Automatic Restart On Power Loss: No
    Wake On AC Change: No
    Wake On Clamshell Open: Yes
    Wake On LAN: Yes
    Display Sleep Uses Dim: Yes
    Battery Power:
    System Sleep Timer (Minutes): 10
    Disk Sleep Timer (Minutes): 180
    Display Sleep Timer (Minutes): 2
    Wake On AC Change: No
    Wake On Clamshell Open: Yes
    Display Sleep Uses Dim: Yes
    Reduce Brightness: Yes
    Battery Information:
    Battery Installed: Yes
    First low level warning: No
    Full Charge Capacity (mAh): 3004
    Remaining Capacity (mAh): 2994
    Amperage (mA): 0
    Voltage (mV): 12385
    Cycle Count: 41
    AC Charger Information:
    Connected: Yes
    Charging: No
    Hardware Configuration:
    UPS Installed: No

  • Help, I let my battery go down completely, when I try to charge it the red battery flashing sign appears and then flicks off after a few seconds. I have tried a number of chargers and a docking station nothing works. Why won't it charge?

    Help, I let my battery go down completely, when I try to charge it the red battery flashing sign appears and then flicks off after a few seconds. I have tried a number of chargers and a docking station nothing works. Why won't it charge?

    hi I have the same problem... tried many different docking ports and cords also switched from outlet to outlet..... left on on outlet for 7 hours and still nothing.. what should i do?

  • My iPhone 3Gs has started crashing when using apps once the battery gets down to around 80%.

    My iPhone 3Gs has started crashing when using apps once the battery gets down to around 80%. Sometimes it will reboot on its own, and other times you have to leave it for an hour or so and then manually turn the phone on again. Any ideas?

    Did you try to reset the phone by holding the sleep and home button until the Apple logo comes up again?
    If this does not work, try to save as much data as you can and set it up "as new device": How to back up your data and set up as a new device

  • Memory content lost when the battery runs down

    My computer sometimes saves memory content when the battery runs down, as it is supposed to, so that when it restarts it is restored to the state it was in,  but at other times it does not.
    Is there a way to find out why this is and fix it?

    Thanks for the reply.
    Doesn't Apple recommend that you do exercise the battery by using its full capacity? They even recommend running it down from full until the computer saves the contents of memory to the special file, then leaving it 5 hours before charging fully again.
    I have never heard of the 20% threshold before.
    The odd behaviour in my case is that the computer sometimes does what is should: saves the memory then shuts down and when started restores that data, but at others does not save the data first, and starts up normally when I plug in the power and switch on.

  • Playlist disappears when the battery runs down ...

    Anyone experienced this? The battery runs flat, then when you recharge, the playlist is empty, and it's impossible to use the iPod. But when you connect it to a computer ... any computer, using a USB ... bingo! Back comes the playlist! Lesson? Don't let the battery die down. But this is kind of hard to control.

    Thanks for the reply.
    Doesn't Apple recommend that you do exercise the battery by using its full capacity? They even recommend running it down from full until the computer saves the contents of memory to the special file, then leaving it 5 hours before charging fully again.
    I have never heard of the 20% threshold before.
    The odd behaviour in my case is that the computer sometimes does what is should: saves the memory then shuts down and when started restores that data, but at others does not save the data first, and starts up normally when I plug in the power and switch on.

  • Why does my iphone 3gs shut down when battery gets to 80%?  have installed new battery and nothing changes?

    Why does my iphone 3gs shut down when battery shows 80%.  a couple of months ago is shut down at 60% but has continually gotten worse.  this was before 5.0.  i took it to a repair man and he tried a used battery, a new battery, and the original battery.  nothing helped.  5.01 didnt help either.  What is my problem?

    Fully discharge the battery (till it shuts down and won't turn on) and then fully recharge it (100%).  This will recalibrate the battery meter.  You may need to do this a few times.

Maybe you are looking for

  • Report for outstanding workflows and the agents responsible

    I need a report that shows all leave request workflows , with userid who created them and approver (agent), and approver's org unit and personnel number. is there a standard SAP report that can show that? or I need to develop one? I was looking at th

  • How do I get the lattest FF with a Google Toolbar On XP & Vista in English

    I am using FF 4 and want to update to the latest. My Desktop w/XP says Version 8 & Laptop w/Vista says Version 9. I am using Google toolbar with at least 6 or 7 items that I am using all the time and I want to keep it. I switched to Version 5 sometim

  • Bug in BLOG Post.aspx

    This is a spin off from a previous issue I had but now I think this is a bug and it appears to only be in the Post.aspx view. To summarize, when the exact same web part is added to the POST.aspx page as well as the /Forms/AllItems.aspx page, it crash

  • Web Service Response

    Dear All, We have PI in our environment, but there are still few point-to-point communications. I would like to know where I can see the response coming back from the web service? Is there a log or something that I can see? No PI is being used for th

  • Can we write Spel Language Programatically

    Hi All Is it possible to write Spel Language Programatically ? For example , Can I have a code that reads as follows ? Line 1 : OAMessageTextInputBean descBean = (OAMessageTextInputBean)webBean.findChildRecursive("Description"); Line 2: descBean.setR