473,749 Members | 2,580 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to wake up computer under C#

2 New Member
Hi,
I'm new here and I need a small advice

Do you know how to wake up computer from hibernation or sleeping mode(in windows) by programming under C#?
Let me explain my problem. I created a simple programme which I want to run in the morning in different time. My problem is I don't know how to programme it to wake up computer and run programme . Every evening I want just add to my programme time to wake up. I know that under windows it's possible to do it by schedule task, but I want to do it automaticly.

Will you help me?
Mar 29 '08 #1
4 10591
balabaster
797 Recognized Expert Contributor
Hi,
I'm new here and I need a small advice

Do you know how to wake up computer from hibernation or sleeping mode(in windows) by programming under C#?
Let me explain my problem. I created a simple programme which I want to run in the morning in different time. My problem is I don't know how to programme it to wake up computer and run programme . Every evening I want just add to my programme time to wake up. I know that under windows it's possible to do it by schedule task, but I want to do it automaticly.

Will you help me?
I hate to be the one that says something is not possible...but I'm not convinced this is possible with software. I've not been able to get Windows Scheduler to even do this - Windows Scheduler will run if the computer is on or awake, but if it's in suspend or hibernate mode it doesn't wake the computer up. The Wake-On-LAN feature is something that's hardware triggered - the BIOS must support Wake-On-LAN in order for traffic to the network card to wake up the motherboard which in turn triggers the computer to boot. When the computer is in suspend/hibernate there is no software processing completed so the only way I can see this being possible is by hardware.

I would love to hear from someone else that this is possible, but I can't see how logically it can.
Mar 30 '08 #2
prometka
2 New Member
I hate to be the one that says something is not possible...but I'm not convinced this is possible with software. I've not been able to get Windows Scheduler to even do this - Windows Scheduler will run if the computer is on or awake, but if it's in suspend or hibernate mode it doesn't wake the computer up. The Wake-On-LAN feature is something that's hardware triggered - the BIOS must support Wake-On-LAN in order for traffic to the network card to wake up the motherboard which in turn triggers the computer to boot. When the computer is in suspend/hibernate there is no software processing completed so the only way I can see this being possible is by hardware.

I would love to hear from someone else that this is possible, but I can't see how logically it can.
I know that if I add task in schedule task and check on "wake up computer to do this task" or something like it is possible to do it. But I don't know how to program it instead do it by hand
Mar 30 '08 #3
balabaster
797 Recognized Expert Contributor
I know that if I add task in schedule task and check on "wake up computer to do this task" or something like it is possible to do it. But I don't know how to program it instead do it by hand
I appear to be missing that option in my Windows Task Scheduler...per haps my computer just doesn't support Wake-On-Demand and hence it's missing. If I come across anything, I'll let you know.
Mar 30 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1573
by: Blaxer | last post by:
Does anyone know if there is a way to have an event fire when a computer resumes / wakes up from sleep mode (assuming the app is running before and after sleep mode is initiated). I am not talking about threading, I mean sleep mode of the computer hardware like waking up from S2 or S3. TIA!!!
3
6579
by: Blaxer | last post by:
I am asking this question again in hopes that someone can answer it this time. Does anyone know if there is a way to have an event fire when a computer resumes / wakes up from sleep mode (assuming the app is running before and after sleep mode is initiated). I am not talking about threading, I mean sleep mode of the computer hardware like waking up from S2 or S3 ACPI. The application is a vb.net app that is running before and after the...
6
6832
by: diffuser78 | last post by:
I am using 8 computers on a small network. I have one Main computer which should be able to remotely start other computers. I used Wake on LAN to start them all. My Main computer is Linux. Other 4 are Windows and 3 are Linux. How can I shutdown Windows box from my Main (Linux) ?
1
2572
by: Oscar | last post by:
Hi, Is there a way to to "wake" a win xp machine from screen power save using c#? I got a computer that turns off the screen after a while and i'm programming an app that reads smart cards and I want the screen to "power on" as soon as some one inserts a card to the reader. Oscar
3
8627
by: ercastro | last post by:
I am a new user of Visual Basic. I am currently using VB 2005. I am running a time-consuming task on the built-in BackgroundWorker() control of VB. I am using nested loops and sometimes I need to issue Thread.Sleep() while waiting for a specific keyword from my TextBox display window. How do I wake up the BackgroundWorker() thread and resume my code when I detect the keyword that I have been waiting for? How do I call an Interrupt from...
2
1503
by: nondos | last post by:
Hi I have solution with two projects, one of them is a user control I created public shared sub in the user control which mean to wake up the control and start doing somthing, but when i try to call it from the main project i get error message "Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class." What can i do?
0
1420
by: =?Utf-8?B?QnJhbmR5?= | last post by:
When I select standby by computer goes to sleep. When I try to wake it up with the mouse or keyboard it will not work. The drives and monitor are functioning though. I can even open the DVD/CD drives. I end having to hold the power button and restart. I've disabled Hibernate thinking that be it. I've enabled keyboard to wake it up in the device manager. -- Brandy
0
1303
by: Rahul | last post by:
Hello, Is it possible (by code) to set a timer and "force" the computer to wake up from hibernation/standby/sleep mode (either at specific time... or after specific interval) through C# code? Please let me know about any possible solutions/ideas you may have. Thanks,
2
2597
by: mlevit | last post by:
Hi, I currently have a VB program that uses the Shell command to shut it down. I use shutdown -f to shut the computer down. I was wondering if anyone knows what I can use to put the computer to sleep (S3 mode) and at the same set it to wake up at a certain time? I know there are programs that can do that but I need to a command that I can use in VB using Shell. Thanks
0
8997
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9389
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9256
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8257
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6079
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4709
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4881
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3320
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2218
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.