LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-28-2014, 11:50 AM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 70
A question about new X screens...


I am running Slackware 64 14.1. I have three monitors all on one X screen. I have decided to break it up into 3 X screens. I have an Nvidia graphics card with the nvidia module installed from Nvidia's website.

The weird thing is that when I use the nvidia-settings program and set each monitor be a separate X screen and I hit "apply" or I reload X, the font size on the screens shrink to almost nothing. At that point trying to read the settings in nvidia-settings is nearly impossible because the font size is soo small.

What gets changed to bring the font size that small? Where can I modify that setting?
 
Old 03-29-2014, 01:17 AM   #2
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Original Poster
Rep: Reputation: 70
It was the dpi after all. I modified the /usr/bin/startx script

defaultserverargs="-dpi 96"

That fixed it!

This leads me to another question. I've never fully understood this. If I have 3 X screens, I can set the DISPLAY environmental variable so that full screen applications like wine play games on that particular monitor. Also need to be able to move windows between X screens seamlessly. So I turned on Xinerama, but man it caused lots of issues.

So for X screen 2, I could do DISPLAY=:1.0. That's what I was thinking but if I do that and try to start an application it just says to make sure my DISPLAY environmental variable is setup correctly.

Before I had all 3 monitors as one X screen. I tried setting DISPLAY=:0.1 to start full screen applications to start on that monitor but I would get the same error, that my DISPLAY was not setup correctly.

What do you guys recommend besides switching DVI cables to the monitor I want.

Last edited by trist007; 03-29-2014 at 01:25 AM.
 
Old 03-29-2014, 06:19 AM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Have you looked at the documentation in /usr/doc/NVIDIA_GLX-1.0?
I have:
Chapter 13. Configuring Multiple Display Devices on One X Screen
Chapter 14. Configuring GLX in Xinerama
Chapter 15. Configuring Multiple X Screens on One Card

I only have two monitors, but I have a /etc/X11/xorg.conf file that provides for four possible layouts. (I do not bother with Xinerama as TwinView works best for me.)
I can choose which layout to use by typing 'startx -- -layout <Layout_Identifier>'
Layouts 0,1,2 only give DISPLAY=:0.0 while Layout3 gives DISPLAY=:0.0 and DISPLAY=:0.1

I happen to use Layout3 as my default with WindowMaker (recent KDE and XFCE have taken to assuming that they need to control all available X screens) as I often work with one monitor continuously showing an open document while I am flipping between applications and workspaces on the other monitor. I cannot drag windows between X screens doing this, but that does not bother me.

Code:
# X configuration file 

Section "ServerFlags"
    Option "DefaultServerLayout"     "Layout3"
EndSection

# Single screen on Monitor0
Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
EndSection

# Single screen on Monitor1
Section "ServerLayout"
    Identifier     "Layout1"
    Screen      0  "Screen1" 0 0
EndSection

# Dual screens on Monitor0 and Monitor1 with TwinView enabled
Section "ServerLayout"
    Identifier     "Layout2"
    Screen      0  "Screen3" 0 0
EndSection

# Dual screens on Monitor0 and Monitor1 with TwinView disabled
Section "ServerLayout"
    Identifier     "Layout3"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen2" RightOf "Screen0"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 7300 LE"
    BusID          "PCI:1:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 7300 LE"
    BusID          "PCI:1:0:0"
    Screen          1
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "Off"
    Option         "UseDisplayDevice" "DFP-0"
    Option         "metamodes" "DFP: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device0"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "Off"
    Option         "UseDisplayDevice" "CRT-0"
    Option         "metamodes" "CRT: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen2"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "Off"
    Option         "UseDisplayDevice" "CRT-0"
    Option         "metamodes" "CRT: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen3"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "On"
    Option         "UseDisplayDevice" "CRT-0, DFP-0"
    Option         "metamodes" "DFP: nvidia-auto-select +0+0, CRT: nvidia-auto-select +1280+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Monitor"
    Identifier     "Monitor0"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
EndSection

Section "Extensions"
    Option         "Composite" "Enable"
EndSection
 
Old 03-29-2014, 10:08 PM   #4
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Original Poster
Rep: Reputation: 70
That's a cool feature. Thanks for the info.
 
  


Reply



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
no screens repent Linux - Software 2 08-24-2011 11:47 AM
Managing multiple screens: redirecting video output and switching between screens simopal6 Linux - Hardware 2 11-13-2007 06:08 AM
reddazz: Question about your desktop screens? SlowCoder Linux - Newbie 3 04-17-2007 12:03 PM
No Screens Jason0 Linux - Newbie 3 10-01-2005 01:04 PM
n00b question (no screens found) demon1s Slackware 5 05-28-2003 05:30 PM

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

All times are GMT -5. The time now is 04:26 AM.

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