![]() |
[Patch] Unlock the rotation of most stock applications
Most of the MeeGo 1.2 Harmattan stock applications (excluding a few like Facebook, Twitter, AccuWeather, Maps and Drive) in the Nokia N9 and the Nokia N950 are written using the libmeegotouch UI library. Libmeegotouch allows the orientation of the application to be locked so that it does not rotate freely when the device is rotated. Most of the applications are locked to portrait to emphasize portrait as the primary device orientation. Unfortunately this is done on the UI library level so that there is no easy way to unlock the orientation.
This patch, available from http://vesuri.jormas.com/harmattan/libmeegotouch.html, changes libmeegotouch's MWindow::isOrientationAngleLocked() and MWindow::isOrientationLocked() so that instead of returning the locking value set by the application they return whether the application window's name or class matches one of the names or classes defined by the user in two GConf keys, /meegotouch/orientationlock/names and /meegotouch/orientationlock/classes. Both contain lists of strings, which can be set using GConfTool using the [value1,value2,value3] format. A pre-built libmeegotouchcore0 package for Harmattan PR1.3 is provided for those who want to try the patch out. When trying out the patch one should notice that the libmeegotouchcore0 package is installed from the com.nokia.maemo Aegis origin by default and cannot be replaced with a package from a less trusted source. Since force removing and reinstalling the package has the potential of rendering the device useless it is not recommended on a device which has a watchdog enabled. Incepting the package will work, but it should be noted that then the package becomes installed from com.nokia.maemo/local, which may cause problems if there will be an operating system update which includes libmeegotouchcore0. After installation the orientation of all libmeegotouch applications will be unlocked (after they are restarted). Orientations of specific windows can be locked by setting their names to the /meegotouch/orientationlock/names GConf key as follows: gconftool -s -t list --list-type=string /meegotouch/orientationlock/names "[Screen Lock]" Window names can be checked with the xprop utility available in the x11-utils package: # xprop WM_NAME WM_NAME(STRING) = "Screen Lock" Window classes can also be used by setting the classes of the windows to be orientation locked to the /meegotouch/orientationlock/classes key: gconftool -s -t list --list-type=string /meegotouch/orientationlock/classes "[calc,clock]" Window classes can also be checked with the xprop utility available in the x11-utils package: # xprop WM_CLASS WM_CLASS(STRING) = "calc", "Calc" The patch checks whether either the name or the class of the class hint exists in the GConf key value. Since many of the stock applications have not been maintained to work in landscape, an additional theme package is provided to add landscape theming for those stock applications that have not been maintained in landscape. As always, use at your own risk! There is absolutely no warranty. The author takes no responsibility for problems, loss of data or loss of functionality caused by this patch. Also note that QML applications like Facebook and Twitter do not benefit from this patch. |
Re: [Patch] Unlock the rotation of most stock applications
Sounds like incepting it could do the trick to preserve the com.nokia.maemo origin. Anyone going to try out? :D
|
Re: [Patch] Unlock the rotation of most stock applications
Vesuri, did you already tried out incepting it first?
|
Re: [Patch] Unlock the rotation of most stock applications
Quote:
|
Re: [Patch] Unlock the rotation of most stock applications
This is great! Video anyone, please?
|
Re: [Patch] Unlock the rotation of most stock applications
This is great as the stock apps that won't do landscape are quite annoying.
|
Re: [Patch] Unlock the rotation of most stock applications
Quote:
|
Re: [Patch] Unlock the rotation of most stock applications
Quote:
|
Re: [Patch] Unlock the rotation of most stock applications
I'm also working on a theme package which adds landscape theming for those stock applications that have not been maintained in landscape.
Quote:
http://vesuri.jormas.com/harmattan/m...cape-phone.png Also, here's the Calculator in landscape: http://vesuri.jormas.com/harmattan/m...calculator.png Clock: http://vesuri.jormas.com/harmattan/m...cape-clock.png Music: http://vesuri.jormas.com/harmattan/m...musicsuite.png Settings: http://vesuri.jormas.com/harmattan/m...e-settings.png Store: http://vesuri.jormas.com/harmattan/m...e-ovistore.png Music Store: http://vesuri.jormas.com/harmattan/m...musicstore.png The patch, the pre-built libmeegotouch, the theme package and more information can be found from http://vesuri.jormas.com/harmattan/libmeegotouch.html. |
Re: [Patch] Unlock the rotation of most stock applications
in pr1.3?????
|
Re: [Patch] Unlock the rotation of most stock applications
Thanks for updated theme package :).
|
Re: [Patch] Unlock the rotation of most stock applications
just downloaded the .deb file from the first post, tried to install, it didn't go through..."invalid installation package"
?? |
Re: [Patch] Unlock the rotation of most stock applications
Quote:
Then, after viewing the screenshots, I am more determined not to install it at all because frankly, those apps are not meant to be used in landscape mode especially the dialer. Just an opinion I want to share to those who potentially wished to install this. In fact, thread starter should put those screen shots on the first post, so that eager "puppies" can get the visual notice how the patch would affect the system. |
Re: [Patch] Unlock the rotation of most stock applications
Quote:
nobody forces you to install anything nor nobody who knows how to fix device gives care about your opinion. with comments like that you just making developers to work less and if everyone would leave comments like that then we would endup with no devs at all. so, save your opinion for "fart app" or something like that... |
Re: [Patch] Unlock the rotation of most stock applications
Quote:
I think screen shot helped big time in determining one's preference over patch and a clear indication that twitter and facebook won't work in landscape is a bonus. However, as this thread progresses, all these messages will be lost if it's not put on First or Second post. So I mere advise the thread starter to put these info on 1st page as FYI purposes I commend the thread starter's good effort by the way and love to see more innovation to come. |
Re: [Patch] Unlock the rotation of most stock applications
I've noticed that the browser windows now rotate in multitasking screen. :)
Also switching from landscape browser to multitasking view also mostly preserves the orientation, but not always. I haven't figured out the logic yet what specific condition forces them back to portrait. |
Re: [Patch] Unlock the rotation of most stock applications
Quote:
On the N950 there is no reason whatsoever why they wouldn't be "meant to be used" in landscape. Calculator, Settings, Search etc. definitely should be usable with the hardware keyboard open. Even in the Phone the user should be able to enter a phone number using the hardware keyboard and actually see the number entered in the correct orientation. If the loudspeaker or a pair of headphones is used the phone doesn't have to be in portrait to make a phone call. The Harmattan UI was supposed to work in both portrait and landscape. Some applications were locked in portrait when consumer devices with a hardware keyboard were canceled, leaving the N9 as the only device to truly target Harmattan for. (The N950 was chosen to be a limited developer device running the same software, so the limitations made for the N9 were taken into use in the N950 as well). The patch restores functionality that was originally intended to be in devices that have the hardware keyboard. Quote:
Indeed, the good thing about this is that no one has to install this. It's good that the screenshots have helped make the decision for you but I'm sure other users can make up their own minds about this. Quote:
Quote:
|
Re: [Patch] Unlock the rotation of most stock applications
@vesuri:
any idea of "invalid installation package" reason? thanks |
Re: [Patch] Unlock the rotation of most stock applications
mines pretty much different on some apps in landscape, music player is pretty much unusable and so is dialer and store wont rotate.
heres few screens: http://i.imgur.com/9IBy3.png http://i.imgur.com/8pNza.png http://i.imgur.com/40T4g.png http://i.imgur.com/XKyvE.png N9 on PR1.3 edit:forgot clock app (it has some black mod from N9Qtweak but landscape puts default bg color on the clock side) http://i.imgur.com/oFjnz.png |
Re: [Patch] Unlock the rotation of most stock applications
Quote:
From the support page (linked to in the original post): Quote:
|
Re: [Patch] Unlock the rotation of most stock applications
ahh thanks, most likely missed that post :P managed to fix Clock app myself already tho
|
Re: [Patch] Unlock the rotation of most stock applications
did someone knows how to fix this situation?
' open native browser when in landscape mode,then open new windows, then have to swipe to get to the page,, then when in the previous windows, the web browser go to portrait orientation instead of in landscape.' kinda annoyed me sometimes, |
Re: [Patch] Unlock the rotation of most stock applications
Quote:
Quote:
|
Re: [Patch] Unlock the rotation of most stock applications
Hi Vesuri
Can you please explain what the order of installation of this 3 packages ? Like this: Quote:
Quote:
https://www.dropbox.com/s/c11ymj078q...weak-b-7-1.PNG thanks |
Re: [Patch] Unlock the rotation of most stock applications
Is it possible to pack all the packages into one whole? Anyway thank you so much for this.
|
Re: [Patch] Unlock the rotation of most stock applications
Quote:
is dpkg -i twice too hard? |
Re: [Patch] Unlock the rotation of most stock applications
Quote:
2 I can't install the second deb file as the reason stated in 1st post (will try incept) 3 Do you argue with anyone you see in the forum? Are you the smartest person or whatever? Who you are?! |
Re: [Patch] Unlock the rotation of most stock applications
Quote:
ftp://ftp.jormas.com/users/vesuri/ha...+0m8_armel.deb then you install this via dpkg: ftp://ftp.jormas.com/users/vesuri/ha....1.1-1_all.deb No, I don't argue with everyone... Smartest person, I am far from it... I hope i helped... |
Re: [Patch] Unlock the rotation of most stock applications
When I try to incept libmeegotouchcore0, it failed because of dependency problems.
Code:
dpkg: dependency problems prevent configuration of libmeegotouchcore0 |
Re: [Patch] Unlock the rotation of most stock applications
Quote:
EDIT #1: Yeah it's for PR 1.3. However, I was trying to get this to work also on PR 1.2 (Beta) on N950. I documented the steps I did to make it work...I will try on the Nokia N9 and see if it will give the same results. :) Here's my post: http://talk.maemo.org/showpost.php?p...4&postcount=23 EDIT #2: Problems encountered after. :( Will work again to see how to solve. Last solution: upgrade to PR 1.3. EDIT #3: I took a look at the repackaged version of mikhail for PR1.2, I think the reason why it isn't installing on PR1.2 is because the "owner" (user and group) of the files in the deb need to be changed. :) |
Re: [Patch] Unlock the rotation of most stock applications
Can you explain how to install it properly?
Also, im a Designer so if you need help doing graphics just give me a buzz :D |
Re: [Patch] Unlock the rotation of most stock applications
I am also looking for help here.
I incepted libmeegotouchcore0_0.25.10-1+0m8_armel.deb Then installed meegotouchtheme-landscape_0.1.1-1_all.deb Then I tried applying patch but got message "patch not found" I want to know how to resolve this. But I can see most apps now work in landscape, though music player gets messed up. Also how can i rotate lockscreen and Low power screen rotatable? |
Re: [Patch] Unlock the rotation of most stock applications
Quote:
I know im installing it wrongly. What you say about lockscreen and lp screen can be achieved my using N9QT app |
Re: [Patch] Unlock the rotation of most stock applications
Quote:
Now tell me, when you get patch not found doesn't it mean the utility "patch" isn't installed in your system? So just do "apt-get install patch" and proceed to apply the patch... Please try reading errors and understanding them... |
Re: [Patch] Unlock the rotation of most stock applications
Quote:
I really dont get the apt thingy. Sorry about the coding ignorance :) |
Re: [Patch] Unlock the rotation of most stock applications
Quote:
Code:
devel-su Voila done ;) |
Re: [Patch] Unlock the rotation of most stock applications
Then we install the debs?
Because i always got some error at the deb install, and i read someone that was saying it needed a dpkg or something via terminal.. |
Re: [Patch] Unlock the rotation of most stock applications
Does "Incepted" means it need inception?
Cuz i sure dont have it nor want it installed :D |
Re: [Patch] Unlock the rotation of most stock applications
Quote:
Post the errors you are getting and i'll guide you along :) |
Re: [Patch] Unlock the rotation of most stock applications
Quote:
If you don't want it then you can't use this...simples... |
All times are GMT. The time now is 16:50. |
vBulletin® Version 3.8.8