[oe-commits] Klaus Kurzmann : fsodeviced: add a general config file and one for om-gta02 machine

git version control git at git.openembedded.org
Fri Jan 8 22:36:28 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 6af085bc2658693a90299c7a4bf5026a7b8fd43d
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=6af085bc2658693a90299c7a4bf5026a7b8fd43d

Author: Klaus Kurzmann <mok at fluxnetz.de>
Date:   Fri Jan  8 23:32:26 2010 +0100

fsodeviced: add a general config file and one for om-gta02 machine

Signed-off-by: Klaus Kurzmann <mok at fluxnetz.de>

---

 recipes/freesmartphone/fsodeviced/fsodeviced.conf  |   83 ++++++++++++++++++
 .../fsodeviced/om-gta02/fsodeviced.conf            |   90 ++++++++++++++++++++
 recipes/freesmartphone/fsodeviced_git.bb           |   11 ++-
 3 files changed, 181 insertions(+), 3 deletions(-)

diff --git a/recipes/freesmartphone/fsodeviced/fsodeviced.conf b/recipes/freesmartphone/fsodeviced/fsodeviced.conf
new file mode 100644
index 0000000..4e72778
--- /dev/null
+++ b/recipes/freesmartphone/fsodeviced/fsodeviced.conf
@@ -0,0 +1,83 @@
+#######################################################################################
+# FSO Device Daemon Configuration File -- for SYSTEM INTEGRATORS only
+########################################################################################
+[logging]
+# Log level: DEBUG, INFO (default), WARNING, ERROR
+# Override via environment as FSO_LOG_LEVEL
+log_level = DEBUG
+# Where to log to: none (default), stderr, stderr:colors, file, syslog
+# Override via environment as FSO_LOG_TO
+log_to = stderr:colors
+# Log Destination (valid only for log_to = file)
+# Override via environment as FSO_LOG_DESTINATION
+log_destination = /var/log/fsodeviced.log
+
+[fsodevice]
+# No settings yet
+
+[fsodevice.accelerometer]
+# Which accelerometer variant plugin to use: none (default), lis302
+device_type = lis302
+
+[fsodevice.accelerometer_lis302]
+# Which input node to read from
+inputnode = /input/event2
+# How many samples to process, when in use
+sample_rate = 100
+# Threshhold to program, when in use
+threshold = 100
+# Scale to program, when in use
+full_scale = 2.3
+
+[fsodevice.player_alsa]
+# No settings yet
+
+[fsodevice.player_canberra]
+# No settings yet
+
+[fsodevice.player_gstreamer]
+# No settings yet
+
+[fsodevice.alsa_audio]
+# Which Audio Player variant plugin to use: none (default), alsa, canberra, gstreamer
+player_type = alsa
+
+[fsodevice.kernel26_display]
+# No settings yet
+
+[fsodevice.kernel26_leds]
+# No settings yet
+
+[fsodevice.kernel26_powersupply]
+# No settings yet
+
+[fsodevice.kernel26_rfkill]
+# No settings yet
+
+[fsodevice.kernel26_rtc]
+# No settings yet
+
+[fsodevice.kernel_info]
+# No settings yet
+
+[fsodevice.kernel_input]
+# Which input objects to ignore (by product id substring)
+#ignore_by_id = Microsoft;Macintosh
+# Which input objects to ignore (by physical path substring)
+#ignore_by_path = usb
+# Which buttons/switches to report.
+# Format: <name>,<type>,<keycode>,<report hold events as well>
+#report1 = AUX,key,169,1
+#report4 = HEADSET,switch,2,0
+
+[fsodevice.kernel_idle]
+# Which input objects to ignore (by product id substring)
+#ignore_by_id = Microsoft;Macintosh
+# Which input objects to ignore (by physical path substring)
+#ignore_by_path = usb
+
+# Enable this on openmoko devices
+#[fsodevice.powercontrol_openmoko]
+
+# Enable this on thinkpad devices
+#[fsodevice.powercontrol.thinkpad]
diff --git a/recipes/freesmartphone/fsodeviced/om-gta02/fsodeviced.conf b/recipes/freesmartphone/fsodeviced/om-gta02/fsodeviced.conf
new file mode 100644
index 0000000..e9ff0c5
--- /dev/null
+++ b/recipes/freesmartphone/fsodeviced/om-gta02/fsodeviced.conf
@@ -0,0 +1,90 @@
+#######################################################################################
+# FSO Device Daemon Configuration File -- for SYSTEM INTEGRATORS only
+########################################################################################
+[logging]
+# Log level: DEBUG, INFO (default), WARNING, ERROR
+# Override via environment as FSO_LOG_LEVEL
+log_level = INFO
+# Where to log to: none (default), stderr, stderr:colors, file, syslog
+# Override via environment as FSO_LOG_TO
+log_to = file
+# Log Destination (valid only for log_to = file)
+# Override via environment as FSO_LOG_DESTINATION
+log_destination = /var/log/fsodeviced.log
+
+[fsodevice]
+# No settings yet
+
+[fsodevice.accelerometer_lis302]
+# Which input node to read from
+inputnode = /input/event2
+# How many samples to process, when in use
+sample_rate = 100
+# Threshhold to program, when in use
+threshold = 100
+# Scale to program, when in use
+full_scale = 2.3
+
+[fsodevice.accelerometer]
+# Which accelerometer variant plugin to use: none (default), lis302
+device_type = lis302
+
+[fsodevice.player_alsa]
+# No settings yet
+
+[fsodevice.player_canberra]
+# No settings yet
+
+[fsodevice.player_gstreamer]
+# No settings yet
+
+[fsodevice.alsa_audio]
+# Which Audio Player variant plugin to use: none (default), alsa, canberra, gstreamer
+player_type = alsa
+
+[fsodevice.kernel26_display]
+# No settings yet
+
+[fsodevice.kernel26_leds]
+# No settings yet
+
+[fsodevice.kernel26_powersupply]
+# No settings yet
+
+[fsodevice.kernel26_rfkill]
+# No settings yet
+
+[fsodevice.kernel26_rtc]
+# No settings yet
+
+[fsodevice.kernel_info]
+# No settings yet
+
+[fsodevice.kernel_input]
+# Which input objects to ignore (by product id substring)
+ignore_by_id = lis302
+# Which input objects to ignore (by physical path substring)
+#ignore_by_path = usb
+# Which buttons/switches to report.
+# Format: <name>,<type>,<keycode>,<report hold events as well>
+report4 = HEADSET,switch,2,0
+report1 = AUX,key,169,1
+report3 = USB,key,356,0
+report2 = POWER,key,116,1
+
+[fsodevice.kernel_idle]
+# Which input objects to ignore (by product id substring)
+ignore_by_id = lis302
+# Which input objects to ignore (by physical path substring)
+#ignore_by_path = usb
+idle = 5
+idle_dim = 15
+idle_prelock = 9
+idle_lock = 1
+suspend = 30
+
+# Enable this on openmoko devices
+#[fsodevice.powercontrol_openmoko]
+
+# Enable this on thinkpad devices
+#[fsodevice.powercontrol.thinkpad]
diff --git a/recipes/freesmartphone/fsodeviced_git.bb b/recipes/freesmartphone/fsodeviced_git.bb
index 2516c89..69c948f 100644
--- a/recipes/freesmartphone/fsodeviced_git.bb
+++ b/recipes/freesmartphone/fsodeviced_git.bb
@@ -6,7 +6,7 @@ RDEPENDS += "libcanberra-alsa"
 RRECOMMENDS += "fso-alsa-data"
 PV = "0.9.0+gitr${SRCREV}"
 PE = "1"
-PR = "${INC_PR}.6"
+PR = "${INC_PR}.7"
 
 EXTRA_OECONF = "\
   --enable-kernel26-rfkill \
@@ -18,11 +18,16 @@ inherit update-rc.d
 INITSCRIPT_NAME = "fsodeviced"
 INITSCRIPT_PARAMS = "defaults 27"
 
-SRC_URI += "file://fsodeviced"
+SRC_URI += "file://fsodeviced file://fsodeviced.conf"
 
 do_install_append() {
 	install -d ${D}${sysconfdir}/init.d/
 	install -m 0755 ${WORKDIR}/fsodeviced ${D}${sysconfdir}/init.d/
+	install -d ${D}${sysconfdir}/freesmartphone/
+	install -m 0644 ${WORKDIR}/fsodeviced.conf ${D}${sysconfdir}/freesmartphone/
 }
 
-FILES_${PN} += "${sysconfdir}/init.d/fsodeviced"
+FILES_${PN} += "
+	${sysconfdir}/init.d/fsodeviced \
+	${sysconfdir}/freesmartphone/fsodeviced.conf \
+"





More information about the Openembedded-commits mailing list