From: Cacy Rodney <cacy-rodney-cacy@tlen.pl>
To: linux-acpi@vger.kernel.org
Subject: suspend a device to save energy
Date: Mon, 13 Nov 2006 20:31:52 +0100 [thread overview]
Message-ID: <4558C828.8060301@tlen.pl> (raw)
Hi,
I tried to suspend a device (ide cdrom) to save energy in my laptop. I
did it using:
echo -n 2 >/sys/devices/pci0000\:00/0000\:00\:1f.1/power/state
I have got a message in syslog that the device is suspended but no
decrease of energy consumption. The configuration of the PCI was not
changed. It seams that the device is off only for system but still
physically enabled. The question is: Does the ACPI is responsible for
turning off the device (and how to do that) or I have to write extension
for driver?
This is report of lspci for the device:
bash-3.00# lspci -xxx -s 0:1f.1
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE
Controller (rev 02)
00: 86 80 df 27 05 00 80 02 02 8a 01 01 00 00 00 00
10: 01 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00
20: 11 18 00 00 00 00 00 00 00 00 00 00 4d 10 e6 81
30: 00 00 00 00 00 00 00 00 00 00 00 00 ff 02 00 00
40: 07 a3 00 00 00 00 00 00 01 00 02 00 00 00 00 00
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 86 0f 02 00 00 00 00 00
As I said the suspend does not change anything. Contrary, windows
operating system is able to shut down the device and it changes the
state from:
(running)
PCI Bus 0
1f:1 8086:27df.02 Cmd[0005:i.b...] Sts[0280:.....] Intel IDE
Controller SubID:104d:81e6
cf8:8000f900 IntPin:2 IntLine:ff Rom:0 cis:0 cap:0
IO[0]:1 IO[1]:1 IO[2]:1
IO[3]:1 IO[4]:1811
00: 27df8086 02800005 01018a02 00000000
10: 00000001 00000001 00000001 00000001
20: 00001811 00000000 00000000 81e6104d
30: 00000000 00000000 00000000 000002ff
40: 0000a347 00000000 00020001 00000000
50: 00000000 00000000 00000000 00000000
60: 00000000 00000000 00000000 00000000
70: 00000000 00000000 00000000 00000000
80: 00000000 00000000 00000000 00000000
90: 00000000 00000000 00000000 00000000
a0: 00000000 00000000 00000000 00000000
b0: 00000000 00000000 00000000 00000000
c0: 00000000 00000003 00000000 00000000
d0: 00000000 00000000 00000000 00000000
e0: 00000000 00000000 00000000 00000000
f0: 00000000 00000000 00020f86 00000000
to (disabled)
1f:1 8086:27df.02 Cmd[0000:......] Sts[0288:.....] Intel IDE
Controller SubID:104d:81e6
cf8:8000f900 IntPin:2 IntLine:ff Rom:0 cis:0 cap:0
IO[0]:1 IO[1]:1 IO[2]:1
IO[3]:1 IO[4]:1811
00: 27df8086 02880000 01018a02 00000000
10: 00000001 00000001 00000001 00000001
20: 00001811 00000000 00000000 81e6104d
30: 00000000 00000000 00000000 000002ff
40: 0000a345 00000000 00020001 00000000
50: 00000000 00010000 00000000 00000000
60: 00000000 00000000 00000000 00000000
70: 00000000 00000000 00000000 00000000
80: 00000000 00000000 00000000 00000000
90: 00000000 00000000 00000000 00000000
a0: 00000000 00000000 00000000 00000000
b0: 00000000 00000000 00000000 00000000
c0: 00000000 00000003 00000000 00000000
d0: 00000000 00000000 00000000 00000000
e0: 00000000 00000000 00000000 00000000
f0: 00000000 00000000 00020f86 00000000
I found a recipt how to off the pci (intel manual for ich7-m) but I have
no idea where it should be in ACPI (I donot know much about it) or in a
driver.
Cacy
reply other threads:[~2006-11-13 18:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4558C828.8060301@tlen.pl \
--to=cacy-rodney-cacy@tlen.pl \
--cc=linux-acpi@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.