All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Antonino A. Daplas" <adaplas@hotpop.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Andrew Morton <akpm@osdl.org>,
	Linux Fbdev development list
	<linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: [PATCH 8/8] fbdev: Fix broken fb_blank() implementation.
Date: Mon, 8 Nov 2004 07:23:39 +0800	[thread overview]
Message-ID: <200411080723.39722.adaplas@hotpop.com> (raw)
In-Reply-To: <1099863581.10262.134.camel@gaston>

On Monday 08 November 2004 05:39, Benjamin Herrenschmidt wrote:
> On Mon, 2004-11-08 at 05:27 +0800, Antonino A. Daplas wrote:
> > This patch fixes some of the drivers' fb_blank() implementation which got
> > the usage of the VESA_* constants incorrectly and converts them to use
> > the new FB_BLANK-* constants.
> >
> > I'm not sure if what I did is correct for all drivers, so maintainers,
> > please review.
> >
> > (Note: For most of the drivers, FB_BLANK_NORMAL is treated as
> > FB_BLANK_UNBLANK, but returns a nonzero so fbcon wi
>
> I think that on laptops, FB_BLANK_NORMAL could lower the backlight to 0
> (without disabling the panel, which requires more time)... I'll look
> into this, in the meantime, your patch is fine.

Yes, I was not too sure what to do with FB_BLANK_NORMAL not just for drivers
with backlights, so I took the safe route (unblank but do a soft_blank).

>
> BTW, what is the current status, can we use msleep in blank yet ? I
> think we can still have unblank() called by printk at interrupt time
> right ? I'd like to msleep in there rather than playing my games with
> a timer ...
>

I'm not too sure about this, but I think so, it is world callable and is
called by bust_spinlocks() at least. What about putting fbcon_blank() in the
workqueue...? (Or perhaps unblank/blank_screen in vt.c, but the code
in vt.c is very fragile...)

Tony





-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click

  reply	other threads:[~2004-11-07 23:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-07 21:27 [PATCH 8/8] fbdev: Fix broken fb_blank() implementation Antonino A. Daplas
2004-11-07 21:39 ` Benjamin Herrenschmidt
2004-11-07 23:23   ` Antonino A. Daplas [this message]
2004-11-07 23:52     ` Benjamin Herrenschmidt

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=200411080723.39722.adaplas@hotpop.com \
    --to=adaplas@hotpop.com \
    --cc=akpm@osdl.org \
    --cc=benh@kernel.crashing.org \
    --cc=linux-fbdev-devel@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.