From: Jan Brittenson <bson@rockgarden.net>
To: linuxppc-dev@lists.linuxppc.org
Subject: 2.2.14pre9: restoring 1999 PBG3 backlight level after sleep
Date: Fri, 26 Nov 1999 17:47:55 -0800 [thread overview]
Message-ID: <4.1.19991126173632.00950400@mail> (raw)
It appears that just reenabling the backlighting after a sleep doesn't
restore brightness on the 1999 Powerbook G3. Adding a pmu_set_brightness()
immediately after waking up, to explicitly reset it, seems to do the trick.
*** via-pmu.c.orig Fri Nov 26 17:32:28 1999
--- via-pmu.c Fri Nov 26 17:05:17 1999
***************
*** 1471,1476 ****
--- 1471,1477 ----
case PMU_HEATHROW_BASED:
case PMU_PADDINGTON_BASED:
error = powerbook_sleep_G3();
+ pmu_set_brightness(backlight_level);
break;
default:
error = ENOSYS;
I wasn't sure whether this is necessary on any other platforms, in
which case it should probably be moved out of the switch statement,
or if it only applies to G3's, in which case it should probably be
moved to powerbook_sleep_G3(). Especially if it only applies to
the 1999 PBG3's.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
reply other threads:[~1999-11-27 1:47 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=4.1.19991126173632.00950400@mail \
--to=bson@rockgarden.net \
--cc=linuxppc-dev@lists.linuxppc.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;
as well as URLs for NNTP newsgroup(s).