You are not logged in.

#1 2012-12-16 16:05:29

runny6play
Member
Registered: 2012-02-18
Posts: 85

multihead trouble on laptop

I am trying to set up a X screen configuration with Dual X screens. which works perfectly fine except steam and a couple non steam games only want to run on the laptop screen. Following instructions on the multihead arch wiki page, I've set up a single screen layout for gaming and call it with startx. The problem is no matter what I change about the configuration. it always only sets up on the laptop screen. While I am trying to set it up on my External monitor.

xorg.conf

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 304.51  (buildmeister@swio-display-x86-rhel47-08.nvidia.com)  Tue Sep 18 18:26:36 PDT 2012

Section "ServerLayout"
    Identifier     "Main Layout"
    Screen      0  "Screen0" 0 0 
    Screen       1 "Screen1" LeftOf "Screen0" 
    Option         "Xinerama" "0"   
    Option         "TwinView" "0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection


Section "Files"
#file /etc/X11/xorg.conf.d/10-synaptics.conf
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      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS" "0"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS" "0"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option         "RegistryDwords" "EnableBrightnessControl=1"
BusID       "PCI:1:0:0"
        Screen      0
EndSection
Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
  BusID       "PCI:1:0:0"
        Screen      1
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "NoLogo" "1"
    Option         "DamageEvents" "1"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "NoLogo" "1"
    Option         "DamageEvents" "1"
    Option         "TwinView"     "0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

90-serverlayout-Main Layout.conf

Section "ServerLayout"
    Identifier     "Main Layout"
    Screen      0  "Screen0" 0 0 
    Screen       1 "Screen1" LeftOf "Screen0" 
    Option         "Xinerama" "0"   
    Option         "TwinView" "0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

91-serverlayout-Gaming.conf

#  New screen layout only using a single screen called "Primary"
 Section "ServerLayout"
   Identifier   "Gaming"
   Screen       1 "Screen1" Absolute 0 0
 EndSection

Offline

#2 2012-12-16 22:27:32

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,548

Re: multihead trouble on laptop

You don't even really need that, just go into terminal and type xrandr.
Then xrandr --ouput output1 --auto --output output2 --auto --right-of/left-of/above/below output1
A laptop is going to be the easiest multihead, since it usually has matching video chipsets.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#3 2012-12-22 20:07:25

kelloco2
Member
Registered: 2012-02-13
Posts: 133

Re: multihead trouble on laptop

out of curiosity; is possible to run seperate login sessions? first on laptop monitor, second on external monitor?
at once time I thought about laptop for multiseat https://bbs.archlinux.org/viewtopic.php?id=139058

Last edited by kelloco2 (2012-12-22 20:08:20)

Offline

#4 2012-12-23 02:56:21

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,548

Re: multihead trouble on laptop

kelloco2 wrote:

out of curiosity; is possible to run seperate login sessions? first on laptop monitor, second on external monitor?
at once time I thought about laptop for multiseat https://bbs.archlinux.org/viewtopic.php?id=139058

You can run multiple X sessions with each their own multiheaded desktop.  Sometimes multiheaded setups are divided into separate X window sessions (between adapters).


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#5 2012-12-23 02:57:09

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: multihead trouble on laptop

You can certainly run two X servers on a laptop... one with "-vt 6", one with "-vt 7". Then if they both end up being dualhead, C-a-F6 and use xrandr to turn off the left one. Then C-a-F7 and use xrandr to turn off the right one.

Edit: D'oh!

Last edited by ConnorBehan (2012-12-23 02:58:14)


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#6 2012-12-24 04:36:48

runny6play
Member
Registered: 2012-02-18
Posts: 85

Re: multihead trouble on laptop

I think you guys are misunderstanding what I'm trying to do. I am using two monitors. I am trying to get a set up that will make the laptop screen the secondary or disable it completely. So that I may game on the external monitor.  When I try this. The laptop remains the primary or  when its not in use. (via xorg.conf not connected to an X screen) twinview takes over and still makes it primary.

Offline

#7 2012-12-24 13:33:24

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,548

Re: multihead trouble on laptop

runny6play wrote:

I think you guys are misunderstanding what I'm trying to do. I am using two monitors. I am trying to get a set up that will make the laptop screen the secondary or disable it completely. So that I may game on the external monitor.  When I try this. The laptop remains the primary or  when its not in use. (via xorg.conf not connected to an X screen) twinview takes over and still makes it primary.

Then do xrandr --output <laptop display> --off.

Last edited by nomorewindows (2012-12-24 13:37:36)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#8 2012-12-25 07:14:33

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: multihead trouble on laptop

You can also just take "device0" out of your xorg.conf right? If X only uses your other video card, then by default your laptop screen will show nothing more than some string from the video BIOS.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#9 2012-12-25 08:44:30

vmat
Member
Registered: 2011-10-10
Posts: 25

Re: multihead trouble on laptop

nvidia-settings can generate xorg config file. I used this and got what you want - external display is primary, laptop screen is disabled, and games (I tried only Darwinia) run on external display.

Offline

#10 2012-12-25 16:43:30

runny6play
Member
Registered: 2012-02-18
Posts: 85

Re: multihead trouble on laptop

nomorewindows wrote:
runny6play wrote:

I think you guys are misunderstanding what I'm trying to do. I am using two monitors. I am trying to get a set up that will make the laptop screen the secondary or disable it completely. So that I may game on the external monitor.  When I try this. The laptop remains the primary or  when its not in use. (via xorg.conf not connected to an X screen) twinview takes over and still makes it primary.

Then do xrandr --output <laptop display> --off.

ConnorBehan wrote:

You can also just take "device0" out of your xorg.conf right? If X only uses your other video card, then by default your laptop screen will show nothing more than some string from the video BIOS.

even when turning the screen off the external is still not the primary screen located at 0,0 so steam refuses to launch games there, just now nothing shows up.
and no I can't. at least not with monitor0 that was the point of this thread. my nvida driver is automatically grabbing the monitor and making it primary and then twinviewing the two monitors together. How? I do not know.
As for taking device0 out. that's the only video card. unless you want to count the dormant one in my i7. Which i do not want to play with. nvida + intell isn't well supported and my computer doesn't come with optimus support. least not that I know of.

Offline

#11 2012-12-25 16:45:03

runny6play
Member
Registered: 2012-02-18
Posts: 85

Re: multihead trouble on laptop

vmat wrote:

nvidia-settings can generate xorg config file. I used this and got what you want - external display is primary, laptop screen is disabled, and games (I tried only Darwinia) run on external display.

how did you achieve this? When I run nvidia-xconfig. it completely ignores the external in the Xorg.conf file unless --twinview is specified, which is not what i'm looking for.

Offline

#12 2012-12-27 18:50:18

vmat
Member
Registered: 2011-10-10
Posts: 25

Re: multihead trouble on laptop

runny6play wrote:

how did you achieve this? When I run nvidia-xconfig. it completely ignores the external in the Xorg.conf file unless --twinview is specified, which is not what i'm looking for.

 ~ % cat /etc/X11/xorg.conf.d/20-nvidia.conf 
Section "Monitor"
    Identifier  "Monitor0"
    VendorName  "BenQ"
    ModelName   "BenQ FP91V"
    HorizSync   31.0 - 83.0
    VertRefresh 56.0 - 76.0
    Option      "DPMS"
    Option "UseEdidDpi" "False"
    Option  "DPI" "96 x 96"
EndSection  

Section "Device"
    Identifier "Device0"                                                                                                                                                            
    Driver "nvidia"                                                                                                                                                                 
EndSection                                                                                                                                                                          
                                                                                                                                                                                    
Section "Screen"                                                                                                                                                                    
    Identifier "Screen0"                                                                                                                                                            
    Device "Device0"                                                                                                                                                                
    Monitor "Monitor0"                                                                                                                                                              
    Option "RenderAccel" "true"                                                                                                                                                     
    Option "TripleBuffer" "True"                                                                                                                                                    
    Option "BackingStore" "True"                                                                                                                                                    
    Option "TwinView" "0"                                                                                                                                                           
    Option "TwinViewXineramaInfoOrder" "CRT-0"                                                                                                                                      
    Option  "metamodes" "CRT: 1280x1024_60 +0+0"                                                                                                                                    
    SubSection "Display"                                                                                                                                                            
        Depth 24                                                                                                                                                                    
    EndSubSection                                                                                                                                                                   
EndSection

Offline

#13 2012-12-28 11:27:48

runny6play
Member
Registered: 2012-02-18
Posts: 85

Re: multihead trouble on laptop

vmat wrote:
runny6play wrote:

how did you achieve this? When I run nvidia-xconfig. it completely ignores the external in the Xorg.conf file unless --twinview is specified, which is not what i'm looking for.

 ~ % cat /etc/X11/xorg.conf.d/20-nvidia.conf 
Section "Monitor"
    Identifier  "Monitor0"
    VendorName  "BenQ"
    ModelName   "BenQ FP91V"
    HorizSync   31.0 - 83.0
    VertRefresh 56.0 - 76.0
    Option      "DPMS"
    Option "UseEdidDpi" "False"
    Option  "DPI" "96 x 96"
EndSection  

Section "Device"
    Identifier "Device0"                                                                                                                                                            
    Driver "nvidia"                                                                                                                                                                 
EndSection                                                                                                                                                                          
                                                                                                                                                                                    
Section "Screen"                                                                                                                                                                    
    Identifier "Screen0"                                                                                                                                                            
    Device "Device0"                                                                                                                                                                
    Monitor "Monitor0"                                                                                                                                                              
    Option "RenderAccel" "true"                                                                                                                                                     
    Option "TripleBuffer" "True"                                                                                                                                                    
    Option "BackingStore" "True"                                                                                                                                                    
    Option "TwinView" "0"                                                                                                                                                           
    Option "TwinViewXineramaInfoOrder" "CRT-0"                                                                                                                                      
    Option  "metamodes" "CRT: 1280x1024_60 +0+0"                                                                                                                                    
    SubSection "Display"                                                                                                                                                            
        Depth 24                                                                                                                                                                    
    EndSubSection                                                                                                                                                                   
EndSection

when I generate my xorg.conf with nvida mine looks something like this except it refuses to just let me use the other screen

Offline

Board footer

Powered by FluxBB