Forum › Forums › New users › New Users and General Questions › Multi monitor woos
- This topic has 12 replies, 5 voices, and was last updated Jan 23-2:08 pm by Xecure.
-
AuthorPosts
-
January 20, 2021 at 5:11 pm #50202Member
ags
Good afternoon, I am looking for an adequate solution for setting up vertically aligned monitors.
As I have found with other distros there does not appear to be an out-the-box display settings that works 100%. At best I have a choice of either having the wrong primary display or moving my mouse down to get the cursor to the above screen.
I did find a solution on youtube and that was perfect for about six months. However I recently tried reinstalling antix a couple of times and both times the configuration settings fail.
On starting antix it boots straight into terminal and on closing down there is a failing error… X display manager: slim not running (/var/run/slim.lock not found) stopping X display manager: slim
Ironically the youtuber states something along the lines that if anyone has similar issues they should type startX and debugging will show the syntax errors. Unfortunately I cannot get startX to run, but figure it must be something I’ve done as this was working previously without the fund and games.
Below is my config file. I hope my mistakes will be glaringly obvious to someone with more experience. Appreciate the help.
Section “Monitor”
### Monitor One (Top) Identifier typically HDMI-0, DisplayPort-0, DP-1 or VGA
Identifier “DP-4”### Setting Resolution and Modes
## Modeline is usually not required, but you can force resolution with it
# Modeline “1920×1080” 172.80 1920 2040 2248 2576 1080 1081 1084 1118
Option “PreferredMode” “1920×1080”
Option “TargetRefresh” “60”### Positioning the Monitor – typically “LeftOf or RightOf or Above or Below” “DisplayPort-0”
## Basic
Option “Above” “DP-3”
## Advanced
Option “Position” “0 1080”Section “Monitor”
### Monitor Two (Bottom) Identifier typically HDMI-0, DisplayPort-0, DP-1 or VGA
Identifier “DP-3”### Setting Resolution and Modes
## Modeline is usually not required, but you can force resolution with it
Modeline “1920×1080” 172.80 1920 2040 2248 2576 1080 1081 1084 1118
Option “PreferredMode” “1920×1080”
Option “TargetRefresh” “60”### Positioning the Monitor
## Basic
Option “LeftOf or RightOf or Above or Below” “DisplayPort-0”## Advanced
Option “Position” “0 0”EndSection
January 20, 2021 at 7:01 pm #50213ModeratorBobC
::I would think you could run antiX 19.3 full and let it create the config. Once you are in the system, go to control centre > session > set screen resolution and drag the screens into the right position, then apply. After you have it right, save it to ~/.screenlayout/default.sh. You can then get the system to run that by adding the following to ~/.desktop-session/startup
. $HOME/.screenlayout/default.sh &antiX 21 should already include the code to make that work without needing to modify the startup.
- This reply was modified 2 years, 3 months ago by BobC.
January 20, 2021 at 7:03 pm #50214MemberDaveW
::Hi, I have never tried to use the procedure given in the video. However, I watched the first half of the video, and it looks like you missed a step or two (maybe not, since I didn’t watch it to the end).
In your config file, for Monitor 2, at “Positioning the Monitor” don’t you need to select an option (one of the following: “LeftOf or RightOf or Above or Below”)? Do you also need to do something with “Advanced” option “Position”?
- This reply was modified 2 years, 3 months ago by DaveW. Reason: reconsideration of issue
January 20, 2021 at 7:04 pm #50217Member
Xecure
::Hello.
However I recently tried reinstalling antix a couple of times and both times the configuration settings fail.
So, does this happen exactly after installing, or does it happen after following the video tutorial?
If it is the former, then maybe there is an xorg regression. We will need you to give us the terminal output of:
inxi -Fxz
from the live media.If it is the second, then remove the xorg.conf file and use the program Arandr (Control Centre > Session > Set Screen Resolution (Arandr)). Rotate the screens and apply.
If you have set up your system with autologin, you can do:
(From inside Arandr) Save after configuring the monitors as, for example. “default.sh” (stored in $HOME/.screenlayout/ by default). Then, add this as the third/fourth line in $HOME/.desktop-session/startup# set all monitor orientation $HOME/.screenlayout/default.shI you don’t autologin, then something similar to what Chris Titus can be done, but I really don’t know which is the best way. Maybe someone else can recommend the correct path.
Please, first provide us with some extra info as requested above.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.January 20, 2021 at 7:37 pm #50223ModeratorBobC
::We don’t know what version or desktop you are using, and need to know that to give a good answer. See Xecure’s post above.
January 21, 2021 at 7:43 am #50276Memberags
::We don’t know what version or desktop you are using, and need to know that to give a good answer. See Xecure’s post above.
Sorry BobC, I am using the base version 19.3 Manolis Glezos with amd free drivers
Thanks for the replies, some of the answers are a little overwhelming for my skill level. I will chip away with what’s familiar first, but it is nice to see different approaches and get a glimpse of how antix works at a deeper level, even if I do not entirely understand it!
January 21, 2021 at 8:50 am #50278Anonymous
::Unfortunately I cannot get startX to run
“sudo startx”
the commandname is startx, all lowercase
and (I’m guessing, untested) the xserver can only be launched by root//sudoAfter you have it right, save it to ~/.screenlayout/default.sh
Trying to understand this instruction, I explored the arandr gui and discovered
Layout }} SaveAsha! I had never noticed this feature. I had been accustomed to using the “unxrandr” command and manually copy/pasting…
January 21, 2021 at 2:03 pm #50344ModeratorBobC
::Ags, the arandr display resolution and layout save/restore should be available with 19.3 base. I am going to assume you are using the default rox-icewm desktop and if so I think the startup script will run, and set the screens up when you login.
I have systems with multiple screens that I use this method for.
January 21, 2021 at 4:15 pm #50364Memberags
::Ags, the arandr display resolution and layout save/restore should be available with 19.3 base. I am going to assume you are using the default rox-icewm desktop and if so I think the startup script will run, and set the screens up when you login.
I have systems with multiple screens that I use this method for.
Yes I am using the default WM for now and I followed what Xecure said, all is working great thank you, very pleased. Much simpler implementation than the way I was heading! But struggling to get my head around how autologin and window managers have effect. I like the security advantages of physical login (apart from it being stuck directly between two screens) so I hope to stick with. Nonetheless, part of the reason I am here is because I would like to try herbstluftwm once I got more familiar. I guess that will also need a .conf file, does that mean I will have the same problems again? Or can I just build that separately alongside rox-icewm and flip between the two?
January 21, 2021 at 4:59 pm #50365Member
Xecure
::I would like to try herbstluftwm once I got more familiar. I guess that will also need a .conf file, does that mean I will have the same problems again?
I Think that all window managers in default antiX use the desktop-session scripts, so if you set up startup applications in $HOME/.desktop-session/startup, they will start in all desktop sessions (except the min-wm sessions), including herbstluftwm, so the monitor fix should work there too.
To configure and customize herbstluftwm, you WILL need to edit the files inside $HOME/.config/herbstluftwm/ so you will need to check this out (and configure before you log in to herbstluftwm).antiX Live system enthusiast.
General Live Boot Parameters for antiX.January 21, 2021 at 5:54 pm #50371Memberags
January 23, 2021 at 3:54 am #50492ModeratorBobC
::skidoo, Too bad Xecure and I didn’t know about the “unxrandr” command when working on the HiDPI and multi-display autoscale-antix script.
It isn’t mentioned as a “see also” for xrandr or arandr. Thanks for making me aware of it.
ags, did you get it all working ok? I’ve only tried herb once, so not much help with that one unless I start experimenting…
January 23, 2021 at 2:08 pm #50510Member
Xecure
::I tested unxrandr and the output is too simple. It doesn’t include scale or transformation changes. It is good for simple operations, the same as arandr, so it is valuable for most users. It wouldn’t have helped much with the autoscale script, though.
antiX Live system enthusiast.
General Live Boot Parameters for antiX. -
AuthorPosts
- You must be logged in to reply to this topic.