Meaning of Phone.Net.get_current_cell_info return values

2010-04-26 Thread chantra
Hi,

I have been spending quite some time understanding the values returned
by:
dbus-send --system --type=method_call --dest=com.nokia.phone.net
--print-reply /com/nokia/phone/net Phone.Net.get_current_cell_info
method return sender=:1.17 -> dest=:1.373 reply_serial=2
   byte 2 --> type GSM = 1, WCDMA = 2 ??
   uint16 2050--> LAC
   uint32 17143306--> Cell ID (cellid = res & 65535), RNC = res >>
16
   uint32 1   --> mnc
   uint32 214 --> mcc
   byte 0 --> ??? 
   byte 3 --> ??? 3 on supported network, 0 on unsupported
network, 2 when NSPS
   int32 0--> error

So far, this is what I have got, the 2 last bytes returned parameters
are the ones I try to get info from:
   byte 0 --> ??? 
   byte 3 --> ??? 3 on supported network, 0 on unsupported
network, 2 when NSPS

On my phone, I am generally getting values 0,3 respectively, and it
seems that the last byte will change to 0 on unsupported networks and 2
when only NSPS is available.

Is there anybody out there that can give me some more info on these
values?
Any Nokia developers that will know what those values stands for :p.

Any leads really appreciated :p

Tks,

Chantra


!DSPAM:4bd5e1f361679337353318!
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


VS: Re: python app at portrait mode all the time

2010-04-26 Thread peltsip
fortunately I have only one dialog: contact selection.

it is pretty usable but annoying though when orientation jumps. I'll leave it 
be because there is much more work to do in order to get something else except 
"A" typed to the app @portrait :)



Ossipena / Timo P
- Alkuperäinen viesti -
> On Sat, 2010-04-24 at 21:03 +0200, ext Faheem Pervez wrote:
> > The part you want is in the orientation_changed function.
> >
> > Try:
> >
> > hildon.hildon_gtk_window_set_portrait_flags(window,
> > hildon.PORTRAIT_MODE_SUPPORT | hildon.PORTRAIT_MODE_REQUEST)
>
> This does not work if you have e.g. dialog that requires landscape mode
> (because of text input, for example) on top of you. Unfortunately, there
> is no way to force yourself portrait in the case your window is not the
> topmost window.
>
> -Kimmo
>
> > On 4/24/10, pelt...@gmail.com  wrote:
> > > Hi, is there a single or two rows way to define a python app to stay
> at
> > > portrait mode all the time?
> > >
> > > Tried to look through autorotation stuff from portrait.py[1] but
> didn't
> > > manage to find anything that I could use straight on.
> > > http://talk.maemo.org/showthread.php?t=31940
> > >
> [1]http://repo.or.cz/w/gpodder.git?a=blob;f=src/gpodder/gtkui/frmntl/portrait.py
> > >
> > > I am trying to make a simple portrait sms python app as requested at
> tmo.
> > >
> > > So if someone knows how to do that as simple as possible, I'd
> appreciate
> > > some tips.
> > >
> > > Ossipena / TimoP
> > > ___
> > > maemo-developers mailing list
> > > maemo-developers@maemo.org
> > > https://lists.maemo.org/mailman/listinfo/maemo-developers
> > >
> > ___
> > maemo-developers mailing list
> > maemo-developers@maemo.org
> > https://lists.maemo.org/mailman/listinfo/maemo-developers
>
>
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: python getting active hildon.TextView()

2010-04-26 Thread Claudio Saavedra
On Mon, 2010-04-26 at 19:18 +0300, pelt...@gmail.com wrote:
> Hi
> 
> Is there a way to know which textview is active (where the cursor blinks)?
> 
> Didn't manage to find anything within python docs. Is it only my search 
> skills?

You actually want to answer a more general question: which of the
widgets in my window currently has the focus?

For that, you can use gtk_window_get_focus ().

Claudio


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


python getting active hildon.TextView()

2010-04-26 Thread peltsip
Hi

Is there a way to know which textview is active (where the cursor blinks)?

Didn't manage to find anything within python docs. Is it only my search skills?

