From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keld =?iso-8859-1?Q?J=F8rn?= Simonsen Subject: shutting down individual devices Date: Tue, 20 Jul 2004 15:51:43 +0200 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20040720135143.GA16058@rap.rap.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org Hi I would like to shut down a few devices individually. The devices I try to shut down are: The modem The sound system I think I can save about 2 W in this way, as lspci -vvx reports an AuxCurrent of 375 mA - I think this is at 3,3 V on my Acer TM233 laptop, so that would be about 1 W each, giving me about 30 minutes extra of battery life. I do this by echo -n 3 >/sys/devices/pci*/*/power/state and then I verified that the state was changed to 3. But lspci -vvx (reproduced below) says that the devices are still in D0. Is this an error? Do I need to shut down drivers before I shut down the drivers in this way, or would the kernel do that automatically for me? kernel 2.6.7 best regards keld lspci -vvx: 00:00.0 Host bridge: Intel Corp. 82845G/GL [Brookdale-G] Chipset Host Bridge (rev 03) Subsystem: Unknown device 17c0:2056 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- Reset- FastB2B- 00: 86 80 4e 24 07 01 80 80 82 00 04 06 00 00 01 00 10: 00 00 00 00 00 00 00 00 00 02 02 20 30 30 80 22 20: 10 d0 10 d0 f0 ff 00 00 00 00 00 00 00 00 00 00 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00:1f.0 ISA bridge: Intel Corp. 82801DB LPC Interface Controller (rev 02) Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- Region 1: I/O ports at Region 2: I/O ports at Region 3: I/O ports at Region 4: I/O ports at 1860 [size=16] Region 5: Memory at 10000000 (32-bit, non-prefetchable) [size=1K] 00: 86 80 cb 24 07 00 80 02 02 8a 01 01 00 00 00 00 10: f1 01 00 00 f5 03 00 00 71 01 00 00 75 03 00 00 20: 61 18 00 00 00 00 00 10 00 00 00 00 c0 17 02 40 30: 00 00 00 00 00 00 00 00 00 00 00 00 ff 01 00 00 00:1f.3 SMBus: Intel Corp. 82801DB/DBM SMBus Controller (rev 02) Subsystem: Unknown device 17c0:4002 Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- [disabled] [size=64K] Capabilities: [50] Power Management version 2 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0-,D1+,D2+,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00: ec 10 39 81 07 01 90 02 10 00 00 02 00 20 00 00 10: 01 30 00 00 00 00 10 d0 00 00 00 00 00 00 00 00 20: 00 00 00 00 00 00 00 00 00 00 00 00 c0 17 53 10 30: 00 00 00 00 50 00 00 00 00 00 00 00 0b 01 20 40 02:09.0 CardBus bridge: O2 Micro, Inc. OZ6912 Cardbus Controller Subsystem: Unknown device 17c0:3102 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- SERR- Reset- 16bInt+ PostWrite+ 16-bit legacy interface ports at 0001 00: 17 12 72 69 87 00 10 04 00 00 07 06 00 a8 02 00 10: 00 10 00 10 a0 00 00 02 02 03 06 b0 00 00 40 10 20: 00 f0 7f 10 00 00 80 10 00 f0 bf 10 01 40 00 00 30: fd 40 00 00 01 44 00 00 fd 44 00 00 00 01 80 05 40: c0 17 02 31 01 00 00 00 00 00 00 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 ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click