Solved openbox same image in all monitors

My goal is to setup my openbox laptop with the lid closed
and the primary monitor being the external one mirroring
the image from the internal monitor.
The internal monitor resolution 1280x800 is
different from the external one which is 1280x1024.
The mirroring is messed up. When i play a video with
smplayer the external monitor dont use the full size of the external monitor.
I put into autostart the following
xrandr --output VGA-1 --auto --primary --output LVDS-1 --auto --same-as VGA-1
Even tried this:
xrandr --output LVDS-1 --mode "1280x800_60.00" &
xrandr --output VGA-1 --mode "1280x1024_60.00 --primary" &
xrandr --output LVDS --same-as VGA-1 &
But its no good.

I know both monitor can use 1024x728.
Maybe that would need to be set up with
VGA-1 being the primary monitor?
Could someone help me please to correct
my xrandr commands?

I tried to setup the monitor mirroring with Gui
applications but non of them save the config files
under openbox.
Have no succes with:
lxqt-config-monitor and mate-display-properties .
 
A couple of thoughts, with no real knowledge of the stuff you're using.
You say it won't save your configs. How about either running the GUIs as root (or with sudo),
or, if it gives you a place to save the configuration, save it to something in your home directory and afterwards, you can copy it to where it should be?

These are just thoughts, and early in the morning, so I don't know if they'll be any help.
 
What's the output of:
Code:
xrandr | grep connect

I do not use autostart... I just put a line in .xinitrc
Code:
xrandr --output DVI-D-1 --mode 1600x900 --output HDMI-1 --mode 1680x1050 --right-of DVI-D-1
 
Yes i did run the GUI tools as root
Mate said:
could not set the default configuration for monitor
Lxqt created the following line
in a different autostart file:
xrandr --output VGA-1 --mode 1280x1024 --rate 60.02 --same-as LVDS-1 --output LVDS-1 --mode 1280x800 --rate 59.94

The output for the xrandr | grep connect is the following:

LVDS-1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 331mm x 207mm
VGA-1 connected primary 1280x1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm
HDMI-1 disconnected (normal left inverted right x axis y axis)
TV-1 unknown connection (normal left inverted right x axis y axis)
 
I don't believe it i tried to switch off
the screen blanking
with xset dpms 0 0 0
and that command in autostart did fix the resolution problem.
I really don't understand it.
If someone have a theory
i would love to hear it.
Thank you guys for all the comments.
 
Back
Top