User avatar
Posts: 36
Joined: Wed Oct 19, 2016 12:08 pm
Location: Ontario, Canada
Contact: Website

Temporarily disabling USB ports bumps lxpanel to 100% CPU

Fri Apr 21, 2017 1:15 am

I'm not sure if I should have put this in the Raspbian sub-forum, or one of the hardware ones ...

I'm working on an RPi3 application where I need to be able to disable the USB and Ethernet ports (to save about 200mA), which I'm doing using,

Code: Select all

sudo echo 0x0 > /sys/devices/platform/soc/3f980000.usb/buspower
and re-enabling using:

Code: Select all

sudo echo 0x1 > /sys/devices/platform/soc/3f980000.usb/buspower
That works great, but what's annoying is that when I disable the ports, lxpanel CPU usage jumps up to 100% (of one core). It remains that way even when I re-enable the ports.

It can be fixed using,

Code: Select all

lxpanelctl restart
after disabling the ports, but I'd prefer not to have to do that.

Does anyone have any ideas as to what might be going on, and how it can be fixed?
Stefan Vorkoetter: Programmer, hobbyist, amateur watchmaker, pilot, and collector of fountain pens, slide rules, calculators, and watches.

Return to “Raspbian”