summaryrefslogtreecommitdiff
path: root/recipes
diff options
context:
space:
mode:
authorKlaus Kurzmann <mok@fluxnetz.de>2010-01-08 23:32:26 +0100
committerKlaus Kurzmann <mok@fluxnetz.de>2010-01-08 23:36:18 +0100
commit6af085bc2658693a90299c7a4bf5026a7b8fd43d (patch)
tree49dbf61ab5cc0a38fead0e2c59e109d3d737b58c /recipes
parentdecb589caaf190e3a6f98db2193117dbcf349a6b (diff)
fsodeviced: add a general config file and one for om-gta02 machine
Signed-off-by: Klaus Kurzmann <mok@fluxnetz.de>
Diffstat (limited to 'recipes')
-rw-r--r--recipes/freesmartphone/fsodeviced/fsodeviced.conf83
-rw-r--r--recipes/freesmartphone/fsodeviced/om-gta02/fsodeviced.conf90
-rw-r--r--recipes/freesmartphone/fsodeviced_git.bb11
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 0000000000..4e72778415
--- /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 0000000000..e9ff0c5896
--- /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 2516c89aff..69c948f733 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 \
+"