dbus-send from the CLI for SMS sending
I'm trying to send SMSes from the commandline. Following https://garage.maemo.org/plugins/wiki/index.php?Tools&id=1106&type=g I spied on dbus and sent an SMS containing "aa" (i.e. 10 `a's) to +12345678901 This is the dbus log, with the relevant part: method call sender=:1.10 -> dest=org.freedesktop.DBus serial=1350 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch string "type='signal', interface='org.freedesktop.DBus', member='NameOwnerChanged', arg1=':1.58'" method call sender=:1.35 -> dest=com.nokia.mce serial=598 path=/com/nokia/mce/request; interface=com.nokia.mce.request; member=req_vibrator_pattern_activate string "PatternTouchscreen" method call sender=:1.49 -> dest=com.nokia.phone.SMS serial=74 path=/com/nokia/phone/SMS/ba212ae1; interface=com.nokia.csd.SMS.Outgoing; member=Send array [ array [ byte 33 byte 5 byte 11 byte 145 byte 33 byte 67 byte 101 byte 135 byte 9 byte 241 byte 0 byte 0 byte 10 byte 225 byte 112 byte 56 byte 28 byte 14 byte 135 byte 195 byte 225 byte 48 ] ] string "" signal sender=:1.16 -> dest=(null destination) serial=6150 path=/com/nokia/phone/SMS/ba212ae1; interface=com.nokia.csd.SMS.Outgoing; member=OutgoingState int32 1 string "29f9b8e4-1bb6-493b-ae56-bc8e6c1ead00" string "+12345678901" method call sender=:1.58 -> dest=org.freedesktop.DBus serial=489 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "type='signal', interface='com.nokia.mce.signal', member='tklock_mode_ind'" method call sender=:1.58 -> dest=org.freedesktop.DBus serial=490 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "type='signal', interface='com.nokia.mce.signal', member='sig_device_orientation_ind'" method call sender=:1.58 -> dest=com.nokia.mce serial=491 path=/com/nokia/mce/request; interface=com.nokia.mce.request; member=req_accelerometer_enable method call sender=:1.10 -> dest=org.freedesktop.DBus serial=1352 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "type='signal', interface='org.freedesktop.DBus', member='NameOwnerChanged', arg1=':1.58'" method call sender=:1.35 -> dest=com.nokia.mce serial=599 path=/com/nokia/mce/request; interface=com.nokia.mce.request; member=req_vibrator_pattern_activate string "PatternTouchscreen" method call sender=:1.35 -> dest=com.nokia.mce serial=600 path=/com/nokia/mce/request; interface=com.nokia.mce.request; member=req_vibrator_pattern_activate string "PatternTouchscreen" method call sender=:1.58 -> dest=org.freedesktop.DBus serial=492 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch string "type='signal', interface='com.nokia.mce.signal', member='tklock_mode_ind'" method call sender=:1.58 -> dest=org.freedesktop.DBus serial=493 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch string "type='signal', interface='com.nokia.mce.signal', member='sig_device_orientation_ind'" method call sender=:1.58 -> dest=com.nokia.mce serial=494 path=/com/nokia/mce/request; interface=com.nokia.mce.request; member=req_accelerometer_disable method call sender=:1.10 -> dest=org.freedesktop.DBus serial=1355 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch string "type='signal', interface='org.freedesktop.DBus', member='NameOwnerChanged', arg1=':1.58'" signal sender=:1.16 -> dest=(null destination) serial=6151 path=/com/nokia/phone/SMS/ba212ae1; interface=com.nokia.csd.SMS.Outgoing; member=OutgoingSegment string "29f9b8e4-1bb6-493b-ae56-bc8e6c1ead00" uint32 113 uint32 0 uint32 0 int32 0 signal sender=:1.16 -> dest=(null destination) serial=6152 path=/com/nokia/phone/SMS/ba212ae1; interface=com.nokia.csd.SMS.Outgoing; member=Outgoing string "29f9b8e4-1bb6-493b-ae56-bc8e6c1ead00" string "+12345678901" array [ uint32 113 ] array [ int32 0 ] signal sender=:1.16 -> dest=(null destination) serial=6153 path=/com/nokia/phone/net; interface=Phone.Net; member=signal_strength_change byte 47 byte 94 CLI calling BTW is working already perfectly: http://wiki.maemo.org/User:Jebba#DBUS So, I experimented in a similar way. Doing, based on the above dbus log: dbus-send --system --dest=com.nokia.phone.SMS --type=method_call --print-reply /com/nokia/phone/SMS/ba212ae1 com.nokia.csd.SMS.Outgoing.Send array:byte:33,5,11,145,33,67,101,135,9,241,0,0,10,225,112,56,28,14,135,195,225,48 string:"" I get the following response: method return sender=:1.16 -> dest=:1.307 reply_serial=2 string "" int32 3 But this doesn't send the SMS. Any thoughts anyone? -- C уважением / 宜しく御願い致します / Best regards / S pozdravem / Z poważaniem / Mit
Semi-transparent background for Desktop Widget (Python + Cairo)
Hi, I'm trying to make the background of a Desktop Widget semi-transparent using the cairo graphics library. The widget is written in Python and the only examples of this I've found are using C (I don't know much C -- I wasn't even able to apply the examples to Python). This is the current code (that doesn't work -- the background appears as a black box) def __init__(self): hildondesktop.HomePluginItem.__init__(self) ... self.connect("screen-changed", self.screen_changed) self.connect("expose-event", self.expose) def expose(self, widget, event): cr = self.window.cairo_create() cr.set_source_rgba(1.0, 1.0, 1.0, 0.0) # Transparent # Draw the background cr.set_operator(cairo.OPERATOR_SOURCE) cr.paint() # draw rounded rect width, height = self.allocation[2], self.allocation[3] #/* a custom shape, that could be wrapped in a function */ x0 = 0 #/*< parameters like cairo_rectangle */ y0 = 0 radius = min(15, width/2, height/2) #/*< and an approximate curvature radius */ x1 = x0 + width y1 = y0 + height cr.move_to (x0, y0 + radius) cr.arc (x0 + radius, y0 + radius, radius, 3.14, 1.5 * 3.14) cr.line_to (x1 - radius, y0) cr.arc (x1 - radius, y0 + radius, radius, 1.5 * 3.14, 0.0) cr.line_to (x1 , y1 - radius) cr.arc (x1 - radius, y1 - radius, radius, 0.0, 0.5 * 3.14) cr.line_to (x0 + radius, y1) cr.arc (x0 + radius, y1 - radius, radius, 0.5 * 3.14, 3.14) cr.close_path () bg_color=gtk.gdk.color_parse("#00") cr.set_source_rgba (bg_color.red / 65535.0, bg_color.green/65535.0, bg_color.blue/65535.0, float(32767/65535.0)) cr.fill_preserve () # cr.set_source_rgba (0.5, 0.5, 1.0, 0.8) # cr.stroke () def screen_changed(self, widget): screen = self.get_screen() colormap = screen.get_rgba_colormap() self.set_colormap(colormap) return False What I'm trying to do is have the widget appear semi-transparent with rounded corners (like most widgets look) but the above code does not work at all. I do not know much about cairo and got most of that code from Khertan's HomeIP widget for Diablo/Chinook and only modified it a little to work with Maemo 5. Any help would be greatly appreciated. I've been "banging my head against a wall" for a while with this one. -- Best Regards, Brent Chiodo ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: mafw-lasftm: installed, configured, restarted the device, but plugin is not started
El mar, 08-12-2009 a las 22:27 +0200, Claudio Saavedra escribió: > > > >> 1) How can I start it automatically without having to start it > manually? > > > > > > It should do already, after installation, and on the session start > > > (after the X session is ready). > > > > it didn't after installation, but it did after a device restart > > It's odd, but it works fine if you install the package by hand. I'll > have to look into this. The problem was not running dsmetool through run-standalone.sh. The process was starting, but it was failing to initialize mafw-shared. I pushed a new package to extras-devel. This installs fine with ham. Claudio ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: GStreamer playbin2 and "Silent" mode on the N900
Hi, same with FM radio, Zoutube, MediaBox and any other app playing sound through GStreamer. Am I supposed to close bug https://bugs.maemo.org/show_bug.cgi?id=7121 as WONTFIX because Nokia doesn't want to tell us how it is done? I've compared the mixer settings between normal and silent mode and there is no difference visible. >From a Q&A sheet: > 25. Application feature interaction with profiles (general and silent) > Failed > #006 Audio from FM radio disappears after changing from General to Silent > profile. Nokia is expecting our apps to comply with a policy that is completely undocumented? Martin 2009/11/24, Thomas Perl : > Hello! > > When the N900 is in "silent" mode, music played through playbin2 > using GStreamer is also muted, so one has to switch to the > "General" profile in order to listen to music. The built-in media > player is not affected by this, so is there a way to set my playbin2 > to not be muted when the phone has the "silent" profile activated? > > In my case, it's a third-party media player, so the user pretty likely > wants to listen to music when using it, independent of the selected > profile (Silent, General). > > Thanks, > Thomas > ___ > maemo-developers mailing list > maemo-developers@maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers > ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Why is always one textview item selected in HILDON_UI_MODE_EDIT?
Hi, that's pretty exact also my solution. In the first change event i receive i just deselect everything and don't fo any further processing. Till Am Freitag 18 Dezember 2009 schrieb Marc Ordinas i Llopis: > Hi, > > On 18/12/09 12:45, Till Harbaum wrote: > > Hi, > > > > Anybody else facing this problem? How can i deselect everything in a > > treeview in > > state HILDON_UI_MODE_EDIT? > > > > > I was having the same problem with a GtkIconView and resorted to calling > gtk_icon_view_unselect_all after showing the widget. I still get the > selected events, though. > > Regards, > marcoil > > Regards, > >Till > > > > > > ___ > > maemo-developers mailing list > > maemo-developers@maemo.org > > https://lists.maemo.org/mailman/listinfo/maemo-developers > > > > ___ > maemo-developers mailing list > maemo-developers@maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers > ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Why is always one textview item selected in HILDON_UI_MODE_EDIT?
Hi, Am Freitag 18 Dezember 2009 schrieb Alberto Garcia: > Doesn't that work? That's what GTK_SELECTION_BROWSE is for. It's GTK_SELECTION_SINGLE what i want. But single behaves like browse on Maemo5 in a pannable area. > See hildon-touch-selector-normal-mode-example.c That example is not using edit mode but normal mode. Normal mode doesn't work for me as it immediately de-select everything you select. Till ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How remove package from extra-devel free?
Hmm. IANAL, but in my naivety, I would have thought that maemo.org would have to provide source for the binaries they (have) distribute(d). Darren On 19 Dec 2009, at 11:48, Dave Neary wrote: > Hi, > > Darren Long wrote: >> Out of curiosity, assuming its a GPL package, wouldn't you have to leave the >> source in the repo for 3 years or something? > > Don't confuse a written offer to provide source code with availability > of a binary. > > In short, anyone who has already downloaded the application can get a > hold of the source code, and the details of how they can do that are in > the licence file they should have gotten with the binary. > > Cheers, > Dave. > > -- > maemo.org docsmaster > Email: dne...@maemo.org > Jabber: bo...@jabber.org > ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How remove package from extra-devel free?
Hi, Darren Long wrote: > Out of curiosity, assuming its a GPL package, wouldn't you have to leave the > source in the repo for 3 years or something? Don't confuse a written offer to provide source code with availability of a binary. In short, anyone who has already downloaded the application can get a hold of the source code, and the details of how they can do that are in the licence file they should have gotten with the binary. Cheers, Dave. -- maemo.org docsmaster Email: dne...@maemo.org Jabber: bo...@jabber.org ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How remove package from extra-devel free?
Out of curiosity, assuming its a GPL package, wouldn't you have to leave the source in the repo for 3 years or something? Darren On 19 Dec 2009, at 11:20, Jeremiah Foster wrote: > > On Dec 19, 2009, at 11:07, Arkady Glazov wrote: > >> Hi, >> >> Can i drop my unuse pacakge from Maemo extras-devel repositories? > > Yes. In general it is best to contact someone about a package you want > removed, usually that someone is Niels or myself. :) > >> Is >> there any interface for it? > > At the moment no, but there will be in the future since this request is > common. > > Jeremiah > > ___ > maemo-developers mailing list > maemo-developers@maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How remove package from extra-devel free?
On Dec 19, 2009, at 11:07, Arkady Glazov wrote: > Hi, > > Can i drop my unuse pacakge from Maemo extras-devel repositories? Yes. In general it is best to contact someone about a package you want removed, usually that someone is Niels or myself. :) > Is > there any interface for it? At the moment no, but there will be in the future since this request is common. Jeremiah ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
How remove package from extra-devel free?
Hi, Can i drop my unuse pacakge from Maemo extras-devel repositories? Is there any interface for it? -- Best regards, Arkady Glazov http://globster.ru ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers