maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [Announce]Hildon desktop package which supports lock in portrait mode (https://talk.maemo.org/showthread.php?t=80644)

l32606 2011-12-05 03:54

[Announce]Hildon desktop package which supports lock in portrait mode
 
1 Attachment(s)
Package name: hildon-desktop
Version: 1:2.2.142-16-l32606

Description:
Modified base on CSSU master source and can lock N900 display in portrait mode or landcrape mode. Using "Orietation lock" applet can switch between auto rotation mode or the current orientaion(landsape or portrait).

How to install:
Using the following command in XT:
root
dpkg -i filepath.deb
killall hildon-desktop

How to restore:
You can get the CSSU HD from here and reinstall it.
http://repository.maemo.org/communit...2-17_armel.deb

Sources:
http://www.4shared.com/file/N7Cmmrye...rait_Lock.html
Here is diff.

Any question fell free to contact me.

strange1712 2011-12-05 04:19

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
... Don't wanna look paranoic but... This is Really strange... Why didn't you ever mentioned it on previous posts or in CSSU?

Alfred 2011-12-05 04:22

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
hello!
how to actually lock it in portrait? Is there any gconftool command?

l32606 2011-12-05 05:07

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Quote:

Originally Posted by Alfred (Post 1133314)
hello!
how to actually lock it in portrait? Is there any gconftool command?

Frist of all, make sure you have installed the status memu applet : Orientation lock.

Then take the phone into portrait mode, and click the "Orientation lock" applet button. The phone will be locked in the portrait mode.

That's all.

l32606 2011-12-05 05:18

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Quote:

Originally Posted by strange1712 (Post 1133312)
... Don't wanna look paranoic but... This is Really strange... Why didn't you ever mentioned it on previous posts or in CSSU?

Yes, it is strange, I think.
I just found that some guys wanna the locking portrait mode feature in this thread: http://talk.maemo.org/showthread.php?t=74980
And I want it too. But the community does not want to support it for a long time.

So I made a modification by myself and release it for someone who need it just like myself.

ed_boner 2011-12-05 05:40

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
i have been waiting for this for so long..just installed it..damn good work!

ed_boner 2011-12-05 05:47

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
only bug that i see is omweather...but i sure can live with that...tks.

freemangordon 2011-12-05 08:19

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
I really don't get it why you are forking h-d. And asking for a mail in order to publish source code is impolite if not suspicious. Just attach .dsc and .tar.gz files in your opening post, as simple as that. Or even better make a clone of h-d on gitorious and request a merge of your patches so they can be reviewed and eventually merged upstream.

B-RUNO 2011-12-05 08:57

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Thanks l32606, i can confirm that's works and is not fake!!!:D

Mc_mice 2011-12-05 09:07

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
If I install this, will I lose compatability with the real CSSU, does the updates work after this install? Would like to use, but after the last testing I had to reflash, so I am kinda sceptical at the moment.

B-RUNO 2011-12-05 09:15

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
I dont think so even though if you want revert back just do as 32606 says on the first post.
Quote:

how to restore:
root
apt-get install --reinstall hildon-desktop
killall hildon-desktop

trisha02 2011-12-05 11:35

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Nokia-N900:~# apt-get install --reinstall hildon-desktop
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reinstallation of hildon-desktop is not possible, it cannot be downloaded.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Nokia-N900:~#

i want to revert back.:(

don_falcone 2011-12-05 11:39

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
...can you actually F*CKING STOP to install everything that you get under your little fingers and then come crying for help EVERY F*CKING TIME if it doesn't work out?

Alfred 2011-12-05 12:16

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Sadly, i can confirm trishas situation, BUT i don't understand why one would want to revert back, although i will try to find an answer.. btw i tested uninstallation just for fun.

HELLASISGREECE 2011-12-05 13:49

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Thank you so much!

it's the perfect thing to do when I'm on the go, listening to music!

.__.. 2011-12-05 14:09

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Anyone else would love to see this in CSSU?

marmistrz 2011-12-05 14:22

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
I'd like to have it in CSSU!

l32606 2011-12-05 14:46

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Quote:

Originally Posted by freemangordon (Post 1133376)
I really don't get it why you are forking h-d. And asking for a mail in order to publish source code is impolite if not suspicious. Just attach .dsc and .tar.gz files in your opening post, as simple as that. Or even better make a clone of h-d on gitorious and request a merge of your patches so they can be reviewed and eventually merged upstream.

I really want to upload the source code together with the deb package.
BUT you know there is a limitation of the attachment size here.
And the size of source code file exceeds the forum's limit of 488.3 KB for .gz file.

So I have to do like that.

Actually I'm just a maemo user of N810, N900 and I like them and maemo.org. I even do not want to fork HD. I wish CSSU can provide the feature just like some other guys do. As I mentioned, we need the function with a long-time waiting.
When I went through the HD
code last week, I found it is possible and easy to support locking-portrait mode. So I posted to show it. The modification is very simple and no more than 10 lines or code. Trust me. So I don't think there is any side effect for this change.

Please forgive my pool English and I wish I have explained it clearly.

l32606 2011-12-05 15:07

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Here is the diff output.
Code:

diff -r community-ssu-hildon-desktop-master/community-ssu-hildon-desktop/debian/changelog community-ssu-hildon-desktop/debian/changelog
0a1,6
> hildon-desktop (1:2.2.142-16-l32606) unstable; urgency=low
>
>  * support lock portrait
>
>  -- l32606 <l32606@gmail.com>  Sat, 03 Dec 2011 22:27:09 +0300
>
diff -r community-ssu-hildon-desktop-master/community-ssu-hildon-desktop/src/launcher/hd-app-mgr.c community-ssu-hildon-desktop/src/launcher/hd-app-mgr.c
147a148,151
> static gboolean g_lock_portrait = TRUE;
>
> static gboolean g_rotation_flag = TRUE; // TRUE: AUTO; FALSE: lock
>
489a494,499
>
>      gconf_client_notify_add (priv->gconf_client, "/apps/osso/hildon-desktop/orientation_lock",
>                                hd_app_mgr_gconf_value_changed,
>                                (gpointer) self,
>                                NULL, NULL);
>         
1995c2005
< static gboolean
---
> static gboolean
2082,2083c2092,2099
<          priv->portrait = _hd_app_mgr_dbus_check_value (msg,
<                                            MCE_ORIENTATION_PORTRAIT);
---
>              if (g_rotation_flag)
>              {
>                          priv->portrait = _hd_app_mgr_dbus_check_value (msg, MCE_ORIENTATION_PORTRAIT);
>              }
>                  else
>                  {
>                        priv->portrait = g_lock_portrait;
>                  }
2136c2152
<
---
> (void)state;
2143c2159
<  gboolean activate = (
---
>  gboolean activate = TRUE;/*(
2153c2169
<                    );
---
>                    );*/
2239a2256,2257
>  gboolean v = STATE_IS_PORTRAIT(hd_render_manager_get_state ());

2319c2337,2348
<      priv->ui_can_rotate = value;
---
>      priv->ui_can_rotate = TRUE;//value;
>
>      priv->ui_can_rotate = TRUE;
>          if (value == TRUE)
>          {
>                  g_rotation_flag = TRUE;
>          }
>          else
>          {
>                  g_rotation_flag = FALSE;
>            g_lock_portrait = v;
>          }
2323a2353,2357
>  else if (!g_strcmp0 (gconf_entry_get_key (entry),
>                  "/apps/osso/hildon-desktop/orientation_lock"))
>    {
>      //(void);
>    }
diff -r community-ssu-hildon-desktop-master/community-ssu-hildon-desktop/src/mb/hd-comp-mgr.c community-ssu-hildon-desktop/src/mb/hd-comp-mgr.c
1095c1095
<              || gconf_client_get_bool (gconf_client, GCONF_KEY_ORIENTATION_LOCK, NULL))
---
>              )//|| gconf_client_get_bool (gconf_client, GCONF_KEY_ORIENTATION_LOCK, NULL))
3223c3223
<  HdCompMgrPrivate *priv = hmgr->priv;
---
>  //HdCompMgrPrivate *priv = hmgr->priv;
3283c3283
<              || gconf_client_get_bool (priv->gconf_client, GCONF_KEY_ORIENTATION_LOCK, NULL))
---
>              )//|| gconf_client_get_bool (priv->gconf_client, GCONF_KEY_ORIENTATION_LOCK, NULL))
3293c3293
<              || gconf_client_get_bool (priv->gconf_client, GCONF_KEY_ORIENTATION_LOCK, NULL))
---
>              )//|| gconf_client_get_bool (priv->gconf_client, GCONF_KEY_ORIENTATION_LOCK, NULL))
3358,3359c3358,3359
<                gboolean orientation_lock = gconf_client_get_bool (priv->gconf_client,
<                                                                                                                                                                                                                                GCONF_KEY_ORIENTATION_LOCK, NULL);
---
>                gboolean orientation_lock = gconf_client_get_bool (priv->gconf_client,  GCONF_KEY_ORIENTATION_LOCK, NULL);
>                orientation_lock = FALSE;

In fact, some changes are useless, such as:
489a494,499
2143c2159,

And the modification of hd-comp-mgr.c is ugly. I think the better way is change lib-orientation-lock-status-menu-widget.c in status-area-orientationlock-applet. But it will change two package.

freemangordon 2011-12-05 15:18

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Quote:

Originally Posted by l32606 (Post 1133517)
I really want to upload the source code together with the deb package.
BUT you know there is a limitation of the attachment size here.
And the size of source code file exceeds the forum's limit of 488.3 KB for .gz file.

So I have to do like that.

Actually I'm just a maemo user of N810, N900 and I like them and maemo.org. I even do not want to fork HD. I wish CSSU can provide the feature just like some other guys do. As I mentioned, we need the function with a long-time waiting.
When I went through the HD
code last week, I found it is possible and easy to support locking-portrait mode. So I posted to show it. The modification is very simple and no more than 10 lines or code. Trust me. So I don't think there is any side effect for this change.

Please forgive my pool English and I wish I have explained it clearly.

If it is 10 lines of code you can do diff and attach the patch here.

ed_boner 2011-12-05 16:05

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
..impolite and suspicious?!..all this guy did was to answer a need of many n900 users, and share it with all..maybe one or two bugs but in spite of that an exelent work...

MohammadAG 2011-12-05 16:34

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
While I dislike forks, I don't mind them, but for the purpose of not causing us issues with CSSU updates, DON'T change the version number, thanks.

