CPU (...) usage of an idle app Terminal

I discovered via SSH with top that the idle Terminal app kgx, i.e. there is no process launched, is always nearly on top of the CPU consumers. I watched with strace why. It is with high frequency cycling though all the processes in /proc to sear something there:

ppoll([{fd=3, events=POLLIN}, {fd=8, events=POLLIN}, {fd=11, events=POLLIN}, {fd=13, events=POLLIN|POLLPRI}], 4, {tv_sec=1, tv_nsec=331000000}, NULL, 0 ...
....
openat(AT_FDCWD, "/proc/1678/stat", O_RDONLY) = 14
read(14, "1678 (packagekitd) S 1 1678 1678"..., 8191) = 190
read(14, "", 8001)                      = 0
close(14)                               = 0
openat(AT_FDCWD, "/proc/1749/status", O_RDONLY) = 14
read(14, "Name:\tgvfsd-metadata\nUmask:\t0022"..., 8191) = 1138
read(14, "", 7053)                      = 0
close(14)                               = 0
openat(AT_FDCWD, "/proc/1749/stat", O_RDONLY) = 14
read(14, "1749 (gvfsd-metadata) S 719 1749"..., 8191) = 319
read(14, "", 7872)                      = 0
close(14)                               = 0
openat(AT_FDCWD, "/proc/1822/status", O_RDONLY) = 14
read(14, "Name:\tinetd\nUmask:\t0022\nState:\tS"..., 8191) = 1078
read(14, "", 7113)                      = 0
close(14)                               = 0

What it is doing there?

1 Like
2 Likes

Thanks. Now I will always kill this app when it is unused.

I run two tests, both with all HKS off and display off, one with an idle kgx running and the other w/o kgx. The battery drain is in both cases the same in one hour: from 99% to 93%.

4 Likes

you dont need to i simply removed the kingscross terminal simulator package. I found QTerminal to be better and uses less CPU resources (not to mention select text and copy paste functionality)