maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat (https://talk.maemo.org/showthread.php?t=85456)

Vesuri 2012-07-12 12:02

[Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
Recent Harmattan releases (including PR1.3) have the problem of not automatically rotating the UI to landscape when opening the hardware keyboard if the device is flat on the table. The UI only rotates if the device is not flat. This trivial patch fixes the problem. The patch is included in the libmeegotouchcore0 version that unlocks the rotation of libmeegotouch applications (with installation instructions). If there is a need for a libmeegotouchcore0 build with only this patch applied that can be arranged.

arcean 2012-07-12 12:08

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
Thank you Vesuri! Works as expected :).

HtheB 2012-07-12 13:42

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
Nice one! Works great, thanks!

MaemoJirka 2012-07-12 16:09

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
Thanks,works great :)

Bundyo 2012-07-12 18:13

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
Hmm, are you saying that N950 can install PR1.3? :)

mikhail_ramalho 2012-07-12 21:01

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
I dind't work for me (N950).

apt keeps complaining about the version number, libmeegotouchcore0 0.25.10-1+0m8 is installed but others applications require 0.24.20-1+0m7.

Can you provide the same package but with the 0.24.20-1+m7 version number?

Vesuri 2012-07-12 21:51

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
Quote:

Originally Posted by mikhail_ramalho (Post 1236764)
I dind't work for me (N950).

apt keeps complaining about the version number, libmeegotouchcore0 0.25.10-1+0m8 is installed but others applications require 0.24.20-1+0m7.

That's because you are not running Harmattan PR1.3 on your system (and actually not even the final PR1.2, since the final PR1.2 has 0.24.21-1+0m7). As mentioned on the linked page the provided package is for PR1.3.

Quote:

Originally Posted by mikhail_ramalho (Post 1236764)
Can you provide the same package but with the 0.24.20-1+m7 version number?

Let's see. It would be better to get N950 owners their PR1.3 upgrades though...

wook_sf 2012-07-12 21:53

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
Quote:

Originally Posted by Vesuri (Post 1236798)
That's because you are not running Harmattan PR1.3 on your system (and actually not even the final PR1.2, since the final PR1.2 has 0.24.21-1+0m7). As mentioned on the linked page the provided package is for PR1.3.



Let's see. It would be better to get N950 owners their PR1.3 upgrades though...

afaik, no pr1.3 for n950 :D
or i am (hopefully) wrong

mikhail_ramalho 2012-07-12 22:01

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
Quote:

Originally Posted by Vesuri (Post 1236798)

Let's see. It would be better to get N950 owners their PR1.3 upgrades though...

Yeah, that would be great but I don't think we'll be getting the update :/

I think I'll get version 0.24.21-1+0m7 [1], apply your patch and build the package to see if it works.

Just one hour remaining to finish scratchbox instalation :/

[1] source for 0.24.21-1+0m7: http://mohammadag.xceleo.org/n9sourc...libmeegotouch/

wook_sf 2012-07-12 22:11

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
1 Attachment(s)
Quote:

Originally Posted by mikhail_ramalho (Post 1236803)
Yeah, that would be great but I don't think we'll be getting the update :/

I think I'll get version 0.24.21-1+0m7 [1], apply your patch and build the package to see if it works.

Just one hour remaining to finish scratchbox instalation :/

[1] source for 0.24.21-1+0m7: http://mohammadag.xceleo.org/n9sourc...libmeegotouch/

issue with MAG's site:
http://safebrowsing.clients.google.c...libmeegotouch/

Vesuri 2012-07-13 06:44

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
Quote:

Originally Posted by mikhail_ramalho (Post 1236764)
Can you provide the same package but with the 0.24.20-1+m7 version number?

Here goes.

libmeegotouchcore0_0.24.20-1+0m7_armel.deb
libmeegotouchcore0_0.24.21-1+0m7_armel.deb

These only contain the fix for the hardware keyboard opening, not the "unlock rotation" stuff. I have NOT tested these packages but I don't see any reason they wouldn't work - they're the released versions plus the one line patch.

mikhail_ramalho 2012-07-13 13:59

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
Quote:

Originally Posted by Vesuri (Post 1236893)
Here goes.

libmeegotouchcore0_0.24.20-1+0m7_armel.deb
libmeegotouchcore0_0.24.21-1+0m7_armel.deb

These only contain the fix for the hardware keyboard opening, not the "unlock rotation" stuff. I have NOT tested these packages but I don't see any reason they wouldn't work - they're the released versions plus the one line patch.

Thanks! But this didn't work because of conflict on qt version :(

The package 0.24.20-1 that you uploaded requires qt >= 4.7.4~git20120327 and N950 has version 4.7.4~git20120112-0maemo1+0m7 D:

But, thanks to dpkg-deb, I extracted the contents of your packages and changed control to accept N950's qt version and now it's working! I also uploaded to dropbox if anyone wants to try. The rotation to landscape when opening the keyboard when the device is flat works :)

libmeegotouchcore0_0.24.20-1+0m7_armel.deb

Vesuri 2012-07-14 01:25

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
Quote:

Originally Posted by mikhail_ramalho (Post 1237018)
Thanks! But this didn't work because of conflict on qt version :(

The package 0.24.20-1 that you uploaded requires qt >= 4.7.4~git20120327 and N950 has version 4.7.4~git20120112-0maemo1+0m7 D:

Argh :) I built those packages on the official PR1.2 branch so they got built against the PR1.2 Qt. It's a shame the N950 PR1.2 is not the official PR1.2...

Quote:

Originally Posted by mikhail_ramalho (Post 1237018)
But, thanks to dpkg-deb, I extracted the contents of your packages and changed control to accept N950's qt version and now it's working!

That's good :) The library built against the final PR1.2 Qt definitely should be binary compatible with the N950 pre-PR1.2 Qt so this indeed should be safe.

HtheB 2012-07-14 06:04

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
Is there no way to make a community version of the official pr1.3 for the N950? I want to make a clean flash, but there is only the pre 1.2 for it :( So I have to do an OTA update every time after a flash... :(

topet2k12001 2012-08-20 23:39

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
1 Attachment(s)
Quote:

Originally Posted by mikhail_ramalho (Post 1237018)
Thanks! But this didn't work because of conflict on qt version :(

The package 0.24.20-1 that you uploaded requires qt >= 4.7.4~git20120327 and N950 has version 4.7.4~git20120112-0maemo1+0m7 D:

But, thanks to dpkg-deb, I extracted the contents of your packages and changed control to accept N950's qt version and now it's working! I also uploaded to dropbox if anyone wants to try. The rotation to landscape when opening the keyboard when the device is flat works :)

libmeegotouchcore0_0.24.20-1+0m7_armel.deb

Hi Friend,
I tried your version of libmeegotouchcore (for N950) and installed via /usr/sbin/incept...I am unable to install it. Here is the message in Terminal:

Code:

Package libmeegotouchcore0 has package signature (origin 'com.nokia.maemo/local')
Reading from database...46496 files and directories currently installed.)
Preparing to replace libmeegotouchcore0 0.24.20-1+0m7 (using /var/tmp/inception/pkg_M5Sh2R)...
Unpacking replacement libmeegotouchcore0...
dpkg: error processing /var/tmp/inception/pkg_M5Sh2R (--install):
error setting permissions of './usr/share/doc/libmeegotouchcore0': Operation not permitted
dpkg-deb (subprocess): data: internal gzip write error: Broken pipe
dpkg-deb (subprocess): failed in write on buffer copy for failed to write to pipe in copy: Broken pipe
dpkg-deb: subprocess <decompress> returned error exit status 2
Errors were encountered while processing: /var/tmp/inception/pkg_M5Sh2R
aegis-installing libmeegotouchcore0 (from 'com.nokia.maemo/local')


http://talk.maemo.org/attachment.php...1&d=1345505987

By the way, the version that you have: is this already inclusive of the "unlock rotation of apps" or is this just the fix for "landscape mode when N950 is flat on the table"?

mikhail_ramalho 2012-08-22 22:25

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
Looks like the package is corrupted, have you tried to download it again?

topet2k12001 2012-08-22 22:28

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
Quote:

Originally Posted by mikhail_ramalho (Post 1254651)
Looks like the package is corrupted, have you tried to download it again?

Wow. :) Thank you for the quick response to my PM.

Let me try again. Anyway I have just reflashed my N950 so at least I can do it from a clean slate. Will revert back by posting here or by PM.

topet2k12001 2012-08-22 22:37

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
Same exact error message as my previous post, sir. :(

mikhail_ramalho 2012-08-23 20:19

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
I have just downloaded the file and installed on my N950 without problems.

Looks like you're using Inception right? I'm using open mode but I really don't think that this should be a problem.

I see that inception fakes the signature to com.nokia.maemo/local and libmeegotouch has signature com.nokia.maemo.

Do you know if you can change the fake signature to match "com.nokia.maemo"?

But again, I don't know if that's the problem. You can install unrestricted-ui, which is also a system package, using inception afaik.

(one last question, what's the md5 you getting from the package? Mine is:
0bce3803e158869ede06d8efc1ee9432 libmeegotouchcore0_0.24.20-1+0m7_armel.deb )

topet2k12001 2012-08-24 04:48

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
1 Attachment(s)
Quote:

Originally Posted by mikhail_ramalho (Post 1255073)
I have just downloaded the file and installed on my N950 without problems.

Looks like you're using Inception right? I'm using open mode but I really don't think that this should be a problem.

I see that inception fakes the signature to com.nokia.maemo/local and libmeegotouch has signature com.nokia.maemo.

Do you know if you can change the fake signature to match "com.nokia.maemo"?

But again, I don't know if that's the problem. You can install unrestricted-ui, which is also a system package, using inception afaik.

(one last question, what's the md5 you getting from the package? Mine is:
0bce3803e158869ede06d8efc1ee9432 libmeegotouchcore0_0.24.20-1+0m7_armel.deb )

Hello sir,

Sorry I haven't checked if I received a PM from you or if it bouned. Thanks by the way for helping. :)

Here the md5 I got (same as yours):

http://talk.maemo.org/attachment.php...1&d=1345783645

Yes, I also have unrestricted-system-ui, MT-Toggles by MAG, and LED Notifications via Inception.

Hm...so your setup is Open-Mode. I haven't done that yet as I'm on Inception). Could be...we'll never know and anything's possible. Will flash to open mode and see how it goes. Will report back, thank you once again! :)

HtheB 2012-08-24 08:40

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
Quote:

Originally Posted by topet2k12001 (Post 1255165)
Hello sir,

Sorry I haven't checked if I received a PM from you or if it bouned. Thanks by the way for helping. :)

Here the md5 I got (same as yours):

http://talk.maemo.org/attachment.php...1&d=1345783645

Yes, I also have unrestricted-system-ui, MT-Toggles by MAG, and LED Notifications via Inception.

Hm...so your setup is Open-Mode. I haven't done that yet as I'm on Inception). Could be...we'll never know and anything's possible. Will flash to open mode and see how it goes. Will report back, thank you once again! :)

You don't need open mode :)

do you have the latest inception?

topet2k12001 2012-08-24 14:23

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
Quote:

Originally Posted by HtheB (Post 1255208)
You don't need open mode :)

do you have the latest inception?

Hello,

Yup, I have the latest (0.2.5)...is this still the latest version?

Been doing this with Inception (from newly-flashed device, with unrestricted-system-ui) but still no luck; also did various installation sequences from newly-flashed device (new flash->Inception->unrestricted-system-ui->Patch, and some other ways around).

Open Mode is the only thing I haven't tried this patch on yet...I'm trying out the file version made by mikhail by the way, since I was experiencing the same issue that he has when he tried out Vesuri's (that the device is complaining about the Qt version as well as the version of libmeegotouchcore, a.k.a. the first .deb file).

Thanks for pitching in sir. :)

topet2k12001 2012-08-26 01:09

[SOLVED] How I Made It Work on N950 PR 1.2
 
Friends,

Whew...finally. :) I got it to (somehow) work, lol...I'm posting here to document my "little adventure" to have this solved...initially for my own reference, but might as well share it. But first, I'd like to thank the following through the course of this adventure:

HtheB - for accommodating my questions via PM...very nice guy...and for giving me a "very good tip" about the N950. :)
Arie - sent him a PM but unfortunately he was already offline (still would like to thank him)...sent him a follow-up PM to mention that it is solved now.
mikhail_ramalho - for answering my queries via posts in the thread as well as via PM.
coderus - haven't had interaction with him, but would like to thank him for the "back-ported" versions of unrestricted-system-ui.
Vesuri - of course, for coming up with the patch. :)

1. Flash the N950
2. Enable Developer Mode
3. Enable/Install Inception

---------------------

(steps I experimented on):

4. Installed a "back-ported" version of unrestricted-system-ui by coderus from Post #115 of the "Unrestricted system-ui" thread in lieu of the regular versions from MAG's repository: libnotificationsystem, unrestricted-system-ui, beep-icons

Note: Installed them via Inception, from Root Terminal.

5. Initially I was trying my best to install mikhail's version of libmeegotouchcore0, since I had the exact same experience as him, where the installation was complaining that I was trying to install a higher version when I used Veruri's version of libmeegotouchcore0.

