Rico Rommel | 2 Feb 2011 18:02
Picon
Favicon

[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 2011 20:20
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 2011 20:20
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 2011 20:21
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 2011 20:21
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 2011 20:21
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 2011 20:21
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 2011 20:20
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)

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

[PATCH 02/11] fsodeviced: lib/alsa: fix segfault

Need to investigate how/why first_elem returns NULL, but for now this stops
fsodeviced from segfaulting when the GetVolume or SetVolume dbus method is
called.

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

diff --git a/fsodeviced/src/lib/alsa.vala b/fsodeviced/src/lib/alsa.vala
index 60e9ad5..4c73767 100644
--- a/fsodeviced/src/lib/alsa.vala
+++ b/fsodeviced/src/lib/alsa.vala
 <at>  <at>  -272,6 +272,11  <at>  <at>  public class FsoDevice.SoundDevice : FsoFramework.AbstractObject
         mix.load();

         Alsa.MixerElement mel = mix.first_elem();
+        if( mel == null )
+        {
+            warning( "mix.first_elem() returned NULL" );
+            return 0;
+        }
         while ( id-- > 0 )
         {
             mel = mel.next();
 <at>  <at>  -300,6 +305,11  <at>  <at>  public class FsoDevice.SoundDevice : FsoFramework.AbstractObject
         mix.load();

         Alsa.MixerElement mel = mix.first_elem();
+        if( mel == null )
(Continue reading)

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

[PATCH 01/11] fsodeviced: include the .vala files with make dist

Even though valac is not required when building from a dist-tarball,
make does require the .vala files to be present.

Signed-off-by: Peter van de Werken <pwerken-fso <at> a-eskwadraat.nl>
---
 fsodeviced/src/plugins/accelerometer/Makefile.am   |    4 ++++
 .../src/plugins/accelerometer_kxsd9/Makefile.am    |    4 ++++
 .../src/plugins/accelerometer_lis302/Makefile.am   |    4 ++++
 .../src/plugins/ambientlight_n900/Makefile.am      |    4 ++++
 .../src/plugins/ambientlight_palmpre/Makefile.am   |    4 ++++
 fsodeviced/src/plugins/audio/Makefile.am           |    4 ++++
 .../src/plugins/backlight_omappanel/Makefile.am    |    4 ++++
 fsodeviced/src/plugins/dummy_input/Makefile.am     |    4 ++++
 fsodeviced/src/plugins/gpio_input/Makefile.am      |    4 ++++
 .../src/plugins/kernel26_cpufreq/Makefile.am       |    4 ++++
 .../src/plugins/kernel26_display/Makefile.am       |    4 ++++
 .../plugins/kernel26_firmwareloader/Makefile.am    |    4 ++++
 fsodeviced/src/plugins/kernel26_leds/Makefile.am   |    4 ++++
 .../src/plugins/kernel26_powersupply/Makefile.am   |    4 ++++
 fsodeviced/src/plugins/kernel26_rfkill/Makefile.am |    4 ++++
 fsodeviced/src/plugins/kernel26_rtc/Makefile.am    |    4 ++++
 fsodeviced/src/plugins/kernel_idle/Makefile.am     |    4 ++++
 fsodeviced/src/plugins/kernel_info/Makefile.am     |    4 ++++
 fsodeviced/src/plugins/kernel_input/Makefile.am    |    4 ++++
 .../src/plugins/n900_powercontrol/Makefile.am      |    4 ++++
 .../src/plugins/openmoko_powercontrol/Makefile.am  |    4 ++++
 fsodeviced/src/plugins/palmpre_quirks/Makefile.am  |    4 ++++
 fsodeviced/src/plugins/player_alsa/Makefile.am     |    4 ++++
 fsodeviced/src/plugins/player_canberra/Makefile.am |    4 ++++
 .../src/plugins/player_gstreamer/Makefile.am       |    4 ++++
(Continue reading)


Gmane