Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xrandr and xscreensaver problem
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message

Joined: 04 Sep 2017
Posts: 4

PostPosted: Mon Sep 04, 2017 7:29 pm    Post subject: xrandr and xscreensaver problem Reply with quote

Hi all.

I have a problem, try fix it, but fail. And no information for this problem in google or anything.


I use x11-misc/xscreensaver-5.36(jpeg opengl pam perl) and x11-apps/xrandr-1.5.0.

I have 3 monitors
mpc ~ # xrandr --listmonitors
Monitors: 3
 0: +*DVI-0 1280/339x1024/271+1280+0  DVI-0
 1: +VGA-0 1280/339x1024/271+2560+0  VGA-0
 2: +HDMI2 1280/340x1024/270+0+0  HDMI2

Its connected to 2 videocards:
mpc ~ # xrandr --listproviders
Providers: number : 2
Provider 0: id: 0xb1 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 3 associated providers: 1 name:ATI Radeon HD 5450 @ pci:0000:01:00.0
Provider 1: id: 0x49 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 6 associated providers: 1 name:Intel

I create new empty user for test. In .xinitrc i add one line: exec xfce4-terminal (i use it only for test, in real this maybe any else application);

I run startx, in terminal run "xscreensaver &", then set xrandr options:
xrandr --setprovideroutputsource 1 0;
xrandr --addmode DVI-0 "1280x1024";
xrandr --addmode VGA-0 "1280x1024";
xrandr \
--output HDMI2 --mode 1280x1024 --pos 0x0 \
--output DVI-0 --mode 1280x1024 --pos 1280x0 --primary \
--output VGA-0 --mode 1280x1024 --pos 2560x0;

And all work ok! In result i have 3 monitors from left to right, and equal resolution.

But if i run startx, WITHOUT RUN xscreensaver, and run xrandr options (from previos sample) - result incorrect, monitor HDMI2 not work (black screen), but xrandr not return any errors.

Anybody know how to fix this problem? And where is problem?
Maybe xscreensaver create some randr query, and they help xrandr to work correctly?
Maybe i need run this queries manually (when not use xscreensaver) before start xrandr settings. But what is this queries? How to determine it?

Thanks for help!
Sorry, my English is not good.

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum