xref: /netbsd/share/man/man4/man4.sandpoint/satmgr.4 (revision 6550d01e)
1.\" $NetBSD: satmgr.4,v 1.3 2011/01/27 11:33:43 nisimura Exp $
2.\"
3.\" Copyright (c) 2011 The NetBSD Foundation, Inc.
4.\" All rights reserved.
5.\"
6.\" This code is derived from software contributed to The NetBSD Foundation
7.\" by Tohru Nishimura.
8.\"
9.\" Redistribution and use in source and binary forms, with or without
10.\" modification, are permitted provided that the following conditions
11.\" are met:
12.\" 1. Redistributions of source code must retain the above copyright
13.\"    notice, this list of conditions and the following disclaimer.
14.\" 2. Redistributions in binary form must reproduce the above copyright
15.\"    notice, this list of conditions and the following disclaimer in the
16.\"    documentation and/or other materials provided with the distribution.
17.\"
18.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28.\" POSSIBILITY OF SUCH DAMAGE.
29.\"
30.Dd January 26, 2011
31.Dt SATMGR 4 sandpoint
32.Os
33.Sh NAME
34.Nm satmgr
35.Nd driver for satellite processor, controlling power, front panel LEDs, and buttons
36.Sh SYNOPSIS
37.Cd "satmgr0 at eumb? unit 0"
38.Cd "satmgr0 at eumb? unit 1"
39.Sh DESCRIPTION
40This driver provides an interface to the
41.Tn NAS
42builtin satellite microprocessor which controls the power, front
43panel LEDs, and push buttons.
44Communication is performed through character sequences, whose
45definition and usage depend on the
46.Tn NAS
47product models.
48.Pp
49The device file
50.Pa /dev/satmgr
51can be written to control the satellite processor and the LEDs.
52Reading it will return single characters for button press events.
53This facility was designed to implement a
54.Tn NAS
55control
56.Tn CGI
57program.
58.Pp
59.Nm
60detects a soft power-off condition, which is triggered by holding
61the front panel power button pressed for several seconds.
62This driver can optionally invoke
63.Xr powerd 8
64to get a finer control over the system shutdown procedure.
65It is capable of reporting a power-button-pressed event.
66Refer to the
67.Xr powerd 8
68manual section for more details.
69.Pp
70For
71.Tn "Kurobox/Linkstation"
72.Tn NAS
73products it also provides a way to toggle the system watchdog with the
74.Xr sysctl 8
75utility.
76The usage is:
77.Bd -literal -offset indent
78# sysctl -w machdep.satmgr.hwwdog_enable=1
79# sysctl -w machdep.satmgr.hwwdog_enable=0
80.Ed
81.Pp
82.Tn NAS
83products currently supported by
84.Nm :
85.Bl -bullet -compact
86.It
87KuroBox
88.It
89Buffalo LinkStation
90.It
91Synology DiskStation
92.El
93.Sh FILES
94.Bl -tag -width /dev/satmgrX -compact
95.It Pa /dev/satmgr
96communication inferface to
97.Nm .
98.It Pa /dev/power
99event notify channel to
100.Xr powerd 8 .
101.El
102.Sh SEE ALSO
103.Xr powerd 8
104.Sh HISTORY
105The
106.Nm
107driver
108first appeared in
109.Nx 6.0 .
110