Closed Bug 755489 Opened 12 years ago Closed 12 years ago

nexus s screen is misconfigured after phone rotation

Categories

(Core :: Widget, defect)

x86
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: djf, Unassigned)

Details

Attachments

(1 file)

I have built and flashed my Nexus S phone using the new repo at https://github.com/mozilla-b2g/B2G I did this using a case-sensitive filesystem on the Mac, not on Linux.

The build is current today.  

Here's the symptom of the bug: when I rotate my phone into landscape mode, it continues to render in portrait mode, but believes that the screen has changed to 800x480, so that only the left-hand portion of the screen (as I see it while holding the phone in landscape) is used.  

The orientation of events does rotate, however.  From my frame of reference (looking at a phone in landscape mode) when I swipe up the screen, the lockscreen moves to the left to reveal the homescreen.

Another symptom that is perhaps related to this bug is that all the apps rotate and have this problem, even when they've called mozLockOrientation to prevent orientation changes.

In adb logcat, I see the following message every time I rotate the phone by 90 degrees.  The message is the same however I rotate it. It always says 480x800 and never 800x480:

I/InputReader(   76): Device reconfigured: id=6, name='mxt224_ts_input', surface size is now 480x800, mode is 1

That message is from widget/gonk/libui/InputReader.cpp

I'm attaching a screenshot that demonstrates the symptom.  Apparently the 'make screenshot' target in the gaia makefile doesn't work well on the Nexus S. This screen shot shows 4 copies of the screen, in strange color. But look at just one copy and you can see that the homescreen is part way open in the middle of the screen, and the four icons that are supposed to be along the bottom of the homescreen are spread out widely across the 800pixels it thinks it has.
One more weird thing. If I open the video application and start a video and then exit the application then this problem goes away.  (There is some weird interaction between videos and orientation, I think.  When orientation was working at the work week, the video app is the only one that wouldn't rotate when we wanted it to.  But that's a topic for another bug.)
When I install the same gecko build onto my sgs2, the lockscreen, homescreen and apps all rotate freely and display correctly in their new orientations. This still means that mozLockOrientation() is failing, but at least the rotations are consistent.  The logcat messages I see on sgs2 are the same as on the nexus s: always reporting 480x800.

And on the sgs2, running the video app seems to stop rotation from happening in the future.
See bug #755532.  Maybe I've got a bad build on my phone.
Orientation WFM on my Nexus S
Yes, I had a bad build.  Sorry.  Closing.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: