Received: by 10.68.201.168 with SMTP id kb8mr1041195pbc.3.1335437438235; Thu, 26 Apr 2012 03:50:38 -0700 (PDT) X-BeenThere: rowboat@googlegroups.com Received: by 10.68.116.169 with SMTP id jx9ls2542002pbb.5.gmail; Thu, 26 Apr 2012 03:50:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.211.225 with SMTP id nf1mr294172pbc.13.1335437437860; Thu, 26 Apr 2012 03:50:37 -0700 (PDT) Authentication-Results: ls.google.com; spf=pass (google.com: domain of vishveshwarb...@aim.com designates internal as permitted sender) smtp.mail=vishveshwarb...@aim.com; dkim=pass header...@aim.com Received: by k7g2000pbo.googlegroups.com with HTTP; Thu, 26 Apr 2012 03:50:37 -0700 (PDT) Date: Thu, 26 Apr 2012 03:50:37 -0700 (PDT) In-Reply-To: <09717c79-ef18-4a5f-b3f2-c47818419800@j9g2000pbn.googlegroups.com> References: <8fd48410-1373-407d-8f5a-6d328d9dc167@f5g2000vby.googlegroups.com> <752aa4ba-c1f4-4170-bedf-0a460786ffd0@v1g2000yqm.googlegroups.com> <5242a473-ab48-44ca-8099-6b4017732258@w17g2000yqe.googlegroups.com> <2aead2b7-a0e8-4ed4-b8bb-b1808363c70c@n19g2000yqk.googlegroups.com> <4F8F4C7C.3050805@gmail.com> <789435c9-2b7e-41ce-aa74-de72e1fff5d7@w6g2000pbp.googlegroups.com> <4F9016C5.8020001@gmail.com> <4F90CC2D.4060801@gmail.com> <09717c79-ef18-4a5f-b3f2-c47818419800@j9g2000pbn.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0,gzip(gfe) Message-ID: Subject: Re: TMDXEVM8148 LCD virtual buttons From: Vishveshwar To: rowboat Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Vladimir, I have posted a patch to rowboat groups based on your input. Please have a look. http://groups.google.com/group/rowboat/browse_thread/thread/ffd218c132f8cbc= e Thanks again for the solution. -Vishveshwar On Apr 20, 1:23=A0pm, Vishveshwar wrote: > That works great on AM335xevm. > > Thanks. > > -Vishveshwar > > On Apr 20, 7:38=A0am, Vladimir Barinov wrote: > > > > > > > > > Hi Vishveshwar, > > > Vladimir Barinov wrote: > > > Vishveshwar wrote: > > >> Vladimir, > > > >> Thanks for the tip. Will this conflict with the auto-rotation featur= e? > > > > yes, it's a fixup for solid orientation (landscape). If you need a > > > rotation then just report to system the inversed orientations in the > > > prev patch. Smth like: > > > if (mDisplay.getRotation() =3D=3D Surface.ROTATION_0) > > > =A0 =A0 =A0 rot =3D Surface.ROTATION_90) > > > if (mDisplay.getRotation() =3D=3D Surface.ROTATION_90) > > > =A0 =A0 =A0 rot =3D Surface.ROTATION_180) > > > if (mDisplay.getRotation() =3D=3D Surface.ROTATION_180) > > > =A0 =A0 =A0 rot =3D Surface.ROTATION_270) > > > if (mDisplay.getRotation() =3D=3D Surface.ROTATION_270) > > > =A0 =A0 =A0 rot =3D Surface.ROTATION_0) > > > oops, the above code is not logically correct, you can use these patch > > to be able to use screen rotation: > > > =A0 =A0 =A0public void reorient() { > > - =A0 =A0 =A0 =A0final int rot =3D mDisplay.getRotation(); > > + =A0 =A0 =A0 =A0int rot =3D mDisplay.getRotation(); > > + =A0 =A0 =A0 =A0switch (rot) { > > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0case Surface.ROTATION_0: > > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0rot =3D Surface.ROTATI= ON_90; break; > > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0case Surface.ROTATION_90: > > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0rot =3D Surface.ROTATI= ON_180; break; > > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0case Surface.ROTATION_180: > > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0rot =3D Surface.ROTATI= ON_270; break; > > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0case Surface.ROTATION_270: > > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0rot =3D Surface.ROTATI= ON_0; break; > > + =A0 =A0 =A0 =A0} > > > Regards, > > Vladimir > > > >> -Vishveshwar > > > >> On Apr 19, 4:21 am, Vladimir Barinov wrote: > > > >>> Hi Jeppe, > > > >>> jledet wrote: > > > >>>> Hi Vishveshwar, > > >>>> =A0 =A0 =A0 On a closer look it seems that you are right. There is= a > > >>>> black line in > > >>>> the right side of the screen on the LCD and also on a screendump: > > >>>>http://goo.gl/mpXko > > >>>> =A0 =A0 =A0 The flickering of the cube is not on the LCD, so I ass= ume > > >>>> it's just > > >>>> the screenshot program that cannot keep up with the framebuffer. > > >>>> =A0 =A0 =A0 I run the display at 800x480 using this > > >>>> rc.syslink:http://goo.gl/zkv54 > > >>>> My boot sequence looks like this:http://goo.gl/KIJsW > > > >>> The resolution 800x480 as well as 1024x600 are landscape. > > >>> Navigation buttons a hidden since the bar uses landscape view layou= t > > >>> (it's horizontal instead of vertical). > > > >>> You can simply trick it in NavigationBarView to use rotated views: > > > >>> =A0 =A0 public void reorient() { > > >>> - =A0 =A0 =A0 =A0final int rot =3D mDisplay.getRotation(); > > >>> + =A0 =A0 =A0 =A0final int rot =3D Surface.ROTATION_90; > > >>> //mDisplay.getRotation(); > > >>> =A0 =A0 =A0 =A0 for (int i=3D0; i<4; i++) { > > >>> =A0 =A0 =A0 =A0 =A0 =A0 mRotatedViews[i].setVisibility(View.GONE); > > >>> =A0 =A0 =A0 =A0 } > > > >>> Regards,