You are not logged in.

#1 2016-03-04 03:17:49

Dan14
Member
Registered: 2015-11-06
Posts: 25

[SOLVED] Get rid the "virtual desktop" of a dual screen configuration.

Hello, I have a little problem, I have a dual monitor configuration, the thing is, for some reason I have like a third desktop, a virtual desktop especifically (the desktop with Firefox in full screen, the VGA-0, I'll leave the screenshot).

Screenshot:
http://imgur.com/FngDy2H

Is there any way to get rid that virtual desktop? Because I don't need that, sometimes when I open a program, it appears there and is a problem since I can't see the virtual desktop (The only way that I can see it, is taking screenshots).

Here is my xrandr output:

$ xrandr
Screen 0: minimum 8 x 8, current 4310 x 1080, maximum 16384 x 16384
VGA-0 connected 1024x768+3286+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768      75.03*+  70.07    60.00  
   1600x1200     65.00    60.00  
   1400x1050     74.76    59.98  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1152x864      75.00  
   832x624       74.55  
   800x600       75.00    72.19    60.32    56.25  
   700x525       74.76    59.98  
   640x480       75.00    72.81    59.94  
   512x384       70.07    60.00  
   400x300       72.19  
   320x240       72.81    60.05  
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 521mm x 293mm
   1920x1080     60.00*+  59.94    50.00    29.97    25.00    23.97    60.05    60.00    50.04  
   1680x1050     59.95  
   1600x900      60.00  
   1440x900      59.89  
   1366x768      59.79  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32  
   720x576       50.00    50.08  
   720x480       59.94    60.05  
   640x480       75.00    72.81    59.94  
LVDS-1 connected 1366x768+1920+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1366x768      60.00*+  40.00  
   1024x768      60.00  
   800x600       60.00    60.32    56.25  
   700x525       59.98  
   640x512       60.02  
   640x480       60.00    59.94  
   512x384       60.00  
   400x300       60.32    56.34  
   320x240       60.05  
VGA-1 disconnected (normal left inverted right x axis y axis)
  1024x768 (0x46) 65.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
        v: height  768 start  771 end  777 total  806           clock  60.00Hz
  800x600 (0x48) 40.000MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
        v: height  600 start  601 end  605 total  628           clock  60.32Hz
  800x600 (0x49) 36.000MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock  35.16KHz
        v: height  600 start  601 end  603 total  625           clock  56.25Hz
  700x525 (0x4a) 61.000MHz +HSync +VSync DoubleScan
        h: width   700 start  744 end  820 total  940 skew    0 clock  64.89KHz
        v: height  525 start  526 end  532 total  541           clock  59.98Hz
  640x480 (0x4d) 25.175MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
        v: height  480 start  490 end  492 total  525           clock  59.94Hz
  512x384 (0x4e) 32.500MHz -HSync -VSync DoubleScan
        h: width   512 start  524 end  592 total  672 skew    0 clock  48.36KHz
        v: height  384 start  385 end  388 total  403           clock  60.00Hz
  320x240 (0x51) 12.587MHz -HSync -VSync DoubleScan
        h: width   320 start  328 end  376 total  400 skew    0 clock  31.47KHz
        v: height  240 start  245 end  246 total  262           clock  60.05Hz

My lspci output:

$ lspci|grep VGA
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 525M] (rev a1)

My xorg.conf,

/etc/X11/xorg.conf:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 355.11  (buildmeister@swio-display-x86-rhel47-07)  Wed Aug 26 17:14:39 PDT 2015

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      1  "Screen0" 0 0
    Inactive       "intel"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Samsung T24C301"
    HorizSync       15.0 - 81.0
    VertRefresh     24.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GT 525M"
    BusID          "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "HDMI-0: nvidia-auto-select +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID  "PCI:0:2:0"
    Option  "AccelMethod" "uxa"
    Option "TearFree" "True"
    Option "Tiling"   "True"
    Option "SwapbuffersWait" "True"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection 

