Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/hpc turn off light of LCD, when I closed cover
details: https://anonhg.NetBSD.org/src/rev/fc57b60d0897
branches: trunk
changeset: 540334:fc57b60d0897
user: hamajima <hamajima%NetBSD.org@localhost>
date: Tue Dec 10 06:18:07 2002 +0000
description:
turn off light of LCD, when I closed cover
diffstat:
sys/dev/hpc/btnmgr.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 8c3663b647c5 -r fc57b60d0897 sys/dev/hpc/btnmgr.c
--- a/sys/dev/hpc/btnmgr.c Tue Dec 10 05:14:24 2002 +0000
+++ b/sys/dev/hpc/btnmgr.c Tue Dec 10 06:18:07 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: btnmgr.c,v 1.11 2002/10/23 09:13:11 jdolecek Exp $ */
+/* $NetBSD: btnmgr.c,v 1.12 2002/12/10 06:18:07 hamajima Exp $ */
/*-
* Copyright (c) 1999
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: btnmgr.c,v 1.11 2002/10/23 09:13:11 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: btnmgr.c,v 1.12 2002/12/10 06:18:07 hamajima Exp $");
#define BTNMGRDEBUG
@@ -236,7 +236,9 @@
if (id == CONFIG_HOOK_BUTTONEVENT_POWER && msg)
config_hook_call(CONFIG_HOOK_PMEVENT,
CONFIG_HOOK_PMEVENT_SUSPENDREQ, NULL);
-
+ else if (id == CONFIG_HOOK_BUTTONEVENT_COVER)
+ config_hook_call(CONFIG_HOOK_POWERCONTROL,
+ CONFIG_HOOK_POWERCONTROL_LCDLIGHT, (void*)(msg ? 0: 1));
return (0);
}
Home |
Main Index |
Thread Index |
Old Index