From: moosotc@gmail.com
To: linux-kernel@vger.kernel.org
Subject: Energy consumption oddity on a Mac-Mini
Date: Fri, 12 Feb 2016 11:50:32 +0300 [thread overview]
Message-ID: <87k2mauxbb.fsf@gmail.com> (raw)
Hello,
Trying to make Linux consume as little(or less) power as OS X does on
this Mac mini (as measured by watt meter that sits between the box and
the power outlet) led me to the following sequence of commands:
[..start script..]
#!/bin/sh
set -e
test "$(id -u)" != "0" && exec sudo "$0" "$@"
echo powersave >/sys/module/pcie_aspm/parameters/policy
echo 1 >/sys/module/snd_hda_intel/parameters/power_save
echo min_power >/sys/class/scsi_host/host0/link_power_management_policy
echo 1 | tee >/dev/null /sys/bus/usb/devices/*/power/autosuspend
echo auto | tee >/dev/null /sys/devices/**/power/control
# Suspend to RAM only to restore in six seconds
# for some reason this step is essential here:
# product: Macmini7,1 (System SKU#)
# vendor: Apple Inc.
# version: 1.0
echo +6 >/sys/class/rtc/rtc0/wakealarm
echo mem >/sys/power/state
echo 0 >/sys/class/rtc/rtc0/wakealarm
[..end script..]
Last 3 lines are the source of my confusion, why is this needed? The
situation is as follows:
* after boot the system consumes 8-9 watts
* with powertop(8) inspired sysfs tweaks but without the suspension 6-7
* with the suspend oscillating around 5-6
Would be nice to really know what's going on here. (My Linux-power-fu is
not too great)
--
mailto:moosotc@gmail.com
next reply other threads:[~2016-02-12 8:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-12 8:50 moosotc [this message]
2016-02-13 15:27 ` Energy consumption oddity on a Mac-Mini moosotc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k2mauxbb.fsf@gmail.com \
--to=moosotc@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).