You are not logged in.
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
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)
Offline
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