You are not logged in.

#1 2012-12-09 18:18:49

theyshookhands
Member
Registered: 2010-10-26
Posts: 6

openbox + xrandr + nitrogen + compton bug on dual monitors

Here is my ~/.config/openbox/autostart:

xrandr --output DVI-0 --left-of DisplayPort-1 &
nitrogen --restore &
hsetroot -solid "#363636" &
compton --config ~/.compton.conf -b &

When I include compton in my autostart file, my primary output (monitor) displays the default openbox grey screen while my second monitor works fine.  When trying to open any apps via the right-click menu (from the second monitor), they are all opening on my primary monitor but not showing (it just shows the grey background).  I have read elsewhere that the hsetroot line will fix this issue but it doesn't work for me.  I've tried xsetroot as well.  I'm not sure what isn't playing nice with compton.  xcompmgr had this same issue, which is how I ended up with compton (thinking it might not have the same issue).  Any ideas?

Offline

#2 2012-12-09 20:06:48

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: openbox + xrandr + nitrogen + compton bug on dual monitors

theyshookhands wrote:

Any ideas?

I would put those four commands in ~/.xinitrc and see if things work better.


You're just jealous because the voices only talk to me.

Offline

#3 2012-12-09 20:09:17

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: openbox + xrandr + nitrogen + compton bug on dual monitors

What happens when you start that stuff without compton, and then start compton after everything has started?

Offline

#4 2012-12-09 21:51:42

theyshookhands
Member
Registered: 2010-10-26
Posts: 6

Re: openbox + xrandr + nitrogen + compton bug on dual monitors

WonderWoofy wrote:

What happens when you start that stuff without compton, and then start compton after everything has started?

It works fine then.  No problems.

moetunes wrote:

I would put those four commands in ~/.xinitrc and see if things work better.

That results in the same bug.  Also I just noticed when I go back to a virtual workspace in which the bug has occured, I can't open the openbox right click menu on my primary monitor (which is now just showing black instead of the openbox grey).  But the second monitor still works fine.

Offline

#5 2012-12-09 22:50:02

theyshookhands
Member
Registered: 2010-10-26
Posts: 6

Re: openbox + xrandr + nitrogen + compton bug on dual monitors

There may be a larger issue at hand.  When trying to add

xrandr --output DisplayPort-1 --mode 1920x1080

to my ~/.config/openbox/autostart, the display goes crazy.  I've tried putting it before and after the other xrandr command, and it does all kinds of wacky stuff.  But if I load up a terminal right after boot and run

xrandr --output DisplayPort-1 --mode 1920x1080
nitrogen --restore

it works just fine.

EDIT:

changing my ~/.config/openbox/autostart to:

xrandr --output DisplayPort-1 --mode 1920x1080 --output DVI-0 --mode 1680x1050 --left-of DisplayPort-1 &
nitrogen --restore &

works great!  Unfortunately, adding

compton &

to the end still results in the original error...

Last edited by theyshookhands (2012-12-09 23:05:37)

Offline

Board footer

Powered by FluxBB