New answers tagged power-management
To test whether your monitor is on or off you can use $ xset q | grep Monitor Monitor is On In order to determine the brightness of your LCD backlight you can run $ xbacklight 70.000000
But if your computer actually keeps track of power (e.g. notebook), than on kernel 3.8.11 you can use the command below. It returns power measured in miliwatts. cat /sys/class/power_supply/BAT0/power_now This works on kernel 3.8.11 (Ubuntu Quantal mainline generic).
Alternative Power Apps There are several power management apps listed on the Linux App finder site. Of the ones listed I've used GKrellM & PowerTOP. Perhaps one of these will suit your needs. I did a quick look through most of these apps. I didn't see the feature where power consumption was broken down by device. I ...
From a workstation: $ upower -i /org/freedesktop/UPower/devices/battery_BAT0 Output: failed to set path: cannot refresh: Cannot get device properties for /org/freedesktop/UPower/devices/battery_BAT0: Couldn't call GetAll() to get properties for /org/freedesktop/UPower/devices/battery_BAT0: Method "GetAll" with signature "s" on interface ...
Potential Method #1 I think you can do it with these commands: disable echo 0 > /sys/bus/pci/slots/$N/power enable echo 1 > /sys/bus/pci/slots/$N/power Where $N is the number of the PCI slot. lspci -vv may help to identify the device. This is not very well documented... Potential Method #2 I came across this thread on U&L, similar ...
I would leave it. I believe ACPI does more than just power management. For example I believe there is a ACPI event that is sent in via the VM Host to the guests when you want them to shutdown or reboot. Excerpt from Manual:KVM: shut-down issue ACPI shut-down command to KVM guest, if guest does not support ACPI, command have no effect. reboot ...
Strictly speaking, no you don't need acpid in a virtual machine nor on a real system. But you should install acpid in a VM as it typically handles the power button press which is simulated by the hypervisor if you shutdown a VM. So for practically reasons, yes you should install acpid on a VM. P.S: acpid doesn't really do power management
Top 50 recent answers are included