Re: Switching the orientation of the screen

2008-12-11 Thread Charles-Henri Gros
Robin Paulson wrote:
> 2008/12/11 DJDAS :
>> Sorry for being a little OT, but what do you mean with "problems that
>> are present when this is done from the
>> commend-line, with xrandr"?
>> If you mean the mess after the rotation (strange lines/graphic that
>> fixes after a refresh) I noticed this doesn't appear using the gestures
>> rotation, anyone knows why?
> 
> yes. how do you refresh, without restarting x server - could it be
> done in a .sh script?
> 
>> If you mean misalignment of the touchscreen calibration, I noticed
>> (speaking about gestures rotation) that this appears only when the
> 
> yes. i'm not using gestures, too unreliable for me. i've got 2 scripts, such 
> as:
> 
> xrandr -o 0
> 
> to get portrait, and similar for landscape. both produce the same
> problems, as does numptyphysics when it exits

I've noticed that calibration is off if you xrandr twice in a row to the
same orientation. Getting back to -o normal fixes things.


-- 
Charles-Henri


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Switching the orientation of the screen

2008-12-11 Thread Clemens Dörrhöfer
Valery Febvre wrote:
> Clemens Dörrhöfer wrote:
>> I am starting to learn pygtk and my "helloworld" Project is this 
>> primitiv gui, which lets you switch the orientatin of the screen. I 
>> don't like the automatic switching and with the help of this, I can do 
>> it manually.
>> It's not pretty, but it works. If you find it usefull, feel free to use. 
>> The tar archive contains a mercurial repository so don't hesitate to 
>> send me changelogs if you come along big programming sins.
> 
> I have written some time ago the same application ;-)
> 
> It's called pygtk-rotate and is available on OpenMokoProjects
> 
> http://projects.openmoko.org/projects/pygtk-rotate/
> http://projects.openmoko.org/frs/download.php/434/pygtk-rotate_1.1_armv4t.ipk
> 

Well I guess I have invented the wheel once again. But since this was 
primarly a project for learning pygtk it was no waste of time :-) I have 
some nice ideas, which I want to implement with pygtk and this time I 
will search for it before I create a second wheel.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Switching the orientation of the screen

2008-12-11 Thread Valery Febvre
Clemens Dörrhöfer wrote:
> I am starting to learn pygtk and my "helloworld" Project is this 
> primitiv gui, which lets you switch the orientatin of the screen. I 
> don't like the automatic switching and with the help of this, I can do 
> it manually.
> It's not pretty, but it works. If you find it usefull, feel free to use. 
> The tar archive contains a mercurial repository so don't hesitate to 
> send me changelogs if you come along big programming sins.

I have written some time ago the same application ;-)

It's called pygtk-rotate and is available on OpenMokoProjects

http://projects.openmoko.org/projects/pygtk-rotate/
http://projects.openmoko.org/frs/download.php/434/pygtk-rotate_1.1_armv4t.ipk

-- 
Valéry Febvre

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Switching the orientation of the screen

2008-12-11 Thread Robin Paulson
2008/12/11 DJDAS <[EMAIL PROTECTED]>:
> Sorry for being a little OT, but what do you mean with "problems that
> are present when this is done from the
> commend-line, with xrandr"?
> If you mean the mess after the rotation (strange lines/graphic that
> fixes after a refresh) I noticed this doesn't appear using the gestures
> rotation, anyone knows why?

yes. how do you refresh, without restarting x server - could it be
done in a .sh script?

> If you mean misalignment of the touchscreen calibration, I noticed
> (speaking about gestures rotation) that this appears only when the

yes. i'm not using gestures, too unreliable for me. i've got 2 scripts, such as:

xrandr -o 0

to get portrait, and similar for landscape. both produce the same
problems, as does numptyphysics when it exits

> screen is rotated upside down (phone oriented vertically with "hole" on
> top ;) ), while the remaining three positions are well calibrated.
> Is there an explanation about this?
> Thank you in advance, bye!

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Switching the orientation of the screen

2008-12-11 Thread DJDAS
Robin Paulson ha scritto:
> 2008/12/11 Clemens Dörrhöfer <[EMAIL PROTECTED]>:
>   
>> I am starting to learn pygtk and my "helloworld" Project is this primitiv
>> gui, which lets you switch the orientatin of the screen. I don't like the
>> automatic switching and with the help of this, I can do it manually.
>> It's not pretty, but it works. If you find it usefull, feel free to use. The
>> tar archive contains a mercurial repository so don't hesitate to send me
>> changelogs if you come along big programming sins.
>> 
>
> does it cure the problems that are present when this is done from the
> commend-line, with xrandr?
>
> i've been using a shell script, but find switching orientation more
> than about 3 times will give problems like a misaligned screen and
>   
Sorry for being a little OT, but what do you mean with "problems that 
are present when this is done from the
commend-line, with xrandr"?
If you mean the mess after the rotation (strange lines/graphic that 
fixes after a refresh) I noticed this doesn't appear using the gestures 
rotation, anyone knows why?
If you mean misalignment of the touchscreen calibration, I noticed 
(speaking about gestures rotation) that this appears only when the 
screen is rotated upside down (phone oriented vertically with "hole" on 
top ;) ), while the remaining three positions are well calibrated.
Is there an explanation about this?
Thank you in advance, bye!



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Switching the orientation of the screen

2008-12-11 Thread Clemens Dörrhöfer
Robin Paulson wrote:
> 2008/12/11 Clemens Dörrhöfer <[EMAIL PROTECTED]>:
>> I am starting to learn pygtk and my "helloworld" Project is this primitiv
>> gui, which lets you switch the orientatin of the screen. I don't like the
>> automatic switching and with the help of this, I can do it manually.
>> It's not pretty, but it works. If you find it usefull, feel free to use. The
>> tar archive contains a mercurial repository so don't hesitate to send me
>> changelogs if you come along big programming sins.
> 
> does it cure the problems that are present when this is done from the
> commend-line, with xrandr?
> 
> i've been using a shell script, but find switching orientation more
> than about 3 times will give problems like a misaligned screen and
> screen artefacts, that need an x restart
> 
> ___
> Openmoko community mailing list
> community@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
> 
Since it just uses xrandr the answer must be no.
It is just a handy gui for xrandr not more.
But so far I did not run into major broblems with xrandr, that is not 
with 2008.9.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Switching the orientation of the screen

2008-12-11 Thread Robin Paulson
2008/12/11 Clemens Dörrhöfer <[EMAIL PROTECTED]>:
> I am starting to learn pygtk and my "helloworld" Project is this primitiv
> gui, which lets you switch the orientatin of the screen. I don't like the
> automatic switching and with the help of this, I can do it manually.
> It's not pretty, but it works. If you find it usefull, feel free to use. The
> tar archive contains a mercurial repository so don't hesitate to send me
> changelogs if you come along big programming sins.

does it cure the problems that are present when this is done from the
commend-line, with xrandr?

i've been using a shell script, but find switching orientation more
than about 3 times will give problems like a misaligned screen and
screen artefacts, that need an x restart

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Switching the orientation of the screen

2008-12-11 Thread Clemens Dörrhöfer
I am starting to learn pygtk and my "helloworld" Project is this 
primitiv gui, which lets you switch the orientatin of the screen. I 
don't like the automatic switching and with the help of this, I can do 
it manually.
It's not pretty, but it works. If you find it usefull, feel free to use. 
The tar archive contains a mercurial repository so don't hesitate to 
send me changelogs if you come along big programming sins.


oswitch.tar.bz2
Description: Binary data
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community