[maemo-developers] Screen orientation

From: gary liquid liquid at gmail.com
Date: Tue Jan 27 17:51:44 EET 2009
the answer to the identification problem is by querying the xrandr x11
extension library.

http://www.xfree86.org/current/Xrandr.3.html

Kamen correctly points out however that a user with the default installation
of maemo does not need to query this interface, there is only 1 possible
default orientation: landscape.

Future versions of maemo will hopefully have a fully working xrandr
implementation and allow rotation to be queried and controlled in the
default system.

*note to nokians reading, PLEASE make sure this works and also confirm that
XV rotates correctly as well ;)*

Gary Birkett (lcuk in #maemo)





On Tue, Jan 27, 2009 at 2:57 PM, Kamen Bundev <bundyo at gmail.com> wrote:

> BTW, the only possible way I know of to rotate the screen is by using the
> patched rotation kernel. Not much users know about that.
>
>
> On Tue, Jan 27, 2009 at 4:55 PM, Kamen Bundev <bundyo at gmail.com> wrote:
>
>> Maybe *gdk_screen_get_width ()* and *gdk_screen_get_height ()* can be
>> used to detect the screen dimensions?
>>
>> Regards:
>> Bundyo
>>
>>
>> On Tue, Jan 27, 2009 at 4:21 PM, Deepak Kr. Sharma, Noida <
>> deepak.s at hcl.in> wrote:
>>
>>>
>>> Hi,
>>>
>>> Even if it doesn't have sensors, but the screen orientation can be
>>> changed by the user or not, like the user has the option to view a video
>>> in landscape mode?
>>>
>>> Regards,
>>> Deepak
>>>
>>> -----Original Message-----
>>> From: maemo at bitblit.net [mailto:maemo at bitblit.net]
>>> Sent: Tuesday, January 27, 2009 7:36 PM
>>> To: Deepak Kr. Sharma, Noida
>>> Cc: maemo-developers at maemo.org
>>> Subject: Re: Screen orientation
>>>
>>> On Tue, 27 Jan 2009, Deepak  Kr. Sharma, Noida wrote:
>>>
>>> > How do I find out from my application if the current screen
>>> orientation
>>> > is landscape or portrait?
>>>
>>> AFAIK, no Maemo device has sensors for that.
>>>
>>>
>>> --
>>> Aj.
>>>
>>>
>>> DISCLAIMER:
>>>
>>> -----------------------------------------------------------------------------------------------------------------------
>>>
>>> The contents of this e-mail and any attachment(s) are confidential and
>>> intended for the named recipient(s) only.
>>> It shall not attach any liability on the originator or HCL or its
>>> affiliates. Any views or opinions presented in
>>> this email are solely those of the author and may not necessarily reflect
>>> the opinions of HCL or its affiliates.
>>> Any form of reproduction, dissemination, copying, disclosure,
>>> modification, distribution and / or publication of
>>> this message without the prior written consent of the author of this
>>> e-mail is strictly prohibited. If you have
>>> received this email in error please delete it and notify the sender
>>> immediately. Before opening any mail and
>>> attachments please check them for viruses and defect.
>>>
>>>
>>> -----------------------------------------------------------------------------------------------------------------------
>>> _______________________________________________
>>> maemo-developers mailing list
>>> maemo-developers at maemo.org
>>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>>
>>
>>
>
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20090127/36c44dca/attachment.htm 
More information about the maemo-developers mailing list