You are not logged in.

#1 2012-09-28 12:01:06

PaBre
Member
Registered: 2007-06-03
Posts: 7

[SOLVED] nm-applet high cpu usage when idle

Hello,

I have a problem with nm-applet on my netbook.
Even when system is idle, `top` or `htop` shows cpu usage like 20-30% on nm-applet process.
I don't feel like it hurts on performance, but it hurts on battery life.
The problem persists between updates, it started when I've done clean Arch installation 2-3 months ago.
Another issue is "blinking" icon in tray - it is too big to fit and it doesn't scale (but rarely it scales an fit perfectly - I cannot say why and when, it looks perfectly random to me).

I can't find any related posts / resolutions to this on the web. People post some problems with np-applet (and NetworkManager in general) - like "not working", but in my case it is working well, but consumes CPU when I think it should not.

My config:

Netbok: Samsung NC110 upgraded to 2GB RAM and Intel SSD

System: Arch Linux 32bit, updated
Kernel: Linux netbok 3.4.5-netbook #1 SMP PREEMPT Wed Jul 25 03:40:26 CEST 2012 i686 GNU/Linux
(same problem on "stock" kernel)

WM: Awesome, no graphical login manager

.xinitrc:

#!/bin/bash

setxkbmap pl
exec ck-launch-session dbus-launch awesome

nm-applet is spawned when Awesome starts by this line in ~/.config/awesome/rc.lua:

awful.util.spawn_with_shell("nm-applet --sm-disable")

Daemons:

DAEMONS=(syslog-ng crond dbus networkmanager @sshd alsa acpid @samsung-tools @ntpd @preload @psd)

Last edited by PaBre (2012-10-01 22:58:09)

Offline

#2 2012-09-29 16:05:45

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [SOLVED] nm-applet high cpu usage when idle

Is there a way you can increase the size of the tray you are using? The networkmanager-applet creates problems if the tray is too small. In i3 i needed a bitmap font size of 17 in the tray, to make it bigger. Now it displays correctly.

Offline

#3 2012-10-01 22:57:31

PaBre
Member
Registered: 2007-06-03
Posts: 7

Re: [SOLVED] nm-applet high cpu usage when idle

teateawhy - thank you for your suggestion to increase tray height.
That do the trick!
It looks like when there's no more "icon flickering"  - there's no problem with high CPU usage... I had to increase the tray height to 26 pixels.
Now I have to force this **** to scale the icon down, but it's another story (I just cannot live with tray that high ;-) )

Thanks again!

Offline

Board footer

Powered by FluxBB