Petr Vanek | 1 Feb 12:40 2011
Picon

Re: [Community Updates] 2011-02-01 issue is out!

On Mon, 31 Jan 2011 19:23:20 +0200
Timo Jyrinki <timo.jyrinki@...>
(TJ) wrote:

>Newest community update now available at
>http://wiki.openmoko.org/wiki/Community_Updates/2011-02-01 and plain

Thank you very much!

Petr

urodelo | 1 Feb 13:01 2011
Picon

Re: [Community Updates] 2011-02-01 issue is out!

As usual, thanks a lot

On Mon, 31 Jan 2011 18:23:20 +0100, Timo Jyrinki  
<timo.jyrinki <at> gmail.com> wrote:

> Newest community update now available at
> http://wiki.openmoko.org/wiki/Community_Updates/2011-02-01 and plain
> text version below.
>
> This issue was brought to you by:
>
> - Toams
> - Hns
> - PaulWise
> - Ssam
> - TimoJyrinki
>
> ( as usual, you can help out with the next issue at
> http://wiki.openmoko.org/wiki/Community_Updates/Draft_2011-03-01 )
>
> Remember that when the date for the next issue arrives, feel free to
> do this publishing and wrapping up instead of me.
>
> -----
>
> Period 2010-12-01 to 2011-01-31
>
>
>
> *** Hardware ***
(Continue reading)

Rico Rommel | 2 Feb 18:02 2011
Picon

[solved] Re: phoneuid crashes

It was my fault. libphone-ui was on branch gdbus. After checking out master 
und recompile everything works.

Rico
_______________________________________________
Smartphones-userland mailing list
Smartphones-userland <at> linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland
Peter van de Werken | 11 Feb 20:20 2011
Picon

[PATCH 05/11] fsodeviced: accelerometer_lis302: add sysfs path to config

The path to the sysfsnode can now be changed from the config file.

Signed-off-by: Peter van de Werken <pwerken-fso <at> a-eskwadraat.nl>
---
 fsodeviced/conf/openmoko_gta/fsodeviced.conf       |    1 +
 .../src/plugins/accelerometer_lis302/plugin.vala   |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/fsodeviced/conf/openmoko_gta/fsodeviced.conf b/fsodeviced/conf/openmoko_gta/fsodeviced.conf
index bf2143f..d04570f 100644
--- a/fsodeviced/conf/openmoko_gta/fsodeviced.conf
+++ b/fsodeviced/conf/openmoko_gta/fsodeviced.conf
 <at>  <at>  -11,6 +11,7  <at>  <at>  log_destination = /var/log/fsodeviced.log

 [fsodevice.accelerometer_lis302]
 inputnode = /input/event4
+sysfsnode = /bus/spi/devices/spi3.0/
 sample_rate = 100
 threshold = 54
 full_scale = 2.3
diff --git a/fsodeviced/src/plugins/accelerometer_lis302/plugin.vala b/fsodeviced/src/plugins/accelerometer_lis302/plugin.vala
index 52b57d1..85fde89 100644
--- a/fsodeviced/src/plugins/accelerometer_lis302/plugin.vala
+++ b/fsodeviced/src/plugins/accelerometer_lis302/plugin.vala
 <at>  <at>  -51,7 +51,7  <at>  <at>  class AccelerometerLis302 : FsoDevice.BaseAccelerometer
         var sysfs_root = config.stringValue( "cornucopia", "sysfs_root", "/sys" );
         var devfs_root = config.stringValue( "cornucopia", "devfs_root", "/dev" );
         inputnode = devfs_root + config.stringValue( PLUGIN_NAME, "inputnode", DEFAULT_EVENT_NODE );
-        sysfsnode = sysfs_root + LIS302_CONFIGURATION_NODE;
+        sysfsnode = sysfs_root + config.stringValue( PLUGIN_NAME, "sysfsnode", LIS302_CONFIGURATION_NODE );
(Continue reading)

Peter van de Werken | 11 Feb 20:20 2011
Picon

[PATCH 06/11] fsodeviced: accelerometer_lis302: enable full_scale config variable

Add the needed code to use the full_scale config variable.

Signed-off-by: Peter van de Werken <pwerken-fso <at> a-eskwadraat.nl>
---
 .../src/plugins/accelerometer_lis302/plugin.vala   |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/fsodeviced/src/plugins/accelerometer_lis302/plugin.vala b/fsodeviced/src/plugins/accelerometer_lis302/plugin.vala
index 85fde89..0fc60ef 100644
--- a/fsodeviced/src/plugins/accelerometer_lis302/plugin.vala
+++ b/fsodeviced/src/plugins/accelerometer_lis302/plugin.vala
 <at>  <at>  -27,6 +27,7  <at>  <at>  namespace Hardware {

     internal const int LIS302_DEFAULT_SAMPLERATE = 100;
     internal const int LIS302_DEFAULT_THRESHOLD = 54;
+    internal const string LIS302_DEFAULT_FULLSCALE = "2.3";

 class AccelerometerLis302 : FsoDevice.BaseAccelerometer
 {
 <at>  <at>  -35,6 +36,7  <at>  <at>  class AccelerometerLis302 : FsoDevice.BaseAccelerometer

     private uint sample_rate;
     private uint threshold;
+    private string full_scale;

     internal int fd = -1;
     private IOChannel channel;
 <at>  <at>  -54,6 +56,8  <at>  <at>  class AccelerometerLis302 : FsoDevice.BaseAccelerometer
         sysfsnode = sysfs_root + config.stringValue( PLUGIN_NAME, "sysfsnode", LIS302_CONFIGURATION_NODE );
         sample_rate = config.intValue( PLUGIN_NAME, "sample_rate", LIS302_DEFAULT_SAMPLERATE );
(Continue reading)

Peter van de Werken | 11 Feb 20:21 2011
Picon

[PATCH 07/11] fsodeviced: accelerometer_lis302: add duration sysfsnode

Set the delay (in ms) between events the lis302dl kernel module generates.
With this can control the amount of cpu fsodeviced uses when the accelerometer
is enabled/generating events.

Signed-off-by: Peter van de Werken <pwerken-fso <at> a-eskwadraat.nl>
---
 fsodeviced/conf/openmoko_gta/fsodeviced.conf       |    1 +
 .../src/plugins/accelerometer_lis302/plugin.vala   |    4 ++++
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/fsodeviced/conf/openmoko_gta/fsodeviced.conf b/fsodeviced/conf/openmoko_gta/fsodeviced.conf
index d04570f..5d1ac8c 100644
--- a/fsodeviced/conf/openmoko_gta/fsodeviced.conf
+++ b/fsodeviced/conf/openmoko_gta/fsodeviced.conf
 <at>  <at>  -12,6 +12,7  <at>  <at>  log_destination = /var/log/fsodeviced.log
 [fsodevice.accelerometer_lis302]
 inputnode = /input/event4
 sysfsnode = /bus/spi/devices/spi3.0/
+duration = 200
 sample_rate = 100
 threshold = 54
 full_scale = 2.3
diff --git a/fsodeviced/src/plugins/accelerometer_lis302/plugin.vala b/fsodeviced/src/plugins/accelerometer_lis302/plugin.vala
index 0fc60ef..1f2aa4c 100644
--- a/fsodeviced/src/plugins/accelerometer_lis302/plugin.vala
+++ b/fsodeviced/src/plugins/accelerometer_lis302/plugin.vala
 <at>  <at>  -25,6 +25,7  <at>  <at>  namespace Hardware {
     internal const string DEFAULT_EVENT_NODE = "/input/event4";
     internal const string LIS302_CONFIGURATION_NODE = "/bus/spi/devices/spi3.0/";

(Continue reading)

Peter van de Werken | 11 Feb 20:21 2011
Picon

[PATCH 08/11] fsodeviced: accelerometer: always set orientation

fsodeviced would fail on an assert when the dbus methode GetOrientation is
called before the plugin has been enabled atleast once.

Signed-off-by: Peter van de Werken <pwerken-fso <at> a-eskwadraat.nl>
---
 fsodeviced/src/plugins/accelerometer/plugin.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fsodeviced/src/plugins/accelerometer/plugin.vala b/fsodeviced/src/plugins/accelerometer/plugin.vala
index 30d7dad..961f7ab 100644
--- a/fsodeviced/src/plugins/accelerometer/plugin.vala
+++ b/fsodeviced/src/plugins/accelerometer/plugin.vala
 <at>  <at>  -61,6 +61,7  <at>  <at>  class Accelerometer : FreeSmartphone.Device.Orientation,
         this.subsystem = subsystem;
         subsystem.registerObjectForService<FreeSmartphone.Info>(
FsoFramework.Device.ServiceDBusName, FsoFramework.Device.OrientationServicePath, this );
         subsystem.registerObjectForService<FreeSmartphone.Device.Orientation>(
FsoFramework.Device.ServiceDBusName, FsoFramework.Device.OrientationServicePath, this );
+        generateOrientationSignal( Ternary.UNKNOWN, Ternary.UNKNOWN, Ternary.UNKNOWN, Ternary.UNKNOWN );
         logger.info( "Created new Orientation object." );
     }

--

-- 
1.7
Peter van de Werken | 11 Feb 20:21 2011
Picon

[PATCH 09/11] fsodeviced: accelerometer_lis302: remove the 1 sec timeout

Remove the one second timeout.  Every time there was an input event the
timeout got reset, i.e. no accelerometer data was passed on until the
the device was perfectly still for more than a second.

Signed-off-by: Peter van de Werken <pwerken-fso <at> a-eskwadraat.nl>
---
 .../src/plugins/accelerometer_lis302/plugin.vala   |   16 +---------------
 1 files changed, 1 insertions(+), 15 deletions(-)

diff --git a/fsodeviced/src/plugins/accelerometer_lis302/plugin.vala b/fsodeviced/src/plugins/accelerometer_lis302/plugin.vala
index 1f2aa4c..16538c2 100644
--- a/fsodeviced/src/plugins/accelerometer_lis302/plugin.vala
+++ b/fsodeviced/src/plugins/accelerometer_lis302/plugin.vala
 <at>  <at>  -45,9 +45,6  <at>  <at>  class AccelerometerLis302 : FsoDevice.BaseAccelerometer
     private uint watch;
     private int[] axis;

-    private uint timeout;
-
-
     construct
     {
         logger.info( "Registering lis302 accelerometer" );
 <at>  <at>  -107,13 +104,6  <at>  <at>  class AccelerometerLis302 : FsoDevice.BaseAccelerometer
         fd = -1;
     }

-    private bool onTimeout()
-    {
-        this.accelerate( axis[0], axis[1], axis[2] ); // GOBJECT SIGNAL
(Continue reading)

Peter van de Werken | 11 Feb 20:21 2011
Picon

[PATCH 10/11] fsodeviced: accelerometer: reimplement orientation

Axis orientation is assumed to be that as of the freerunners top
accelerometer.  The configurable variable deadzone is used to provide a range
in which the orientation is not changed.  This removes the jittering between
orientations when one of the axis is near its zero value.

Signed-off-by: Peter van de Werken <pwerken-fso <at> a-eskwadraat.nl>
---
 fsodeviced/conf/openmoko_gta/fsodeviced.conf     |    1 +
 fsodeviced/src/plugins/accelerometer/plugin.vala |   80 ++++++++++------------
 2 files changed, 37 insertions(+), 44 deletions(-)

diff --git a/fsodeviced/conf/openmoko_gta/fsodeviced.conf b/fsodeviced/conf/openmoko_gta/fsodeviced.conf
index 5d1ac8c..7e5aa3c 100644
--- a/fsodeviced/conf/openmoko_gta/fsodeviced.conf
+++ b/fsodeviced/conf/openmoko_gta/fsodeviced.conf
 <at>  <at>  -19,6 +19,7  <at>  <at>  full_scale = 2.3

 [fsodevice.accelerometer]
 device_type = lis302
+deadzone = 180

 [fsodevice.kernel26_display]
 smooth = down
diff --git a/fsodeviced/src/plugins/accelerometer/plugin.vala b/fsodeviced/src/plugins/accelerometer/plugin.vala
index 961f7ab..942f328 100644
--- a/fsodeviced/src/plugins/accelerometer/plugin.vala
+++ b/fsodeviced/src/plugins/accelerometer/plugin.vala
 <at>  <at>  -23,8 +23,7  <at>  <at>  namespace Hardware
 {
     internal const string HW_ACCEL_PLUGIN_NAME = "fsodevice.accelerometer";
(Continue reading)

Peter van de Werken | 11 Feb 20:20 2011
Picon

[PATCH 03/11] fsodeviced: remove unused accelerometer code


Signed-off-by: Peter van de Werken <pwerken-fso <at> a-eskwadraat.nl>
---
 fsodeviced/src/plugins/accelerometer/plugin.vala   |   63 --------------------
 .../src/plugins/accelerometer_lis302/plugin.vala   |   12 ----
 2 files changed, 0 insertions(+), 75 deletions(-)

diff --git a/fsodeviced/src/plugins/accelerometer/plugin.vala b/fsodeviced/src/plugins/accelerometer/plugin.vala
index d727f0f..30d7dad 100644
--- a/fsodeviced/src/plugins/accelerometer/plugin.vala
+++ b/fsodeviced/src/plugins/accelerometer/plugin.vala
 <at>  <at>  -21,27 +21,11  <at>  <at>  using GLib;

 namespace Hardware
 {
-    internal char[] buffer;
-    internal const uint BUFFER_SIZE = 512;
-
     internal const string HW_ACCEL_PLUGIN_NAME = "fsodevice.accelerometer";

-    internal const int kHistorySize = 150;
-    internal const float kFilteringFactor = 0.1f;
-
-    internal const int MOVEMENT_IDLE_THRESHOLD = 20;
-    internal const int MOVEMENT_BUSY_THRESHOLD = 50;
-
     internal const int FLAT_SURFACE_Z_MIDDLE = 1000;
     internal const int FLAT_SURFACE_Z_RADIUS = 100;

-    internal struct AccelerometerValue
(Continue reading)


Gmane