Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sandpoint/sandpoint It is probably better to flash ...
details: https://anonhg.NetBSD.org/src/rev/63d4f7408b36
branches: trunk
changeset: 764396:63d4f7408b36
user: phx <phx%NetBSD.org@localhost>
date: Tue Apr 19 18:16:03 2011 +0000
description:
It is probably better to flash the power LED after power-off on a DSM-G600,
to make the user aware that he needs to remove power manually.
diffstat:
sys/arch/sandpoint/sandpoint/satmgr.c | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diffs (51 lines):
diff -r 091f3c98f696 -r 63d4f7408b36 sys/arch/sandpoint/sandpoint/satmgr.c
--- a/sys/arch/sandpoint/sandpoint/satmgr.c Tue Apr 19 18:06:19 2011 +0000
+++ b/sys/arch/sandpoint/sandpoint/satmgr.c Tue Apr 19 18:16:03 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: satmgr.c,v 1.10 2011/04/17 14:05:59 phx Exp $ */
+/* $NetBSD: satmgr.c,v 1.11 2011/04/19 18:16:03 phx Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -704,14 +704,14 @@
qreboot(struct satmgr_softc *sc)
{
- send_sat(sc, "Pf");
+ send_sat(sc, "Pf"); /* beep and reboot */
}
static void
qpwroff(struct satmgr_softc *sc)
{
- send_sat(sc, "PA");
+ send_sat(sc, "PA"); /* beep and power off */
}
static void
@@ -720,7 +720,7 @@
switch (ch) {
case '@':
- /* power button, notified after 5 seconds guard time */
+ /* power button, notified after 2 seconds guard time */
sysmon_task_queue_sched(0, sched_sysmon_pbutton, sc);
break;
case 'j': /* reset to default button */
@@ -734,10 +734,12 @@
{
/*
- * The DSM-G600 has no hardware-shutdown, but we turn all LEDs off,
- * to indicated that we powered down.
+ * The DSM-G600 has no hardware-shutdown, so we flash the power LED
+ * to indicate that the device can be switched off.
*/
- send_sat(sc, "TSC\nTSC\n");
+ send_sat(sc, "SYN\nSYN\n");
+
+ /* drops into default power-off handling (looping forever) */
}
static void
Home |
Main Index |
Thread Index |
Old Index