|
2010-02-02
, 13:51
|
Guest |
Posts: n/a |
Thanked: 0 times |
Joined on
|
#2
|
Hi, I'm using the scratchbox to test my PyQt4 app before moving it to the n900.
I couldn't find a way to use some of the n900 built-in functionalities inside the scratchbox, for example:
- Simulate a phone call
- Simulate accelerometers changes, like rotate or shake the device
The Following User Says Thank You to For This Useful Post: | ||
![]() |
2010-02-02
, 13:55
|
|
Posts: 385 |
Thanked: 344 times |
Joined on Jan 2010
@ Israel
|
#3
|
You can't actually simulate those events, to my knowledge, as SINE (Scratchbox Is Not an Emulator (TM)), however, you may be able to use D-Bus in some cases to simulate some of the effects of various events. I'm not actually sure, but you might want to look into it.
You have to add some lines to /etc/apt/sources.list in sbox. Look in /etc/apt/sources.list.d/hildon-application-manager.list on-device for examples. Note that lines beginning with "deb" are binary repos, and those beginning with "deb-src" are the corresponding source repos (where they exist - accessible using apt-get source) - otherwise, the syntax is identical.
|
2010-02-02
, 14:00
|
Guest |
Posts: n/a |
Thanked: 0 times |
Joined on
|
#4
|
![]() |
2010-02-02
, 14:04
|
|
Posts: 385 |
Thanked: 344 times |
Joined on Jan 2010
@ Israel
|
#5
|
Ha... Haha... you're funny.
um... at the moment? Some of it's documented on the development wiki, but you'll probably have to poke through some header files at the source code x-ref @ mxr.maemo.org for some of it. I haven't checked the dev wiki recently, but last I saw, it was lacking in depth mostly, and breadth to some extent as well. If you have specific D-Bus calls that you're looking for, and can't find them, I or someone else may be able to tell you off the top of our heads.
![]() |
2010-02-02
, 14:27
|
Posts: 432 |
Thanked: 645 times |
Joined on Mar 2009
|
#6
|
The Following 2 Users Say Thank You to danielwilms For This Useful Post: | ||
|
2010-02-02
, 14:44
|
Guest |
Posts: n/a |
Thanked: 0 times |
Joined on
|
#7
|
Well thank you I do my best to entertain
Actually I have no idea of any D-Bus usage, I'm new to linux and all I know is that D-Bus is a message bus system for inter process communication, and it must operate on an instance. I guess is should be similar to RPC?...
Any chance to a code example in Python? (Hope I'm not being funny again)
![]() |
2010-02-02
, 16:10
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#8
|
Any chance to a code example in Python? (Hope I'm not being funny again)
The Following User Says Thank You to fatalsaint For This Useful Post: | ||
I couldn't find a way to use some of the n900 built-in functionalities inside the scratchbox, for example:
- Simulate a phone call
- Simulate accelerometers changes, like rotate or shake the device
- Install packages from extras/extras-devel
- Press the power key
Can these things be done in the scratchbox?