All of lore.kernel.org
 help / color / mirror / Atom feed
From: WareKala <warekala@lag.ath.cx>
To: linux-kernel@vger.kernel.org
Subject: Sysfs, PCI-devices and power management
Date: Sat, 19 Feb 2005 15:29:34 +0200	[thread overview]
Message-ID: <1108819774.11821.12.camel@localhost> (raw)

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

             reply	other threads:[~2005-02-19 13:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-19 13:29 WareKala [this message]
2005-02-20 23:14 ` Sysfs, PCI-devices and power management Pavel Machek

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=1108819774.11821.12.camel@localhost \
    --to=warekala@lag.ath.cx \
    --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 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.