![]() |
2011-04-08
, 23:16
|
|
Posts: 565 |
Thanked: 618 times |
Joined on Jun 2010
@ Finland
|
#12
|
The Following User Says Thank You to laasonen For This Useful Post: | ||
![]() |
2011-04-08
, 23:38
|
|
Posts: 565 |
Thanked: 618 times |
Joined on Jun 2010
@ Finland
|
#14
|
![]() |
2011-04-09
, 20:15
|
Posts: 235 |
Thanked: 339 times |
Joined on Nov 2010
|
#15
|
There is something really strange about osso-systemui. Power button menu randomly stops working. I first thought it was just my shell script which was directly reading pwrbutton, but it's now happening with my python/dbus versionIs it just me? Any suggestions?
The Following User Says Thank You to jstokes For This Useful Post: | ||
![]() |
2011-04-09
, 20:27
|
|
Posts: 1,030 |
Thanked: 792 times |
Joined on Jun 2009
|
#16
|
![]() |
2011-04-09
, 20:49
|
|
Posts: 565 |
Thanked: 618 times |
Joined on Jun 2010
@ Finland
|
#17
|
Excuse me if I'm misunderstanding anything, but instead of watching to see if the power button is pressed and then calling the SystemUI D-Bus method that unlocks the device..
self.bus.add_signal_receiver(self.unlock, path='/com/nokia/mce/signal', dbus_interface='com.nokia.mce.signal', signal_name='tklock_mode_ind')
...why not just disable locking when a selected network is connected to and then re-enable it when the device disconnects?
You can turn off the autolock by changing the value of GConf key /system/osso/dsm/locks/devicelock_autolock_enabled
gconftool -s -t bool /system/osso/dsm/locks/devicelock_autolock_enabled false
dbus-send --system --type=method_call --dest=com.nokia.system_ui /com/nokia/system_ui/request com.nokia.system_ui.request.devlock_open string:"com.nokia.mce" string:"/com/nokia/mce/request" string:"com.nokia.mce.request" string:"devlock_callback" uint32:'3'
dbus-send --system --type=method_call --dest=com.nokia.system_ui /com/nokia/system_ui/request com.nokia.system_ui.request.devlock_close string:"com.nokia.mce" string:"/com/nokia/mce/request" string:"com.nokia.mce.request" string:"devlock_callback" uint32:'0'
The Following User Says Thank You to laasonen For This Useful Post: | ||
![]() |
2011-04-09
, 21:06
|
Posts: 235 |
Thanked: 339 times |
Joined on Nov 2010
|
#18
|
The Following 2 Users Say Thank You to jstokes For This Useful Post: | ||
![]() |
2011-04-10
, 05:30
|
Posts: 875 |
Thanked: 918 times |
Joined on Sep 2010
|
#19
|
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.devlock_callback int32:2
![]() |
2011-04-10
, 06:04
|
|
Posts: 565 |
Thanked: 618 times |
Joined on Jun 2010
@ Finland
|
#20
|
That will make MCE tell SystemUI to close the keypad on n8x0 and should do the same on n900, might have to change the 2 to a 0 though. You will still need to toggle the gconf value to keep the keypad from opening when the timeout expires.Code:dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.devlock_callback int32:2
The Following User Says Thank You to laasonen For This Useful Post: | ||
![]() |
Tags |
d1ckheads, scripts |
Thread Tools | |
|
EDIT: