Sharing Workspaces Across Monitors

Asked by Kyle Brady

Does anyone know how to share workspaces across montiors? I've tried editing some settings in the xorg.conf file, but nothing has helped.

I'm currently running them as horizontal, and I like that.

The only problem is that I want to be able to open a Firefox window on each, and it won't let me since I already have one running on the other. This goes for other applications that don't want more than one instance running. [Note: I also tried running different options, like "firefox -a a {ec8030f7-c20a-464f-9b0e-13a3a9e97384}" and "firefox -no-remote" and "firefox -new-tab" and "firefox -new-window"]

Any help is appreciated.

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Cesare Tirabassi
Solved:
Last query:
Last reply:
Revision history for this message
Cesare Tirabassi (norsetto) said :
#1

Concerning the second part of the question, do you switch to the other workspace and then launch (again) firefox?
Also, if you have two instances in one workspace, right clicking on the title bar and setting "Move to workspace right" should work.
I'm asking since I have no problem to launch many instances of firefox on one or several workspaces, perhaps you changed some setting so its just a question of finding and reversing them?

Let me check how to change the size of the virtual desktop, I did it a couple of months ago so I know its possible. Now I have just to remember how I did it ;-)

Revision history for this message
Markus Thielmann (thielmann) said :
#2

Thanks for your question.

There is more than one way to use two (or more) monitors on one pc. So it would be helpfull to provide us the content of your xorg.conf.

Revision history for this message
Cesare Tirabassi (norsetto) said :
#3

Found the info.
To set the virtual size to double your horizontal resolution, you should add this option to the relevant display subsection of your screen section of your xorg.conf file:

Virtual xdim ydim

Where:
 xdim=2*xres (so if you have an horizontal resolution of 1024 this should be 2048)
 ydim=yres (so if you have a vertical resolution of 768 this should be 768)

I didn't test them now, so please tell me if there is a problem (unfortunately some drivers/hardware combinations do not support virtual screens).
In this case it would also help to have a look at your /etc/X11/xorg.conf and /var/log/Xorg.0.log file.

Revision history for this message
Cesare Tirabassi (norsetto) said :
#4

I just realised you are asking about monitors, not workspaces ....... better later then never

Revision history for this message
Kyle Brady (brady-k) said :
#5

Ok, so thanks for the multitude of replies, I guess.

To be more clear:
-2 monitors
-each with 2 workspaces
-they run separate, and horizontal
-an example of what I want: Firefox is open in Workspace 1 of Monitor 1... I want another FF window open on Workspace 1 of Monitor 2

A portion of the xorg.conf file:

-------------------------------------

Section "Device"
     Identifier "ATI Technologies Inc M22 [Radeon Mobility M300]"
     Driver "fglrx"
     Option "DesktopSetup" "horizontal"
     Option "Mode2" "1600x1200"
     Option "EnablePrivateBackZ" "yes"
     Option "HSync2" "60"
     Option "VRefresh2" "60"
     BusID "PCI:1:0:0"
EndSection

Section "Device"
     Identifier "aticonfig-Device[1]"
     Driver "fglrx"
     BusID "PCI:1:0:0"
     Screen 1
EndSection

-----------------------------------------------

Those are the only things I think are relevant.

Thanks again

Revision history for this message
Cesare Tirabassi (norsetto) said :
#6

I don't understand whats the need of two device sections? Which is the one used in the server section?
Not knowing your server or screen section doesn't help of course.
Having a look at your Xorg.0.log file also could be helpful.

Revision history for this message
Kyle Brady (brady-k) said :
#7

I'm not sure either. I wrote the mods on the first device section, and then i ran/installed aticonfig, and I guess that put in the second one. I followed a tutorial on here, or a Ubuntu forum... I don't remember exactly where.

I'm not sure what you mean by "server or screen section"... are you talking about inside the xorg.conf file?

Revision history for this message
Cesare Tirabassi (norsetto) said :
#8

Yes, it would be better if you can paste them here in their entirety.

Revision history for this message
Markus Thielmann (thielmann) said :
#9

In order to see how you put the two device sections together, we need a full copy of your xorg.conf. As there are no confidential informations in there, you don't need to be afraid of posting the information :-)

Revision history for this message
Kyle Brady (brady-k) said :
#10

Hey everyone,

Sorry for taking so long to respond. It's been a busy few days.

I'm not sure how to copy and paste in vi, let alone an entire file. If you could tell me how to do that, I'd be more than willing to pass it on.

I also don't think I mentioned that I can't drag-and-drop programs/windows across monitors... hopefully that's related to the same issue?

Thanks again

--Kyle

Revision history for this message
Cesare Tirabassi (norsetto) said :
#11

Yes, it seems that you have not managed to install the "big desktop". To correct it we need to see your xorg.conf file.
If you are on Gnome you can use gedit (Menu->Accessories->Text Editor).
Copy the whole file and paste it here.
Or you can paste it in pastebin (http://pastebin.ca/) and give us the url.

Revision history for this message
Kyle Brady (brady-k) said :
#12

Oh ok, I didn't know about gedit.

[file]

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf(5) manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"
 Identifier "Default Layout"
 Screen "Default Screen" 0 0
 Screen "aticonfig-Screen[1]" RightOf "Default Screen"
 InputDevice "Generic Keyboard"
 InputDevice "Configured Mouse"
 InputDevice "stylus" "SendCoreEvents"
 InputDevice "cursor" "SendCoreEvents"
 InputDevice "eraser" "SendCoreEvents"
 InputDevice "Synaptics Touchpad"
EndSection

Section "Files"

 # path to defoma fonts
 FontPath "/usr/share/fonts/X11/misc"
 FontPath "/usr/share/fonts/X11/cyrillic"
 FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
 FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
 FontPath "/usr/share/fonts/X11/Type1"
 FontPath "/usr/share/fonts/X11/100dpi"
 FontPath "/usr/share/fonts/X11/75dpi"
 FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
 Load "i2c"
 Load "bitmap"
 Load "ddc"
 Load "dri"
 Load "extmod"
 Load "freetype"
 Load "glx"
 Load "int10"
 Load "vbe"
EndSection

Section "InputDevice"
 Identifier "Generic Keyboard"
 Driver "kbd"
 Option "CoreKeyboard"
 Option "XkbRules" "xorg"
 Option "XkbModel" "pc105"
 Option "XkbLayout" "us"
EndSection

Section "InputDevice"
 Identifier "Configured Mouse"
 Driver "mouse"
 Option "CorePointer"
 Option "Device" "/dev/input/mice"
 Option "Protocol" "ImPS/2"
 Option "ZAxisMapping" "4 5"
 Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
 Identifier "Synaptics Touchpad"
 Driver "synaptics"
 Option "SendCoreEvents" "true"
 Option "Device" "/dev/psaux"
 Option "Protocol" "auto-dev"
 Option "HorizScrollDelta" "0"
EndSection

Section "InputDevice"
 Identifier "stylus"
 Driver "wacom"
 Option "Device" "/dev/input/wacom"
 Option "Type" "stylus"
 Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
 Identifier "eraser"
 Driver "wacom"
 Option "Device" "/dev/input/wacom"
 Option "Type" "eraser"
 Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
 Identifier "cursor"
 Driver "wacom"
 Option "Device" "/dev/input/wacom"
 Option "Type" "cursor"
 Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "Monitor"
 Identifier "Generic Monitor"
 Option "DPMS"
EndSection

Section "Monitor"
 Identifier "aticonfig-Monitor[1]"
 Option "VendorName" "ATI Proprietary Driver"
 Option "ModelName" "Generic Autodetecting Monitor"
 Option "DPMS" "true"
EndSection

Section "Device"
 Identifier "ATI Technologies Inc M22 [Radeon Mobility M300]"
 Driver "fglrx"
 Option "DesktopSetup" "horizontal"
 Option "Mode2" "1600x1200"
 Option "EnablePrivateBackZ" "yes"
 Option "HSync2" "65"
 Option "VRefresh2" "60"
 BusID "PCI:1:0:0"
EndSection

Section "Device"
 Identifier "aticonfig-Device[1]"
 Driver "fglrx"
 BusID "PCI:1:0:0"
 Screen 1
EndSection

Section "Screen"
 Identifier "Default Screen"
 Device "ATI Technologies Inc M22 [Radeon Mobility M300]"
 Monitor "Generic Monitor"
 DefaultDepth 24
 SubSection "Display"
  Depth 1
  Modes "1920x1200"
 EndSubSection
 SubSection "Display"
  Depth 4
  Modes "1920x1200"
 EndSubSection
 SubSection "Display"
  Depth 8
  Modes "1920x1200"
 EndSubSection
 SubSection "Display"
  Depth 15
  Modes "1920x1200"
 EndSubSection
 SubSection "Display"
  Depth 16
  Modes "1920x1200"
 EndSubSection
 SubSection "Display"
  Depth 24
  Modes "1920x1200"
 EndSubSection
EndSection

Section "Screen"
 Identifier "aticonfig-Screen[1]"
 Device "aticonfig-Device[1]"
 Monitor "aticonfig-Monitor[1]"
 DefaultDepth 24
 SubSection "Display"
  Viewport 0 0
  Depth 24
 EndSubSection
EndSection

Section "DRI"
 Mode 0666
EndSection

Section "Extensions"
 Option "Composite" "0"
EndSection
[/file]

There you ago

Thanks

Revision history for this message
Cesare Tirabassi (norsetto) said :
#13

You should try with this one. Let me know if still it doesn't work:

[file]

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf(5) manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
# path to defoma fonts
  FontPath "/usr/share/fonts/X11/misc"
  FontPath "/usr/share/fonts/X11/cyrillic"
  FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
  FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
  FontPath "/usr/share/fonts/X11/Type1"
  FontPath "/usr/share/fonts/X11/100dpi"
  FontPath "/usr/share/fonts/X11/75dpi"
  FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
  Load "i2c"
  Load "bitmap"
  Load "ddc"
  Load "dri"
  Load "extmod"
  Load "freetype"
  Load "glx"
  Load "int10"
  Load "vbe"
EndSection

Section "InputDevice"
  Identifier "Generic Keyboard"
  Driver "kbd"
  Option "CoreKeyboard"
  Option "XkbRules" "xorg"
  Option "XkbModel" "pc105"
  Option "XkbLayout" "us"
EndSection

Section "InputDevice"
  Identifier "Configured Mouse"
  Driver "mouse"
  Option "CorePointer"
  Option "Device" "/dev/input/mice"
  Option "Protocol" "ImPS/2"
  Option "ZAxisMapping" "4 5"
  Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
  Identifier "Synaptics Touchpad"
  Driver "synaptics"
  Option "SendCoreEvents" "true"
  Option "Device" "/dev/psaux"
  Option "Protocol" "auto-dev"
  Option "HorizScrollDelta" "0"
EndSection

Section "InputDevice"
  Identifier "stylus"
  Driver "wacom"
  Option "Device" "/dev/input/wacom"
  Option "Type" "stylus"
  Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
  Identifier "eraser"
  Driver "wacom"
  Option "Device" "/dev/input/wacom"
  Option "Type" "eraser"
  Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
  Identifier "cursor"
  Driver "wacom"
  Option "Device" "/dev/input/wacom"
  Option "Type" "cursor"
  Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "Monitor"
  Identifier "Generic Monitor"
  Option "DPMS"
EndSection

Section "Device"
  Identifier "ATI Technologies Inc M22 [Radeon Mobility M300]"
  Driver "fglrx"
  BusID "PCI:1:0:0"
  Option "DesktopSetup" "horizontal"
  Option "Mode2" "1600x1200"
  Option "EnablePrivateBackZ" "yes"
  Option "HSync2" "65"
  Option "VRefresh2" "60"
EndSection

Section "Screen"
  Identifier "Default Screen"
  Device "ATI Technologies Inc M22 [Radeon Mobility M300]"
  Monitor "Generic Monitor"
  DefaultDepth 24

  SubSection "Display"
    Depth 1
    Modes "1600x1200"
  EndSubSection

  SubSection "Display"
    Depth 4
    Modes "1600x1200"
  EndSubSection

  SubSection "Display"
    Depth 8
    Modes "1600x1200"
  EndSubSection

  SubSection "Display"
    Depth 15
    Modes "1600x1200"
  EndSubSection

  SubSection "Display"
    Depth 16
    Modes "1600x1200"
  EndSubSection

  SubSection "Display"
    Depth 24
    Modes "1600x1200"
    Virtual 1600 1200
  EndSubSection

EndSection

Section "ServerLayout"
  Identifier "Default Layout"
  Screen "Default Screen"
  InputDevice "Generic Keyboard"
  InputDevice "Configured Mouse"
  InputDevice "stylus" "SendCoreEvents"
  InputDevice "cursor" "SendCoreEvents"
  InputDevice "eraser" "SendCoreEvents"
  InputDevice "Synaptics Touchpad"
EndSection

Section "DRI"
  Mode 0666
EndSection

Section "Extensions"
  Option "Composite" "0"
EndSection

[/file]

I assume your monitors are both capabe of 1600x1200. If they have different native resolutions we need to change this.
You may have to choose a suitable option from Menu->System->Preferences->Screen Resolution after you restart the X server.

Revision history for this message
Kyle Brady (brady-k) said :
#14

One of my monitors is not capable of 1600x1200, no.

But I've implemented what you gave me, and I'm going to reboot (I need to anyways).

I'll be back in a little bit.

Revision history for this message
Kyle Brady (brady-k) said :
#15

Ok, I should have not been stupid. My small monitor is 1020x768 resolution, and the larger monitor (the main monitor) is 1920x1200 [I believe]

I'm assuming that I just have to change the numbers in the xorg file, but I'll wait for you to confirm/deny that.

Thanks.

Revision history for this message
Best Cesare Tirabassi (norsetto) said :
#16

Replace the Option Mode2 in the Device section with this option:

Option "PairMode" "1920x1200+1024x768"

Change ALL seven 1600 in the screen section to 1920.

After restaring the X server check/change with xrandr the resolution (or with Main->System->Preferences->Screen Resolution).

Revision history for this message
Kyle Brady (brady-k) said :
#17

Thanks Cesare Tirabassi, that solved my question.