acpi

Setting an ACPI field in Linux

a 夏天 提交于 2019-12-23 04:11:18
问题 I've a netbook that is running the fan a bit to early for my liking. I've found a Windows-only solution to reducing the fan noise but I'm using Ubuntu on this computer. In the Windows solution the guy is using a program called Notebook Hardware Control (NHC) which, from what I can make out, is reading and setting ACPI values. (http://hpmini110c.siteboard.eu/f3t31-lueftersteuerung-fuer-den-mini.html, relevant source in the 7z-file, the .cs-file in there is a C#-file with the logic for setting

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

元气小坏坏 提交于 2019-12-17 23:15:19
问题 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. 回答1: 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

Schedule machine to wake up

你。 提交于 2019-12-17 18:18:44
问题 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

adding i2c client devices on x86_64

时间秒杀一切 提交于 2019-12-17 13:51:58
问题 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 -- -- -

adding i2c client devices on x86_64

故事扮演 提交于 2019-12-17 13:51:10
问题 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 -- -- -

Building a i2c device controller

心不动则不痛 提交于 2019-12-13 14:45:25
问题 I am building a PCB that will communicate via a i2c bus with a UDOO x86 running ubuntu 18.04 with two accesible i2c buses and multiple GPIO the device has 3 i2c chips on it i2c-mux-pca954x PCA9543 - level shifting bus switch SC18IS602B - i2c to SPI Bus master SC16IS741A - i2c to uart each of which has a kernel driver module(i2c-mux-pca954x,spi-sc18is602,sc16is7xx) both the SC18IS602B and SC16IS741A are connected to one channel of the PCA9543 and corresponding interrupt. the second channel for

How to get the battery life of mac os x macbooks programatically?

倖福魔咒の 提交于 2019-12-12 09:35:37
问题 What I wanted to do is take a log on battery percentage. I know the equivalent in linux is sysctl(hw.acpi.battery.life). However when I went through the man of sysctl in mac os x I did not find the equivalent code to find it. Can some one point out how to do this using objective c. I can call sysctlbyname but that doesn't have this as input in its struct. Kindly help me please 回答1: Try using IOKit and the IOPowerSources functions. You can use IOPSCopyPowerSourcesInfo() to get a blob, and

Instant power off programmatically?

只愿长相守 提交于 2019-12-10 10:32:45
问题 Under Windows XP Pro in a networked environment such that Ctrl+Alt+Del gives you the Windows Security prompt, if you hold Ctrl and click shutdown it triggers an Emergency Shutdown. This appears to turn off the system so fast it doesn't even what for processes to finish, i.e. almost as if you just pulled the power/long-held the power button. I am wondering by what process Windows achieves such a quick shutdown - is it instructing the BIOS directly via ACPI/APM to power down the system? If so,

How to deny shutdown when pressing the power button for a while?

删除回忆录丶 提交于 2019-12-10 03:54:43
问题 On most newer computers you can shutdown the hard way by pressing the power button for a couple of seconds. But I want to prevent this completely. You're able to prevent some soft events like the sleep, suspend, hibernate and "Press power button" events in Windows control panel; you can also use some Win32 and WDI programming to catch and handle/deny those events but it doesn't seem to stop the mechanical power off when you hold the button for a longer time. I guess the power button is hard

IOMMU initialization without BIOS support

懵懂的女人 提交于 2019-12-06 19:33:25
问题 NOTE : if you have an AMD A55 chipset on a motherboard that support IOMMU, please send me a copy of your /sys/firmware/acpi/tables/DMAR (or whatever the name is that describes IOMMU). There is no risk of any sort for you. Thanks! Most motherboard manufacturers don't bother releasing IOMMU enabled BIOS (no option in the BIOS). My undesranding of this document from AMD is that the BIOS initializes the IOMMU by adding ACPI tables. So if I can get a dump of the ACPI tables (acpidump/acpiextract)