Active Topics

 


Reply
Thread Tools
Posts: 88 | Thanked: 15 times | Joined on Jun 2007
#1
anybody know what method to call to programatically lock the tablet?
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#2
Well, if you have powerlaunch installed... you can use powertool. If you're using Nokia's mce, well, I can't say, I'm not even certain that it's possible (though it seems very likely).
 

The Following User Says Thank You to Benson For This Useful Post:
Posts: 110 | Thanked: 12 times | Joined on Oct 2007 @ Cambridge, UK
#3
the systemui file makes it look tantalisingly possible, but not quite
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#4
dbus-send --system --type=method_call --print-reply --dest='com.nokia.mce' /com/nokia/mce/request com.nokia.mce.request.req_locktouchscreen

Maybe that will work. I haven't tested it though.
 
Posts: 88 | Thanked: 15 times | Joined on Jun 2007
#5
Error org.freedesktop.DBus.Error.UnknownMethod: Method "req_locktouchscreen" with signature "" on interface "com.nokia.mce.request" doesn't exist
 
Posts: 88 | Thanked: 15 times | Joined on Jun 2007
#6
using dbus watcher, here's the output I get when locking the device:

Code:
signal sender=:1.3 -> dest=(null destination) path=/com/nokia/mce/signal; interface=com.nokia.mce.signal; member=tklock_mode_ind
   string "unlocked"
signal sender=:1.0 -> dest=(null destination) path=/org/freedesktop/Hal/devices/platform_kb_lock; interface=org.freedesktop.Hal.Device; member=PropertyModified
   int32 1
   array [
      struct {
         string "button.state.value"
         boolean false
         boolean false
      }
   ]
signal sender=:1.3 -> dest=(null destination) path=/com/nokia/mce/signal; interface=com.nokia.mce.signal; member=display_status_ind
   string "on"
signal sender=:1.0 -> dest=(null destination) path=/org/freedesktop/Hal/devices/platform_kb_lock; interface=org.freedesktop.Hal.Device; member=Condition
   string "ButtonPressed"
   string "cover"
signal sender=:1.0 -> dest=(null destination) path=/org/freedesktop/Hal/devices/platform_kb_lock; interface=org.freedesktop.Hal.Device; member=PropertyModified
   int32 1
   array [
      struct {
         string "button.state.value"
         boolean false
         boolean false
      }
   ]
so I tried to send something like this:
dbus-send --system --type=method_call --dest='org.freedesktop.Hal' --print-reply /org/freedesktop/Hal/devices/platform_kb_lock org.freedesktop.Hal.Device.Condition string:'ButtonPressed' string:'cover'

but I got back

Error org.freedesktop.DBus.Error.UnknownMethod: Method "Condition" with signature "ss" on interface "org.freedesktop.Hal.Device" doesn't exist
 
Reply


 
Forum Jump


All times are GMT. The time now is 05:03.