And the configuration in Xsetup,

/usr/share/sddm/scripts/Xsetup:

#!/bin/sh
# Xsetup - run as root before the login dialog appears

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --output VGA-0 --mode 1024x768 --pos 3286x312 --rotate normal --output LVDS-1 --mode 1366x768 --pos 1920x312 --rotate normal --output VGA-1 --off --output HDMI-0 --primary --mode 1920x1080 --pos 0x0 --rotate normal

Thanks in advance.

Last edited by Dan14 (2016-03-08 02:18:53)

Offline

#2 2016-03-04 12:09:49

ooo
Member
Registered: 2013-04-10
Posts: 1,637

Re: [SOLVED] Get rid the "virtual desktop" of a dual screen configuration.

did you try turning it off?

xrandr --output VGA-0 --off

currently, you're specifically enabling the VGA-0 output in your xrandr command, so naturally it will be there.

Offline

#3 2016-03-04 13:15:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: [SOLVED] Get rid the "virtual desktop" of a dual screen configuration.

ooo wrote:

VGA-0 output in your xrandr command, so naturally it will be there.

Yup.  You don't need a seperate command to turn it off, just don't turn it on.  You explicitly tell xrandr to use that output so of course it's used.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2016-03-04 13:33:20

Dan14
Member
Registered: 2015-11-06
Posts: 25

Re: [SOLVED] Get rid the "virtual desktop" of a dual screen configuration.

When I turn it off the VGA-0 or even if I don't turn it on in my xrandr command, my LVDS-1 appears together with HDMI-0 in one screen. Here is the screenshot: http://imgur.com/xYXjVMp

Offline

#5 2016-03-04 13:43:07

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: [SOLVED] Get rid the "virtual desktop" of a dual screen configuration.

What do you mean they appear together on one screen?  The screenshot you posted looks fine to me - what is it that you want that is different from that?

Also, what is the actual xrandr command used now?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2016-03-04 13:57:18

Dan14
Member
Registered: 2015-11-06
Posts: 25

Re: [SOLVED] Get rid the "virtual desktop" of a dual screen configuration.

Yes, in the screenshot looks fine, but actually both screens are in HDMI-0. I'm not in home right now, when I return I'll post a photo with my cellphone and you can see what I mean.

Offline

#7 2016-03-04 18:19:51

Dan14
Member
Registered: 2015-11-06
Posts: 25

Re: [SOLVED] Get rid the "virtual desktop" of a dual screen configuration.

I am back, here is the photo, this is how actually looks like:

http://imgur.com/itlj4vI

And my current xrandr command:

xrandr --output LVDS-1 --mode 1366x768 --pos 1920x0 --rotate normal --output HDMI-0 --primary --mode 1920x1080 --pos 0x0 --rotate normal

Offline

#8 2016-03-04 18:30:46

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: [SOLVED] Get rid the "virtual desktop" of a dual screen configuration.

Hmm, that is odd - but sometimes xrandr is quirky with the order of ouputs in that the first is (generally) assumed to be primary and at 0x0.  Even though there are flags that override these defaults, it may not like setting a positional offset on the first output when there isn't anything in the 0x0 range yet, try the following:

xrandr --output HDMI-0 --mode 1920x1080 --primary --output LVDS-1 --mode 1366x768 --right-of HDMI-0

If that works, then we can try replacing the "right-of" with the actual coordinates you'd want.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2016-03-04 19:38:46

Dan14
Member
Registered: 2015-11-06
Posts: 25

Re: [SOLVED] Get rid the "virtual desktop" of a dual screen configuration.

Ok, I tried just like you suggest me, but for strange reasons the VGA-0 appears.

Even if I try to turn it off:

xrandr --output VGA-0 --off xrandr

Or put that line in the complete xrandr command:

xrandr --output VGA-0 --off xrandr --output HDMI-0 --mode 1920x1080 --primary --output LVDS-1 --mode 1366x768 --right-of HDMI-0