6. Through conversation via PM with HtheB, I was advised that Vesuri's version will work, even on PR 1.2. So at this point where I had used the "back-ported" version of unrestricted-system-ui by coderus I mentioned in Step 4, and since I have been re-flashing, I gave it one more shot. Went on to installing Vesuri's libmeegotouchcore0, in spite of Terminal giving me the same complaint/errors (installed via Inception from Root Terminal).

7. Installed Vesuri's landscape theme, and then reboot the device.

So far, so good.,,the Clock, Phone, Music apps rotate to landscape (Store already opens in landscape when physical keyboard is open prior - already mentioned by Vesuri and also confirmed it). :)

At this point, I am just wondering if there will be anticipated problems in the future, since I installed:

1. a "back-ported" version of unrestricted system-ui
2. libmeegotouchcore0 that is supposed to be for PR 1.3

Any thoughts will be appreciated. :)

PS: I am still hoping that I can get mikhail's version to work.

topet2k12001 2012-08-27 05:56

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
False Alarm. :(

After a few minutes, some apps turned into red squares with exclamation points...looking at the affected apps, these are the ones that would normally prompt you for Software Updates:

Maps
Drive
Music Store
Store
Facebook
Twitter
AP Mobile
Angry Birds
Terminal

Oh well...back to Square 1. :)

EDIT: @mikhail

From my limited experience and knowledge (I'm still in the learning stages, my apologies), I opened up your version of libmeegotouchcore0 via 7zip and this is what I saw:

https://lh5.googleusercontent.com/-l...8/s912/001.png

...if my understanding is correct, "ceteli04" is like the usergroup or user of your physical computer, correct? If so, then now I think I know why your deb file runs on your end, but not on my end...is that a "correct" observation? Because based from the error output that I posted previously, I think the installation is failing because it's unable to set permissions.

Code:

Package libmeegotouchcore0 has package signature (origin 'com.nokia.maemo/local')
Reading from database...46496 files and directories currently installed.)
Preparing to replace libmeegotouchcore0 0.24.20-1+0m7 (using /var/tmp/inception/pkg_M5Sh2R)...
Unpacking replacement libmeegotouchcore0...
dpkg: error processing /var/tmp/inception/pkg_M5Sh2R (--install):
error setting permissions of './usr/share/doc/libmeegotouchcore0': Operation not permitted

dpkg-deb (subprocess): data: internal gzip write error: Broken pipe
dpkg-deb (subprocess): failed in write on buffer copy for failed to write to pipe in copy: Broken pipe
dpkg-deb: subprocess <decompress> returned error exit status 2
Errors were encountered while processing: /var/tmp/inception/pkg_M5Sh2R
aegis-installing libmeegotouchcore0 (from 'com.nokia.maemo/local')

Just wanted to share so that this can be fixed, if applicable.

mikhail_ramalho 2012-08-28 17:12

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
Yeah, ceteli04 is my user :)

You can repack the package using the following comands:

Code:

$ mkdir -p extract/DEBIAN
$ dpkg-deb -x package.deb extract/
$ dpkg-deb -e package.deb extract/DEBIAN
[...do something, e.g. edit the control file...]
$ mkdir build
$ dpkg-deb -b extract/ build/

(you can do as sudo if you want too)

I'll try to repack it as sudo and upload again to dropbox.

topet2k12001 2012-08-28 17:30

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
Quote:

Originally Posted by mikhail_ramalho (Post 1256840)
Yeah, ceteli04 is my user :)

You can repack the package using the following comands:

Code:

$ mkdir -p extract/DEBIAN
$ dpkg-deb -x package.deb extract/
$ dpkg-deb -e package.deb extract/DEBIAN
[...do something, e.g. edit the control file...]
$ mkdir build
$ dpkg-deb -b extract/ build/

(you can do as sudo if you want too)

I'll try to repack it as sudo and upload again to dropbox.

Thank you! Yes I will try to repack, but will also appreciate a newly-uploaded version...just so I can check if I did the re-packing correctly. :)

EDIT: To confirm: on the "do something..." part...this is where I can start modifying the ownerships (chown) to the default "root", prior to continuing the build steps, right?

mikhail_ramalho 2012-08-28 18:23

Re: [Patch] N950: fix for rotating the UI to landscape when opening the hardware keyboard when the device is flat
 
Yeah, you can modify anything, from dependencies on the control files to binaries


All times are GMT. The time now is 21:07.

vBulletin® Version 3.8.8