Bug 113509 - knemo writes to harddisk every 5 seconds and thus prevents power-saving
Summary: knemo writes to harddisk every 5 seconds and thus prevents power-saving
Status: RESOLVED UNMAINTAINED
Alias: None
Product: knemo
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: John Stamp
URL:
Keywords:
: 117495 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-28 15:37 UTC by S. Burmeister
Modified: 2018-10-29 22:07 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 S. Burmeister 2005-09-28 15:37:05 UTC
Version:            (using KDE KDE 3.4.2)
Installed from:    SuSE RPMs
OS:                Linux

When I enable knemo I get kded accessing the harddisk every 5 seconds. This happens no matter whether a network-card is actually inserted or not.
Since power-saving needs the harddisk to be idle for x minutes, it never kicks in, hence knemo shortens the battery-runtime for notebook users.

Expected behaviour would be not to use the harddisk at all unless a new network-card is inserted (PCMCIA/USB), or knemo is (re-)started/stopped.
Comment 1 Percy Leonhardt 2005-09-28 21:43:14 UTC
I heared of this before. Someman found out that this is because of 'ifconfig' which gets called every second. It seems that 'ifconfig' accesses the harddisk. The problem is that KNemo has to do this to find out if an interface went up or down. There will be no solution to this until someone writes a backend that uses /proc or some other way to get this information. And by the way also a plugin feature to change the backends on demand.

Maybe NetworkManager (http://people.redhat.com/dcbw/NetworkManager/index.html) is a good alternativ for 'ifconfig'.
Comment 2 Thiago Macieira 2005-12-02 11:40:39 UTC
*** Bug 117495 has been marked as a duplicate of this bug. ***
Comment 3 Artem S. Tashkinov 2005-12-02 14:16:36 UTC
NetworkManager seems to be a GTK2 application and we're talking about KDE things ;)

Is KNemo project completely abandoned? I don't think reading and parsing /proc entries is a hard work but my C++ skills are next to void so I can't solve this problem.

I think that'll be good to file a bugreport into Gentoo and Suse bugzilla's because those distributions might be a bit more concerned of KNemo unlike KDE bugzilla which has many bugs that are left unsolved for years.
Comment 4 Artem S. Tashkinov 2005-12-28 17:19:19 UTC
Temporarily I've switched to KNetStats 1.3.
Comment 5 Thiago Macieira 2006-02-28 20:20:49 UTC
*** Bug 122769 has been marked as a duplicate of this bug. ***
Comment 6 ned123 2006-04-20 19:29:03 UTC
Is it so hard to use "cat /proc/net/dev" (like the tool called rppppoek) instead of ifconfig route and iwconfig  (I don't have the last one so it's not a problem)?
Comment 7 Artem S. Tashkinov 2006-04-23 11:08:21 UTC
Percy wants to implement a plugin based system of polling network interfaces but as he points out he is time contstained so this feature may take a long time to implement. This is the open source world, ned123, if you'd like it now - go write a patch for that and hope it'll get merged eventually.
Comment 8 Artem S. Tashkinov 2006-04-23 11:28:03 UTC
Percy, once you've asked what is the best way to query network interfaces in Linux - through /proc or /sys interfaces. I'm sure you should implement them both 'cause some people will run kernel 2.4.x for a very long time and if you rely only on /sys interface you will leave those people in misery.
Comment 9 Artem S. Tashkinov 2006-08-07 11:25:57 UTC
This bug has been fixed in newly released version 0.4.3. Thank you, Percy!
Comment 10 Percy Leonhardt 2006-08-09 00:30:05 UTC
*** Bug has been marked as fixed ***.
Comment 11 Andrew Crouthamel 2018-10-29 22:07:38 UTC
Hello! Sorry to be the bearer of bad news, but this project has been unmaintained for many years so I will be closing this bug.