Windows 10 Desktop, UPS Battery, and F@H Client

Moderators: Site Moderators, FAHC Science Team

BeaconSlash
Posts: 5
Joined: Thu Apr 23, 2020 1:16 pm

Windows 10 Desktop, UPS Battery, and F@H Client

Post by BeaconSlash »

Hi all,

I'm happily chugging away at work units, but I had a question about Windows 10, UPSs, and F&H behavior.

I see that the client has an option to pause folding when on battery power, which is great.

I have my Windows 10 desktop hooked up to an APC UPS. Obviously folding puts a fair load on the PC and in an instance where there might be a power issue, it would drain the battery fairly quickly.

I ran a test yesterday and, despite having APC's PowerChute software installed and data cable attached between PC and UPS, Windows 10 didn't know it was on battery power, and F@H kept chugging along like nothing was unusual.

Is there any way to adjust Windows 10 on a desktop to know when it's on battery backup power with the hopes of pausing folding to preserve battery life?

Thank you very much!
Kebast
Posts: 386
Joined: Thu Aug 06, 2015 5:21 pm

Re: Windows 10 Desktop, UPS Battery, and F@H Client

Post by Kebast »

If you look in the System Info tab, is the Has Battery true or false? I'm guessing false. I have a couple systems on UPS, but this is still set to false. I'm no more help so far. Here's a bit of info for Ubuntu, but I'm not sure how old it is: https://help.ubuntu.com/community/FoldingAtHome
Image
Ryzen 5900x 12T - RTX 4070 TI
jrweiss
Posts: 707
Joined: Tue Dec 04, 2007 6:56 am
Hardware configuration: Ryzen 7 5700G, 22.40.46 VGA driver; 32GB G-Skill Trident DDR4-3200; Samsung 860EVO 1TB Boot SSD; VelociRaptor 1TB; MSI GTX 1050ti, 551.23 studio driver; BeQuiet FM 550 PSU; Lian Li PC-9F; Win11Pro-64, F@H 8.3.5.

[Suspended] Ryzen 7 3700X, MSI X570MPG, 32GB G-Skill Trident Z DDR4-3600; Corsair MP600 M.2 PCIe Gen4 Boot, Samsung 840EVO-250 SSDs; VelociRaptor 1TB, Raptor 150; MSI GTX 1050ti, 526.98 driver; Kingwin Stryker 500 PSU; Lian Li PC-K7B. Win10Pro-64, F@H 8.3.5.
Location: @Home
Contact:

Re: Windows 10 Desktop, UPS Battery, and F@H Client

Post by jrweiss »

You might just set your Powerchute software to put the computer into Standby a couple minutes after power goes out.
Ryzen 7 5700G, 22.40.46 VGA driver; MSI GTX 1050ti, 551.23 studio driver
Ryzen 7 3700X; MSI GTX 1050ti, 551.23 studio driver [Suspended]
Joe_H
Site Admin
Posts: 7876
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2
Location: W. MA

Re: Windows 10 Desktop, UPS Battery, and F@H Client

Post by Joe_H »

Kebast wrote:Here's a bit of info for Ubuntu, but I'm not sure how old it is: https://help.ubuntu.com/community/FoldingAtHome
I would guess fairly old, it has references to version 5 of the folding client software.

Some of the basics still apply, scripting can be done that monitors whatever state is set by the UPS and monitoring software.

I don't have access to a Windows computer at the moment, but I recall at one time an option in its power management control panel to track an UPS. Doing that would show "on battery" when power was out. Is that still present in Windows 10? PowerChute may or may not have this as an option. But I was not impressed with old versions of that software, hopefully it has improved.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
BeaconSlash
Posts: 5
Joined: Thu Apr 23, 2020 1:16 pm

Re: Windows 10 Desktop, UPS Battery, and F@H Client

Post by BeaconSlash »

I appreciate the replies.

I can't find anything about battery in Windows looking in various locations.

Agreed about the PowerChute settings, but I'd much rather have 20ish minutes if F@H could know that the machine is operating on the UPS.

I can't find anything about UPS in Windows advanced power settings either.

I'm just at a loss...
bruce
Posts: 20910
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: Windows 10 Desktop, UPS Battery, and F@H Client

Post by bruce »

The FAH feature is designed for laptops where the internal battery is tightly integrated with the OS. I'm not aware of any explicit way to logically connect the UPS with FAH.
If somebody else does, please speak up.
Joe_H
Site Admin
Posts: 7876
Joined: Tue Apr 21, 2009 4:41 pm
Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2
Location: W. MA

Re: Windows 10 Desktop, UPS Battery, and F@H Client

Post by Joe_H »

Depends on the OS and the software available. There are solutions for OS X and Linux that I know of, a compliant USB connected UPS provides a signal provided for in the USB specifications that can be used to indicate a system is on backup power. For instance, I plug the USB cable into my desktop Mac, and the UPS shows up in the power management control panel. The status of being on battery power was read the couple of times the power went out in the past, and folding paused.

Similar software has been done for Linux, but it has been a while since I researched it so I don't know what is current. I do recall seeing this implemented on Windows, but that was a few years back.
Image

iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
cell21633
Posts: 1
Joined: Fri Apr 24, 2020 6:44 am

Re: Windows 10 Desktop, UPS Battery, and F@H Client

Post by cell21633 »

what happens when you uninstall the powerchute software? does windows detect the UPS still (do a scan for hardware changes if you need)? Win10 has it's own built-in UPS management thru an HID interface. that should let any UPS-aware software to interface to the OS interface
BeaconSlash
Posts: 5
Joined: Thu Apr 23, 2020 1:16 pm

Re: Windows 10 Desktop, UPS Battery, and F@H Client

Post by BeaconSlash »

Can you help me find that UPS Management in Win 10?

I'm willing to play dig around registries and experiment but don't know where to start.

Ultimately, it seems logical that if a Win 10 on a laptop can know if it's being fed wall or battery power that a UPS with an active data link to the PC could provide enough info to the OS to say it's on battery, ergo telling F@H (or any relevant program) it's on battery and then trip the client flag.
PantherX
Site Moderator
Posts: 7020
Joined: Wed Dec 23, 2009 9:33 am
Hardware configuration: V7.6.21 -> Multi-purpose 24/7
Windows 10 64-bit
CPU:2/3/4/6 -> Intel i7-6700K
GPU:1 -> Nvidia GTX 1080 Ti
§
Retired:
2x Nvidia GTX 1070
Nvidia GTX 675M
Nvidia GTX 660 Ti
Nvidia GTX 650 SC
Nvidia GTX 260 896 MB SOC
Nvidia 9600GT 1 GB OC
Nvidia 9500M GS
Nvidia 8800GTS 320 MB

Intel Core i7-860
Intel Core i7-3840QM
Intel i3-3240
Intel Core 2 Duo E8200
Intel Core 2 Duo E6550
Intel Core 2 Duo T8300
Intel Pentium E5500
Intel Pentium E5400
Location: Land Of The Long White Cloud
Contact:

Re: Windows 10 Desktop, UPS Battery, and F@H Client

Post by PantherX »

Welcome to the F@H Forum BeaconSlash,

Have a look at this guide for some pointers: https://dontcodetired.com/blog/post/Ins ... Windows-10
ETA:
Now ↞ Very Soon ↔ Soon ↔ Soon-ish ↔ Not Soon ↠ End Of Time

Welcome To The F@H Support Forum Ӂ Troubleshooting Bad WUs Ӂ Troubleshooting Server Connectivity Issues
BeaconSlash
Posts: 5
Joined: Thu Apr 23, 2020 1:16 pm

Re: Windows 10 Desktop, UPS Battery, and F@H Client

Post by BeaconSlash »

Thanks for that. I can't seem to find any of the settings he's got in Win 10.

That article looks a few years old. Is something hidden away now that I'm missing? I've dug through the power control panels and can't find this stuff.
MeeLee
Posts: 1375
Joined: Tue Feb 19, 2019 10:16 pm

Re: Windows 10 Desktop, UPS Battery, and F@H Client

Post by MeeLee »

I think windows only supports battery settings on mobile chipsets With integrated manufacturer drivers.
In my case, my UPS is just to warn me to reset the breaker or shut down the client and PC properly.
Rel25917
Posts: 303
Joined: Wed Aug 15, 2012 2:31 am

Re: Windows 10 Desktop, UPS Battery, and F@H Client

Post by Rel25917 »

Could be dependent on if your ups properly reports itself as a battery to the os maybe? If it only works with the software from the ups company fah will never know about it. Just a random guess here.
Rel25917
Posts: 303
Joined: Wed Aug 15, 2012 2:31 am

Re: Windows 10 Desktop, UPS Battery, and F@H Client

Post by Rel25917 »

Ok so on my new win10 machine I just connected my ups to it, was plugged in to it but hadn't connected the cable. Win 10 immediately recognized it and showed the battery icon like on a laptop. Under device manager it shows up under Human Interface devices. Under settings-system there is a battery section that showed up. This is with an APC br1500g ups. A restart of fahclient now also shows has battery as true. I also just realized all my ups units are 4 and 5 years old, maybe i should order new batteries for them.
jrweiss
Posts: 707
Joined: Tue Dec 04, 2007 6:56 am
Hardware configuration: Ryzen 7 5700G, 22.40.46 VGA driver; 32GB G-Skill Trident DDR4-3200; Samsung 860EVO 1TB Boot SSD; VelociRaptor 1TB; MSI GTX 1050ti, 551.23 studio driver; BeQuiet FM 550 PSU; Lian Li PC-9F; Win11Pro-64, F@H 8.3.5.

[Suspended] Ryzen 7 3700X, MSI X570MPG, 32GB G-Skill Trident Z DDR4-3600; Corsair MP600 M.2 PCIe Gen4 Boot, Samsung 840EVO-250 SSDs; VelociRaptor 1TB, Raptor 150; MSI GTX 1050ti, 526.98 driver; Kingwin Stryker 500 PSU; Lian Li PC-K7B. Win10Pro-64, F@H 8.3.5.
Location: @Home
Contact:

Re: Windows 10 Desktop, UPS Battery, and F@H Client

Post by jrweiss »

Replacing UPS batteries after 5 years is a GOOD idea! At least open them up and inspect the batteries. I've done that in the past and found cracked batteries, only to then find they lasted about 15 seconds when tested.

Those APC and Cyberpower UPSes are mostly shipped with 5-7 amp-hour batteries. These days you can find size 1290 AGM batteries that are exactly the same size (5.95"L x 2.56"W x 3.70"H) with higher capacity. I've replaced all mine with the 1290s. Search a while on Amazon or your favorite store, because you can often find MUCH better prices in lots of 4 or more.
Ryzen 7 5700G, 22.40.46 VGA driver; MSI GTX 1050ti, 551.23 studio driver
Ryzen 7 3700X; MSI GTX 1050ti, 551.23 studio driver [Suspended]
Post Reply