You are not logged in.

#1 2020-05-26 09:34:24

Neowizard
Member
Registered: 2020-04-20
Posts: 3

Small (1-2sec) hangs every couple of minutes without clear cause

I've recently installed Arch on a new laptop (Yoga c940 15") with Cinnamon DE. The system used to run OK, but rather slow and very battery hungry. I've been working around those problems, when recently I've started experiencing small hangs in the UI. The system freezes for a 1-2 seconds and then keeps going. If I'm typing when it hangs, whatever character I typed last would be repeated 1-3 times when it recovers.

The most recent change I can think of was adding  a second monitor (both monitors are connected via USB-C), but removing the new monitor didn't help.
I've been following dmesg, /var/log/Xorg.0.log and ~/.xsession-erros for a couple of hours now, and I can't find a direct correlation between the hangs and the logs. However, I do see a few common errors in the logs which might be related (full logs linked below).

In ~/.xsession-errors, I keep seeing these lines (the first is way more common than the second):

(csd-power:1091): power-plugin-WARNING **: 12:23:35.639: in an undefined state we are not charging or discharging and the batteries are also not charged
[1374:0526/113545.620140:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command

in /var/log/Xorg.0.log I see these lines:

[  4571.075] (EE) client bug: timer event10 debounce short: scheduled expiry is in the past (-4ms), your system is too slow
[  5172.410] (II) event10 - Logitech USB Laser Mouse: SYN_DROPPED event - some input events have been lost.


Also, I figured upgrading the system might help (It's been a week or two), but after pacman -Syu the system ran painfully slow. I think it might be the Cinnamon update or something (since they had a big update recently), but regardless, I had to timeshift back to just before the upgrade.

Anyone has an idea how I can troubleshoot this???

Last edited by Neowizard (2021-10-31 06:46:31)

Offline

#2 2020-05-26 12:45:48

kilix
Member
Registered: 2020-05-09
Posts: 23

Re: Small (1-2sec) hangs every couple of minutes without clear cause

hm, what about journalctl -b0 ?
Those errors in xorg log are not the cause of this error, they are only symptoms.
edit> also, this very recent thread was dealing with slowness, did you read it? https://bbs.archlinux.org/viewtopic.php?id=255578

Last edited by kilix (2020-05-26 12:49:46)


Keep it simple, stupid.

Offline

#3 2020-05-27 07:17:21

Neowizard
Member
Registered: 2020-04-20
Posts: 3

Re: Small (1-2sec) hangs every couple of minutes without clear cause

kilix wrote:

hm, what about journalctl -b0 ?
Those errors in xorg log are not the cause of this error, they are only symptoms.
edit> also, this very recent thread was dealing with slowness, did you read it? https://bbs.archlinux.org/viewtopic.php?id=255578

Here are the missing logs (forgot to search the journal): journalctl -b0 logs

I'll follow that thread regarding the performance issues. I'll try to figure out if something there fits my issues. Thanks!

Last edited by Neowizard (2020-05-27 07:17:49)

Offline

#4 2020-05-27 11:17:21

kilix
Member
Registered: 2020-05-09
Posts: 23

Re: Small (1-2sec) hangs every couple of minutes without clear cause

I really digged through the logs, but I'm afraid that this is out of my league.

The errors in xorg log regarding libinput debouncing may be related to a slow compositor, which again - I think is the symptom, not the cause of the overall slowness/lagging.

Someone else may have to chime in.


Keep it simple, stupid.

Offline

#5 2020-05-27 11:54:03

Neowizard
Member
Registered: 2020-04-20
Posts: 3

Re: Small (1-2sec) hangs every couple of minutes without clear cause

kilix wrote:

I really digged through the logs, but I'm afraid that this is out of my league.

The errors in xorg log regarding libinput debouncing may be related to a slow compositor, which again - I think is the symptom, not the cause of the overall slowness/lagging.

Someone else may have to chime in.

Thanks for trying.

Offline

#6 2020-05-27 12:24:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,376

Re: Small (1-2sec) hangs every couple of minutes without clear cause

Try removing xf86-video-intel and custom configuration for it should you've done any, it's somewhat notorious for various issues with modern GPUs

Offline

#7 2020-05-27 12:26:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,796

Re: Small (1-2sec) hangs every couple of minutes without clear cause

If the journal is supposed to cover such hang, there's not much to see.

Let's narrow down on the symptoms: When those hangs occur
- does music continue to play?
- do videos continue to play?
- can you move the mouse?
- can you click on stuff with the mouse?

Because of the glBufferData error: cut out cinnamon. Does it also happen with eg. an openbox session?

Offline

#8 2020-05-27 12:39:07

kilix
Member
Registered: 2020-05-09
Posts: 23

Re: Small (1-2sec) hangs every couple of minutes without clear cause

Neowizard wrote:
kilix wrote:

I really digged through the logs, but I'm afraid that this is out of my league.

The errors in xorg log regarding libinput debouncing may be related to a slow compositor, which again - I think is the symptom, not the cause of the overall slowness/lagging.

Someone else may have to chime in.

Thanks for trying.

I may also give you some other suggestions, as to what would I do in this case, but nothing extremely scientific and knowledgeable>

1.) I would try creating a new user, logging in and perhaps installing some i3 or some other lightweight window manager, logging in, and then see if the problem persists.If yes, then the problem probably does not stem from the desktop environment/window manager and is somewhere deeper.
2.) If the problem does not exist after trying such a minimal setup, I would try and run cinnamon-desktop under this new user, but run cinnamon as lightweight as possible and try adding features (applets, widgets, etc, whatever you use) to it, until the problem arises again. This way you can narrow down the culprit (if it is one of those things).

and also:
During this hangup, do you see any surge in CPU activity? What's htop or top saying during the lagging period? Does it lag too?

edit: seth is here, so our souls are saved

Last edited by kilix (2020-05-27 12:41:45)


Keep it simple, stupid.

Offline

Board footer

Powered by FluxBB