This email list is read-only. Emails sent to this list will be discarded
----------------------------------
moblin-system-daemon/Makefile.am | 32 ++++-
moblin-system-daemon/battery/battery.sgml | 6 +
moblin-system-daemon/datetime/datetime.sgml | 52 +++++++
.../lcdbacklight/lcdbacklight.sgml | 17 +++
.../moblin-system-tool-footer.sgml | 32 ++++
.../moblin-system-tool-header.sgml | 54 +++++++
moblin-system-daemon/sound/sound.sgml | 151 ++++++++++++++++++++
moblin-system-daemon/touchscreen/touchscreen.sgml | 47 ++++++
8 files changed, 385 insertions(+), 6 deletions(-)
New commits:
commit 78ac73e46f692e4488e45de9bef5aff62b106613
Author: Todd Brandt <[EMAIL PROTECTED]>
Date: Fri Aug 15 16:58:43 2008 -0700
added man page for moblin-system-tool
Diff in this email is a maximum of 400 lines.
diff --git a/moblin-system-daemon/Makefile.am b/moblin-system-daemon/Makefile.am
index 961f9ed..6ba7ab1 100644
--- a/moblin-system-daemon/Makefile.am
+++ b/moblin-system-daemon/Makefile.am
@@ -17,6 +17,7 @@ moblin_system_daemon_LDADD = \
$(MOBLIN_SYSTEM_DAEMON_LIBS)
dbus_xmlfiles = dbus-header.xml
+sgml_manfiles = moblin-system-tool-header.sgml
if HAVE_DATETIME
SUBDIRS += datetime
@@ -27,6 +28,8 @@ moblin_system_daemon_LDADD += \
datetime/libdatetime.la
dbus_xmlfiles += \
datetime/datetime.xml
+sgml_manfiles += \
+ datetime/datetime.sgml
endif
if HAVE_TOUCHSCREEN
@@ -38,6 +41,8 @@ moblin_system_daemon_LDADD += \
touchscreen/libtouchscreen.la
dbus_xmlfiles += \
touchscreen/touchscreen.xml
+sgml_manfiles += \
+ touchscreen/touchscreen.sgml
endif
if HAVE_BATTERY
@@ -49,31 +54,38 @@ moblin_system_daemon_LDADD += \
battery/libbattery.la
dbus_xmlfiles += \
battery/battery.xml
+sgml_manfiles += \
+ battery/battery.sgml
endif
if HAVE_LCDBACKLIGHT
SUBDIRS += lcdbacklight
DIST_SUBDIRS += lcdbacklight
INCLUDES += \
- -Ilcdbacklight
+ -Ilcdbacklight
moblin_system_daemon_LDADD += \
- lcdbacklight/liblcdbacklight.la
+ lcdbacklight/liblcdbacklight.la
dbus_xmlfiles += \
- lcdbacklight/lcdbacklight.xml
+ lcdbacklight/lcdbacklight.xml
+sgml_manfiles += \
+ lcdbacklight/lcdbacklight.sgml
endif
if HAVE_SOUND
SUBDIRS += sound
DIST_SUBDIRS += sound
INCLUDES += \
- -Isound
+ -Isound
moblin_system_daemon_LDADD += \
- sound/libsound.la
+ sound/libsound.la
dbus_xmlfiles += \
- sound/sound.xml
+ sound/sound.xml
+sgml_manfiles += \
+ sound/sound.sgml
endif
dbus_xmlfiles += dbus-footer.xml
+sgml_manfiles += moblin-system-tool-footer.sgml
BUILT_SOURCES=moblin-system-server.h \
moblin-system-client.h \
@@ -95,6 +107,14 @@ moblin-system-marshal.h: moblin-system-marshal.list
msd-infos.xml: $(dbus_xmlfiles)
cat $(dbus_xmlfiles) > $@
+man1_MANS = moblin-system-tool.1
+
+moblin-system-tool.1: moblin-system-tool.sgml
+ docbook2man $<
+
+moblin-system-tool.sgml: $(sgml_manfiles)
+ cat $(sgml_manfiles) > $@
+
#Rule to generate the binding headers
moblin-system-server.h: msd-infos.xml
dbus-binding-tool --prefix=system_daemon --mode=glib-server $< > $@
diff --git a/moblin-system-daemon/battery/battery.sgml
b/moblin-system-daemon/battery/battery.sgml
new file mode 100644
index 0000000..a010dc9
--- /dev/null
+++ b/moblin-system-daemon/battery/battery.sgml
@@ -0,0 +1,6 @@
+ <para>Battery</para>
+ <itemizedlist>
+ <listitem>
+ <para><command>get_battery_status</command> : Get the current
battery status</para>
+ </listitem>
+ </itemizedlist>
diff --git a/moblin-system-daemon/datetime/datetime.sgml
b/moblin-system-daemon/datetime/datetime.sgml
new file mode 100644
index 0000000..e3d9fad
--- /dev/null
+++ b/moblin-system-daemon/datetime/datetime.sgml
@@ -0,0 +1,52 @@
+ <para>Date & Time Functions</para>
+ <itemizedlist>
+ <listitem>
+ <para><command>set_time</command> <MM/DD/YYYY_hh:mm:ss> :
Set the local system time</para>
+ <itemizedlist>
+ <listitem>
+ <para>MM: "month" 2-digit integer (1 based month value,
e.g. 01 is January)</para>
+ </listitem>
+ <listitem>
+ <para>DD: "day" 2-digit integer (1 based day value, e.g.
01 is the 1st)</para>
+ </listitem>
+ <listitem>
+ <para>YYYY: "year" 4-digit integer (1 based year value,
e.g. 2008)</para>
+ </listitem>
+ <listitem>
+ <para>hh: "hour" 2-digit integer (0 based 24-hour value,
e.g. 0 is midnight)</para>
+ </listitem>
+ <listitem>
+ <para>mm: "minute" 2-digit integer (0 based minute value,
e.g. 5 is 5 after)</para>
+ </listitem>
+ <listitem>
+ <para>ss: "second" 2-digit integer (0 based second value,
e.g. 0 is at minute start)</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para><command>get_time</command> : Get the local system
time</para>
+ </listitem>
+ <listitem>
+ <para><command>set_timezone <region/zone></command> : Set
the time zone</para>
+ <itemizedlist>
+ <listitem>
+ <para>region/zone: "timezone" in quotes e.g. "America/Los
Angeles"</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para><command>get_timezone</command> : Get the current time
zone</para>
+ </listitem>
+ <listitem>
+ <para><command>get_all_timezones</command> <columns> : Get
all the available timezone
+ data from the /usr/share/zoneinfo/zone.tab file. Each
timezone
+ data line has four columns, each selected with a bit in the
mask: bit3=code, bit2=coordinates,
+ bit1=timezone, bit0=comments. The default selection is just
bit1, or the number 2 (0b0010. The
+ number 15 (0b1111) returns all four columns.</para>
+ <itemizedlist>
+ <listitem>
+ <para>columns: "column bitmask" integer value 0-15</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ </itemizedlist>
diff --git a/moblin-system-daemon/lcdbacklight/lcdbacklight.sgml
b/moblin-system-daemon/lcdbacklight/lcdbacklight.sgml
new file mode 100644
index 0000000..c9f24ab
--- /dev/null
+++ b/moblin-system-daemon/lcdbacklight/lcdbacklight.sgml
@@ -0,0 +1,17 @@
+ <para>LCD Backlight</para>
+ <itemizedlist>
+ <listitem>
+ <para><command>get_lcdbacklight_numlevels</command> : Get the
number of discrete brightness levels (N)</para>
+ </listitem>
+ <listitem>
+ <para><command>get_lcdbacklight_brightness</command> : Get the
current brightness level (0 to N-1)</para>
+ </listitem>
+ <listitem>
+ <para><command>set_lcdbacklight_brightness</command> <level>
: Set the brightness level</para>
+ <itemizedlist>
+ <listitem>
+ <para>level: "brightness level" level to set, 0 to
N-1</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ </itemizedlist>
diff --git a/moblin-system-daemon/moblin-system-tool-footer.sgml
b/moblin-system-daemon/moblin-system-tool-footer.sgml
new file mode 100644
index 0000000..e5955e3
--- /dev/null
+++ b/moblin-system-daemon/moblin-system-tool-footer.sgml
@@ -0,0 +1,32 @@
+
+ </refsect1>
+ <refsect1>
+ <title>AUTHOR</title>
+
+ <para> This manual page was written by &dhusername; &dhemail;. Permission
is granted to copy,
+ distribute and/or modify this document under the terms of the GNU
General Public License,
+ Version 2 published by the Free Software Foundation. </para>
+ </refsect1>
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+ <para>moblin-applets - control panel applet launcher
+ moblin-settings-daemon - moblin system daemon
+ network-customize - nm-applet manual configuration launcher
+ </para>
+
+-->
diff --git a/moblin-system-daemon/moblin-system-tool-header.sgml
b/moblin-system-daemon/moblin-system-tool-header.sgml
new file mode 100644
index 0000000..8809e61
--- /dev/null
+++ b/moblin-system-daemon/moblin-system-tool-header.sgml
@@ -0,0 +1,54 @@
+<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+
+ <!ENTITY dhfirstname "<firstname>Todd</firstname>">
+ <!ENTITY dhsurname "<surname>Brandt</surname>">
+ <!ENTITY dhdate "<date>Aug 15, 2008</date>">
+ <!ENTITY dhsection "<manvolnum>1</manvolnum>">
+ <!ENTITY dhemail "<email>[EMAIL PROTECTED]</email>">
+ <!ENTITY dhusername "Todd Brandt">
+ <!ENTITY dhucpackage "<refentrytitle>moblin-system-tool</refentrytitle>">
+ <!ENTITY dhpackage "moblin-settings">
+
+ <!ENTITY gnu "<acronym>GNU</acronym>">
+ <!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+ <refentryinfo>
+ <address>
+ &dhemail;
+ </address>
+ <author>
+ &dhfirstname;
+ &dhsurname;
+ </author>
+ <copyright>
+ <year>2008</year>
+ <holder>&dhusername;</holder>
+ </copyright>
+ &dhdate;
+ </refentryinfo>
+ <refmeta>
+ &dhucpackage;
+
+ &dhsection;
+ </refmeta>
+ <refnamediv>
+ <refname>moblin-system-tool</refname>
+ <refpurpose>console interface to moblin-system-daemon DBUS API
functions</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <cmdsynopsis>
+ <command>moblin-system-tool</command>
+ <arg>FUNCTION</arg>
+ <arg><ARGS></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+ <refsect1>
+ <title>DESCRIPTION</title>
+
+ <para><command>moblin-system-tool</command>: This is a command line tool
which accesses the
+ moblin-system-daemon's DBUS API interface. The command line
arguments given to the tool are the
+ same as to the DBUS functions themselves. The results are printed to
stdout. The following
+ is the list of available functions:</para>
+
diff --git a/moblin-system-daemon/sound/sound.sgml
b/moblin-system-daemon/sound/sound.sgml
new file mode 100644
index 0000000..7d634a9
--- /dev/null
+++ b/moblin-system-daemon/sound/sound.sgml
@@ -0,0 +1,151 @@
+ <para>Sound Volume</para>
+ <itemizedlist>
+ <listitem>
+ <para><command>sound_num_elements</command> : Get element count
(E), e.g. Master + Wave + Mic = 3</para>
+ </listitem>
+ <listitem>
+ <para><command>sound_num_channels</command> <element> : Get
num channels in element (C), e.g. Left + Right = 2</para>
+ <itemizedlist>
+ <listitem>
+ <para>element: "element id" element id, 0 to E-1</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para><command>sound_element_name</command> : get element name,
e.g. "Master", "Wave", "Mic"</para>
+ <itemizedlist>
+ <listitem>
+ <para>element: "element id" element id, 0 to E-1</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para><command>sound_channel_name</command> : get channel name,
e.g. "Left", "Right"</para>
+ <itemizedlist>
+ <listitem>
+ <para>element: "element id" element id, 0 to E-1</para>
+ </listitem>
+ <listitem>
+ <para>channel: "channel id" channel id, 0 to C-1</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para><command>sound_volume_range</command> : get element volume
range</para>
+ <itemizedlist>
+ <listitem>
+ <para>element: "element id" element id, 0 to E-1</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para><command>sound_get_volume</command> : get volume for
element/channel</para>
+ <itemizedlist>
+ <listitem>
+ <para>element: "element id" element id, 0 to E-1</para>
+ </listitem>
+ <listitem>
+ <para>channel: "channel id" channel id, 0 to C-1</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para><command>sound_set_volume</command> : set volume for
element/channel</para>
+ <itemizedlist>
+ <listitem>
+ <para>element: "element id" element id, 0 to E-1</para>
+ </listitem>
+ <listitem>
+ <para>channel: "channel id" channel id, 0 to C-1</para>
+ </listitem>
+ <listitem>
+ <para> volume: "new volume" new volume level</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para><command>sound_set_element_volume</command> : set volume for
all channels in element</para>
+ <itemizedlist>
+ <listitem>
+ <para>element: "element id" element id, 0 to E-1</para>
+ </listitem>
+ <listitem>
+ <para> volume: "new volume" new volume level</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para><command>sound_get_mute</command> : get mute for
element/channel</para>
+ <itemizedlist>
+ <listitem>
+ <para>element: "element id" element id, 0 to E-1</para>
+ </listitem>
+ <listitem>
+ <para>channel: "channel id" channel id, 0 to C-1</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para><command>sound_set_mute</command> : set mute for
element/channel</para>
+ <itemizedlist>
+ <listitem>
+ <para>element: "element id" element id, 0 to E-1</para>
+ </listitem>
+ <listitem>
+ <para>channel: "channel id" channel id, 0 to C-1</para>
+ </listitem>
+ <listitem>
+ <para> mute: "new mute" new mute value, off/on</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para><command>sound_set_element_mute</command> : set mute for all
channels in element</para>
+ <itemizedlist>
+ <listitem>
+ <para>element: "element id" element id, 0 to E-1</para>
+ </listitem>
+ <listitem>
+ <para> mute: "new mute" new mute value, off/on</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
_______________________________________________
Commits mailing list
[email protected]
https://www.moblin.org/mailman/listinfo/commits