Ossipena / TimoP
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Splitting windows vertically

2010-04-26 Thread Charles Clément
On Mon, Apr 26, 2010 at 04:20:37PM +0300, Kimmo Hämäläinen wrote:
> On Sun, 2010-04-25 at 03:24 +0200, ext Charles Clément wrote:
> > Hello,
> > 
> > I have an application, an input method, that doesn't need all the screen
> > estate because it is not a virtual keyboard. By default in maemo, if I
> > set a size for the window, it will show my application window in a
> > horizontal layout, with the normal application above it and my window
> > below.
> > 
> > I would like to know if there is a way to run the two windows
> > side-by-side, one being at the left of the screen and the other one
> > taking the space on the right.
> 
> You could do this with an override-redirect window, the window manager
> does not resize those and lets you place them anywhere you like. You
> need to set it before mapping (showing) your window. See the Xlib manual
> or GTK API how to do it.

Yes, thank you, I tried using an override-redirect window. The problem
with that solution is that the application window is not resized and
still takes the whole screen estate. The input method window will then
mask part of the application window which is not really a practical
because a text field can be as wide as the whole screen, e.g. when
writing the body of an email.

> 
> -Kimmo
> 
> > 
> > Thanks,
> > 
> 

-- 
Charles Clément

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: python app at portrait mode all the time

2010-04-26 Thread Kimmo Hämäläinen
On Sat, 2010-04-24 at 21:03 +0200, ext Faheem Pervez wrote:
> The part you want is in the orientation_changed function.
> 
> Try:
> 
> hildon.hildon_gtk_window_set_portrait_flags(window,
> hildon.PORTRAIT_MODE_SUPPORT | hildon.PORTRAIT_MODE_REQUEST)

This does not work if you have e.g. dialog that requires landscape mode
(because of text input, for example) on top of you. Unfortunately, there
is no way to force yourself portrait in the case your window is not the
topmost window.

-Kimmo

> On 4/24/10, pelt...@gmail.com  wrote:
> > Hi, is there a single or two rows way to define a python app to stay at
> > portrait mode all the time?
> >
> > Tried to look through autorotation stuff from portrait.py[1]  but didn't
> > manage to find anything that I could use straight on.
> > http://talk.maemo.org/showthread.php?t=31940
> > [1]http://repo.or.cz/w/gpodder.git?a=blob;f=src/gpodder/gtkui/frmntl/portrait.py
> >
> > I am trying to make a simple portrait sms python app as requested at tmo.
> >
> > So if someone knows how to do that as simple as possible, I'd appreciate
> > some tips.
> >
> > Ossipena / TimoP
> > ___
> > maemo-developers mailing list
> > maemo-developers@maemo.org
> > https://lists.maemo.org/mailman/listinfo/maemo-developers
> >
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Splitting windows vertically

2010-04-26 Thread Kimmo Hämäläinen
On Sun, 2010-04-25 at 03:24 +0200, ext Charles Clément wrote:
> Hello,
> 
> I have an application, an input method, that doesn't need all the screen
> estate because it is not a virtual keyboard. By default in maemo, if I
> set a size for the window, it will show my application window in a
> horizontal layout, with the normal application above it and my window
> below.
> 
> I would like to know if there is a way to run the two windows
> side-by-side, one being at the left of the screen and the other one
> taking the space on the right.

You could do this with an override-redirect window, the window manager
does not resize those and lets you place them anywhere you like. You
need to set it before mapping (showing) your window. See the Xlib manual
or GTK API how to do it.

-Kimmo

> 
> Thanks,
> 

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Is it possible to use SCHED_FIFO policy on N900?

2010-04-26 Thread Eero Tamminen

Hi,

ext tarantism wrote:

_POSIX_PRIORITY_SCHEDULING is defined but attempting to create a pthread
with SCHED_FIFO returns an error. Calling pthread_setschedparam with
policy of SCHED_FIFO doesn't complain but checking with
pthread_getschedparam shows a policy of SCHED_OTHER.

Is it possible to set a policy of SCHED_FIFO (or SCHED_RR) or am I
wasting my time?


Are you running as root?


- Eero
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers