Notices


Reply
Thread Tools
Posts: 212 | Thanked: 189 times | Joined on Oct 2010
#81
Originally Posted by Mentalist Traceur View Post
I really strongly request that you put up the code you already have somewhere...if someone else wishes to take up your work or collaborate with you.
yes
although I don't know how much I can do. I am "working" (thinking about how this could be done) on a portrait home screen.
 

The Following 2 Users Say Thank You to sethkha For This Useful Post:
Posts: 2,000 | Thanked: 3,345 times | Joined on Jun 2010 @ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
#82
Originally Posted by Mentalist Traceur View Post
Looks promising. I really strongly request that you put up the code you already have somewhere... That way we can always learn from it, and if someone else wishes to take up your work or collaborate with you, they can if they have something to contribute without waiting until it's more done.
Here are some files, binary and source together. It doesn't run at startup, it needs to be run from either qtaemon icon or /opt/usr/bin/qtaemon. It gives some debugging information in both qDebug and DBus messages (dbus-monitor | grep qtaemon).

It's raw. As you could see from screenshots, sometimes screen goes into one of the two difficult-to-use modes, it doesn't freeze, you can launch and close applications, but inputting lock code becomes almost impossible because you see only one or two or three buttons at first; and it's difficult to understand correspondence between touchscreen and image on the screen. So, the qtaemon doesn't reboot the device when you launch particular application, but rather unpredictably tricks you into wishing to reboot the device.

EDIT:
I would really prefer somebody to read into hildon-desktop and write modification of hildon-desktop which natively enables seamless auto-rotation.
http://talk.maemo.org/showthread.php?t=63419
Attached Files
File Type: deb qtaemon_0.1.1_armel.deb (16.6 KB, 113 views)
File Type: gz qtaemon_0.1.1.tar.gz (19.3 KB, 97 views)

Last edited by Wikiwide; 2010-11-14 at 12:15.
 

The Following 6 Users Say Thank You to Wikiwide For This Useful Post:
blipnl's Avatar
Posts: 279 | Thanked: 231 times | Joined on Apr 2010 @ Holland
#83
This seems awesome, I'd try it if it won't crash my phone when I'm calling someone, for this will make me feel such a douche

Any progress m8?
 
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#84
i installed this now my screens stuck upside down!!

HAHA!!

and I cant get portrait to work


edit: all it does for me is rotate screen 180deb and sticks it there

Last edited by F2thaK; 2010-11-16 at 08:58.
 

The Following 2 Users Say Thank You to F2thaK For This Useful Post:
Posts: 2,000 | Thanked: 3,345 times | Joined on Jun 2010 @ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
#85
Originally Posted by f2thak View Post
i installed this now my screens stuck upside down!!

HAHA!!

and I cant get portrait to work


edit: all it does for me is rotate screen 180deb and sticks it there
killall qtaemon
(or gather your patience)

Rotate from reverse landscape through portrait to landscape.
Hildon or qtaemon, will restore you to normal orientation.

Seriously, with patience and practice you can make the switching between three orientations seem seamless.
 
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#86
Patience?? It should be simple.

I tried this multiple times and I got the same result...

Open the app, tilt my phone a bit and the screen rotates 180 degrees and stays there.........

edit: and this command doesnt work for me >> (killall qtaemon)

Last edited by F2thaK; 2010-11-17 at 02:39.
 
Posts: 2,000 | Thanked: 3,345 times | Joined on Jun 2010 @ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
#87
Originally Posted by f2thak View Post
Patience?? It should be simple.

I tried this multiple times and I got the same result...

Open the app, tilt my phone a bit and the screen rotates 180 degrees and stays there.........

edit: and this command doesnt work for me >> (killall qtaemon)
In X Terminal
killall qtaemon
doesn't work??? Strange, the program is /opt/usr/bin/qtaemon



Algorithm for determining orientation is:
Take (x*x+y*y)^(0.5)
Compare it with z
If z is larger, the orientation is 0, undetermined, because the device is practically on its back
If z is smaller, then:
compare absolute values of x and y
the largest of them determines whether it is portrait or landscape
take its sign
it determines whether you are in reverse orientation

When orientation changes and the new orientation isn't zero, rotate.

Rotation:
set the active window's flag "autorotate"
if new and old orientation have opposite signs, reverse the screen

Now, switching to portrait should depend only on built-in autorotation; the main function of qtaemon is to set autorotate flag to each window and to reverse the screen when needed.

Now, attached version sets the flag oftener, even when the orientation hasn't changed, because you could open a new window without changing orientation.

Hope it helps.

EDIT: And one more change: now orientation isn't set to zero, it's just unchanged, because setting to zero erases memory about current reverse-or-not orientation and might contribute to being stuck in reverse landscape. But don't expect wonders...
Attached Files
File Type: deb qtaemon_0.1.1_armel.deb (16.5 KB, 116 views)

Last edited by Wikiwide; 2010-11-17 at 04:02.
 

The Following 2 Users Say Thank You to Wikiwide For This Useful Post:
Posts: 123 | Thanked: 56 times | Joined on Jun 2010 @ Portugal
#88
Originally Posted by f2thak View Post
Patience?? It should be simple.

I tried this multiple times and I got the same result...

Open the app, tilt my phone a bit and the screen rotates 180 degrees and stays there.........

edit: and this command doesnt work for me >> (killall qtaemon)
Same here...Thanks for this and keep it up...is it necessary the 180º rotation?
 

The Following User Says Thank You to SSLMM For This Useful Post:
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#89
nope, still does the same... rotatedaemon works better, sorry..
 

The Following User Says Thank You to F2thaK For This Useful Post:
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#90
I haven't tried either yet, but if this auto-sets the rotate flag instead of going through the rotate daemon crash-inducing dance, I'm siding with this by default. Just because it doesn't make usability compromising crashes a constant risk.
 

The Following User Says Thank You to Mentalist Traceur For This Useful Post:
Reply

Tags
orientation, rotation

Thread Tools

 
Forum Jump


All times are GMT. The time now is 04:57.