Re: Screen orientation
Hi there, Yes, it is a fact that kernel needs a better code, but as far as I know the Xv doesn't work very well with kdrives that is a small X not based on XFree86 implementation... This Xomap is a kdrive, so maybe it would be better try to add xrandr support to this Xomap: http://gitweb.pingu.fi/?p=xf86-video-omapfb.git;a=tree;f=src;h=b6255dda0b6adefd1de00228429c3e139c3916f1;hb=HEAD that is an xf86 implementation... well, it is only a guess On Mon, Feb 2, 2009 at 9:02 AM, Frantisek Dufka duf...@seznam.cz wrote: gary liquid wrote: thanks for the reminder :) I have put together a report including test cases on the itt forum http://www.internettablettalk.com/forums/showthread.php?p=261099 I have added my comment there but I'm not sure where is the best place to discuss it. I am not sure where the problem originates from so putting the issue centrally is the best option. I believe the problem is in kernel or starts in kernel. The first patch By Rodrigo Vivi has additional part mentioned here http://www.internettablettalk.com/forums/showthread.php?p=155704#post155704 This part caused video and camera to not to work at all. Quick hack was to remove those lines so dimensions of planes are not touched but I still believe this is wrong (to remove them) and plane information should be somehow correctly rotated too. It would be nice to know how exactly those 3 planes are used (plane 1 is XV? 2 is camera?) and what sizes they should normally have. After system boot virtual_size (/sys/class/graphics/fb?/virtual_size ) of all of them is set to 800x480 but after using stock media player or enabling camera they are resized to much smaller size (not sure when and how). Maybe those lines should be put back to kernel but the userspace code (Xv driver in Xserver? what about camera?) that plays with dimensions of those planes should be somehow make aware of the rotation and resize them again as they need. Frantisek ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers -- Rodrigo Vivi INdT - Instituto Nokia de Tecnologia Blog: http://blog.vivi.eng.br GPG: 0x905BE242 @ wwwkeys.pgp.net ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Screen orientation
Rodrigo Vivi wrote: This Xomap is a kdrive, so maybe it would be better try to add xrandr support to this Xomap: http://gitweb.pingu.fi/?p=xf86-video-omapfb.git;a=tree;f=src;h=b6255dda0b6adefd1de00228429c3e139c3916f1;hb=HEAD that is an xf86 implementation... X.Org 1.5.1, xf86-video-omapfb, n810 (Nokia's stock kernel): $ xrandr -o normal $ xrandr -o left X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 146 (RANDR) Minor opcode of failed request: 2 (RRSetScreenConfig) Serial number of failed request: 12 Current serial number in output stream: 12 -- Tuomas signature.asc Description: OpenPGP digital signature ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Screen orientation
On Mon, Feb 2, 2009 at 3:44 PM, Tuomas Kulve tuo...@kulve.fi wrote: Rodrigo Vivi wrote: This Xomap is a kdrive, so maybe it would be better try to add xrandr support to this Xomap: http://gitweb.pingu.fi/?p=xf86-video-omapfb.git;a=tree;f=src;h=b6255dda0b6adefd1de00228429c3e139c3916f1;hb=HEAD that is an xf86 implementation... X.Org 1.5.1, xf86-video-omapfb, n810 (Nokia's stock kernel): $ xrandr -o normal $ xrandr -o left X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 146 (RANDR) Minor opcode of failed request: 2 (RRSetScreenConfig) Serial number of failed request: 12 Current serial number in output stream: 12 Yes, it is expected because there are no xrandr support on this xomap... In this code the only reference to randr is this one: /* TODO: RANDR support */ As I said, someone should add it to this xomap... hopefully it shouldn't be so difficult basing it on kdrive's patch: http://labs.vivi.eng.br/blog/rotation-patches/adding-support-to-xrandr-on-xomap.patch hopefully... -- Tuomas -- Rodrigo Vivi INdT - Instituto Nokia de Tecnologia Blog: http://blog.vivi.eng.br GPG: 0x905BE242 @ wwwkeys.pgp.net ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Screen orientation
gary liquid wrote: thanks for the reminder :) I have put together a report including test cases on the itt forum http://www.internettablettalk.com/forums/showthread.php?p=261099 I have added my comment there but I'm not sure where is the best place to discuss it. I am not sure where the problem originates from so putting the issue centrally is the best option. I believe the problem is in kernel or starts in kernel. The first patch By Rodrigo Vivi has additional part mentioned here http://www.internettablettalk.com/forums/showthread.php?p=155704#post155704 This part caused video and camera to not to work at all. Quick hack was to remove those lines so dimensions of planes are not touched but I still believe this is wrong (to remove them) and plane information should be somehow correctly rotated too. It would be nice to know how exactly those 3 planes are used (plane 1 is XV? 2 is camera?) and what sizes they should normally have. After system boot virtual_size (/sys/class/graphics/fb?/virtual_size ) of all of them is set to 800x480 but after using stock media player or enabling camera they are resized to much smaller size (not sure when and how). Maybe those lines should be put back to kernel but the userspace code (Xv driver in Xserver? what about camera?) that plays with dimensions of those planes should be somehow make aware of the rotation and resize them again as they need. Frantisek ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Screen orientation
On Tuesday 27 January 2009, gary liquid wrote: 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) By the way, have you reported this XV rotation problem to the authors of the unofficial rotation patch? What did they reply? -- Best regards, Siarhei Siamashka ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Screen orientation
thanks for the reminder :) I have put together a report including test cases on the itt forum http://www.internettablettalk.com/forums/showthread.php?p=261099 This includes lots of information about the issue and I have mailed the rotation patch author and let folks know. I am not sure where the problem originates from so putting the issue centrally is the best option. gary On Fri, Jan 30, 2009 at 9:21 PM, Siarhei Siamashka siarhei.siamas...@gmail.com wrote: On Tuesday 27 January 2009, gary liquid wrote: 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) By the way, have you reported this XV rotation problem to the authors of the unofficial rotation patch? What did they reply? -- Best regards, Siarhei Siamashka ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Screen orientation
HI All, How do I find out from my application if the current screen orientation is landscape or portrait? Is there any API to change the orientation? Thanks in advance. Regards, Deepak 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@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
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. ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
RE: Screen orientation
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: ma...@bitblit.net [mailto:ma...@bitblit.net] Sent: Tuesday, January 27, 2009 7:36 PM To: Deepak Kr. Sharma, Noida Cc: maemo-developers@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@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Screen orientation
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 deepa...@hcl.inwrote: 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: ma...@bitblit.net [mailto:ma...@bitblit.net] Sent: Tuesday, January 27, 2009 7:36 PM To: Deepak Kr. Sharma, Noida Cc: maemo-developers@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@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: Screen orientation
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 bun...@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 deepa...@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: ma...@bitblit.net [mailto:ma...@bitblit.net] Sent: Tuesday, January 27, 2009 7:36 PM To: Deepak Kr. Sharma, Noida Cc: maemo-developers@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@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: Screen orientation
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 bun...@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 bun...@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 deepa...@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: ma...@bitblit.net [mailto:ma...@bitblit.net] Sent: Tuesday, January 27, 2009 7:36 PM To: Deepak Kr. Sharma, Noida Cc: maemo-developers@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@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: Screen orientation
Hi, Bob Murphy at ACCESS has been doing a lot of work on integrating screen orientation and accelerometers for the GNOME stack - I don't suppose anyone's had a look at his work here, have they? Cheers, Dave. gary liquid wrote: 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 bun...@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 bun...@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 deepa...@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: ma...@bitblit.net [mailto:ma...@bitblit.net] Sent: Tuesday, January 27, 2009 7:36 PM To: Deepak Kr. Sharma, Noida Cc: maemo-developers@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@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 -- maemo.org docsmaster Email: dne...@maemo.org Jabber: bo...@jabber.org ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
KeyPad guard and Screen orientation
Hi All, Does anybody know how to find if the keypad guard (lock) is on or off on the device. Also how do we find out if the current screen orientation is landscape or portrait? Please help. Regards, Deepak 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@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: KeyPad guard and Screen orientation
On Tue, 20 Jan 2009, Deepak Kr. Sharma, Noida wrote: Does anybody know how to find if the keypad guard (lock) is on or off on the device. From the command line it is: dbus-send --print-reply --system --type=method_call --dest=com.nokia.mce \ /com/nokia/mce/request com.nokia.mce.request.get_tklock_mode -- Matan Ziv-Av. ma...@svgalib.org ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers