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
    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
              • 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
                edavis_74
                wrote on last edited by
                #27

                Does your machine/NIC support Wake on LAN? And do you have another machine on the same LAN that is constantly up and running?

                1 Reply Last reply
                0
                • E Earl Truss

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

                  B Offline
                  B Offline
                  bjarneds
                  wrote on last edited by
                  #28

                  I think it is called something like "Wake on RTC" (RTC = Real Time Clock, i.e. the clock on the motherboard, see http://en.wikipedia.org/wiki/Real-time_clock[^]). An "alarm time" can be programmed into this (see http://en.wikipedia.org/wiki/RTC_Alarm[^]). Media Center software usually have this feature so it can wake up and perform the next scheduled recording.

                  E 1 Reply Last reply
                  0
                  • B bjarneds

                    I think it is called something like "Wake on RTC" (RTC = Real Time Clock, i.e. the clock on the motherboard, see http://en.wikipedia.org/wiki/Real-time_clock[^]). An "alarm time" can be programmed into this (see http://en.wikipedia.org/wiki/RTC_Alarm[^]). Media Center software usually have this feature so it can wake up and perform the next scheduled recording.

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

                    OK, maybe I have then and just never realized what it was. Thanks. This could be useful.

                    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
                      hahanottelling
                      wrote on last edited by
                      #30

                      I know it is possible, as I had a virus do it to a Gateway 509GE I used to have. Every night, even though it was off, shutdown, not in sleep mode, it would turn itself on at a certain time. I fixed it by resetting the bios and completely reformatting the disk. But I don't know how the turning itself on was done.

                      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!

                        M Offline
                        M Offline
                        Mark AJA
                        wrote on last edited by
                        #31

                        Drill a small hole in the bottom of a bucket. Fill the bucket full of sand. Let the sand fall out of the bucket onto some scales. When the scales swing down, this will turn on a switch and turn on a computer. The computer will turn on a toy car that will drive across the room and hit a second switch. This will turn on the second computer. The second computer will then move a robotic arm. This arm will turn on a switch. This will turn on the third computer. The third computer will turn on a magnet. This will lift a gate and let a ball roll down a track. The ball will hit a switch at the bottom to the track and turn on the forth computer. The forth computer will then blow the main fuse as you are using too much electricity! :confused:

                        S P 2 Replies Last reply
                        0
                        • M Mark AJA

                          Drill a small hole in the bottom of a bucket. Fill the bucket full of sand. Let the sand fall out of the bucket onto some scales. When the scales swing down, this will turn on a switch and turn on a computer. The computer will turn on a toy car that will drive across the room and hit a second switch. This will turn on the second computer. The second computer will then move a robotic arm. This arm will turn on a switch. This will turn on the third computer. The third computer will turn on a magnet. This will lift a gate and let a ball roll down a track. The ball will hit a switch at the bottom to the track and turn on the forth computer. The forth computer will then blow the main fuse as you are using too much electricity! :confused:

                          S Offline
                          S Offline
                          Smithers Jones
                          wrote on last edited by
                          #32

                          But Mark ... this is the C#-forum. I can't see, where you use C# in your solution. :)

                          "I love deadlines. I like the whooshing sound they make as they fly by." (DNA)

                          D 1 Reply Last reply
                          0
                          • M Mark AJA

                            Drill a small hole in the bottom of a bucket. Fill the bucket full of sand. Let the sand fall out of the bucket onto some scales. When the scales swing down, this will turn on a switch and turn on a computer. The computer will turn on a toy car that will drive across the room and hit a second switch. This will turn on the second computer. The second computer will then move a robotic arm. This arm will turn on a switch. This will turn on the third computer. The third computer will turn on a magnet. This will lift a gate and let a ball roll down a track. The ball will hit a switch at the bottom to the track and turn on the forth computer. The forth computer will then blow the main fuse as you are using too much electricity! :confused:

                            P Offline
                            P Offline
                            Pete OHanlon
                            wrote on last edited by
                            #33

                            High tech Mousetrap; I like it.

                            I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

                            My blog | My articles | MoXAML PowerToys | Onyx

                            1 Reply Last reply
                            0
                            • S Smithers Jones

                              But Mark ... this is the C#-forum. I can't see, where you use C# in your solution. :)

                              "I love deadlines. I like the whooshing sound they make as they fly by." (DNA)

                              D Offline
                              D Offline
                              Dan Neely
                              wrote on last edited by
                              #34

                              That happens whenever you see the scale/car/arm/ball pound into a switch to start the next computer in the chain.

                              3x12=36 2x12=24 1x12=12 0x12=18

                              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
                                dpminusa
                                wrote on last edited by
                                #35

                                http://www.depicus.com/download.aspx?product=remoteshutdown[^] Look here for some possible solutions. We used this and some PHP code we adapted. It seemed to work for us.

                                "Coding for fun and profit ... mostly fun"

                                1 Reply Last reply
                                0
                                • P Pete OHanlon

                                  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 Offline
                                  F Offline
                                  Frank Fajardo
                                  wrote on last edited by
                                  #36

                                  ...and hope the robot hand has power available to it too. :laugh:

                                  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!

                                    G Offline
                                    G Offline
                                    Garavan
                                    wrote on last edited by
                                    #37

                                    Your question is an oxymoron. If your PC is turned off than no apps can run on the same PC in that state. You need some HW accessing your PC's MOB integrated and battery powered clock to get the system time. This HW should also have a kind of source of power (i.e. a battery), read your clock, compare values and turn on your PC. How about a programmable UPS, or use your sprinkler control unit for manually regulate on/off times in advance, or just set your alarm (clock manual, phone via a program), wake up and use your finger to turn it on. Why even turn your PC completely off? What should the PC do after it is on?

                                    Garavan OPTILUS Inc.

                                    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