Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Keep configuration of a secondary screen

Help for Current Versions of MX
Post Reply
Message
Author
User avatar
nikopoika
Forum Novice
Forum  Novice
Posts: 22
Joined: Wed May 23, 2018 10:24 am

Keep configuration of a secondary screen

#1 Post by nikopoika » Fri Aug 10, 2018 2:21 am

Hi!
A short question:
It is possible to keep the configuration of a second screen? I mean, when I plugg a monitor I have to adjust, wich is primary, mirroring, resolution, etc... all setup and working. But then when I unplugg this monitor and plugg again the configuration is lost. So how can I keep it?

Thanks!!
Hardware: MacBook 2.1 Intel core2duo 1,83 GHz, 3 GB ram, graphics Intel 950. Running MX Linux 17.1 final x64, kernel 4.15

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 23066
Joined: Wed Jul 19, 2006 6:13 am

Re: Keep configuration of a secondary screen

#2 Post by Jerry3904 » Fri Aug 10, 2018 5:10 am

Maybe create a script that sets all that? ToZ on the Xfce Forum suggests such a thing regularly, so you might want to search around over there a bit.

Quick search on the web gives an example of what I mean:

Code: Select all

#!/bin/bash
### BEGIN INIT INFO
# Provides:          resVGA1
# Required-Start:
# Required-Stop:
# Default-Start:     2 3 4 5 
# Default-Stop:      0 1 6
# Short-Description: Setup xrandr with VGA1
# Description:       Setup Multi-screen resolution with VGA1 connected
### END INIT INFO

if xrandr | grep "VGA1 connected"; then
    xrandr -s 1366x768                     #As it doesn't default to this with VGA1 connected
    xrandr --auto                          #To populate the second screen
    xrandr --output VGA1 --right-of LVDS1  #Right of VGA1, not duplicate
fi
I think you could add this script to your startup items: Session and Startup > Applications Autostart, click "Add", under "Name" enter whatever you want and under "Command", enter the exact path to the script. Not sure about any actual details, so I leave all that to people who really know what they are talking about...
Production: 4.15.0-1-amd64, MX-17.1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, SSD 120 GB, Data 1TB
Testing: AAO 722: 4.15.0-1-386. MX-17.1, AMD C-60 APU, 4 GB
Personal: XPS 13, 4.18.0-19.3-liquorix, 4 GB

User avatar
nikopoika
Forum Novice
Forum  Novice
Posts: 22
Joined: Wed May 23, 2018 10:24 am

Re: Keep configuration of a secondary screen

#3 Post by nikopoika » Mon Aug 13, 2018 2:58 am

Hello Jerry,
Thanks for the quick answer. I will look in the xfce forum as you said and see if I can find a way. I also will try with Mx KDE, I remember that was easy on KDE desktop, not to keep adjustments but to plug automatically.
Thanks again!
Hardware: MacBook 2.1 Intel core2duo 1,83 GHz, 3 GB ram, graphics Intel 950. Running MX Linux 17.1 final x64, kernel 4.15

Post Reply

Return to “MX Help”