Is there any way by which I can power off RPI2 when system is on UPS after sometime using software only. My UPS communicates with the system using USB. But it has windows support. I want to have similar mechanism with RPI2.

I'm using this UPS model.

Thank You.

  • May be more info on UPS model how it gets connected to windows could be useful. Commented Nov 4, 2015 at 11:12
  • 1
    I believe that you can download its source from this site : apcupsd.com and follow this instructions to compile and run it on Rpi. : code.google.com/p/quickanddirty/wiki/APCinLinux Hope it helps. Commented Nov 4, 2015 at 11:28
  • Thanks a lot Dastaan. I will follow the steps. I will update this thread with my findings.
    – Amol
    Commented Nov 4, 2015 at 11:52
  • @dastaan - apcupsd is the answer I would have provided - can you turn your comment into an answer with a little more explanation?
    – Phil B.
    Commented Nov 4, 2015 at 12:17
  • @PhilB. Added. :) Commented Nov 4, 2015 at 12:29

1 Answer 1


I think for this particular UPS, vendor also provides source on their site.

You can download source from this link.

Untar it and copy it on Raspberry pi.

And as per this guide,

  1. Install dependencies by sudo apt-get install libgd2-xpm-dev libusb-dev

  2. cd to source directory.

  3. ./configure --enable-usb --enable-cgi

  4. Once configuration done, make && sudo make install to compile and install binaries.

  5. To test, run : apcaccess

I didn't test it but it should ideally work.

Hope it helps. :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.