acpi

C#: How to wake up system which has been shutdown?

坚强是说给别人听的谎言 提交于 2019-11-28 20:52:23
Is there any Win32 API for waking up a system that has been shut down, at a specific time? I have seen a program named Autopower On which is able to power the system on at a specified time. vishnu Got the below post from a site. Any body tried this? Nothing in the framework, so you'll have to "PInvoke" a bit. The API's you need to call are CreateWaitableTimer and SetWaitableTimer. Following is a complete (Q&D) sample that illustrates how you can set a system to be awoken from sleep/hibernate using above Win32 API's. Note that here I'm setting a relative wakeup time of 300000000 nSecs. That

How to reboot in x86 assembly from 16 bit real mode?

谁说胖子不能爱 提交于 2019-11-28 09:33:05
问题 APM shutdown has been covered at X86 instructions to power off computer in real mode? How to reboot instead of shutting down the computer? Please quote and explain the relevant documentation / standard in your answer. I've understood that APM and ACPI are the two main methods, and I'm interested in both. Let me know if there are others. I have found the ACPI spec is at http://uefi.org/specifications but it's taking too much brainpower to parse it that I found it worthy of a question. I could

Programmatically change Windows power settings

一笑奈何 提交于 2019-11-28 09:21:46
问题 Is it possible to change the power-saving behaviour of a laptop computer on lid close from hibernate/standby/shutdown to Do Nothing from the .NET Framework? Edit: it would appear that by setting the value to Standby and blocking the standby from my application, the lid close event can be detected, which is what I'm really after. I found this question which deals with detecting lid close, but it boils down to using a standby event or writing a driver. 回答1: Yes, you can use the WMI classes.

Schedule machine to wake up

左心房为你撑大大i 提交于 2019-11-28 06:58:18
What's the best way to programmatically cause a Windows XP (or above) machine to wake up at a specific time. (Ideally a lot like how Media Center can start up automatically to record a particular TV program) I've got a Windows service (written in C#) and I'd like this service to be able to cause the machine it is hosted on to start up at predetermined times. Are there any BIOS settings or prerequisites (eg. ACPI) that need to be configured for this to work correctly? This machine would be using dialup or 3G wireless modem, so unfortunately it can't rely on Wake on LAN. You can use waitable

Programmatically access CPU fan on a laptop? (Windows)

本小妞迷上赌 提交于 2019-11-28 05:58:15
Is there a Windows standard way to do things such as "start fan", "decrease speed" or the like, from C/C++? I have a suspicion it might be ACPI, but I am a frail mortal and cannot read that kind of documentation. Edit: e.g. Windows 7 lets you select in your power plan options such as "passive cooling" (only when things get hot?) vs. "active cooling" (keep the CPU proactively cool?). It seems the OS does have a way to control the fan generically. Boris I am at the moment working on a project that, among other things, controls the computer fans. Basically, the fans are controlled by the superIO

adding i2c client devices on x86_64

与世无争的帅哥 提交于 2019-11-27 15:24:55
On my x86_64 board, there is i2c-bus coming out of a MFD device. There are devices on to this i2c-bus. I am able to detect these devices using i2cdetect program. # i2cdetect -y 0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- 4c -- -- -- 50: -- -- -- -- -- -- -- 57 -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- I need

Programmatically access CPU fan on a laptop? (Windows)

假装没事ソ 提交于 2019-11-27 01:07:33
问题 Is there a Windows standard way to do things such as "start fan", "decrease speed" or the like, from C/C++? I have a suspicion it might be ACPI, but I am a frail mortal and cannot read that kind of documentation. Edit: e.g. Windows 7 lets you select in your power plan options such as "passive cooling" (only when things get hot?) vs. "active cooling" (keep the CPU proactively cool?). It seems the OS does have a way to control the fan generically. 回答1: I am at the moment working on a project