Reply
Thread Tools
Posts: 54 | Thanked: 5 times | Joined on May 2008 @ Oulu, Finland
#1
Hi, I'd like to suggest an idea for an app to control the n810's online/offline functionality to respond when the user connects/disconnects the power input.

If nobody fancies a stab at it, could you point me in the right direction to something that would teach me to control events like that?

Thanks.
__________________
Hardware: n810 running the latest supported OS.

Last edited by leke; 2012-01-27 at 23:50.
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#2
Install gconf-editor.

That should at least get you started on this.
 

The Following User Says Thank You to Addison For This Useful Post:
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#3
Originally Posted by leke View Post
Hi, I'd like to suggest an idea for an app to control the n810's online/offline functionality to respond when the user connects/disconnects the power input.
You want wifi to connect when you plug in the charger and disconnect when the charger is removed?

You need an app that listens for these two dbus signals:
dbus_bus_add_match(signal_bus, "type='signal',path='/com/nokia/bme/signal',interface='com.nokia.bme.signal',member='c harger_connected'", &dbus_error);
dbus_bus_add_match(signal_bus, "type='signal',path='/com/nokia/bme/signal',interface='com.nokia.bme.signal',member='c harger_disconnected'", &dbus_error);

The ICDUI show_conn_dlg(false) method will open the AP dialog, the ICD connect("[ANY]", 0) method will auto connect to the last AP and the ICD2 disconnect_req(0x8000) method disconnects from the AP.

http://maemo.org/api_refs/5.0/beta/i...dbus__api.html
http://maemo.org/api_refs/4.1/libconic-0.16/
http://maemo.org/maemo_release_docum....x/node10.html

The MCE req_device_mode_change("normal") method exits flight mode and the MCE req_device_mode_change("flight") method enters flight mode.

http://maemo.org/api_refs/5.0/5.0-fi...dev/files.html
 

The Following User Says Thank You to auouymous For This Useful Post:
tso's Avatar
Posts: 4,783 | Thanked: 1,253 times | Joined on Aug 2007 @ norway
#4
There is a package called dbus-scripts-settings that can be used to configure commands that trigger on certain events.
__________________
Be warned, posts are often line of thoughts at highway speeds...

Last edited by tso; 2012-01-28 at 13:45.
 

The Following 2 Users Say Thank You to tso For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 04:50.