Author Topic: Disable Screen Rotation  (Read 4515 times)

uriahgreer

  • Newbie
  • *
  • Posts: 16
    • View Profile
Disable Screen Rotation
« on: July 15, 2010, 12:44:07 am »
I found this but was wondering if there's an easier way than editing each application? I would still like to be able to rotate manually using the little menu command, but I don't want it to automatically rotate when I change between clamshell and portrait. I'm using cacko 1.23 on a 3200. Any thoughts? Appreciate it.  

jcabrer

  • Full Member
  • ***
  • Posts: 161
    • View Profile
Disable Screen Rotation
« Reply #1 on: July 26, 2010, 08:27:28 pm »
I don't have Cacko installed, so I cannot be more specific with the solution, but there is a script that preforms the rotation of the screen, based on receiving the "keystroke" of the lid button.  It may be in one of the startup/config files for Qtopia.  You will have to disable the script, and hopefully not break the other two buttons for rotation.
Sharp SL-C3100 - pdaXrom Beta 3
Sharp SL-6000L - pdaXrom Beta 1

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Disable Screen Rotation
« Reply #2 on: October 10, 2011, 02:55:48 pm »
I know this is an old thread, but others are bound to ask the same questions, so I thought I would suggest tools for locating that file that performs the rotation.

One very basic tool is qcoptest, which logs all messages to qtopia, qcop messages.  I personally have not seen anything in it indicating where the rotation comes from, but on my sl6000, every time I change between applications, the rotation message appears in the log.  I have more  info about qcoptest at the following:

http://sdjf.esmartdesign.com/ipks/qcoptest.html

The other ways to find out what is going on are to either enable syslogd and view all activity, or run strace when you start an application.  Both can create voluminous output, I think strace would be more informative.  You could start any app from commandline using strace, and then while the app is still open, change your orientation and see what happens in the logs in both qcoptest and strace.

A tip for using strace is to allow longer character strings, I think the default is low, maybe 60 characters, and I prefer to up that to 100 or 200 characters so the ends of lines do not get snipped off in the log.

sdjf
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards