Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

[Back-UPS 550] How to restart Ubuntu on power loss, after after soft shutdown via 'apcupsd'?

APC UPS for Home and Office Forum

Support forum to share knowledge about installation and configuration of APC offers including Home Office UPS, Surge Protectors, UTS, software and services.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • APC UPS, Critical Power, Cooling and Racks
  • APC UPS for Home and Office Forum
  • [Back-UPS 550] How to restart Ubuntu on power loss, after after soft shutdown via 'apcupsd'?
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
BillP
Administrator BillP Administrator
2151
Teken
Spock Teken
99
voidstar_apc
Janeway voidstar_apc
83
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to APC UPS for Home and Office Forum
Solved
Anonymous user
Not applicable

Posted: ‎2021-06-28 03:42 AM . Last Modified: ‎2024-03-27 02:11 AM

0 Likes
3
2989
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-28 03:42 AM . Last Modified: ‎2024-03-27 02:11 AM

[Back-UPS 550] How to restart Ubuntu on power loss, after after soft shutdown via 'apcupsd'?

Hello APC-

I've searched the forums, and scoured the internet, without resolution to this issue. I'm running Ubuntu 15.10 (formerly 14) on an Intel NUC (5i), connected to a Back-UPS 550 via USB cable, and can confirm the following:

  • apcupsd is installed and working
  • BIOS has been set to "Always Resume" in the Power Loss setting
  • Basic configuration file exists and appears correct
  • Restart-on-power functionality works correctly when not using the UPS -- if I pull the plug on the NUC and then reconnect, the unit powers on.

Shutdown appears to be working correctly in my tests when I pull the plug on the UPS, unfortunately the unit stays off when power is restored.

It's as if the apcupsd shutdown behavior is causing a normal shutdown in Ubuntu, instead of indicating to the hardware that an emergency shutdown took place -- when power is restored to the UPS, the NUC doesn't immediately power-on like it does when not using the ups.

What am I missing here? I've covered a lot of ground online, including: https://help.ubuntu.com/community/apcupsd

Any help is appreciated, and thanks in advance,

Labels
  • Labels:
  • Back-UPS & Surge Protectors
  • Tags:
  • 550
  • apcupsd
  • back-ups
  • reboot
  • shutdown
  • ubuntu
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
voidstar_apc
Janeway voidstar_apc
Janeway

Posted: ‎2021-06-28 03:43 AM . Last Modified: ‎2024-03-27 02:11 AM

0 Likes
0
2989
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-28 03:43 AM . Last Modified: ‎2024-03-27 02:11 AM

You make a good point -- not only do you need to make sure the UPS is providing power when power returns (even if the NUC isn't turning itself on), but also the UPS needs to turn off the power. That would be a good thing to check, say, with a lightbulb plugged into the same UPS.

The way things are supposed to work is once the monitoring software (say, apcupsd or our own PowerChute) determines it will shut down the system, it also sends a delayed shutdown (wait N seconds, turn off, turn back on when AC is good) command to the UPS. I believe the apcupsd folks call this "killpower". Once the UPS recieves that command, it will shut down even if power comes back before the computer finishes the shutdown sequence. If apcupsd is commanding the computer to shutdown without sending a shutdown signal to the UPS, you'd have a problem. I believe killpower is tucked into one of the shutdown scripts.

See Answer In Context

Reply

Link copied. Please paste this link to share this article on your social media post.

Replies 3
voidstar_apc
Janeway voidstar_apc
Janeway

Posted: ‎2021-06-28 03:42 AM . Last Modified: ‎2024-03-27 02:11 AM

0 Likes
0
2989
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-28 03:42 AM . Last Modified: ‎2024-03-27 02:11 AM

From context, "the unit" is your Intel NUC? Just asking because you could be referring to the UPS.

Check if the UPS itself powers back on after power returns. If so, you need to adjust the NUC's BIOS settings so it will turn the NUC back on. I found a list of NUC BIOS settings:

http://download.intel.com/support/motherboards/desktop/sb/biosglossary_nuc_v05.pdf

From your description, my guess would be that "After Power Failure" is set to "Last State" rather than "Power On".

Reply

Link copied. Please paste this link to share this article on your social media post.

Anonymous user
Not applicable

Posted: ‎2021-06-28 03:43 AM . Last Modified: ‎2024-03-27 02:11 AM

0 Likes
0
2989
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-28 03:43 AM . Last Modified: ‎2024-03-27 02:11 AM

Hello Voidstar -

Thanks for the reponse, its appreciated.  I've cleared up the post a bit, I was indeed referring to the NUC.

Interesting that you mention the BIOS, I tried this very thing earlier today and did some tests with the power-on-fail set to ALWAYS (it had been set to LAST)

Strangely, I get the same results -- without the UPS, the NUC indeed turns on automaticaly when power is restored after a failure.  However with the UPS connected, cutting the power results in apcupsd initiating a successful shutdown...  Unfortunately once power is restored to the UPS (which appears to be working flawlessly), the NUC just sits there.   Of course if I physically press the ON button the NUC is happy to oblige.

Could it be because the NUC never totally loses power, with the UPS sustaining a live current via battery (after shutdown)?  If so, can the BIOS discern between battery/AC on the UPS, or can it somehow be signalled to simulate a fail/restore?   This scenario would be a kind of catch-22...  Obviously I'd like to take everything offlline prior to a total power loss, but need things to spin back up even if the UPS does its job maintaining current.

If this is the case, then if any shutdown action is taken, the question is how to recover if UPS power isn't lost in full, prior to restoration of line AC...

Reply

Link copied. Please paste this link to share this article on your social media post.

voidstar_apc
Janeway voidstar_apc
Janeway

Posted: ‎2021-06-28 03:43 AM . Last Modified: ‎2024-03-27 02:11 AM

0 Likes
0
2990
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-28 03:43 AM . Last Modified: ‎2024-03-27 02:11 AM

You make a good point -- not only do you need to make sure the UPS is providing power when power returns (even if the NUC isn't turning itself on), but also the UPS needs to turn off the power. That would be a good thing to check, say, with a lightbulb plugged into the same UPS.

The way things are supposed to work is once the monitoring software (say, apcupsd or our own PowerChute) determines it will shut down the system, it also sends a delayed shutdown (wait N seconds, turn off, turn back on when AC is good) command to the UPS. I believe the apcupsd folks call this "killpower". Once the UPS recieves that command, it will shut down even if power comes back before the computer finishes the shutdown sequence. If apcupsd is commanding the computer to shutdown without sending a shutdown signal to the UPS, you'd have a problem. I believe killpower is tucked into one of the shutdown scripts.

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of