-1

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
  • 3
    Where are you getting the figure from? Have you looked at top or htop to see which process(es) are responsible?
    – goldilocks
    Commented Feb 12, 2015 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.) Commented Feb 13, 2015 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
    Commented Feb 13, 2015 at 16:56

1 Answer 1

-2

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

1
  • "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
    Commented Feb 14, 2015 at 16:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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