LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-17-2021, 02:23 AM   #1
nesbit12
LQ Newbie
 
Registered: May 2016
Posts: 23

Rep: Reputation: Disabled
Fedora 34 XFCE: dual monitor hassle


Hi all,
I have a relatively new PC with dual monitors that runs Fedora 34 with XFCE.
It is a Lenovo M920 ThinkCentre, with dual display port outputs. I have two monitors attached to it and it uses the on-board Intel UHD 630 graphics card.

I configured my monitors to span the desktop across both of them. After boot, this normally works fine. However, after monitors went to sleep due to inactivity, as soon as they resume the monitors randomly switch to "mirror" i.e. I have one small desktop, displayed the same on both monitors.
It is so annoying. Furthermore I don't have a XFCE panel or launchers on the 2nd monitor, so if this one gets mirrored, I have no possibility of accessing the "XFCE Display Settings" dialog to switch off mirroring!
Because I never switch off my PC, my daily ritual every morning is to switch off mirroring. Normally I put the XFCE Display Settings dialog on one monitor before I leave the PC. When I return and XFCE has decided to switch on mirroring, I can readily disable it again. This has become my daily morning routine.

The annoying thing is, that with my old PC the two monitors never went into mirror mode, but since I got this new PC it happens at least once a day.
Is it somehow possible to completely disable the mirror option? how can I find out why it switches on mirroring?
 
Old 06-18-2021, 11:45 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,144

Rep: Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308Reputation: 2308
One way to do this is to write a video config file and put it in /etc/X11/xorg.conf.d

I had one named 20-video.conf there, which set up stuff, but it's out of date. You'll find examples but basically put the Video Section from 'man xorg.conf.' I have ServerLayout, Monitor, Device & Screen sections I have a 1600×900, & 1920×1080, so I have a virtual screen size of 3520×1080. The hdmi screen has an option "Position 1601 0" and I have "RightOf Screen 0"

Now for sure some of the options I used have vanished, and throw errors, but you get the idea.
 
Old 06-18-2021, 09:20 PM   #3
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
I haven't had this specific problem, but I do have simple scripts to alter my monitor configuration on the fly. For example, I have a tabletPC screen which I wish to invert upside-down when I'm using it for drawing stuff but I wish to change to right-side-up when I'm using it like a traditional laptop.

My shell scripts simply use xrandr to define the desired video modes and options (as well as, in my case, remapping the WACOM input to invert or not). This is the sort of thing it looks like:

Code:
#!/bin/sh

xrandr --output DVI-0 --mode 1600x900 --pos 0x124 --output DVI-1 --mode "1280x1024" --pos 1600x0
In this example, it sets up DVI-0 to 1600x900 resolution, DVI-1 to 1280x1024 resolution, with DVI-1 to the right of DVI-0; both share the same bottom edge (900+124 = 1024+0).

So, set up the monitors just how you like, and then use the following command to see how it is set up:

Code:
xrandr | grep " connected"
Make a shell script to run the desired xrandr command, and save it to "DualMon.sh". Use "chmod 755 DualMon.sh" to make it executable, and then create a Launcher to run this command.

It's not a fully automated thing, but it's quick and easy to just click on the Launcher to get the monitors back the way you want.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Dual boot windows 10 ,lubuntu 18.04 working but a hassle ( need to press Esc to go to GRUB) hottdogg Linux - Laptop and Netbook 15 04-29-2019 09:14 PM
LXer: Fedy – Tweak your Fedora & (Hassle Free Software installation) LXer Syndicated Linux News 0 06-08-2016 09:36 PM
LXer: PostInstallerF – Tweak your Fedora & (Hassle Free Software installation) LXer Syndicated Linux News 0 06-01-2016 12:38 AM
Fedora 16 dual monitor - dual head - automatic monitor shutdown wakatana Linux - Hardware 0 11-16-2012 02:34 AM
ISDN card hassle Richard Lucas Linux - Networking 1 12-10-2000 10:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration