×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

High CPU after SM1.7

  • Posts: 20
  • Thank you received: 1
After installing SM1.7 there is significant increase in CPU usage.
I found "mutter" process constantly using one of the cores.
top output attached.

this is only happening when I connect from Stellarmate app from my mobile.
output showing idle state, no profiles started yet.
in SM1.61 at this stage, CPU usage was arround %1-2

regards,
Kemal
Last edit: 2 years 2 months ago by Kemal YILDIRIM.
2 years 2 months ago #79772
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 1
  • Thank you received: 0
I *had the same issue :(
UPDATE:
it seem resolved by installing xfce4 window manager and putting "xfce" into .dmrc config.
Last edit: 2 years 3 weeks ago by Miroslav Bakoš.
2 years 3 weeks ago #81721

Please Log in or Create an account to join the conversation.

Replied by Jasem Mutlaq on topic High CPU after SM1.7

I can confirm the issue, looks like mutter + VNC are not playing nicely together.
2 years 3 weeks ago #81724

Please Log in or Create an account to join the conversation.

  • Posts: 276
  • Thank you received: 52

Replied by Gene N on topic High CPU after SM1.7

A 'hack' I found may or may not work, I do not have a pi with mutter.

In the file
/usr/bin/startlxde-pi

Change the line
if [ $TOTAL_MEM -ge 2048 ] && [ -f /usr/bin/mutter ] && [ -z "$VNC" ] ; then

to
if [ $TOTAL_MEM -ge 20480 ] && [ -f /usr/bin/mutter ] && [ -z "$VNC" ] ; then

(above line from)
github.com/RPi-Distro/raspberrypi-ui-mod...usr/bin/startlxde-pi

This says no matter how much memory you have, do not run mutter.

What this -is supposed to do- is launch openbox-lxde instead of mutter as your window manager.
See next to last line
exec /usr/bin/lxsession -s LXDE-pi -e LXDE -w openbox-lxde-pi

Now I cannot tell when/if the VNC check was added after the version on SM1.7 was released but may be worth checking. If I read the linked code above correctly, if VNC is 'active', do not run mutter.

Gene
2 years 3 weeks ago #81725

Please Log in or Create an account to join the conversation.

Replied by Jasem Mutlaq on topic High CPU after SM1.7

Thanks, I re-uploaded SM OS 1.7.0 by changing window manager. If you don't want to re-download the SM OS image, you can fix this by changing only one file:

sudoedit /etc/xdg/lxsession/LXDE-pi/desktop.conf

window_manager=mutter

to

window_manager=openbox

Save and reboot and it should work fine.
2 years 3 weeks ago #81754

Please Log in or Create an account to join the conversation.

  • Posts: 276
  • Thank you received: 52

Replied by Gene N on topic High CPU after SM1.7

Hi Jasem,

Does SM 1.7 have the check in
/usr/bin/startlxde-pi

To use openbox vs mutter if VNC is enabled and running?

My desktop.conf has
cat /etc/xdg/lxsession/LXDE-pi/desktop.conf
[Session]
window_manager=openbox-lxde-pi


Gene
2 years 3 weeks ago #81756

Please Log in or Create an account to join the conversation.

Time to create page: 2.970 seconds