[maemo-developers] Howto enable portrait mode support on Fremantle
From: Cornelius Hald hald at icandy.deDate: Tue Aug 25 10:25:17 EEST 2009
- Previous message: Howto enable portrait mode support on Fremantle
- Next message: Howto enable portrait mode support on Fremantle
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, 2009-08-24 at 23:39 +0300, David Weinehall wrote: > On mån, 2009-08-24 at 22:12 +0200, ext Cornelius Hald wrote: > > On Mon, 2009-08-24 at 23:07 +0300, David Weinehall wrote: > > > MCE only listens to the system bus, maybe this is your problem? > > > > Unfortunately not, I tried both the system bus and the session bus. On > > both I get the mentioned error. But thanks for the tip :) > > Well, everything in your code looks correct (well, you're not doing any > error checking when you call dbus_message_new_method_call(), which means > that you'll miss OOM, but that's unlikely to be the issue here). Sorry for not providing more information in my last mail, I'll try to do that now. First, I'm running Fremantle Beta2 SDK with the X86 target. The DBus connection I'm getting through libosso. So the call is: gpointer con = osso_get_sys_dbus_connection(osso_context); You and Claudio were right, mce was not running at all. I thought it will be automatically started, but that's not the case. So I now started it with: run-standalone.sh /etc/init.d/mce start The output of 'ps ax|grep -i mce' now is: 8758 ? Ss 0:00 /sbin/mce --daemon Still the error message I get is the same. I'm listening on the same DBus connection for orientation-changed messages and that seems to work. If I send DBus messages using dbus-send, my callback functions are called. For example my callbacks are called when I'm doing this: run-standalone.sh dbus-send --system --type=signal /com/nokia/mce/signal com.nokia.mce.signal.sig_device_orientation_ind string:'portrait' Hmm, ok while writing this, I noticed that mce after some time is not running anymore. So now I started it not using the init script, but directly with: run-standalone.sh mce --force-stderr --debug-mode And voila :) It's working and I'm getting the correct reply when calling into DBus. So basically my problem is solved. The question now is my does mce not startup correctly when using the init script? Thanks David and Claudio for all the help :) Conny
- Previous message: Howto enable portrait mode support on Fremantle
- Next message: Howto enable portrait mode support on Fremantle
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]