topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday December 13, 2024, 10:02 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Laptop Battery.  (Read 7426 times)

jrmelb

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 7
    • View Profile
    • Donate to Member
Laptop Battery.
« on: January 04, 2014, 12:29 AM »
Is there any software that will alert you to the power cord being disconnected from a laptop and/or to the battery reaching low levels.

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,644
    • View Profile
    • Donate to Member
Re: Laptop Battery.
« Reply #1 on: January 04, 2014, 01:39 AM »
Windows will alert you when your battery gets low, first will be a warning, then there'll be a critical alert, followed by standby, hibernation, or shutdown (depends on how you have it configured).

Control Panel->Power Options

Untitled.pngLaptop Battery.

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,964
    • View Profile
    • Donate to Member
Re: Laptop Battery.
« Reply #2 on: January 04, 2014, 04:04 AM »
Not a direct solution, but works for me - I have different screen-brightness settings for battery and electricity.

In Win8 I get a full screen banner when the battery is down to 10%. But have a good look around the power options as 4wd suggests.
Tom

Innuendo

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 2,266
    • View Profile
    • Donate to Member
Re: Laptop Battery.
« Reply #3 on: January 04, 2014, 12:09 PM »
Isn't there usually an icon down in the system tray that shows whether you are on AC or battery?

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,964
    • View Profile
    • Donate to Member
Re: Laptop Battery.
« Reply #4 on: January 04, 2014, 02:33 PM »
Isn't there usually an icon down in the system tray that shows whether you are on AC or battery?

It doesnt notify of the change though (power => battery).


FWIW just discovered it is a convenient way of getting to the power options though, via right-click.
Tom

Vurbal

  • Supporting Member
  • Joined in 2012
  • **
  • Posts: 653
  • Mostly harmless
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Laptop Battery.
« Reply #5 on: January 04, 2014, 03:15 PM »
Isn't there usually an icon down in the system tray that shows whether you are on AC or battery?

It doesnt notify of the change though (power => battery).

The icon always changed on my old WinXP laptops.
I learned to say the pledge of allegiance
Before they beat me bloody down at the station
They haven't got a word out of me since
I got a billion years probation
- The MC5

Follow the path of the unsafe, independent thinker. Expose your ideas to the danger of controversy. Speak your mind and fear less the label of ''crackpot'' than the stigma of conformity.
- Thomas J. Watson, Sr

It's not rocket surgery.
- Me


I recommend reading through my Bio before responding to any of my posts. It could save both of us a lot of time and frustration.

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,964
    • View Profile
    • Donate to Member
Re: Laptop Battery.
« Reply #6 on: January 04, 2014, 03:40 PM »
^ yeah, sorry, I wasnt clear there: I meant no notification in a more in your face manner, e.g. popup. Taskbar on autohide here doesnt help either, but I dont know how the OP (who's looking for this) works, so that may be the solution.
Tom

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,644
    • View Profile
    • Donate to Member
Re: Laptop Battery.
« Reply #7 on: January 04, 2014, 06:30 PM »
Knowing what OS the OP is talking about would go a long way towards suggesting anything.

jrmelb

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 7
    • View Profile
    • Donate to Member
Re: Laptop Battery.
« Reply #8 on: January 04, 2014, 10:49 PM »
Yes - the OS is Windows 7.

 :)

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,644
    • View Profile
    • Donate to Member
Re: Laptop Battery.
« Reply #9 on: January 04, 2014, 11:49 PM »
YTOTPC* - Pretty boring, any time there's a power state change it'll pop up a message box.  This could be connecting or disconnecting AC power.

Code: AutoIt [Select]
  1. #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
  2. #AutoIt3Wrapper_UseUpx=n
  3. #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
  4.  
  5. ;--- Tray Menu ---
  6. Opt('TrayMenuMode', 3)
  7. $exititem = TrayCreateItem('Exit')
  8.  
  9.  
  10. ; WMI object creation for CIMV2 namespace
  11. $gobjWMI_CIMV2 = ObjGet("winmgmts:\\.\root\cimv2")
  12.  
  13. ; WMI event notification sink for power management
  14. $gobjWMI_PowerEVT_Sink = ObjCreate("WbemScripting.SWbemSink")
  15. ObjEvent($gobjWMI_PowerEVT_Sink, "PowerEVT_SINK_")
  16.  
  17.  
  18. ; Build notifier object for power management events
  19. $gobjWMI_CIMV2.ExecNotificationQueryAsync($gobjWMI_PowerEVT_Sink, "Select EventType from Win32_PowerManagementEvent")
  20.  
  21.  
  22. ;; Sleep forevAr - make sure to build a hotkey somewhere to allow you to terminate this process...
  23.         $nMsg = TrayGetMsg()
  24.         Switch $nMsg
  25.                 Case $exititem
  26.                         Exit
  27.                 Case Else
  28.         EndSwitch
  29.         Sleep(100)
  30.  
  31. ; Power Management event sink function
  32. Func PowerEVT_SINK_OnObjectReady($wmiObject, $wmiAsyncContext)
  33.         $intEvent = $wmiObject.EventType
  34.  
  35.         Switch $intEvent
  36.                 Case 4
  37.                         ; Machine is entering suspend")
  38.                 Case 7
  39.                         ; OS reports resume from suspend is complete")
  40.                 Case 10
  41.                         ; AC <-> DC switch
  42.                         MsgBox(48, "YTOTPC", "Excuse me but you have suffered a AC/DC event." & @CRLF & @CRLF & "This could be because you tripped over the power cord" & @CRLF & "or inadvertently plugged it in.")
  43.                 Case 11
  44.                         ; OEM Power event...
  45.                 Case 18
  46.                         ; Hardware triggered resume from suspend...
  47.                 Case Else
  48.                         ; You can case these out from the constant defines mentioned earlier in this thread
  49.         EndSwitch
  50. EndFunc   ;==>PowerEVT_SINK_OnObjectReady





* You Tripped Over The Power Cord