|
2011-02-25
, 08:16
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#2
|
/some/script * * com.nokia.icd status_changed * WLAN_INFRA
/some/script * * com.nokia.icd status_changed <some network> WLAN_INFRA CONNECTED
The Following User Says Thank You to vi_ For This Useful Post: | ||
|
2011-02-25
, 09:01
|
Posts: 840 |
Thanked: 823 times |
Joined on Nov 2009
|
#3
|
Nobody?
Cool, lets all jerk off about how microsoft have *** jacked our beloved nokia some more.
Here we have the 'string' from dbus-scripts to match all wlan events:
How do I write a similar string to match proximity sensor events ala this:Code:/some/script * * com.nokia.icd status_changed * WLAN_INFRA
com.nokia.icd <-- i.e. what comes in place of this bit?Code:/some/script * * com.nokia.icd status_changed <some network> WLAN_INFRA CONNECTED
|
2011-02-25
, 09:10
|
Posts: 219 |
Thanked: 94 times |
Joined on Nov 2009
@ Helsinki, Finland
|
#4
|
|
2011-02-25
, 09:12
|
Posts: 38 |
Thanked: 33 times |
Joined on Aug 2010
@ Bangalore, India
|
#5
|
|
2011-02-25
, 09:16
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#6
|
|
2011-02-25
, 09:27
|
Posts: 840 |
Thanked: 823 times |
Joined on Nov 2009
|
#7
|
just done that, used:
dbus-monitor "type='signal'
To see the 'open' and close' signals. I am getting closer however I cannot quite see how to piece this together yet.
I emailed hopbeat asking if he would consider incorporating such functionality into shortcutd however he simply ignored me.
I am surprised nobody has addressed this right click issue before. I mean battle for wesnoth, comix, every friggin text field there is has a r/click context menu that we cannot use!
|
2011-02-25
, 09:40
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#8
|
# First argument is sender # Second argument is destination # For SIGNAL and METHOD_CALL, third argument is interface # For SIGNAL and METHOD_CALL, fourth argument is member # Other arguments depend on the message
|
2011-02-25
, 09:47
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#9
|
the --debug flag is essential for looking at what's going on if you plan to write your own scripts. Run "dbus-scripts --debug" in a terminal and then perform whatever actions on the phone, to see all the events you can process using dbus-scripts. To see events on the session bus, make that "dbus-scripts --debug --session".
/sys/devices/platform/gpio-switch/proximity/state
|
2011-02-25
, 10:18
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#10
|
#!/bin/sh while inotifywait -e modify /sys/path/to/proximitysensor; do if sensor open; then xmodmap set right click else xmodmap sel left click fi done
My idea, to enable right click by pressing the proximity sensor.
How to achieve this? As far as I can tell the way to do this is with proximityd, a dbus script and xmodmap.
That is you turn on right click support (either a button or ties to the launch of particular programs) this enables P.sensor polling by proximityd which in turn reports the condition of the sensor to dbus. dbus scripts then reacts to sensor covered to swap left and right mouse buttons, switch back when sensor uncovered.
While this seems strait forward in words I am struggling to see how to monitor for the proximity switch condition change on the dbus.
proximityd
dbus scripts
Any thoughts on how to do this?
Last edited by vi_; 2011-02-25 at 12:55.