You are not logged in.

#1 2019-10-01 11:16:06

JamieKitson
Member
From: UK
Registered: 2010-10-18
Posts: 161
Website

[SOLVED] Some applications hanging every few seconds

I have an issue on my laptop where the graphical output of certain applications seems to hang every few seconds, but other than graphically hanging the application seems to carry on working, eg, audio still plays, key presses and mouse scrolls still register. The cursor still moves with the mouse during the hangs.

Affected:

* Firefox 69
* Gwenview 19.08.1

Not affected:

* Chromium 77
* xterm 349

I can't see any messages in dmesg or journalctl when the hangs occur and the CPU doesn't seem to jump. Plugging in an external monitor stops the issue, this is the only way I've found to stop it so far.

I have a Dell 9550 with an Intel 530 and an Optimus Nvidia GM107M. It does not appear to make any difference whether I enable or disable the Nvidia card. I am using dwm, not Gnome.

I have tried the following kernel boot parameters which did not work:

* acpi_osi=! acpi_osi="Windows 2009"
* acpi_osi="!Windows 2015"
* nvidia-drm.modeset=0

And the environmental variable __GL_MaxFramesAllowed=1

I think the Nvidia issues have probably just been a distraction as I don't appear to be using the Nvidia drivers and the issue happens when the Nvidia card is disabled. However I assume it must be something to do with the graphics card(s) since plugging an external monitor in fixes the issue.

Last edited by JamieKitson (2019-10-01 16:02:15)

Offline

#2 2019-10-01 11:59:37

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: [SOLVED] Some applications hanging every few seconds

Hmmm... When I see "some applications freeze and some applications don't",  it sometimes means that the applications that are freezing are trying to use accelerated graphics. It's an toggle option you can find in a menu deep in Firefox. (https://support.mozilla.org/en-US/questions/1208168) I don't know if that will help you debug the issue further though...

Is there any helpful information in the X log?

Offline

#3 2019-10-01 12:32:35

JamieKitson
Member
From: UK
Registered: 2010-10-18
Posts: 161
Website

Re: [SOLVED] Some applications hanging every few seconds

Sorry, I should have mentioned that I've already tried disabling hardware acceleration in Firefox. Thanks.

Offline

#4 2019-10-01 12:37:38

JamieKitson
Member
From: UK
Registered: 2010-10-18
Posts: 161
Website

Re: [SOLVED] Some applications hanging every few seconds

The only thing I can see in Xorg log is:

[  1617.622] (II) xfree86: Adding drm device (/dev/dri/card1)
[  1617.622] (EE) /dev/dri/card1: failed to set DRM interface version 1.4: Permission denied
[  1617.623] (II) config/udev: Adding drm device (/dev/dri/card0)
[  1617.623] (II) xfree86: Adding drm device (/dev/dri/card0)
[  1617.623] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

But this looks like a non-issue.

Last edited by JamieKitson (2019-10-01 12:43:00)

Offline

#5 2019-10-01 14:39:20

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [SOLVED] Some applications hanging every few seconds

JamieKitson wrote:

The only thing I can see in Xorg log is:

[  1617.622] (II) xfree86: Adding drm device (/dev/dri/card1)
[  1617.622] (EE) /dev/dri/card1: failed to set DRM interface version 1.4: Permission denied
[  1617.623] (II) config/udev: Adding drm device (/dev/dri/card0)
[  1617.623] (II) xfree86: Adding drm device (/dev/dri/card0)
[  1617.623] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

But this looks like a non-issue.

That issue appeared with systemd 243 and can be worked around by enabling early mode KMS.

Offline

#6 2019-10-01 14:43:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [SOLVED] Some applications hanging every few seconds

If you are using it, try removing xf86-video-intel to switch to using the modesetting driver by removing it, you might also want to post such a xorg.log before and after plugging a screen.

Offline

#7 2019-10-01 15:05:12

JamieKitson
Member
From: UK
Registered: 2010-10-18
Posts: 161
Website

Re: [SOLVED] Some applications hanging every few seconds

loqs wrote:
JamieKitson wrote:

The only thing I can see in Xorg log is:

[  1617.622] (II) xfree86: Adding drm device (/dev/dri/card1)
[  1617.622] (EE) /dev/dri/card1: failed to set DRM interface version 1.4: Permission denied
[  1617.623] (II) config/udev: Adding drm device (/dev/dri/card0)
[  1617.623] (II) xfree86: Adding drm device (/dev/dri/card0)
[  1617.623] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

But this looks like a non-issue.

That issue appeared with systemd 243 and can be worked around by enabling early mode KMS.

I actually don't have that error (or any others) in the log file since my last boot. I wonder if it was caused by one of my previous troubleshooting attempts.

Offline

#8 2019-10-01 15:06:59

JamieKitson
Member
From: UK
Registered: 2010-10-18
Posts: 161
Website

Re: [SOLVED] Some applications hanging every few seconds

V1del wrote:

If you are using it, try removing xf86-video-intel to switch to using the modesetting driver by removing it,

It doesn't look like I am:

$ lsmod | egrep 'xf|i9|nv'
i915                 2326528  8
i2c_algo_bit           16384  1 i915
drm_kms_helper        212992  1 i915
drm                   516096  6 drm_kms_helper,i915
intel_gtt              24576  2 intel_agp,i915
V1del wrote:

you might also want to post such a xorg.log before and after plugging a screen.

[   534.872] (II) intel(0): Output DP1-8 has no monitor section
[   534.872] (II) intel(0): Enabled output DP1-8
[   534.914] (II) intel(0): resizing framebuffer to 8960x2880
[   535.001] (II) intel(0): switch to mode 2560x1440@60.0 on DP1-8 using pipe 1, position (3840, 0), rotation normal, reflection none
[   536.500] (II) intel(0): Output DP1-1 has no monitor section
[   536.501] (II) intel(0): Enabled output DP1-1
[   536.843] (II) intel(0): resizing framebuffer to 12800x2880
[   536.941] (II) intel(0): switch to mode 1920x1080@60.0 on DP1-1 using pipe 2, position (8960, 0), rotation normal, reflection none

and unplugging:

[  1260.071] (II) intel(0): resizing framebuffer to 3840x2160
[  1260.092] (II) intel(0): Disabled output DP1-1
[  1260.092] (II) intel(0): Disabled output DP1-8

It looks like I get this in dmesg on unplug:

[ 1162.689505] [drm:intel_mst_disable_dp [i915]] *ERROR* failed to update payload -22

Last edited by JamieKitson (2019-10-01 15:13:25)

Offline

#9 2019-10-01 15:17:39

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [SOLVED] Some applications hanging every few seconds

You are, xf86-video-intel is the xorg driver, and  the xorg log confirm this, try removing it.

Offline

#10 2019-10-01 15:29:31

JamieKitson
Member
From: UK
Registered: 2010-10-18
Posts: 161
Website

Re: [SOLVED] Some applications hanging every few seconds

V1del wrote:

You are, xf86-video-intel is the xorg driver, and  the xorg log confirm this, try removing it.

I'm sorry, I don't understand. "xf86-video-intel" doesn't show up under lsmod, so is it under another name? And (honest question, not being factitious) where does the xorg log show it?

$ rmmod xf86-video-intel
rmmod: ERROR: Module xf86_video_intel is not currently loaded

In the meantime, from the log, I have worked out a solution:

$ xrandr --fb 8200x2160

2160 being with width of my laptop screen, 8200 being the lowest number that fixed the issue. Absolutely no idea why or how it works or why it only affects certain programs.

Last edited by JamieKitson (2019-10-01 15:31:12)

Offline

#11 2019-10-01 15:35:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [SOLVED] Some applications hanging every few seconds

xf86-video-intel is a xorg ddx, not a kernel module, and a package you can remove with pacman. See also the blue note box, for some rationale as to why I'm recommending this

Also the fact that your xorg log talks about an intel module also shows that you are using it.

Last edited by V1del (2019-10-01 15:36:21)

Offline

#12 2019-10-01 15:58:47

JamieKitson
Member
From: UK
Registered: 2010-10-18
Posts: 161
Website

Re: [SOLVED] Some applications hanging every few seconds

V1del wrote:

xf86-video-intel is a xorg ddx, not a kernel module, and a package you can remove with pacman. See also the blue note box, for some rationale as to why I'm recommending this

Also the fact that your xorg log talks about an intel module also shows that you are using it.

Thanks very much, it looks like that's fixed the issue without having to set a massive frame buffer in xrandr.

Last edited by JamieKitson (2019-10-01 16:01:53)

Offline

#13 2019-10-07 20:04:17

JamieKitson
Member
From: UK
Registered: 2010-10-18
Posts: 161
Website

Re: [SOLVED] Some applications hanging every few seconds

Offline

#14 2019-10-07 20:33:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: [SOLVED] Some applications hanging every few seconds

xbacklight uses a hack that has only ever been implemented on xf86-video-intel, use a  backlight helper adjusting actual kernel interfaces. E.g. light .

Offline

#15 2019-10-07 20:50:53

JamieKitson
Member
From: UK
Registered: 2010-10-18
Posts: 161
Website

Re: [SOLVED] Some applications hanging every few seconds

Thanks. acpilight is backwards compatible with xbacklight so installed that so I didn't have to change my existing scripts, apart from creating some new udev rules to make the backlight writeable by the video group.

Offline

Board footer

Powered by FluxBB