mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg59@srcf.ucam.org>
To: linux-kernel@vger.kernel.org
Subject: Video cards and PCI power states
Date: Mon, 14 Feb 2005 20:26:09 +0000	[thread overview]
Message-ID: <1108412769.4085.119.camel@tyrosine> (raw)

Radeons need certain registers set in order to power down fully when set
to D3 state. This support has been added to radeonfb, but it would be
nice to be able to support this with text consoles as well. I've written
a small userspace application that sets the registers correctly, but the
device still needs to be put into D3 during suspend. The kernel won't do
this as no module is loaded to claim the device. In theory, it's
possible to do this from userspace. I've written an app to set a device
to D3 state, and it seems to work in most cases. 

However, if I try to run it against a Radeon in a Thinkpad, the device
seems to power itself back up again immediately. A similar effect can be
produced if I provide a dummy module that does nothing other than bind
to the device and provide suspend and resume functions - echo -n 3
>power/state doesn't actually seem to power the device down. However,
this module /is/ sufficient to power it down correctly on suspend.

Does anyone know why it appears impossible to power down the device
while the system is running, while doing so during suspend results in
correct functionality? 
-- 
Matthew Garrett | mjg59@srcf.ucam.org


                 reply	other threads:[~2005-02-14 20:26 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=1108412769.4085.119.camel@tyrosine \
    --to=mjg59@srcf.ucam.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®