• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » Android » Android forum » Default Screen Orientation on ICS
Share
Android
  • Forum
Options
  • Subscribe via RSS

Forums

Default Screen Orientation on ICS

This question is answered
Chris R
Posted by Chris R
on May 03 2012 17:02 PM
Expert2785 points

I have an OMAP3530 based system running ICS and Linux 2.6.37 from DevKit 3.0.0.  It runs somewhat and we get the ICS screens and such on the attached LCD panel.  We are using a DSI LCD panel that, by pixel layout (480x800), is natively a portrait mode panel.  ICS wants to treat is as default portrait, which some Android community emails indicate is by Android's low-level design.  It's default mode is always the native panel mode.  I need, however, to run out system in a defaultlandscape mode.

I thought I might just be able to use some Linux bootargs parameters to rotate the frame buffer, so I added

omapfb.vrfb=y omapfb.rotate=3

to the kernel bootargs.  It did make a difference, but the screen is quite corrupted.  It looks like it's trying to be in landscape mode--only the top of the screen has data on it, and it's largely horizontal lines.  The colors seem appropriate, but its garbled.  When the "Android" logo comes up it's similar.  It's white and banding in a landscape horizontal way, obviously looking like it's trying to be landscape, but perhaps with an incorrect line pitch.

Is OMAPFB rotation supported in Android?  In ICS?  Is there something else I need to do?  Will using omapfb.rotate=3 with a portrait mode panel present a landscape mode panel to Android?

Thanks in advance,

Chris

2.6.37 ICS default orientation landscape omapfb portrait rotation
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Vishveshwar Bhat
    Posted by Vishveshwar Bhat
    on May 04 2012 01:00 AM
    Genius9800 points

    You can try the method suggested here? http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3.4-DevKit-2.1.1_UserGuide#Display_Rotation_Support

    ---------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chris R
    Posted by Chris R
    on May 04 2012 10:30 AM
    Expert2785 points

    Thanks, Vishveshwar.  It did rotate the orientation as needed.

    However, it isn't using the entire screen's area.  There is a black band on the right side of the screen, and the "Dev Tools", "Configuration" screen indicates widthPixels is 758 .  It's as if it started in portrait mode and reserved the 42 pixels at the top of the screen for an Android status bar, then when it got the "setprop ro.sf.hwrotation 270" line in init.rc it didn't go back to the original 480x800 resolution, but went from the 480x758 that portrait mode had left, and took a new bar at the top of landscape's orientation.  See attached photo.

     

    Do you know why this might be occurring?

    Thanks,

    Chris

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chris R
    Posted by Chris R
    on May 04 2012 11:47 AM
    Expert2785 points

    Vishveshwar,

    I also found that when I ran the camera app it turned the screen another 270 degees--or such that it is upside down from the original portrait mode.  When it exited to the Android home screen it stayed rotated upside down.

    - Chris

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chris R
    Posted by Chris R
    on May 04 2012 12:41 PM
    Expert2785 points

    I found that if I uncheck the "settings", "display", "Auto-rotate screen" box then after the Camera app exits the screen goes back to portrait, rather than staying in the upside-down mode.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Vishveshwar Bhat
    Posted by Vishveshwar Bhat
    on May 07 2012 00:25 AM
    Verified Answer
    Verified by Chris R
    Genius9800 points

    Chris R

    Thanks, Vishveshwar.  It did rotate the orientation as needed.

    However, it isn't using the entire screen's area.  There is a black band on the right side of the screen, and the "Dev Tools", "Configuration" screen indicates widthPixels is 758 .  It's as if it started in portrait mode and reserved the 42 pixels at the top of the screen for an Android status bar, then when it got the "setprop ro.sf.hwrotation 270" line in init.rc it didn't go back to the original 480x800 resolution, but went from the 480x758 that portrait mode had left, and took a new bar at the top of landscape's orientation.  See attached photo.

     

    Do you know why this might be occurring?

    Thanks,

    Chris

    We are aware of this issue. This occurs when the soft navigation keys are enabled on a landscape-mode "small" display (< 600 pixels height). You can find a patch to fix this issue at our rowboat community forum:

    http://groups.google.com/group/rowboat/browse_thread/thread/ffd218c132f8cbce

    ---------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chris R
    Posted by Chris R
    on May 08 2012 15:54 PM
    Expert2785 points

    I now have the softkeys in the black band at the right.  Thanks!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chris R
    Posted by Chris R
    on May 16 2012 13:39 PM
    Expert2785 points

    Hi Vishveshwar,

    I am finding that some of the apps I run reorient the screen to portrait mode from landscape.  I believe in Android that's their prerogative, but when they exit, the screen doesn't always reorient itself to landscape.  Is there a setting that is still missing that would restore my desired default landscape orientation?

    Thanks,

    Chris

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Vishveshwar Bhat
    Posted by Vishveshwar Bhat
    on May 17 2012 01:21 AM
    Genius9800 points

    This is probably because Auto-rotate is enabled in the display settings.

    Disable the auto-rotate feature if your device does not support accelerometer-based rotation.

    ---------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Ji Xiao
    Posted by Ji Xiao
    on Aug 22 2012 09:17 AM
    Prodigy20 points

    I tried the same on 4AI.1.2 ICS,  on blaze omap 4430 device. By default it is a landscape device, I wish to change it to portrait by default.

    I followed TI guild for GB 2.3.3, update property ro.sf.hwrotation, the screen did rotate, but there are some issues.
    http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3.4-DevKit-2.1.1_UserGuide#Display_Rotation_Support

    If I set ro.sf.hwrotation to 90

    1) Touchscreen does not align with ro.sf.hwrotation. Patch on-line for this issue is for GB but not ICS.
    2) When we use application, for example, browser, screen shows landscape when actually in portrait mode.

    How can we make Omap4 Blaze 4430 as a default landscape device?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Ji Xiao
    Posted by Ji Xiao
    on Aug 22 2012 09:25 AM
    Prodigy20 points

    Type, I wish to make Omap4 Blaze 4430 as a default portrait device.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Manuel Contreras
    Posted by Manuel Contreras
    on Aug 23 2012 13:55 PM
    Genius9055 points

    Some post to try;

    http://e2e.ti.com/support/embedded/android/f/509/p/110119/389433.aspx
    http://e2e.ti.com/support/embedded/android/f/509/p/138804/503599.aspx
    http://e2e.ti.com/support/embedded/android/f/509/p/153876/617347.aspx

    2 of them talks about ro.sf.hwrotation.

    I tried to find some configuration file in build directory that handles this but I couldn't find it. But for what first links says it seems must work but you could need to check the sensor orientation and configuration, that could affect too but from this file code looks that handles it too.

    Please click the Verify Answer button on this post if it answers your question
    _______________________________________________________
    Be sure to read the OMAP4 and OMAP5 Forum Guidelines and FAQ
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use