Answer the question
In order to leave comments, you need to log in
How do I put my PC to sleep when receiving a USB signal?
Dear Gurus, please advise. A long time ago, I bought UPS for home PCs for all family members. But saving money, I bought a UPS without a USB port.
Accordingly, when the light is turned off, the PC will work for 20 minutes and then turn off after losing data.
Of course, the case is considered when the PC always works, even when no one is behind it. We put it into sleep mode. But hibernation will not save data when power is lost. And hibernation every time is not convenient. Especially if you need to leave for 10 minutes, you won’t set hibernation every time.
Recommend a USB adapter for hibernating a PC.
Answer the question
In order to leave comments, you need to log in
Well, if in the ARDUINO topic, then I will advise.
1) Take an arduino
2) put it in front of the UPS
3) connect it to your home network
4) as soon as the voltage disappears, the arduinka orders to live for a long time
5) you constantly ping the arduinka from the computer
6) the arduino does not ping - turn off the computer
7) the voltage appears - the arduinka again in touch.
the cheapest way is to buy an UPS with a USB port,
since the rest of the options revolve around a home-made / custom-made device that detects the presence of a lack of power in the 220 network and, accordingly, signals this via usb
ps, the simplest thing you can do yourself is based on a conventional electromagnetic relay, one resistor and any block power supply for 5-12v + the presence of an lpt port in the computer (software is written to it in ten minutes from five lines)
the relay is connected to the power supply, and the ground and one of the lpt data ports are connected through a resistor to the relay contacts (while the relay is closed, the signal lpt will go - this is one, opened - zero), the software reads the lpt file and looks as soon as there is not 1 in the desired bit, wait for the timeout and if it is still zero - call shutdown / h
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question