.TH QCONTROL 1 "2008-08-10" "Debian Project" "" .SH NAME qcontrol \- Hardware control for QNAP Turbo Station .SH SYNOPSIS \fBqcontrol\fB -d .PP \fBqcontrol\fB \fIcommand\fP \fIvalue\fP .SH DESCRIPTION The utility can be used to control leds or fan speed, or sound the buzzer. As a daemon it can monitor the device for example for button presses or temperature values and trigger actions defined in the LUA configuration file, for example to power off the system or to modify the fan speed. .PP Note: the current version does not have a real daemon mode. Caution is therefore advised when using qcontrol as a real daemon to monitor and control a device. .PP Currently supported devices are the QNAP TS-109, QNAP TS-110, QNAP TS-119, QNAP TS-209, QNAP TS-210, QNAP TS-219, QNAP TS-219P, QNAP TS-409, QNAP TS-409U, QNAP TS-410, QNAP TS-410U, QNAP TS-419P and QNAP TS-419U but support for additional devices may be added in future releases. .SH BASIC USAGE First a control process needs to be started that opens a socket through which the actual commands can be passed. The control proces is be started using the \fB\-d\fP option: # qcontrol \-d .PP Or, to start the control process in a pseudo daemon mode: # qcontrol \-d >/dev/null & disown .PP After that, the actual commands to control devices can be entered (if the first syntax to start the control process was used, this should be done from a separate console): # qcontrol .PP Because the socket file is created in /var/run, all commands must be run as root. .SH OPTIONS This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). An overview of supported options is included below. .IP "\fB\-d\fP, \fB\-\-daemon\fP" Daemon mode; starts the control process. .IP "\fB\-?\fP, \fB\-\-help\fP" Print command help and info. .IP "\fB\-V\fP, \fB\-\-version\fP" Print program version. .SH SUPPORTED CLIENT COMMANDS Below an overview of the supported commands that can be sent using the program in client mode, and the allowed values for each. Commands (these and others) can also be programmed in response to events using the LUA configuration file. For the leds, values including `1hz' and `2hz' will result in the led flashing on/off in the default or specified color, with the `hz' value determining the speed of the flashes. In the case of `greenred', the led will alternate between green and red instead of on and off. .IP "\fBpowerled\fP" Controls the power led (not available on TS-409 and TS-409U). Values: off | on | 1hz | 2hz .IP "\fBstatusled\fP" Controls the status led. Values: off | greenon | redon | green1hz | red1hz | greenred1hz | green2hz | red2hz | greenred2hz .IP "\fBusbled\fP" Controls the usb led. Values: off | on | 8hz .IP "\fBbuzzer\fP" Sounds the buzzer. Values: short | long .IP "\fBfanspeed\fP" Controls the speed of the fan (if present). Values: stop | silence | low | medium | high | full .IP "\fBautopower\fP" Controls the automatic power mechanism. Values: on | off .SH KNOWN ISSUES After running the control process and killing it, the socket file will still exist. This will cause the following error when the control process is started again: `Error binding to socket: Address already in use'. .PP The solution is to remove the socket file and then try again: # rm /var/run/qcontrol.sock .PP The program is not yet very robust against errors in the configuration file. .SH FILES .IP \fB/etc/qcontrol.conf\fP LUA configuration file for qcontrol .IP \fB/etc/default/qcontrol\fP Configuration file for qcontrol init script .IP \fB/var/run/qcontrol.sock\fP Socket file for communication between daemon precess and client .SH SEE ALSO .IP \fB/usr/share/doc/qcontrol/examples\fP Example LUA configuration file containing more advanced commands .SH AUTHOR qcontrol was written by Byron Bradley . .PP This manual page was written by Frans Pop for the Debian project (but may be used by others).