fruitoftheloom
Posts: 21067
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Turn on and off your PC with a raspberrypi

Fri Apr 14, 2017 7:22 pm

PiGraham wrote:
fruitoftheloom wrote:
But that's not zero power. For remote control on you can't disconnect from the mains. Something has to be on standby power of some sort.
That is exactly why the OP should state exactly what he means, the product I linked to does remove power from the PC....

By using Raspberry Pi he would still have device consuming electricity.....
Retired disgracefully.....
This at present is my daily "computer" https://www.asus.com/us/Chrome-Devices/Chromebit-CS10/

gwesseling
Posts: 5
Joined: Wed Apr 12, 2017 5:03 pm

Re: Turn on and off your PC with a raspberrypi

Fri Apr 14, 2017 7:28 pm

fruitoftheloom wrote:
PiGraham wrote:
fruitoftheloom wrote:
The only way to fully shutdown a Computer is to disconnect from the Mains :shock:
Bu if you do that how do you turn it on again? Not by remote control.

http://www.maplin.co.uk/p/remote-contro ... ngle-n78ka


The OP is not clear how "off" he wants his PC !!
Maybe I wasn't really clear in the "off" part, sorry about that. I meant off in like when you shutdown your PC through windows (windows shutdown). The state is it after the shutdown, that's what I meant by "off".

Thanks in advance,

~ Gwesseling
Last edited by gwesseling on Fri Apr 14, 2017 10:28 pm, edited 1 time in total.

fruitoftheloom
Posts: 21067
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Turn on and off your PC with a raspberrypi

Fri Apr 14, 2017 7:35 pm

gwesseling wrote:
fruitoftheloom wrote:

The OP is not clear how "off" he wants his PC !!
Maybe I wasn't really clear in the "off" part, sorry about that. I meant off in like when you shutdown you're PC through windows (windows shutdown). The state is it after the shutdown, that's what I meant by "off".

Thanks in advance,

~ Gwesseling
Well that clears that up at last !

The easiest if your PC has a compatible NiC is wake-on-lan magic packet to switch on and this guide will give you an overview of shutdown scenarios

https://www.raymond.cc/blog/how-to-remo ... an-or-wan/
Retired disgracefully.....
This at present is my daily "computer" https://www.asus.com/us/Chrome-Devices/Chromebit-CS10/

gwesseling
Posts: 5
Joined: Wed Apr 12, 2017 5:03 pm

Re: Turn on and off your PC with a raspberrypi

Fri Apr 14, 2017 10:34 pm

gwesseling wrote:So.. correct me if I'm wrong.

But I can get a 433mhz RF Transmitter and Receiver like this:
https://opencircuit.nl/Product/10020/43 ... -ontvanger

and a PI 3,

Hook the transmitter up to the PI and hook the reciever up to my motherboard. Send a signal from the transmitter to the reciever through the PI. and make the reciever send an electric signal / electric pulse to my motherboard starting up my PC. And for shutting down send a longer electric signal / electric pulse to the motherboard forcing it to shut down.

Thanks in advance!

~ Gwesseling
But I could do something like this? I would like to use a PI (because this isn't the only project I want to do with the PI) without building it into my PC.

Thanks in advance,

~ Gwesseling

User avatar
bensimmo
Posts: 4187
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Turn on and off your PC with a raspberrypi

Sat Apr 15, 2017 8:09 am

I don't see why not, like has been mentioned, all you need is the power switch connectors, send the pulse to that or make it act as a switch. That's all the board needs a momentary (may be 3 seconds*) switch to start the shutdown and startup**
The only time you need a longer pulse is for the 10s to 20s forced shutoff.
Draw the power off the PSU powerlite in the PC (as you would for the PiZero if that was in there)

Buy it and have a go,

but there is no reason you cannot place a PiZeroW in the computer in future for even more in PC control and do it directly over WiFi from a Phone/Tablet etx.

(Of course we're working blind with what PC you have,
*Some have a safety margin set or settable
**It could be sleep, hibernate or shutdown it depends how you have configured the PC)

User avatar
thagrol
Posts: 1981
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: Turn on and off your PC with a raspberrypi

Sun Apr 16, 2017 7:48 pm

I know I'm a little late to this thread (been away). This is something I've already done. Web and WoL control of a PC's power and reset via the motherboard headers in parallel with the front panel buttons.

A Pi Zero with usb wifi, powered from 5v standby, 3.3v from the PSU for state monitoring (only present when PC is on) along with connections to ground and the motherboard headers.

Other model Pi should work as long as they don't draw more current than the PSU can supply on the 5v stand by line.

Details (and software) here: https://github.com/thagrol/fakewake
Attempts to contact me outside of thes forums will be ignored unless signed in triplicate, sent in, sent back, queried, lost, found, subjected to public enquiry, lost again, and finally buried in soft peat for three months and recycled as firelighters

Return to “Other projects”