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 Offline
    J Offline
    jojoba2011
    wrote on last edited by
    #1

    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 OriginalGriffO R K Y 26 Replies 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
      Pete OHanlon
      wrote on last edited by
      #2

      If there's no power, then you can only switch it on if you write a program to control a robot hand to switch it on.

      "WPF has many lovers. It's a veritable porn star!" - Josh Smith

      As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

      My blog | My articles | MoXAML PowerToys | Onyx

      F 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!

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #3

        Only a few little problems here. 1) When the power is off, the processor is not running. This means that your program is not running either. 2) See 1. You will need external hardware - wake on LAN, external mains on switch, or similar. You can't do it with software, sorry.

        Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        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
          realJSOP
          wrote on last edited by
          #4

          If your computer isn't running, you can't run a program on it. You can put it to sleep and have a windows service running that will wake it up at a certain time, but that's the best you can do.

          .45 ACP - because shooting twice is just silly
          -----
          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
          -----
          "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

          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!

            K Offline
            K Offline
            Kenneth Ballard
            wrote on last edited by
            #5

            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 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!

              Y Offline
              Y Offline
              Yusuf
              wrote on last edited by
              #6

              Is your computer on the network? Does your motherboard support Wake-On-LAN? if so, you can send magic packet to wake your computer up. Once it is up, it is not hard to shut-it down. see here[^]

              Yusuf May I help 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!

                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
                                          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