* Sysfs, PCI-devices and power management
@ 2005-02-19 13:29 WareKala
2005-02-20 23:14 ` Pavel Machek
0 siblings, 1 reply; 2+ messages in thread
From: WareKala @ 2005-02-19 13:29 UTC (permalink / raw)
To: linux-kernel
Hi,
I don't know if this is the "right place(TM)" to ask about this, and if
it isn't, I apologize. But the fact is that I haven't found any help
from anywhere else and I can't learn enough without asking. So, the
situation is like this: I am using a laptop and want to minimize the
power consumption by shutting down unneeded components. Under windozer a
program called Battery Doubler does the same by for example shutting
down not-needed PCI devices. I too, tried to shut down certain devices
by doing "echo 3 > /sys/devices/pci*/*0a*/power/state", but that didn't
work. state was still a zero. So, I then echoed a "3" to detach_state
and removed the module, after which */power/state was 3. Now, I then
tried again changing it with no luck. Echoing a 1 to detach_state,
modprobing and rmmoding the module did the trick, but I still can't get
it back to state 0. Also, I read from the kernel documentations that
echoing something to power/state should work, without toying around with
the modules, but apparently that is b0rked.
So, is there any way to fix this? Or, could someone do a simple
C-program for changing the state of the devices? I don't know enough
about PCI or programming under Linux, so my experiments with
pci_set_power_state didn't work out quite the way they were supposed to
=/
Also, the kernel in question is 2.6.10, though this hasn't worked with
any other version either.
I am not a regular reader in here, so please be kind and answer directly
to me.
-WareKala
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Sysfs, PCI-devices and power management
2005-02-19 13:29 Sysfs, PCI-devices and power management WareKala
@ 2005-02-20 23:14 ` Pavel Machek
0 siblings, 0 replies; 2+ messages in thread
From: Pavel Machek @ 2005-02-20 23:14 UTC (permalink / raw)
To: WareKala; +Cc: linux-kernel
> I don't know if this is the "right place(TM)" to ask about this, and if
> it isn't, I apologize. But the fact is that I haven't found any help
> from anywhere else and I can't learn enough without asking. So, the
> situation is like this: I am using a laptop and want to minimize the
> power consumption by shutting down unneeded components. Under windozer a
> program called Battery Doubler does the same by for example shutting
> down not-needed PCI devices. I too, tried to shut down certain devices
> by doing "echo 3 > /sys/devices/pci*/*0a*/power/state", but that didn't
> work. state was still a zero. So, I then
This is called runtime power managment; it still needs to be implemented.
--
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-01 13:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-19 13:29 Sysfs, PCI-devices and power management WareKala
2005-02-20 23:14 ` Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox