Bug 229111 - amarok requires too many internet connections - provide an offline mode
Summary: amarok requires too many internet connections - provide an offline mode
Status: CONFIRMED
Alias: None
Product: amarok
Classification: Applications
Component: Context View (show other bugs)
Version: 2.2.2
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks: 251199
  Show dependency treegraph
 
Reported: 2010-03-02 11:33 UTC by Michael Zanetti
Modified: 2014-08-14 10:12 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Zanetti 2010-03-02 11:33:13 UTC
Version:           2.2.2 (using KDE 4.4.0)
OS:                Linux
Installed from:    Archlinux Packages

I have disabled all internet plugins in amarok. That means, no Jamendo, Magnatunes and no other service should be active (except perhaps the Lyrics applet fetching lyrics at the beginning of each song).

After starting amarok there is immediately a lot going on on my internet connection. netstat lists a whole bunch of connections.

tcp        0      0 10.134.244.78:33219     a92-122-216-194.dep:www ESTABLISHED 19170/amarokDk1524.                                                                              
tcp        0      0 10.134.244.78:33210     a92-122-216-194.dep:www ESTABLISHED 19183/amaroksF1524.                                                                              
tcp        0      0 10.134.244.78:33212     a92-122-216-194.dep:www ESTABLISHED 19175/amarokSa1524.                                                                              
tcp        0      0 10.134.244.78:36535     fk-in-f100.1e100.ne:www ESTABLISHED 19193/amarokth1524.                                                                              
tcp        0      0 10.134.244.78:42647     www.dailymotion.com:www ESTABLISHED 19176/amarokqx1524.                                                                              
tcp        0      0 10.129.145.142:55023    a92-122-216-105.dep:www ESTABLISHED 19171/amarokSa1524.                                                                              
tcp        0      0 10.129.145.142:54720    fx-in-f139.1e100.ne:www ESTABLISHED 19614/amaroktM1524.                                                                              
tcp        0      0 10.129.145.142:54717    fx-in-f139.1e100.ne:www ESTABLISHED 19608/amarokOR1524.                                                                              
tcp        0      0 10.134.244.78:33214     a92-122-216-194.dep:www ESTABLISHED 19178/amarokaN1524.                                                                              
tcp        0      0 10.129.145.142:55027    a92-122-216-105.dep:www ESTABLISHED 19623/amarokSu1524.                                                                              
tcp        0      0 10.134.244.78:33222     a92-122-216-194.dep:www ESTABLISHED 19355/amarokGW1524.                                                                              
tcp        0      0 10.134.244.78:42645     www.dailymotion.com:www ESTABLISHED 19186/amarokVy1524.                                                                              
tcp        0      0 10.134.244.78:33216     a92-122-216-194.dep:www ESTABLISHED 19195/amarokyC1524.                                                                              
tcp        0      0 10.134.244.78:36532     fk-in-f100.1e100.ne:www ESTABLISHED 19189/amarokOE1524.                                                                              
tcp        0      0 10.134.244.78:33218     a92-122-216-194.dep:www ESTABLISHED 19192/amarokwN1524.                                                                              
tcp        0      0 10.129.145.142:55024    a92-122-216-105.dep:www ESTABLISHED 19617/amarokwF1524.                                                                              
tcp        0      0 10.134.244.78:36527     fk-in-f100.1e100.ne:www ESTABLISHED 19184/amarokZZ1524.                                                                              
tcp        0      0 10.129.145.142:54383    fx-in-f118.1e100.ne:www TIME_WAIT   -                                                                                                
tcp        0      0 10.129.145.142:55029    a92-122-216-105.dep:www ESTABLISHED 19627/amarokVe1524.                                                                              
tcp        0      0 10.129.145.142:54716    fx-in-f139.1e100.ne:www ESTABLISHED 19606/amarokhw1524.
tcp        0      0 10.134.244.78:36526     fk-in-f100.1e100.ne:www ESTABLISHED 19182/amarokPm1524.
tcp        0      0 10.129.145.142:54714    fx-in-f139.1e100.ne:www ESTABLISHED 19168/amarokka1524.
tcp        0      0 10.134.244.78:42653     www.dailymotion.com:www ESTABLISHED 19197/amaroksx1524.
tcp        0      0 10.129.145.142:55025    a92-122-216-105.dep:www ESTABLISHED 19619/amarokPo1524.
tcp        0      0 10.129.145.142:55026    a92-122-216-105.dep:www ESTABLISHED 19621/amarokyJ1524.
tcp        0      0 10.129.145.142:40267    a88-221-121-50.depl:www TIME_WAIT   -
tcp        0      0 10.134.244.78:36523     fk-in-f100.1e100.ne:www ESTABLISHED 19162/amarokMA1524.
tcp        0      0 10.134.244.78:36534     fk-in-f100.1e100.ne:www ESTABLISHED 19169/amarokXA1524.
tcp        0      0 10.129.145.142:54718    fx-in-f139.1e100.ne:www ESTABLISHED 19610/amarokQH1524.
tcp        0      0 10.129.145.142:54719    fx-in-f139.1e100.ne:www ESTABLISHED 19612/amarokTW1524.


What is amarok doing? This renders my GPRS connection unusable for other applications most of the time (e.g. I was not able to file this bug report as long as amarok was running). IMO a music player should have _NO_ internet connections if online stream plugins etc are disabled. Perhaps  some sort of "Offline Mode" could be useful too.
Comment 1 Rick W. Chen 2010-03-02 11:37:19 UTC
It seems the video applet is active.
Comment 2 Myriam Schweingruber 2010-03-02 11:43:19 UTC
Also make sure you don't use last.fm scrobbling and disable the following applets: Lyrics, Wikipedia, Videoclip and Photos.
The same of course also for all 3rd-party scripts that might use the connection (almost all do) and make sure you have no streams in your saved playlists.
Comment 3 Myriam Schweingruber 2010-08-09 00:47:51 UTC
Is this still relevant?
Comment 4 Michael Zanetti 2010-08-09 08:33:59 UTC
Yes it is. While it is true that the network load can be reduced by removing all widgets int the context view, it still would be great of there would be an "offline mode".

It's not too cool if I have to remove all widgets every time I want to use amarok and a GSM connection and then reconfigure the whole context view at home just to be thrown away again the next time I'm using a GSM connection.

So my proposal would be to add an "offline mode" entry somewhere in the menu bar, where all widgets in the context view just use the last available information or just display something like "Offline mode - No data available. Click here to re-enable online mode".
Comment 5 Rick W. Chen 2010-08-09 10:21:07 UTC
There has been some work done on making many of the web requests through a single interface. Not all has been converted however; but eventually this interface would be made to receive notifications from solid, as well as forcing it to suspend/disable any requests. I might continue to work on this after I'm done with all the things on my docket.
Comment 6 Sylvain Paré 2010-09-14 11:59:58 UTC
Hi I just open a new bug repport here
https://bugs.kde.org/show_bug.cgi?id=251199
I think this two bugs should be solved together like Rick W. Chen just said. it is the reason why I report here my new report.
CU
Comment 7 vedant agarwala 2013-06-10 19:07:13 UTC
Created a patch that fixes the bug: https://git.reviewboard.kde.org/r/110934/
Please review and make a icon for the "Amarok" menu item "Offline Mode".
Cheers.