[maemo-developers] Howto enable portrait mode support on Fremantle
From: David Weinehall david.weinehall at nokia.comDate: Tue Aug 25 11:32:21 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 tis, 2009-08-25 at 09:25 +0200, ext Cornelius Hald wrote: > 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? I suspect it's because if you're not running it in --debug-mode, it exits when it notices that it fails to connect to dsme. Check if dsme is running too... That's the only difference --debug-mode should make at least. > Thanks David and Claudio for all the help :) You're welcome :) Regards: David
- 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 ]