maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Bug report: hildon-desktop cpu usage, result=causes slow battery drain (https://talk.maemo.org/showthread.php?t=54462)

bman 2010-06-12 04:29

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
how do i install powertop thru my fone... its not in apps manager and cant connect to my computer atm
i have uninstalled a few apps and its not using massive cpu on idle now
unintsalled showtime
and re installed catorise

Austinek 2010-06-12 18:34

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
I think i found what is causing this bug, at least for me.
Im using "catorise".

how to reproduce the bug (5% cpu usage)

Code:

enter the menu
repeat up to 10 times {
  enter some category
  leave the category
}
exit the menu

open xterminal, and voila, hildon-desktop using 5% CPU. You can restart hildon-desktop by typing "killall hildon-desktop" and try it again.
This works every time for me. So the problem is obviously in catorise, or the menu itself.

Sry for english :)

das_schlumpfie 2010-06-12 18:59

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
@Austinek : i agree with you, but at the moment i cant uninstall catorise, looks like another reflash is needed.

mirakels 2010-06-12 20:38

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
it should be easy to disable catorise. In /etc/xdg/menus should be a file hildon.catorise. This is the orignal n900 menu.
If you move the hildon.menu file to hildon.menu.org and then cp hildon.catorise to hildon.menu you should effectivly disabled the catorise menu.

menno 2010-06-13 17:10

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
I can also confirm Austinek's results with Catorise. Seems to cause about 7% cpu usage for me. I've uninstalled it and will see if that solves the hildon-desktop cpu issues.

Cheers,
Menno

kyllerbuzcut 2010-06-13 18:14

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
does anybody else notice the battery drop about 20 to 30% every time you turn off then on again?

handaxe 2010-06-13 18:44

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
Quote:

Originally Posted by kyllerbuzcut (Post 713454)
does anybody else notice the battery drop about 20 to 30% every time you turn off then on again?

Yes indeed - a drop is expected but of quite so much?

HA

kyllerbuzcut 2010-06-13 20:13

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
yes it is that much.Not evey time, but especially if I have some sluggish performance trying to watch a video or play a game and the processor is working hard. At that stage when I think I will reboot and try that again, that is when I notice a huge battery drop upon restarting.
Thought it may be related to the huge cpu battery drain problem

handaxe 2010-06-13 20:46

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
Not related to the catorise / hildon-desktop issue reported here but it is an observable issue nonetheless (and in case I was unclear, I see it too).

I also observe the catorise behaviour, tho' the % usage seldom exceeds 3%

HA

Jaffa 2010-06-13 23:05

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
THanks to handaxe for pointing me here from the Catorise thread.

It looks like some code, possibly related to the new customisable menu, means that hildon-desktop doesn't work with the perfectly valid freedesktop.org file that Catorise generates. Given that Maemo no longer uses sub-categories, I wonder if the code there is broken (one of the reports above mentions going in and out of a category a dozen times).

mirakels 2010-06-14 08:24

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
I could reproduse the same thing using a mymenu based hildon.menu.
So I guess it has nothing to do with catorise itself.

I can easily trigger te bug but quickly entering and leaving submenus a couple of times.
It must be something in hildon-desktop.

I created a hildon-desktop from the latest git source. At first it seemed to help a bit, but this submenu issue is still there.

handaxe 2010-06-14 17:11

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
BTW, in my case (i.e. catorise), running a program after triggering the bug sees the high CPU use end, until one messes with the sub-menus.

HA

mirakels 2010-06-14 17:30

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
I just found another way to temporary fix the problem.
Just rename hildon.menu to some other name and then back again.
e.g.

mv hildon.men hildon.menu.notnow
sleep 1
mv hildon.menu.notnow hildon.menu

Maybe this could be a trigger to really solve the problem!

droll 2010-06-27 17:05

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
anyone found a solution to this yet? for me, either a reboot or a kill works too (but the latter sometimes causes weird graphical artifacts on my device)

DaSilva 2010-06-29 21:56

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
I really hate this bug. Isn't it possible to create a workaround or something to fix this?
Has anyone already voted for it? https://bugs.maemo.org/show_bug.cgi?id=10412

Gheorghe 2010-07-05 20:00

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
Catorize was the cause for high CPU usage in hildon-desktop, will report with screenshots once Battery Graph confirms this short term finding.

Battery graph showed CPU activity overnight while in offline mode and I was wondering why the battery lasts so little. Thanks to those of you that investigated this even further.

Gheorghe 2010-07-06 21:24

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
Unbelievable how the N900 behaves after uninstalling Catorize!!

Browsing the web is smoother than ever, all menus and options pop up instantly, programs seem to start quicker, navigation is blazing fast. I almost can not believe how fast it is, not to mention battery seems to lasts much longer now.

I had the N900 with Catorize installed almost from the beginning, I'll be very careful from now on what programs I'll be using on this device, it's like a totally different experience now.

Here is the before and after pic just to confirm the CPU usage while in Offline mode, see the time when it wasn't used, usually 1am to 6am:

With Catorize installed:
http://i46.tinypic.com/equo79.png

After uninstalling Catorize:
http://i46.tinypic.com/fz6zb8.png

Jaffa 2010-07-07 12:37

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
Quote:

Originally Posted by Gheorghe (Post 741577)
Catorize was the cause for high CPU usage in hildon-desktop, will report with screenshots once Battery Graph confirms this short term finding.

Catorise is not the cause, it is only the trigger. They are different things. Catorise is bug free; it's hildon-desktop which is broken.

Presumably someone could identify and fix hildon-desktop, submit a patch and release a new version; or even identify the specific circumstances in which it occurs (because installing Catorise, MyMenu or ApMeFo is not enough in all cases)

menno 2010-08-05 11:23

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
Is this hildon-desktop bug fixed yet?

Znuf 2010-08-09 09:48

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
Hi,

I don't know if a feed somthing but since yesterday, i had my CPU (3-5%) used by hildon-desktop. I looked whitch apps i installed yesterday and i remember that I installed Extra decoder and subtitle support.

Today at 08h25. I removed those packages and my probleme is resolved

http://i39.servimg.com/u/f39/11/09/48/80/screen14.png
My batterygraph with CPU Usage.

Sorry fo my english

RobbieThe1st 2010-08-16 04:05

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
I started having this problem like a day after installing midi-support(which installed three packages).
I've since removed midi-support(which only removed two packages), extra-decoders, and disabled my ApMeFo profile... to no avail.

Any ideas of other apps that could be triggering this problem? Or, a patched version of hildon-desktop to fix it?

maxximuscool 2010-08-16 04:10

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
My hildon-desktop is not hogging and I got Extra-decoders.
I just reflashed everything though lol.

Even I reinstalled everything and still okay for now. From what I see is Modified-Hildon-Desktop package hogging up my CPU every time my N900 is on more than 1day.

RobbieThe1st 2010-08-16 04:20

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
Quote:

Originally Posted by maxximuscool (Post 787625)
My hildon-desktop is not hogging and I got Extra-decoders.
I just reflashed everything though lol.

Even I reinstalled everything and still okay for now. From what I see is Modified-Hildon-Desktop package hogging up my CPU every time my N900 is on more than 1day.

Yea, I didn't think extra-decoders is the problem, but when you are trying to debug a problem, you try all potential problems.

To be honest, I've had no problem with Hildon-desktop up until recently. I could leave it up for a week, no issues. Its only recently that I've started to have issues.

Unless someone comes up with another potential cause/fix I can test, I'm gonna back things up and restore to my last image.

maxximuscool 2010-08-16 20:44

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
I am also trying to eliminating the problems. I just reflashed twice last night to find the problem. So far my device is running more less CPU consumption. I took out a bunch of software during my restoration.

One of the problem is my MicroB stopped its kenetic scrolling.
Solution is uninstalled: Bluetooth HID

Hildon-home hogging up the CPU:
Solution romoval of widgets: ConnectNow, Ipaddress, Sleeper, clockWidget (this is not yet confirmed i'm leaving it on for 24hours to see if there any increase in CPU usage)

Stuttering and slow while sliding home screens::
Solution: Transition control modification

These are what I've tried and works so far.

mirakels 2010-08-18 16:51

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
See below the last changelog entry for hildon-desktop.
Guess that means nokia will not support it anymore and won't fix the high battery drain issue when using submenus.

Quote:

2010-08-13 Adam Endrodi <adam.endrodi@blumsoft.eu>

This is the end, there won't be any more "upstream" development.
hildon-desktop and friends are truely free now, do whatever you
want with them.

This does not feel good. Can nokia explain this?

HellFlyer 2010-08-18 17:04

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
Quote:

Originally Posted by mirakels (Post 790729)
See below the last changelog entry for hildon-desktop.
Guess that means nokia will not support it anymore and won't fix the high battery drain issue when using submenus.



This does not feel good. Can nokia explain this?

Quite the opposite , if I got it right this means they gonna give source code for that components which means some talented guys here at tmo will be able to solve problems related to hildon-desktop;)

slender 2010-08-18 17:09

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
Quote:

Originally Posted by mirakels (Post 790729)
See below the last changelog entry for hildon-desktop.
Guess that means nokia will not support it anymore and won't fix the high battery drain issue when using submenus.

This does not feel good. Can nokia explain this?

Hmm. People have strange logic these days.

A. Using submenus is not basically Nokia headache. They did not use them so why should they implement fix that is triggered by 3rd party apps? Just for fun?

B.They gave source code so that is basically lifetime support by community & YOU & Guy X. Itīs basically second best thing that any company can do. First would be to let it be open source and keep fixing stuff.

mirakels 2010-08-18 18:00

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
well it has always been open source so why then did we complain in the first place? But so far noone has come up with a patch to fix this battery drain yet.

Nokia developped the hildon-desktop didn't they (or are responsible for its development I guess). If they did not want us to use submenus why did they implemented the possibility to use them?

Oh, and it has nothing to do wit 3th party apps. It is just adding menu statements to the hildon-desktop cofiguration file that trigger the bug.

The bugzilla report about it shows all info to trigger the bug and even has system call trace logs that show what's going on/goes wrong. Maemo/nokia people are/were participating in the bug report...

So it just seems a bit odd that they suddenly stop upstream development.

mirakels 2010-08-25 18:03

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
Good news. A few hours ago hildon-desktop received some updates and it looks like the submenu/battery drain problem is solved!

tomast 2010-09-01 10:11

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
Quote:

Originally Posted by mirakels (Post 798137)
Good news. A few hours ago hildon-desktop received some updates and it looks like the submenu/battery drain problem is solved!

Hello, this is my first post here, so hello again!

I have built and installed latest hildon-desktop from gitorious, and it actually seems to fix this.

If anyone wants to try, the deb can be found here (completely on your own risk, of course):
http://81.216.215.120/maemo/hildon-d...+0m5_armel.deb
UPDATE: This is an updated link with the version set to 2.2.138-1+0m5 (the same as in PR1.2). The real version still is 2.2.141-1 (or something like that) as per gitorious earlier today. This should solve the dependency problems introduced by my first attempt.

Caveat: This is the first time ever I build a deb file or compile anything for maemo at all.

EDIT: Note that this will overwrite any custom transitions, so you may want to backup /usr/share/hildon-desktop/transitions.ini . Also, note that this version should support setting of scrolling speed, see http://talk.maemo.org/showthread.php...127#post798127 (not tested).

If you can't do it from here without further instructions, then you probably shouldn't (and instead wait for a hopefully upcoming "unofficial pre-released updates" repository mentioned somewhere by MohammadAG and others). But a hint is 'dpkg -i' as root.)

Note that, according to what I read somewhere, this version may be automatically replaced with the PR1.2 version by apt-get upgrade. This can be solved by pinning the package (Hints here:
http://talk.maemo.org/showthread.php...504#post790504
http://www.debian.org/doc/manuals/ap...pt-get.en.html
)

I haven't seen this happen or done this myself though, so no details from me.

BTW, my way to reproduce the bug was to drag/scroll a submenu with less than 15 items so that it bounces immediately a number of times. This always made it use 5-15 % CPU according to htop/top. To restart hildon-desktop, just 'killall hildon-desktop'.

After installation of this deb + 'killall hildon-desktop'/reboot, I can't reproduce it anymore.

/T

DaSilva 2010-09-01 10:21

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
Great news!
Maybe you should write that also in http://talk.maemo.org/showthread.php?t=60599 !?

lemmyslender 2010-09-01 20:22

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
Quote:

Originally Posted by tomast (Post 804049)

Thanks for this. It does appear to fix the cpu usage bug.

However, the version causes problems for HAM and FAP. ie they won't upgrade apps because dependencies want to see version 2.2.138-1+0m5 for hildon-desktop.

Can you redo the deb with the older version number?

Thanks

tomast 2010-09-01 22:24

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
Quote:

Originally Posted by lemmyslender (Post 804551)
...ie they won't upgrade apps because dependencies want to see version 2.2.138-1+0m5 for hildon-desktop.

Can you redo the deb with the older version number?

Thanks for noting that (it's a shame I didn't find this myself).

New deb with fake version number can be found here:
http://81.216.215.120/maemo/hildon-d...+0m5_armel.deb

lemmyslender 2010-09-02 03:13

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
tomast-

Installed new deb. Works great, installing/updating apps works. Now I can enjoy my custom folders in the menu without worrying about hildon-desktop draing the battery.

Big Thanks.

trabendo 2010-09-02 07:31

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
Tomast,

did you bring the faster kinetic mod from mohamad in your deb ?

Thanks

handaxe 2010-09-02 14:43

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
Quote:

Originally Posted by trabendo (Post 804932)
Tomast,

did you bring the faster kinetic mod from mohamad in your deb ?

Thanks

As that fix was made sometime ago and is in the subversion sources, Tomast's deb will have it...

tomast 2010-09-02 14:54

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
Correct, MohammadAG's patch isn't needed anymore. You should be able to achieve the same effect by setting the appropriate value in /usr/share/hildon-desktop/transitions.ini.
See http://talk.maemo.org/showthread.php...127#post798127

I took a quick look in the git history, and
  • pre-PR1.2 used a (hard-coded) deceleration_rate of 0.99
  • PR1.2 uses a (hard-coded) deceleration_rate of 0.90
  • post-PR1.2 ("my" version) reads the value from the "launcher" section in transitions.ini, with default=0.90. And the included transitions.ini has a commented-out value of 0.98.

(The less important strong_deceleration_rate ("effective in bouncing zones") is 0.7 in all cases.)

Not sure about what value Mohammad uses, but I would guess 0.99.

/T

adhrie 2010-09-02 15:04

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
does this package contains the patch to fix incoming call glitch also?

haven't really notice hildon desktop using cpu more than 5%, so the patch eliminating incoming call glitch is more important for me right now

although it would be nice to have all of these fixes together in one package

tomast 2010-09-02 15:15

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
yes, I'm pretty sure that problem is fixed as well. I haven't received that mant calls since installing this though.
/T

grog 2010-09-02 17:40

Re: Bug report: hildon-desktop cpu usage, result=causes slow battery drain
 
Quote:

Originally Posted by tomast (Post 804669)
New deb with fake version number can be found here:
http://81.216.215.120/maemo/hildon-d...+0m5_armel.deb

After installing this I did:

Code:

apt-get update; apt-get -s upgrade
And it didn't offer to reinstall hildon-desktop, so I assume we don't need to pin this like MohammadAG's package?

TX


All times are GMT. The time now is 11:17.

vBulletin® Version 3.8.8