![]() |
N9. Lock-unlock in my software, how?
In n900 i use d-bus
Code:
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:"locked" Why? Aegis rule: Code:
<aegis> |
Re: N9. Lock-unlock in my software, how?
The issue is that aegis won't grant you access to mce:DeviceModeControl without a valid certificate.
You will have to check me on this, since I haven't actually tested it, but I'm pretty certain you can use mce:DeviceControlMode when you install from the Ovi store. So the idea is to write your code up using a debug call or something like that whenever you want to lock, and then when you want to publish it you change that for the actual call. More info on how to implement the lock interfaces can be found in the Harmattan documentation: http://harmattan-dev.nokia.com/docs/...cks.html?tab=0 As for emulating a power key press, I don't think that is possible without knowing the low level hardware and coding some stuff up in Assembly. |
Re: N9. Lock-unlock in my software, how?
Ok, thx.
How to install "MeeGo 1.2 Harmattan API" manually? Qt SDK package manager say: Can't find missing dependency (com.nokia.ndk.tools.madde.qemu.system-=0.13.52) |
Re: N9. Lock-unlock in my software, how?
Hmm, I downloaded the redistributable SDK from Nokia's website (developer.nokia.com) and that seemed to work fine. I don't really used the SDK Package Manager since it never seemed to work for me.
|
Re: N9. Lock-unlock in my software, how?
And I have downloaded Qt_SDK_Lin64_1.1.4 from developer.nokia.com, and "Harmattan API" not checked ant not installed.
|
Re: N9. Lock-unlock in my software, how?
|
Re: N9. Lock-unlock in my software, how?
Quote:
Code:
#!/bin/sh note that this probably {certainly?} requires an open kernel. taken from: https://meego.gitorious.org/meego-mi...sts/mcetorture |
Re: N9. Lock-unlock in my software, how?
here is my script, which i stick at /usr/local/bin/lock
Code:
#!/usr/bin/perl |
All times are GMT. The time now is 00:41. |
vBulletin® Version 3.8.8