maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   How to stop uncommanded downloads? (https://talk.maemo.org/showthread.php?t=30251)

equivocal 2009-07-13 08:23

How to stop uncommanded downloads?
 
I'll ask while I have the logs visible...

Often right after I make a wifi connection the tablet immediately begins downloading. My proxy logs show requests to repository.maemo.org and catalogue.tableteer.nokia.com. I looked around and found that the URLs appear in files under /etc/hildon-application-manager/ and /home/user/.hildon-application-manager/ contains some related files.
Then I got lost in the gap between bringing up a network interface and what seems to be a GUI application. If there was some configuration setting, I missed it.

What can I do to prevent these downloads?

Andre Klapper 2009-07-13 11:56

Re: How to stop uncommanded downloads?
 
I think that it's the "normal" check for software updates available.
No idea where this is started from though.

skatebiker 2009-07-13 14:04

Re: How to stop uncommanded downloads?
 
Quote:

Originally Posted by Andre Klapper (Post 304181)
I think that it's the "normal" check for software updates available.
No idea where this is started from though.

I think every time you start the application manager, otherwise the dl's do not take place.

qwerty12 2009-07-13 14:07

Re: How to stop uncommanded downloads?
 
Quote:

~ $ cat /var/lib/alarmd/alarm_queue.xml | grep -i update
<parameter name="interface" type="string">com.nokia.hildon_update_notifier</parameter>
<parameter name="service" type="string">com.nokia.hildon_update_notifier</parameter>
<parameter name="path" type="string">/com/nokia/hildon_update_notifier</parameter>
<parameter name="name" type="string">check_for_updates</parameter>
.....................

lma 2009-07-13 18:37

Re: How to stop uncommanded downloads?
 
Quote:

Originally Posted by qwerty12 (Post 304203)
Quote:

~ $ cat /var/lib/alarmd/alarm_queue.xml | grep -i update

Trying to summon Merlyn? ;-)

It will only do an automatic refresh once in a 24 hour period, and that can be tuned via the /apps/hildon/update-notifier/check_interval GConf key (value is in minutes).

Equivocal raises a valid point though, and it's something that's been bugging me for a while. Every time you connect there's all sorts of stuff on the tablet waking up (email accounts, rtcomm accounts, rss feeds, AGPS, weather applets and so on) and fighting each other for CPU cycles and bandwidth. In normal (read: WiFi) circumstances the "storm" is usually over after a few seconds but on slower links it can be quite bad and made worse by stuff timing out and retransmitting. I wonder if it's somehow possible to delay some less time-sensitive stuff from updating immediately upon connection. Eg one probably wants their SIP accounts registering asap, but it's ok if the application catalogue refreshes a minute later.

qwerty12 2009-07-13 19:11

Re: How to stop uncommanded downloads?
 
Quote:

Originally Posted by lma (Post 304263)
Trying to summon Merlyn? ;-)

Yay, I win!

I forget that cat isn't needed but I've fallen into a bad habit of thinking that grep is most useful when things are piped into it. Like, I do "find | grep whatever" rather than "find -name whatever". :o

qole 2009-07-13 19:35

Re: How to stop uncommanded downloads?
 
lma: excellent observation.

I want my e-mail, application catalogues, and weather forecast to be updated after I connect, but I agree, I don't need it so badly that it is acceptable to make my tablet grind nearly to a halt after connecting as everything fights for the bandwidth...

It would be nice if they had some kind of "if connected AND IDLE" setting for these auto-updates.

Benson 2009-07-13 20:06

Re: How to stop uncommanded downloads?
 
Quote:

Originally Posted by qwerty12 (Post 304269)
Yay, I win!

I forget that cat isn't needed but I've fallen into a bad habit of thinking that grep is most useful when things are piped into it. Like, I do "find | grep whatever" rather than "find -name whatever". :o

Technically, those are non-equivalent; -name uses a shell pattern, and -regex matches the entire path and name. To exactly substitute, you'd want:
Code:

find -regex '.*whatever.*'
:p

Anyway, imho, pointless cats, greps, etc. are no big deal for interactive shell work; the challenge is to remember to clean things up when you paste it into a file. OTOH, maybe if I were more rigorous about interactive work, my script-tidying would go better...

danramos 2009-07-13 20:50

Re: How to stop uncommanded downloads?
 
I'm glad I'm not the only one that noticed this and wished he could adjust or turn it off and ONLY use manual updates. (I prefer the latter on my OWN schedule.)

Benson 2009-07-13 21:31

Re: How to stop uncommanded downloads?
 
Quote:

Originally Posted by danramos (Post 304295)
I'm glad I'm not the only one that noticed this and wished he could adjust or turn it off and ONLY use manual updates. (I prefer the latter on my OWN schedule.)

Well, that's easy enough. If you've got gconf-editor installed, just go to /apps/hildon/update-notifier and set check_interval to something really huge. If not, then you really should install it, but this'll do the same thing:
Code:

gconftool -st int /apps/hildon/update-notifier/check_interval 2147483647
If you don't manually check for updates in the next 4083 years, it will still go ahead and try to check automatically, but bandwidth should be cheap enough by then for this to be a non-issue. ;)


All times are GMT. The time now is 01:15.

vBulletin® Version 3.8.8