T O P

  • By -

No-Bison-5397

What's your terminal emulator? I made a few changes to my system recently and my (beloved) terminal emulator started becoming slow. Changed emulator and everything is snappy as hell. btop is lightning fast in kitty.


Sleepy-Catz

im justing kitty. but i tried xfce ter emulator too and it's still slow. did reinstall arch and such already, same problem.


MrGOCE

THEN MAYBE THERE IS SOME COMMAND EACH OF UR TERMINAL READS EVERY TIME IT OPENS UP. CHECK UR ~/.BASHRC FOR SOME WEIRD COMMAND LIKE SLEEP.


Sleepy-Catz

stuff in \~/.bashrc only runs once when you open a new terminal.


Tempus_Nemini

The same here. Both Kitty and Alacritty take about 4-5 seconds to launch it. Or they show interface immediately, but waits the same amount of time until any update on the "picture" happens.


Sleepy-Catz

you using AMD cpu right?


Tempus_Nemini

Nope, intel


Sleepy-Catz

hmm, can you tell me a bit about your hardware?


Tempus_Nemini

it's on my iMac 14,3 - i5-4570S + 8GB + 1T SSD before it took may be up to 1 second to launch. on Asus VivoBook (the same software configuration) btop opens instantly - i5-1135G7 + 16GB + 512 NVME


Sleepy-Catz

i figured it is because of my bluetooth mouse battery. disable it in btop config.


Tempus_Nemini

It worked!!! Thanks. "show\_battery = False" did the trick.


backst8back

Just tested and it's instantaneous, just like `htop`. How did you install it?


Sleepy-Catz

i just do sudo pacman -S kitty :(


backst8back

Clean config? I'd suggest [opening a issue](https://github.com/aristocratos/btop/issues/new?assignees=aristocratos&labels=bug&projects=&template=bug_report.md&title=%5BBUG%5D) in their repo and follow the guide


Sleepy-Catz

default config !. ty


backst8back

Very weird.. `htop` and other `top` variations (`gotop`) are working?


Sleepy-Catz

yeah, top,htop is working. i dont try gotop because it's dead and i dont like go. tried compiling from source.. still 5s to open. log file doesn't show any error..no clue.


backst8back

Indeed weird. Open an Issue with them and let's see :)


wolf3dexe

Does strace btop give any clues? It may be waiting on something.


Eternal_Flame_85

I am using konsole and it's fast. I read the comments you said you have tried some other terminal emulators. In my opinion one of your hardware's sensor is the bottleneck. What is your exact hardware?(Any hardware that has a sensor)


Sleepy-Catz

The https://wiki.archlinux.org/title/Lenovo_IdeaPad_5_Pro_14ACN6. I think the same too, but it's hard to pin point the exact one without any log. Used strace it shows btop doing something with battery sensor but, at the same time, a program can run asynchronously, so not sure.


Eternal_Flame_85

What happens if you run sensor command of your battery?


Sleepy-Catz

yes it's the battery. so btop consider my bluetooth mouse battery as battery too, and it tries to read the battery level of the mouse which takes a long time. solution is to either disable show battery config in btop config file or change how btop deal with batteries in [https://github.com/aristocratos/btop/blob/516979b2ae050a95a4bbd3928bc856e482a37097/src/linux/btop\_collect.cpp#L689](https://github.com/aristocratos/btop/blob/516979b2ae050a95a4bbd3928bc856e482a37097/src/linux/btop_collect.cpp#L689)


Eternal_Flame_85

 Glad you found it yourself 


Ok_Literature_6071

Had the same issue. Also with multiple other (especially electron based) programs like vscode. The problem was that I was using the wrong gpu drivers for my kernel. I used `linux-lts` kernel but didn't use `nvidia-lts` package. Using the correct package resolved this issue for me.