element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Pi Desktop - control power by button
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 34 replies
  • Subscribers 669 subscribers
  • Views 3963 views
  • Users 0 members are here
  • rpi3
  • raspberry-pi3
  • raspberry_pi_space
  • pi desktop
Related

Pi Desktop - control power by button

pepeel
pepeel over 7 years ago

Hi all

I have Raspberry Pi3. I want buy Pi Desktop and connect it with RPI3 and add mSata hard disk SSD. I use it for home automation application. But i have a problem becuase Pi Desktop has own POWER BUTTON. And one problem which i have before buy is that after lost POWER all RPI3+Pi Desktop no start automaticaly when POWER come back. I must click on POWER BUTTON.

Is any chance to configure this to when power lost and when power lost RPI3 worsk , and then when power come back to RPI3 + Pi Desktop start automaticaly ?

Rpi3 without Pi desktop start automatical but power adapter is connected to RPI3 but when use with Pi Desktop powerd adapter is connected to Pi Desktop(and power is transport also to RPI3 by GPIO or USB)

 

I need have auto start rpi3+pi desktop because it is use for home automation and when it not start auto , when power lost and come back my home automation control stop working. But when i am away home i can not power On it by button.

 

Please help me.

  • Sign in to reply
  • Cancel
Parents
  • pepeel
    pepeel over 7 years ago

    And is no any chance to change this to remember last status power? And after lost power automatical start....?

    In normal PC this option is available.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 7 years ago in reply to pepeel

    I agree with gadget.iom

    It also seems you're trying to solve the wrong problem. A good solution wouldn't lose power and risk corrupting the microSD or hard drive/SSD.

    Why not look into backup power (like a uninterruptable power supply or UPS) system. They are surprisingly easy to implement, but need some small bit of electronics design experience unless you can find an off-the-shelf one (which you can, because they exist).

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • pepeel
    pepeel over 7 years ago in reply to shabaz

    I use UPS but after ups dead also raspberry power off. And then i must power on manualy( if i use pi desktop)

    But when i connect power plug not for pi desktop but to RPI3 ? Disk mSATA SSD will work ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 7 years ago in reply to pepeel

    The Pi doesn't have a power button. When you apply power, it boots. You're using an enclosure with circuitry and a power button. If the button works for you, great.

    If it doesn't, at some point you'll have to either

    (a) try it yourself, document precisely (to yourself at least, but you should publish it to help others in a blog post format) and then develop code (scripts perhaps) and some hardware to help you control the Pi in the manner that suits your needs, or

    (b) use a known working design and live with the fact that it isn't precisely what you want unless you experiment and discover how to modify it, or

    (c) - easiest option of all - Bigger battery for your UPS. Simple. Job done!

     

    There are bits of hardware like SleepyPi that could be used to help you. It requires you to experiment though. If you go this path, please document it to help everyone.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • pepeel
    pepeel over 7 years ago in reply to shabaz

    Please explaine me more (a) and (b) point...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 7 years ago in reply to pepeel

    (a) requires you to design the solution. It could be a lot of work. If I type any more, I'd be writing scripts and laying out schematics for you..

    (b) - easy, google 'home automation' or 'home automation with pi' to see other people's solutions.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • pepeel
    pepeel over 7 years ago in reply to shabaz

    But other people maybe not use Pi Desktop to Home Automation to connect Ssd disc.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 7 years ago in reply to pepeel

    Perhaps no-one else sees a need to use a desktop case for home automation, not fit a bigger battery, etc.

    If you wish to be the first to develop some unique use-case, then you'll need some scripting and electronics experience.

    I'm happy to recommend some books.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • gadget.iom
    gadget.iom over 7 years ago in reply to pepeel

    pepeel  wrote:

     

    But other people maybe not use Pi Desktop to Home Automation to connect Ssd disc.

    That may be because they evaluated the option and determined that it wasn't a feasible solution.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • gadget.iom
    gadget.iom over 7 years ago in reply to shabaz

    shabaz  wrote:

     

    If you wish to be the first to develop some unique use-case, then you'll need some scripting and electronics experience.

     

    On that subject, I noticed (while searching for possible solutions here) that the Pi Desktop board has an "MCU Program" header, My best guess is that this could be used to re-program the MCU with custom code.

    There doesn't seem to be much information about it out there though, at least none that I could find. 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 7 years ago in reply to gadget.iom

    Hi Paul,

     

    Interesting.. nice opportunity for people to experiment with it. I wonder what microcontroller it is. I guess it is doing stuff like pausing for a bit to allow the Pi to shut down gracefully, causing some people to ask why repeatedly pressing the power button does not work, if the MCU is doing its pause, and preventing a restart until the Pi has fully shut down.. (just speculating what the implementation might be doing).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • gadget.iom
    gadget.iom over 7 years ago in reply to shabaz

    I don't own a desktop-pi, so cannot be sure, but judging by photos it might be an ST STM8S005K6:

    http://uk.farnell.com/stmicroelectronics/stm8s005k6t6c/mcu-8bit-stm8-16mhz-lqfp-32/dp/2070944?ost=STM8S005K6&iscrfnonsku=false&ddkey=http%3Aen-GB%2FElement14_United_Kingdom%2Fsearch

     

    image

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • gadget.iom
    gadget.iom over 7 years ago in reply to shabaz

    I don't own a desktop-pi, so cannot be sure, but judging by photos it might be an ST STM8S005K6:

    http://uk.farnell.com/stmicroelectronics/stm8s005k6t6c/mcu-8bit-stm8-16mhz-lqfp-32/dp/2070944?ost=STM8S005K6&iscrfnonsku=false&ddkey=http%3Aen-GB%2FElement14_United_Kingdom%2Fsearch

     

    image

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube