You are not logged in.

#1 2018-05-12 21:12:34

Phitherek_
Member
From: Poland
Registered: 2008-11-08
Posts: 36
Website

NVIDIA Proprietary Driver 396.24 stutters on xrandr --query call

Hello,

I know this is a weird problem but I have written a program that automatically detects and configures connected screens using xrandr and one of its features is checking every few seconds for display changes with xrandr --query. It worked fine on systems which have not used NVIDIA proprietary driver as a main driver, however on one system I have that has this driver as a main driver it caused severe stutters across the whole X display every few seconds and high Xorg CPU usage for a moment. Can you help or do you know if this is a bug I can report upstream?

Last edited by Phitherek_ (2018-05-12 21:14:20)


Posted by Phitherek_

Offline

#2 2018-05-14 18:50:28

nicoulaj
Member
From: France
Registered: 2011-10-10
Posts: 34

Re: NVIDIA Proprietary Driver 396.24 stutters on xrandr --query call

Maybe try looking at autorandr ? https://github.com/wertarbyte/autorandr

Edit: looks like it just polls xrandr as well, see here

Last edited by nicoulaj (2018-05-14 18:54:39)


AUR | github | IRC:nicoulaj

Offline

#3 2018-05-15 09:40:28

Phitherek_
Member
From: Poland
Registered: 2008-11-08
Posts: 36
Website

Re: NVIDIA Proprietary Driver 396.24 stutters on xrandr --query call

Just in case anyone has the same problem, here is what NVIDIA dev replied to my bug report:

The xrandr --query option probes a lot of things from the monitor, some of which can be fairly slow depending on the monitors connected.

Can your daemon watch for RandR events instead? See the code for "xev -event randr" if you need an example.

As for myself, I will definitely try and develop a solution based on event handling since it is a lot better way of triggering changes than polling xrandr.


Posted by Phitherek_

Offline

Board footer

Powered by FluxBB