udaychaitanya16 2011-12-05 17:17

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
After all, l32606 did something for himself and for the people who has interest in doing the same thing.Man, if some people dont find it amusing its best to keep away.This sort of self appointed guardianship doesn't look nice.It's best to be polite as MohammadAG always does.

freemangordon 2011-12-05 18:12

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Quote:

Originally Posted by ed_boner (Post 1133553)
..impolite and suspicious?!..all this guy did was to answer a need of many n900 users, and share it with all..maybe one or two bugs but in spite of that an exelent work...

Ok, maybe I overreacted a bit (in the context of recent source code requests for LGPLed binaries). Why suspicious you may ask. Maybe some of you still remember epitaph's surprises, that is why.

Anyway my point was that h-d is a community project, not some abandoned piece of software and it will be better to contribute to it in a correct way, it will be much easier for all of us who care.

l32606, please take my apologies if you feel offended by my posts. Not intentionally. And I really appreciate your contribution to h-d and CSSU. It just will be better to do it right way.

Joseph9560 2011-12-05 19:28

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
exactly what I was searching for.Thanks a lot lot lot!

l32606 2011-12-06 08:16

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Quote:

Originally Posted by freemangordon (Post 1133604)
Ok, maybe I overreacted a bit (in the context of recent source code requests for LGPLed binaries). Why suspicious you may ask. Maybe some of you still remember epitaph's surprises, that is why.

Anyway my point was that h-d is a community project, not some abandoned piece of software and it will be better to contribute to it in a correct way, it will be much easier for all of us who care.

l32606, please take my apologies if you feel offended by my posts. Not intentionally. And I really appreciate your contribution to h-d and CSSU. It just will be better to do it right way.

It's OK, freemangordon.

You know I am a newbie here and maybe not familiar with the rules to commit the change, but I have confidence in my change. So when I saw your reply first, I do not know why you said that. But now I got it.

I think all of us here share a common purpose that make the community better. So I wish I have the chance to do the contribution.

trisha02 2011-12-06 09:55

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
so how to uninstall dis new desktop and install the cssu one.

vi_ 2011-12-06 10:12

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Quote:

Originally Posted by trisha02 (Post 1133892)
so how to uninstall dis new desktop and install the cssu one.

U hav 2 reflash ur fone.

strange1712 2011-12-06 12:04

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Quote:

Originally Posted by vi_ (Post 1133896)
U hav 2 reflash ur fone.

Jajaja, don't be so evil...

TransTech 2011-12-06 13:55

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
To everybody (cssu developers) who need the source code please download it from...

@l32606: thank you for mailing me the source code... please move the source code link to your first post.

>>>DOWNLOAD SOURCE CODE HERE:<<<
http://www.4shared.com/file/N7Cmmrye...rait_Lock.html

l32606 2011-12-06 14:33

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Quote:

Originally Posted by trisha02 (Post 1133441)
Nokia-N900:~# apt-get install --reinstall hildon-desktop
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reinstallation of hildon-desktop is not possible, it cannot be downloaded.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Nokia-N900:~#

i want to revert back.:(

Sorry for late.

You can get the CSSU HD from here and reinstall it.
http://repository.maemo.org/communit...2-17_armel.deb

And here is another way, if you like:D
Quote:

Originally Posted by vi_ (Post 1133896)
U hav 2 reflash ur fone.


Keneraali 2011-12-06 15:01

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Locking Opera mobile to landscape with orientation lock applet doesn't work after this update, don't know if this is hildon-desktops or Operas bug

TransTech 2011-12-06 15:04

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Quote:

Originally Posted by Keneraali (Post 1134012)
Locking Opera mobile to landscape with orientation lock applet doesn't work after this update, don't know if this is hildon-desktops or Operas bug

just blacklist opera-mobile [blacklist=opera] in the transitions.ini file..
;)

l32606 2011-12-06 15:17

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Quote:

Originally Posted by Keneraali (Post 1134012)
Locking Opera mobile to landscape with orientation lock applet doesn't work after this update, don't know if this is hildon-desktops or Operas bug

Some apps. have their own scheme of the rotation signal, like Opera mobile, Mycontacts etc. As my known, hildon-deskop can't lock these apps.

So we have to set the orientation using Opera Mobile settings.

l32606 2011-12-06 15:18

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Quote:

Originally Posted by TransTech (Post 1134013)
just blacklist opera-mobile [blacklist=opera] in the transitions.ini file..
;)

Thanks TransTech.

I'll try it.:)

Keneraali 2011-12-06 15:28

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Quote:

Originally Posted by TransTech (Post 1134013)
just blacklist opera-mobile [blacklist=opera] in the transitions.ini file..
;)

I use Opera mainly in portrait but sometimes, eg. when lying on my right side it needs to be locked to landscape, so plain orientation lock would be the best option to use.
BTW even when blacklisted & lanscape-locked it still turns to portrait. Is it then Operas bug? It worked well with the latest CSSU update

ed_boner 2011-12-06 16:23

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
i love this modification..only when i reboot my phone it gets a bit weird, and the imageviewer is also not right..besides that, all is perfect, tks a lot!

l32606 2011-12-07 05:03

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Quote:

Originally Posted by ed_boner (Post 1134061)
i love this modification..only when i reboot my phone it gets a bit weird, and the imageviewer is also not right..besides that, all is perfect, tks a lot!

Thank you for your report.:)
I'll try to fix the bug of reboot.
I also found that imageviewer's problem in portrait mode. But I'm afraid that it's hard to be resolved cause imageviewer's code should be modified, I think.

TransTech 2011-12-07 12:16

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Quote:

Originally Posted by l32606 (Post 1134305)
Thank you for your report.:)
I'll try to fix the bug of reboot.
I also found that imageviewer's problem in portrait mode. But I'm afraid that it's hard to be resolved cause imageviewer's code should be modified, I think.

The image viewer needs to be blacklisted to properly use it in portrait mode...

in transitions.ini file:
[blacklist=image-viewer]

kaos_king 2011-12-07 21:54

Re: [Announce]Hildon desktop package which supports lock in portrait mode
 
Hey guys, I want to lock my phone to landscape all the time with the exeption of the phone app, is this possible as it seems the white/black lists are for portrait mode? TIA


All times are GMT. The time now is 10:29.

vBulletin® Version 3.8.8