It's still there, now the only way that I can get rid of VGA-0 is disabling it in the ARandR program, and when I do that, it occurs the same problem that I metioned before (both screens in HDMI-0).

Offline

#10 2016-03-04 20:44:15

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: [SOLVED] Get rid the "virtual desktop" of a dual screen configuration.

Odd.  Perhaps it has to do with something wrong in your xorg.conf.  I've never needed screen or monitor (or nearly anything else for that matter) in xorg.conf.  Are you sure you need those?  Those entries are likely conflicting with what you are trying to do with xrandr.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#11 2016-03-04 21:24:49

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: [SOLVED] Get rid the "virtual desktop" of a dual screen configuration.

I have no idea about the capabilities of those cards, but I have a machine with an nVidia Optimus setup with the nVidia Quadro K1100M.

What I did with that is disabled the Hybrid Graphics and just dealt with the nVidia card, which magically handles everything correctly. I did generated the xorg.conf for a single screen once, and then plugged in the second monitor, set it so that my mouse would go up to the external monitor in my DE settings (Cinnamon in this case) and happily carried on running.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#12 2016-03-04 23:31:32

Dan14
Member
Registered: 2015-11-06
Posts: 25

Re: [SOLVED] Get rid the "virtual desktop" of a dual screen configuration.

Well, I changed completely my xog.conf:

Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    Option "AllowEmptyInitialConfiguration"
EndSection

At least, the VGA-0 is not appearing anymore. Now the only problem remaining is what I said about those two screens in one that are in HDMI-0.

Offline

#13 2016-03-05 01:07:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: [SOLVED] Get rid the "virtual desktop" of a dual screen configuration.

Which xrandr command are you currently using.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#14 2016-03-05 01:12:26

Dan14
Member
Registered: 2015-11-06
Posts: 25

Re: [SOLVED] Get rid the "virtual desktop" of a dual screen configuration.

The same you told me:

xrandr --output HDMI-0 --mode 1920x1080 --primary --output LVDS-1 --mode 1366x768 --right-of HDMI-0

Offline

#15 2016-03-05 01:52:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: [SOLVED] Get rid the "virtual desktop" of a dual screen configuration.

Sorry, I'm stumped.  This must be a nvidia quirk as that xrandr command should work - I have no expeirence with closed source video drivers.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#16 2016-03-05 14:17:25

Dan14
Member
Registered: 2015-11-06
Posts: 25

Re: [SOLVED] Get rid the "virtual desktop" of a dual screen configuration.

Don't worry, thanks for your help.

Edit: Finally I solved the problem, I had to change my xorg.conf completely:

Section "ServerLayout"
    Identifier "layout"
    Screen 1 "nvidia"
    Inactive "intel"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Samsung T24C301"
    HorizSync       15.0 - 81.0
    VertRefresh     24.0 - 75.0
    Option         "DPMS"
    Modeline "1920x1080" 148.500 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    Option "NoLogo" "true"
    Option "ConnectedMonitor" "DFP-0"
    Option "CustomEDID" "DFP-0:/home/dan/Downloads/EDID/First/dspinfo.bin" # I had to extract the EDID for HDMI-0
    Option "IgnoreEDID" "false"
    Option "UseEDID" "true"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "Yes"
    Monitor        "Monitor0"
    Option         "metamodes" "nvidia-auto-select @3286x1080 +0+0"
    SubSection     "Display"
         Depth       24
    EndSubSection
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0:2:0"
    Option "AccelMethod" "none"
     Option "ConnectedMonitor" "DFB-0"
     Option "CustomEDID" "DFB-0:/home/dan/Downloads/EDID/Third/dspinfo.bin" # I had to extract the EDID for LVDS-1
     Option "IgnoreEDID" "false"
     Option "UseEDID" "true"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Last edited by Dan14 (2016-03-08 02:17:02)

Offline

Board footer

Powered by FluxBB