Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xrandr multihead setup not working #7

Open
jonas-kaiser opened this issue Mar 15, 2019 · 5 comments
Open

xrandr multihead setup not working #7

jonas-kaiser opened this issue Mar 15, 2019 · 5 comments
Assignees

Comments

@jonas-kaiser
Copy link

Hello,

Switching monitors using xrandr doesn't work correctly when I'm running this compton fork.
I'm running arch on a laptop and when I want to switch to an external monitor using xrandr --output HDMI1 --primary --mode 2560x1440 --pos 0x0 --output VIRTUAL1 --off --output eDP1 --off the output breaks.

But running this command from my .xinitrc works.

screenshot laptop (works)
screenshot extermal (broken)

I posted this Issue in the archlinux forum and someone suggestet this:

the problem is w/ either your WM or compositor not catching the geometry change (and thus eg. not updating glViewport() for a GL compositor)

When I use the official compton version (from the arch repo) or disable compton everything works fine.

Platform: Arch Linux 5.0.2

GPU, drivers, and screen setup:
Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Integrated Graphics Controller,
xf86-video-intel 1:2.99.917+863+g6afed33b-1 (driver),
Laptop screen + external Monitor configured with xrandr

My compton config

Compton command:
compton -b --xrender-sync-fence --blur-background --blur-method kawase --blur-strength 10
or
compton -b --xrender-sync-fence

@tryone144
Copy link
Owner

Hi,

What branch are you using? I guess you installed the AUR package based on the older dual_kawase branch.
You may try the newer improved_fbo branch and see if the issue persists. (The blur-method value has been renamed to dual_kawase.)

If you kill and restart compton after the xrandr change, is everything displayed correctly again?

@jonas-kaiser
Copy link
Author

Yea, I was using the AUR package. I installed the improved_fbo version via git now, but the problem is still there.

Killing and restarting compton works.

@tryone144 tryone144 self-assigned this Mar 16, 2019
@jonas-kaiser
Copy link
Author

I also tried the (original?) chjj/compton now and having the same issue there.

yshui/compton is the only one that works correctly for me so far.

@tryone144
Copy link
Owner

Yeah, as far as I can tell from a quick look, yshui's fork has a “new” callback to handle root window resizes. As my newer branch is still based on his fork before the recent backend splitting, it still isn't handled correctly.

I'm currently trying to make progress with yshui/picom#32 and merging the dual_kawase blur shader into the refactored codebase. This should eventually fix this issue.

@jonas-kaiser
Copy link
Author

That's nice to hear.

I don't know if this info is useful, but using the xrender backend also works (no nice blur options tho).
I tried with compton -b --config /dev/null --backend xrender

tryone144 pushed a commit that referenced this issue Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants