suspend a device to save energy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux