Why is it that on a totally idle R-Pi B, that normally sits around 0-1% CPU utilization, if I open a LXTerminal window, it pegs the CPU at 100% even if I don't do anything but let it sit there at the $ prompt. It stays that way until I close the window, and then it drops back to 0-1%.

  • 3
    Where are you getting the figure from? Have you looked at top or htop to see which process(es) are responsible? – goldilocks Feb 12 '15 at 18:25
  • the CPU Usage Monitor in the top right corner of my screen. I have not tried those. (Wasn't aware of them. Total noob.) – Chris G. Williams Feb 13 '15 at 15:32
  • Something's definitely wrong, so the first step is to identify whether it's actually the terminal or something else triggered by it. You may have to install top (I think the package is called procps, so apt-get install procps); by default it will start with the highest CPU process at the top. It should be pretty easy to figure out. Once you know that, there may be some things you can do to further diagnose the problem -- leave a comment @goldilocks. – goldilocks Feb 13 '15 at 16:56

It is quite possible that the termianl software is simply running a 'loop' contineously checking for keyboard input at maximium speed (rather then checking, say 10x a second and 'sleeping' in between)...

If you are running on batteries this could be quite an issue - if that's the case all I can suggest is 'try a different terminal program' (eg BASH shell) & see if it's different

| improve this answer | |
  • "It is quite possible that the terminal software is simply running a 'loop' contineously checking for keyboard input" -> No, GUI library APIs are event driven using callbacks. "'try a different terminal program' (eg BASH shell)" -> Bash is not a terminal emulator, it's a shell (and a terminal emulator is not a shell). Unless the system has been changed from default, bash is running inside the terminal emulator. – goldilocks Feb 14 '15 at 16:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.