mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andreas Mohr <andi@rhlx01.fht-esslingen.de>
To: LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH] 2.5.70: add comment about console LCD backlight issues
Date: Thu, 29 May 2003 14:28:16 +0200	[thread overview]
Message-ID: <20030529122816.GB21147@rhlx01.fht-esslingen.de> (raw)

Hi all,

a lot of people seem to be confused about (non-working) notebook display
blanking, so...

- add verbose explanation about the whole notebook screen blanking situation
  and a possible development direction to prominent place

I might actually be tempted to unify graphics hardware backlight handling
myself, since having a console that doesn't shut down the backlight properly
is mildly annoying...

Patch against vanilla 2.5.70.

Andreas Mohr

diff -urN linux-2.5.70.orig/drivers/video/console/vgacon.c linux-2.5.70/drivers/video/console/vgacon.c
--- linux-2.5.70.orig/drivers/video/console/vgacon.c	2003-05-28 17:57:07.000000000 +0200
+++ linux-2.5.70/drivers/video/console/vgacon.c	2003-05-29 03:13:53.000000000 +0200
@@ -661,6 +661,22 @@
 	}
 }
 
+/*
+ * vgacon_blank() is able to simply blank the screen, or to even switch
+ * the monitor off in case of "Green", "Energy Star" monitors
+ * (by switching off the sync signals using VESA mechanisms).
+ * However, it is NOT able to switch off the *backlight* of (most?) notebooks.
+ * For these cases, we usually make use of APM display blanking methods.
+ * However if you chose to use ACPI on your notebook instead of APM,
+ * then you're screwed for now, since ACPI expects the operating system itself
+ * to manage video device power state (there's no convenient APM call that
+ * does it for you). Since we don't have VGA adapter specific support for
+ * that (only XFree86 has it), you're only able to switch off your backlight
+ * in XFree86, and only if the driver supports that ('xset dpms force off').
+ * ppc already has config PMAC_BACKLIGHT for several graphics cards,
+ * so backlight handling should simply be generalized here instead,
+ * to also support i386 notebook backlight etc.
+ */
 static int vgacon_blank(struct vc_data *c, int blank)
 {
 	switch (blank) {

             reply	other threads:[~2003-05-29 12:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-29 12:28 Andreas Mohr [this message]
2003-06-04 22:03 ` 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=20030529122816.GB21147@rhlx01.fht-esslingen.de \
    --to=andi@rhlx01.fht-esslingen.de \
    --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®