linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* 2.2.14pre9: restoring 1999 PBG3 backlight level after sleep
@ 1999-11-27  1:47 Jan Brittenson
  0 siblings, 0 replies; only message in thread
From: Jan Brittenson @ 1999-11-27  1:47 UTC (permalink / raw)
  To: linuxppc-dev


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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-11-27  1:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-11-27  1:47 2.2.14pre9: restoring 1999 PBG3 backlight level after sleep Jan Brittenson

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).