Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How can I turn on a computer when it is truned off ?

How can I turn on a computer when it is truned off ?

Scheduled Pinned Locked Moved C#
questionhelp
37 Posts 34 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J jojoba2011

    guys i need to create a small application for turning on my computer at a given time. lets say now it is 8.00Pm and i need to turn on my computer when the system time is equal to 10.00 Pm .. so can any body help me to develop this program!

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #7

    ..or a relay, a free rs232-port on a spare computer (the observer), some solder and some patience :)

    I are Troll :suss:

    1 Reply Last reply
    0
    • J jojoba2011

      guys i need to create a small application for turning on my computer at a given time. lets say now it is 8.00Pm and i need to turn on my computer when the system time is equal to 10.00 Pm .. so can any body help me to develop this program!

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #8

      You win. It is past 10 o'clock and nobody offered a real solution. :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

      Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

      E 1 Reply Last reply
      0
      • J jojoba2011

        guys i need to create a small application for turning on my computer at a given time. lets say now it is 8.00Pm and i need to turn on my computer when the system time is equal to 10.00 Pm .. so can any body help me to develop this program!

        R Offline
        R Offline
        Ravi Bhavnani
        wrote on last edited by
        #9

        Enable Wake-On-LAN in your system's hardware config - then do this[^]. /ravi

        My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

        1 Reply Last reply
        0
        • J jojoba2011

          guys i need to create a small application for turning on my computer at a given time. lets say now it is 8.00Pm and i need to turn on my computer when the system time is equal to 10.00 Pm .. so can any body help me to develop this program!

          A Offline
          A Offline
          Alan N
          wrote on last edited by
          #10

          Hi, If you are happy to leave the computer in standby mode then a WaitableTimer can be used to wake it up. There's some example code here on CP A WaitableTimer wrapper class[^]. The simplest way to wake up a sleeping computer, without any programming, is to set a scheduled task with the option "Wake the computer to run this task". Alan.

          1 Reply Last reply
          0
          • J jojoba2011

            guys i need to create a small application for turning on my computer at a given time. lets say now it is 8.00Pm and i need to turn on my computer when the system time is equal to 10.00 Pm .. so can any body help me to develop this program!

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #11

            Check your machine's BIOS settings for a timed automatic power on option.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak

            1 Reply Last reply
            0
            • J jojoba2011

              guys i need to create a small application for turning on my computer at a given time. lets say now it is 8.00Pm and i need to turn on my computer when the system time is equal to 10.00 Pm .. so can any body help me to develop this program!

              P Offline
              P Offline
              Peter_in_2780
              wrote on last edited by
              #12

              My Vista laptop surprised me by turning itself on at various "exact" times, until I figured out what was happening. If you go into 'Scheduled Tasks', you can set up a task with various options about power state and action. I've got no idea how to do this programmatically, but you could configure a scheduled task to run your job. The reason I mention Vista is that I don't remember being able to do this in XP. But I might be completely wrong... ;P [edit]somehow missed Alan N's post before writing this. :thumbsup: What he said...[/edit]

              Software rusts. Simon Stephenson, ca 1994.

              modified on Monday, August 23, 2010 8:02 PM

              1 Reply Last reply
              0
              • J jojoba2011

                guys i need to create a small application for turning on my computer at a given time. lets say now it is 8.00Pm and i need to turn on my computer when the system time is equal to 10.00 Pm .. so can any body help me to develop this program!

                P Offline
                P Offline
                PIEBALDconsult
                wrote on last edited by
                #13

                Something like this[^]? :-D Again, look at the BIOS setting of the computer to be sure it will boot when power is detected.

                1 Reply Last reply
                0
                • J jojoba2011

                  guys i need to create a small application for turning on my computer at a given time. lets say now it is 8.00Pm and i need to turn on my computer when the system time is equal to 10.00 Pm .. so can any body help me to develop this program!

                  E Offline
                  E Offline
                  EinA
                  wrote on last edited by
                  #14

                  Do you have another networked computer (anywhere) that can run the application? If so, run the wake-up application on the other computer and then buy an APC remote power switch with Internet connectivity. We use one on our server at a server farm so we can turn it on, turn it off or reboot it remotely if it hangs. Dave

                  M 1 Reply Last reply
                  0
                  • J jojoba2011

                    guys i need to create a small application for turning on my computer at a given time. lets say now it is 8.00Pm and i need to turn on my computer when the system time is equal to 10.00 Pm .. so can any body help me to develop this program!

                    L Offline
                    L Offline
                    LockH
                    wrote on last edited by
                    #15

                    It is easy, at least with my Dell Optiplex. Power on, press F2 to enter Setup Go to Power Management Select Auto Startup Select EveryDay, or Monday to Friday (default is Off) Set time you want the system to boot up. Save and exit Bios. OK, you asked how to write a program to do it, so this is cheating. But easier.

                    I came here because I was confused. Now I'm confused on a higher plane.

                    1 Reply Last reply
                    0
                    • E EinA

                      Do you have another networked computer (anywhere) that can run the application? If so, run the wake-up application on the other computer and then buy an APC remote power switch with Internet connectivity. We use one on our server at a server farm so we can turn it on, turn it off or reboot it remotely if it hangs. Dave

                      M Offline
                      M Offline
                      Mike Winiberg
                      wrote on last edited by
                      #16

                      There must be some kind of either windows or BIOS API to control power on/off, at least for ATX motherboard based machines - here is a product that uses it (and I have a AV program that will wake the machine up if it happens to be off when it want's to update - nasty if it's a laptop in it's case though!) http://www.lifsoft.com/[^] Mike

                      1 Reply Last reply
                      0
                      • J jojoba2011

                        guys i need to create a small application for turning on my computer at a given time. lets say now it is 8.00Pm and i need to turn on my computer when the system time is equal to 10.00 Pm .. so can any body help me to develop this program!

                        S Offline
                        S Offline
                        Savvas Kleanthous
                        wrote on last edited by
                        #17

                        Just an idea: Why not use a the new TI Launchpad board (or any microcontroller board for that matter) and wire it parallel to the on/off switch of your motherboard. Then programm the Launchpad to close and open a port at a specific time. The wiring is extremelly simple to do even with little knowledge, but a lot of care. We did something similar (shutdown and turn on of a PC through IR receiver and a microcontroller) for a project we had some 10 years back and it was easy even then, so this should be VERY easy now. PS: I just mention the launchpad because it is very cheap, and also it has a thermometer built in. I can understand that most of us have preferences.

                        1 Reply Last reply
                        0
                        • J jojoba2011

                          guys i need to create a small application for turning on my computer at a given time. lets say now it is 8.00Pm and i need to turn on my computer when the system time is equal to 10.00 Pm .. so can any body help me to develop this program!

                          L Offline
                          L Offline
                          lognormal
                          wrote on last edited by
                          #18

                          OK - but what if your computer is not hibernating or in a suspended state: really "off"? You can buy power supplies that respond to "power on" signals, there are even power supplies that respond to SMS messages. (I had a remote installation near to the North Pole where the power continually failed and the machine had to be rebooted remotely - worked fine, perhaps because it was Linux with no GUI ;)).

                          Why make life more difficult than it is?

                          1 Reply Last reply
                          0
                          • J jojoba2011

                            guys i need to create a small application for turning on my computer at a given time. lets say now it is 8.00Pm and i need to turn on my computer when the system time is equal to 10.00 Pm .. so can any body help me to develop this program!

                            H Offline
                            H Offline
                            hlegend
                            wrote on last edited by
                            #19

                            There's usually a setting in the bios to turn on a computer at a specific time.

                            1 Reply Last reply
                            0
                            • J jojoba2011

                              guys i need to create a small application for turning on my computer at a given time. lets say now it is 8.00Pm and i need to turn on my computer when the system time is equal to 10.00 Pm .. so can any body help me to develop this program!

                              S Offline
                              S Offline
                              SomeGuyThatIsMe
                              wrote on last edited by
                              #20

                              Go buy an iBoot its a remotly controllable surge protector/ power supply. Most will run a website but others have a web service like interface you can code to, to do things. Or it may have a scheduling feature, some also can send out heartbeats and do things when they miss a certain number of packets. We used it to automatically reboot the web server when its NIC would crash. yes we replaced the server, only took a day or 3 to get one from dell.

                              Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

                              1 Reply Last reply
                              0
                              • J jojoba2011

                                guys i need to create a small application for turning on my computer at a given time. lets say now it is 8.00Pm and i need to turn on my computer when the system time is equal to 10.00 Pm .. so can any body help me to develop this program!

                                L Offline
                                L Offline
                                LloydA111
                                wrote on last edited by
                                #21

                                Most BIOS's have a feature for turning on the machine at a certain time/date.


                                "People demand freedom of speech to make up for the freedom of thought which they avoid."

                                E 1 Reply Last reply
                                0
                                • J jojoba2011

                                  guys i need to create a small application for turning on my computer at a given time. lets say now it is 8.00Pm and i need to turn on my computer when the system time is equal to 10.00 Pm .. so can any body help me to develop this program!

                                  D Offline
                                  D Offline
                                  djdanlib 0
                                  wrote on last edited by
                                  #22

                                  Nobody's mentioned this hardware solution yet. A great many BIOSes have an option to power the system back on when power is restored. So, if you have a programmable outlet timer (easily purchased at a hardware store) and you know with absolute certainty that the system will always, always, always be off during a certain window before the desired power-on time, that could be an option. Just set the timer to turn off power a few minutes earlier, then turn it on again at your chosen time. Bingo, you only spent about as much on this as you would on a sandwich or some Starbucks, and you got to visit the hardware store. I'd call that a two-for-one bonus, wouldn't you?

                                  1 Reply Last reply
                                  0
                                  • J jojoba2011

                                    guys i need to create a small application for turning on my computer at a given time. lets say now it is 8.00Pm and i need to turn on my computer when the system time is equal to 10.00 Pm .. so can any body help me to develop this program!

                                    A Offline
                                    A Offline
                                    Alan Burkhart
                                    wrote on last edited by
                                    #23

                                    Assuming you're away from your machine, probably the best you're going to do is have it in hibernation with an alarm to wake it up at the appointed time. If you're accessing the machine remotely, it shouldn't be hard to send it a command to return to hibernation (I'm assuming this - never tried it) when you're done. Or, you can train your cat to push the power button. :)

                                    1 Reply Last reply
                                    0
                                    • L Luc Pattyn

                                      You win. It is past 10 o'clock and nobody offered a real solution. :)

                                      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

                                      Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

                                      E Offline
                                      E Offline
                                      Earl Truss
                                      wrote on last edited by
                                      #24

                                      Buy a mechanical timer and set the BIOS to start up the computer after a power outage. The timer turns on the power to the computer and the BIOS causes it to boot up.

                                      1 Reply Last reply
                                      0
                                      • K Kenneth Ballard

                                        Virtually all PCs today in their BIOS should have an option, typically in the power management settings, for setting a "Power On Alarm", or something of that sort. If there is a way to set this programmatically within an application, I don't know of it.

                                        W Offline
                                        W Offline
                                        Warren Diprose
                                        wrote on last edited by
                                        #25

                                        As Kenneth stated, if you get into your system BIOS at bootup, normally by pressing or holding down a function key during POST, you should find Power Management or Auto Power On settings. Once enabled, you should also be able to select a time for everyday, or weekdays only. Obviously, these features depend on your BIOS version. This works on my Dell Optiplex 960 as well as my optiplex GX270 (2003 model).

                                        1 Reply Last reply
                                        0
                                        • L LloydA111

                                          Most BIOS's have a feature for turning on the machine at a certain time/date.


                                          "People demand freedom of speech to make up for the freedom of thought which they avoid."

                                          E Offline
                                          E Offline
                                          Earl Truss
                                          wrote on last edited by
                                          #26

                                          Really? I've never seen that in any of my computers.

                                          B 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups