junnuvi
|
2014-02-09
, 17:38
|
Posts: 80 |
Thanked: 51 times |
Joined on Feb 2010
@ Finland
|
#41
|
|
2014-02-11
, 09:28
|
|
Posts: 50 |
Thanked: 60 times |
Joined on Feb 2010
@ Venice, Italy
|
#42
|
Sorry for going littelbit offtopic, but does anyone has idea where to find documentation for nemo-qml-plugin-notifications? I haven't yet found any documentation by googling. OR if someone can tell how to use it from QML ?
|
2014-02-11
, 18:46
|
Posts: 80 |
Thanked: 51 times |
Joined on Feb 2010
@ Finland
|
#43
|
import org.nemomobile.notifications 1.0 ....... Button { Notification { id: notification category: "x-nemo.example" summary: "Notification summary" body: "Notification body" previewSummary: "Notification preview summary" previewBody: "Notification preview body" itemCount: 5 timestamp: "2013-02-20 18:21:00" remoteDBusCallServiceName: "org.nemomobile.example" remoteDBusCallObjectPath: "/example" remoteDBusCallInterface: "org.nemomobile.example" remoteDBusCallMethodName: "doSomething" remoteDBusCallArguments: [ "argument", 1 ] onClicked: console.log("Clicked") onClosed: console.log("Closed, reason: " + reason) } text: "Application notification, ID " + notification.replacesId onClicked: notification.publish() }
|
2014-02-23
, 14:13
|
|
Posts: 562 |
Thanked: 2,744 times |
Joined on Dec 2013
@ Espoo, Finland
|
#44
|
#!/usr/bin/python import dbus bus = dbus.SessionBus() object = bus.get_object('org.gnome.GConf','/org/gnome/GConf/Database/0') interface = dbus.Interface(object,'org.gnome.GConf.Database') interface.Set("/sailfish/text_input/active_layout", dbus.Struct((dbus.Int32(1), "fi.qml")))
The Following User Says Thank You to kimmoli For This Useful Post: | ||
|
2014-02-24
, 02:24
|
Posts: 958 |
Thanked: 483 times |
Joined on May 2010
|
#45
|
dbus-monitor "type=signal, interface=org.freedesktop.Telepathy.Channel.Interface.Group, member=MembersChangedDetailed" | while read -r line; do if echo $line | grep "string \"Call answered\""; then /home/nemo/Vibrate fi done
The Following User Says Thank You to droll For This Useful Post: | ||
|
2014-03-02
, 23:19
|
|
Posts: 126 |
Thanked: 59 times |
Joined on Jan 2011
|
#46
|
dbus-send --system --type=method_call --dest=com.nokia.phone.SSC /com/nokia/phone/SSC com.nokia.phone.SSC.set_radio boolean:false
|
2014-03-05
, 12:39
|
|
Posts: 141 |
Thanked: 267 times |
Joined on May 2010
@ Germany
|
#48
|
dbus-send --system --dest=com.nokia.mce --print-reply /com/nokia/mce/request com.nokia.mce.request.req_radio_states_change uint32:0 uint32:1
dbus-send --system --dest=com.nokia.mce --print-reply /com/nokia/mce/request com.nokia.mce.request.req_radio_states_change uint32:1 uint32:1
/usr/lib/qt5/bin/qdbus --system --literal net.connman / /net /net/connman /net/connman/service /net/connman/service /net/connman/technology /net/connman/technology/bluetooth /net/connman/technology/cellular /net/connman/technology/wifi
/usr/lib/qt5/bin/qdbus --system --literal net.connman /net/connman/technology/wifi method QString org.freedesktop.DBus.Introspectable.Introspect() signal void net.connman.Technology.PropertyChanged(QString name, QDBusVariant value) method QVariantMap net.connman.Technology.GetProperties() method void net.connman.Technology.Scan() method void net.connman.Technology.SetProperty(QString name, QDBusVariant value)
dbus-send --system --type=method_call --print-reply --dest=net.connman /net/connman/technology/cellular net.connman.Technology.SetProperty string:"Powered" variant:boolean:false
[nemo@localhost ~]$ mcetool --enable-radio=cellular [nemo@localhost ~]$ mcetool --disable-radio=cellular
The Following User Says Thank You to EmaNymton For This Useful Post: | ||
|
2014-03-05
, 15:49
|
|
Posts: 126 |
Thanked: 59 times |
Joined on Jan 2011
|
#49
|
|
2014-03-05
, 17:59
|
Posts: 33 |
Thanked: 32 times |
Joined on Nov 2007
@ Finland
|
#50
|
Not a full answer to your question but maybe a first step in the right direction but I'm short of time.
First try with mce:
With
you can set the device into flightmode. First argument is for states, second for mask, but I don't know how to differentiate between wlan and cellular (1 stands for master e.g. deactive all, I think)Code:dbus-send --system --dest=com.nokia.mce --print-reply /com/nokia/mce/request com.nokia.mce.request.req_radio_states_change uint32:0 uint32:1
With
you disable filght mode.Code:dbus-send --system --dest=com.nokia.mce --print-reply /com/nokia/mce/request com.nokia.mce.request.req_radio_states_change uint32:1 uint32:1
dbus-send --system --type=method_call --print-reply --dest=net.connman / net.connman.Manager.SetProperty string:"OfflineMode" variant:boolean:true
Second try with connman:
use qdbus to get information:
and to get available methodsCode:/usr/lib/qt5/bin/qdbus --system --literal net.connman / /net /net/connman /net/connman/service /net/connman/service /net/connman/technology /net/connman/technology/bluetooth /net/connman/technology/cellular /net/connman/technology/wifi
I tried setting cellular "Powered" to false withCode:/usr/lib/qt5/bin/qdbus --system --literal net.connman /net/connman/technology/wifi method QString org.freedesktop.DBus.Introspectable.Introspect() signal void net.connman.Technology.PropertyChanged(QString name, QDBusVariant value) method QVariantMap net.connman.Technology.GetProperties() method void net.connman.Technology.Scan() method void net.connman.Technology.SetProperty(QString name, QDBusVariant value)
but the device is set to flightmode instead, so wifi is disabled too.Code:dbus-send --system --type=method_call --print-reply --dest=net.connman /net/connman/technology/cellular net.connman.Technology.SetProperty string:"Powered" variant:boolean:false
I hope you can solve your problem, please share your answer!
Edit:
Third try
What about
?Code:[nemo@localhost ~]$ mcetool --enable-radio=cellular [nemo@localhost ~]$ mcetool --disable-radio=cellular
The Following User Says Thank You to jukkar For This Useful Post: | ||