All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: James Simmons <jsimmons@linux-fbdev.org>
Cc: Linux Fbdev development list 
	<linux-fbdev-devel@lists.sourceforge.net>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux console project <linuxconsole-dev@lists.sourceforge.net>
Subject: Re: [Linux-fbdev-devel] [RFC] fbdev & power management
Date: Thu, 15 Mar 2001 12:31:37 +0100	[thread overview]
Message-ID: <20010315113137.28820@mailhost.mipsys.com> (raw)
In-Reply-To: <Pine.LNX.4.31.0103141251590.779-100000@linux.local>
In-Reply-To: <Pine.LNX.4.31.0103141251590.779-100000@linux.local>

>  Now for fbcon its simpler. Things get writing to the shadow buffer
>(vc_screenbuf). When the console gets woken up update_screen is called.
>While power down the shadow buffer can be written to which is much faster
>than saving a image of the framebuffer. Of course if you still want to do
>this such in the case of the X server then copy the image of the
>framebuffer to regular ram. Then power down /dev/fb using some ioctl calls
>provide.

Ok, I see. Currently, the sleep process is started from an ioctl sent to
another
driver, which will in turn call various notifier functions to shut down
bits of
hardware and finally put the machine to sleep. It's not a direct ioctl to
the /dev/fb (which may not be opened). 

One problem I have is that my fbdev sleep routine will restore the mode
on wakeup,
but that of course doesn't work with X when not using useFBDev as fbdev
have no
knowledge of the current mode or register settings used by X.

I'm wondering if it would be possible to make X think there's a console switch
(without actually switching to an active console, as we don't know if we
even have
one of those available for us), wait for it to reply, and then start the sleep
process.

One other possibility would be to implement APM-like events, I still have
to study
those more in details as our sleep process is currently quite different
from APM
(and definitely not BIOS-based).

For now, I have my hooks in fbcon that suspend/restart the cursor timer,
that's
enough to make sleep stable on 2.4 since we take care of shutting down
the display
very last (after any other driver) to make sure no printk will end up
trying to
display something while the chip is powered down.
I'll digest your various comments look into all this in more depth with
2.5 console
codebase. I beleive some solution must be found for x86 laptops too.

Ben.





  reply	other threads:[~2001-03-15 11:32 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-14 21:20 [Linux-fbdev-devel] [RFC] fbdev & power management James Simmons
2001-03-15 11:31 ` Benjamin Herrenschmidt [this message]
2001-03-15 12:03   ` Geert Uytterhoeven
  -- strict thread matches above, loose matches on Subject: below --
2001-03-21 17:02 James Simmons
2001-03-21 22:09 ` Benjamin Herrenschmidt
2001-03-14 21:30 James Simmons
2001-03-14 20:48 James Simmons
2001-03-15  8:21 ` Geert Uytterhoeven
     [not found] <E14d6Ee-00009a-00@usw-sf-list1.sourceforge.net>
2001-03-14 13:17 ` Benjamin Herrenschmidt
2001-03-14 13:39   ` Geert Uytterhoeven
2001-03-14 14:05     ` Benjamin Herrenschmidt
2001-03-14 14:51       ` Geert Uytterhoeven
2001-03-14 20:57     ` Brad Douglas
2001-03-13 21:25 Benjamin Herrenschmidt
2001-03-14  8:02 ` [Linux-fbdev-devel] " Brad Douglas

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=20010315113137.28820@mailhost.mipsys.com \
    --to=benh@kernel.crashing.org \
    --cc=jsimmons@linux-fbdev.org \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxconsole-dev@lists.sourceforge.net \
    /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.