Posts: 9
bentonc
Joined: 27 Sep 2010
#1
I've just installed antiX 8.5 on my laptop, and I can't figure out how to switch the display to an external Crt monitor. At boot up everything shows up on both the laptop monitor and the external one, but once the display manager starts, the external monitor goes idle. I need to be able to use the external display because the laptop's display is just about finished. The functions keys on the laptop don't seem to respond, at least the monitor switch doesn't. How do I switch the signal to the external monitor? The laptop's a Compaq Evo N1015v, if that's any clue.

Thank you

Chuck
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#2
I am not familiar with Compaq bios anymore. On my Amrel Laptop I have a setting in Bios for setting the monitor for Laptop mode or external monitor if that is any help.
Posts: 9
bentonc
Joined: 27 Sep 2010
#3
Thanks for the suggestion, rokytnji, but I can't find anything in the bios that would help with the monitor.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#4
There is no Hotkey on the keyboard either?
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#5
If you can, check"Set Screen Resolution" under the Hardware Tab in the Control Center. The button will actually start grandr, which should detect both monitors. If it does, check to see if your external is disabled here for some reason (there is a check box). If it is, uncheck the box and hit apply. You may need to log out and log back in for the change to actually happen. I just tried this on my laptop. Both of my displays were active. I actually disabled one (which was immediate), but when I re-enabled it, I had to log out and log back in.
Posts: 9
bentonc
Joined: 27 Sep 2010
#6
rokytjni:

There's a screen switch key combination (function + F5), but it doesn't seem to do anything. Adjusting the laptop's display brightness using function + F1/F2 works though.

dolphin oracle and all:

I managed to switch the CRT on by playing with the Set Screen Resolution tool, but there're some issues left.

I can see two displays, VGA-0 and LVDS. Both were supposed to be on from the start and switching VGA-0 off and back on again (and logging off and on again in between) didn't help. It looks like the supported display modes don't show right for the external monitor, because I can't see any modes above 70 Hz. I tried running VGA-0's resolution down to 640x480 to see if that'd help. It didn't when I first clicked apply, but then, when I tried dragging VGA-0 to the left of LVDS in the layout tab, suddenly I got a picture on the external monitor. It's definitely not 640x480, more like 1280x1024, but with a lot of flicker. I tried it several times, and up to 800x600 seems to give a picture once I do the switch layout thing. The layout's set to Clone, and that setting's actually grayed out, so selecting between Clone and Extend is not possible. I'm on a different computer now, but if I recall right, the layout setting reverts back to Clone after I restart the Set Screen Resolution tool, meaning both displays are in the center placeholder again, but I'll still have that external monitor turned on at that point.

Thank you

Chuck
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#7
Glad its kind of working anyway. This wiki may be of help. Its for the command line tool to xrandr. There is a section called"Doing useful things..." that shows sample commands you may find useful in your situation, since moving the screens in your layout improved your situation.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.thinkwiki.org/wiki/Xorg_RandR_1.2"
linktext was:"http://www.thinkwiki.org/wiki/Xorg_RandR_1.2"
====================================
Posts: 9
bentonc
Joined: 27 Sep 2010
#8
This starts to get over my head, but I'll look and see what I can do with xrandr. Thank you. Chuck
Posts: 9
bentonc
Joined: 27 Sep 2010
#9
I couldn't get the display to work with xrandr. It may be that the system's trying to use a display mode not supported by the external monitor, but I couldn't figure out what to do about it. From my reading of it, the reason resolution settings above 800x600 don't work seems to be the size of the virtual display, but, I couldn't figure out an xorg config that would allow for a bigger virtual display. (Adding the line"Virtual 2048 2048" in xorg.conf in a display subsection after Depth and Modes shut both displays. And as said above, a both 640x480 and 800x600 give an actual display resolution of 1024x768 or 1280x1024.) I also tried setting DPMS to false, but that didn't help.

I tried running sudo dpkg-reconfigure -phigh xserver-xorg, which recognizes the brand and model of the monitor correctly, but otherwise fails to bring any picture on either monitor. Should I post that xorg.conf here?

Running the system in vesa mode does work. That way grandr recognizes only one display and there's no way to set the refresh rate.

Thank you

Chuck
Posts: 1,062
Dave
Joined: 20 Jan 2010
#10
You could try booting the computer with the seccond moniter plugged in this I have found to work with a projector as well as showing the display on my TV. Also have been working on a project to have multiple seat computer, were multiple displays and keyboard setups can be used by several people on one computer. This is done by modifying the xorg.conf file, it may help you in this situation. I will type out the instructions for the multiple display and post it here, it may help.
Posts: 1,062
Dave
Joined: 20 Jan 2010
#11
first in terminal as root type ( lspci | grep VGA ) and record the output

then copy the xorg.conf file from /etc/X11/xorg.conf to the home directory
( cp /etc/X11/xorg.conf -t /home/U S E R/ )
replace U S E R with your username

then in terminal as root type ( geany /etc/X11/xorg.conf )

in this file there will be a section that looks something like this

Code: Select all

Section"Monitor"
  Identifier"Monitor0"
  VendorName"unknown"
  ModelName"unknown"
  Option"DPMS""true"
  HorizSync    30-75
  VertRefresh  55-70 
EndSection

Section"Device"
  Identifier "Card0"
  Driver"intel"
  BoardName"unknown"

  Screen 0
 #Option"UseDisplayDevice""dfp"
 #Option"MonitorLayout""crt,crt"
 #BusID "PCI:1:0:0"
 #Option"sw_cursor" # needed for some ati cards
 #Option"hw_cursor"
 #Option"NoAccel"
 #Option"ShowCache"
 #Option"ShadowFB"
 #Option"UseFBDev"
 #Option"Rotate"
  Option"UseInternalAGPGART""no"

  Option"XAANoOffscreenPixmaps""true"

# savage special options, use with care
 #Option"NoUseBios"
 #Option"BusType""PCI"
  Option"DmaMode""None"

# nvidia special options, use with care
  Option"CursorShadow""1"
  Option"CursorShadowAlpha""63"
  Option"CursorShadowYOffset""2"
  Option"CursorShadowXOffset""4"
  Option"FlatPanelProperties""Scaling = native"
  Option"NoLogo""true"
  Option"UseEDID""true"
  Option"AddARGBGLXVisuals""true"
  Option"RenderAccel""true"
 #Option"AllowGLXWithComposite""true"
EndSection

Section"Screen"
  Identifier"Screen0"
  Device"Card0"
  Monitor"Monitor0"
  DefaultColorDepth 24
  
  SubSection"Display"
  Depth 8
  Modes"1440x900""1280x800""1280x768""1024x768""800x600"
  EndSubSection
  SubSection"Display"
  Depth 15
  Modes "1440x900""1280x800""1280x768""1024x768""800x600"
  EndSubSection
  SubSection"Display"
  Depth 16
  Modes "1440x900""1280x800""1280x768""1024x768""800x600"
  EndSubSection
  SubSection"Display"
  Depth 24
  Modes"1440x900""1280x800""1280x768""1024x768""800x600"
  EndSubSection
  SubSection"Display"
  Depth 32
  Modes "1440x900""1280x800""1280x768""1024x768""800x600"
  EndSubSection
  
  # Only the official NVIDIA driver supports twinview
  # these setting are an example
  Option"TwinView""false"
  Option"SecondMonitorVendorName""unknown"
  Option"SecondMonitorModelName""unknown"
  Option"SecondMonitorHorizSync""30-75"
  Option"SecondMonitorVertRefresh""55-70"
 #Option"MetaModes""1024x768, 1024x768"
  Option"TwinViewOrientation""RightOf"
  Option"ConnectedMonitor""dfp,dfp"
EndSection

copy it and change the it to be something like this

Code: Select all

Section"Monitor"
  Identifier"Monitor1"
  VendorName"unknown"
  ModelName"unknown"
  Option"DPMS""true"
  HorizSync    30-75
  VertRefresh  55-70 
EndSection

Section"Device"
  Identifier "Card1"
  Driver"intel"
  BoardName"unknown"

  Screen 1
 #Option"UseDisplayDevice""dfp"
 #Option"MonitorLayout""crt,crt"
 #BusID "PCI:0:2:0"
 #Option"sw_cursor" # needed for some ati cards
 #Option"hw_cursor"
 #Option"NoAccel"
 #Option"ShowCache"
 #Option"ShadowFB"
 #Option"UseFBDev"
 #Option"Rotate"
  Option"UseInternalAGPGART""no"

  Option"XAANoOffscreenPixmaps""true"

# savage special options, use with care
 #Option"NoUseBios"
 #Option"BusType""PCI"
  Option"DmaMode""None"

# nvidia special options, use with care
  Option"CursorShadow""1"
  Option"CursorShadowAlpha""63"
  Option"CursorShadowYOffset""2"
  Option"CursorShadowXOffset""4"
  Option"FlatPanelProperties""Scaling = native"
  Option"NoLogo""true"
  Option"UseEDID""true"
  Option"AddARGBGLXVisuals""true"
  Option"RenderAccel""true"
 #Option"AllowGLXWithComposite""true"
EndSection

Section"Screen"
  Identifier"Screen1"
  Device"Card1"
  Monitor"Monitor1"
  DefaultColorDepth 24
  
  SubSection"Display"
  Depth 8
  Modes"1280x800""1280x768""1024x768""800x600"
  EndSubSection
  SubSection"Display"
  Depth 15
  Modes"1280x800""1280x768""1024x768""800x600"
  EndSubSection
  SubSection"Display"
  Depth 16
  Modes"1280x800""1280x768""1024x768""800x600"
  EndSubSection
  SubSection"Display"
  Depth 24
  Modes"1280x800""1280x768""1024x768""800x600"
  EndSubSection
  SubSection"Display"
  Depth 32
  Modes "1280x800""1280x768""1024x768""800x600"
  EndSubSection
  
  # Only the official NVIDIA driver supports twinview
  # these setting are an example
  Option"TwinView""false"
  Option"SecondMonitorVendorName""unknown"
  Option"SecondMonitorModelName""unknown"
  Option"SecondMonitorHorizSync""30-75"
  Option"SecondMonitorVertRefresh""55-70"
 #Option"MetaModes""1024x768, 1024x768"
  Option"TwinViewOrientation""RightOf"
  Option"ConnectedMonitor""dfp,dfp"
EndSection
Changing the identifiers to moniter1, card1, screen1, as well as changing the resolutions and refresh rates to match the external moniter

Here is the key to the whole configuration change the BusID from #BusID"PCI:1:0:0" to the output of ( lspci |grep VGA ) the BusID is the first part of the output.

on my laptop it would change to #BusID"PCI:0:2:0"

save the configuration and reboot with the moniter plugged in and it may show up better.

Like I said above this works for a multiseat system where there are several screens being used off the same computer so this may help you.


PS. __{{emoticon}}__ WRITE THIS DOWN __{{emoticon}}__ If this does not work for you and you are prompted at the command line interface, log in with your normal username and password. then log in as root and type ( rm -f -r /etc/X11/xorg.conf )
this removes the changed file
then type ( cp /home/U S E R/xorg.conf -t /etc/X11/xorg.conf )
again changing the U S E R to your username, this will copy the old file back

reboot by typing ( reboot ) and all will be the same as it was before changes
Posts: 9
bentonc
Joined: 27 Sep 2010
#12
Thanks for trying to help Dave, but it seems the BusID is already set to what it should be, and I'm always booting with the monitor plugged in.

I should correct something I wrote above. I was wrong when I wrote that I don't get any picture on either monitor when I use an xorg.conf that I get after running sudo dpkg-reconfigure -phigh xserver-xorg. I do get a picture on the laptop now with that xorg.conf. It could be that the display simply went all black at some point yesterday for being broken enough. That wouldn't be a big surprise since it's been almost unreadably faint for a while now.

So with that xorg config, running xrandr -q seems to list the displays and their supported display modes correctly:

Code: Select all

Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1920 x 1920
VGA-0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 352mm x 264mm
   1024x768       85.0*+   75.0     70.1     60.0     43.5  
   1280x1024      85.0 +   85.0     75.0     60.0  
   1920x1440      60.0  
   1856x1392      60.0  
   1792x1344      60.0  
   1600x1200      75.0     70.0     65.0     60.0  
   1680x1050      84.9     74.9     69.9     60.0  
   1600x1024      60.2  
   1400x1050      85.0     74.8     70.0     60.0  
   1440x900       59.9  
   1280x960       85.0     60.0  
   1360x768       59.8  
   1152x864      100.0     85.1     85.0     75.0     75.0     70.0     60.0  
   832x624        74.6  
   800x600        85.1     85.1     72.2     75.0     60.3     56.2  
   640x480        85.0     75.0     72.8     75.0     66.7     59.9  
   720x400        87.8     85.0     70.1  
   640x400        85.1  
   640x350        85.1  
LVDS connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768       60.0*+   60.0  
   800x600        60.3     59.9  
   640x480        59.9     59.4  
S-video disconnected (normal left inverted right x axis y axis)
That didn't help turning the monitor on though. Using xrandr, cloning the screens doesn't work, except when I first set VGA-0's resolution low (low enough to fit next to the other screen I guess), then set it left-of the laptop's screen (switches it on), and then clone with same-as. But as said above, the system will forget that setting at next boot, and it's not the right refresh rate and not the resolution it's supposed to be. When I run xrandr -q after cloning the screens, I'll get"VGA-0 connected 640x480+0+0 (normal left inverted right x axis y axis) 352mm x 264mm", but that's clearly false, because the resolution's not 640x480, and the refresh rate is not 85 as it claims.

Any ideas? If not, or if I'm not explaining myself clearly enough, I'd like to hear that too. Is there any chance some other distribution might work, or is it the ATI Radeon Mobility U1 card and back to you-know-what on that other computer? That'd be such a shame. Until this display thing and the need to use the other computer, I've been so care free since switching to antix.

Chuck
Posts: 1,062
Dave
Joined: 20 Jan 2010
#13
I have a few other suggestions / questions,

Questions
#1 Is the screen skew or smaller with the resolution settings that you have? Is the laptop widescreen and the desktop standard dimensions?

#2 Is it possible to turn the laptop screen off in a hot key / using xrandr or the xorg.conf file?

#3 As you already have the output of xrandr could you post the output of xorg.conf?

#4 could you also post the output ( lspci |grep VGA )

Suggestions
#1a If it is possible to turn the laptop screen off, try changing the resolution of the other moniter to a good setting while it is off.

#1b If this works as planned post what you enter for a command and then I or one of the other guys will tell you how to add it to the startup for your window manager.
Please identify what you are using for your window manager, the default iceWM, Fluxbox, or another one that you installed, if you are ready to do this.
Posts: 9
bentonc
Joined: 27 Sep 2010
#14
Sorry for taking so long to reply. I've been extremely busy and only now had the chance to get back to this.

Dave, there's no way to turn the laptop display off with a hotkey. That hotkey has only worked under windows. As for your question #1, the laptop's default resolution is 1024x768, it's not a widescreen or anything unusual. The external monitor's a typical crt from what I can tell, and the display's not skewed or anything.

Below is the current xorg.conf. The output of lspci |grep VGA is reflected in the config (BusID, Vendor and Board names).

Code: Select all

Section"ServerLayout"
    Identifier    "X.org Configured"
    Screen      0 "Screen0" 0 0
    InputDevice   "Mouse0""CorePointer"
    InputDevice   "Keyboard0""CoreKeyboard"
EndSection

Section"Files"
    ModulePath  "/usr/lib/xorg/modules"
    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"
    FontPath    "built-ins"
EndSection

Section"Module"
    Load "dri"
    Load "dri2"
    Load "extmod"
    Load "dbe"
    Load "record"
    Load "glx"
EndSection

Section"InputDevice"
    Identifier "Keyboard0"
    Driver     "kbd"
EndSection

Section"InputDevice"
    Identifier "Mouse0"
    Driver     "mouse"
    Option       "Protocol""auto"
    Option       "Device""/dev/input/mice"
    Option       "ZAxisMapping""4 5 6 7"
EndSection

Section"Monitor"
    #DisplaySize      360   270    # mm
    Identifier  "Monitor0"
    VendorName  "STN"
    ModelName   "S/T 97P/96P"
    HorizSync    30.0 - 96.0
    VertRefresh  50.0 - 160.0
    Option       "DPMS"
EndSection

Section"Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>:"True"/"False",
        ### <string>:"String", <freq>:"<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option    "NoAccel"                # [<bool>]
        #Option    "SWcursor"               # [<bool>]
        #Option    "Dac6Bit"                # [<bool>]
        #Option    "Dac8Bit"                # [<bool>]
        #Option    "BusType"                # [<str>]
        #Option    "CPPIOMode"              # [<bool>]
        #Option    "CPusecTimeout"          # <i>
        #Option    "AGPMode"                # <i>
        #Option    "AGPFastWrite"           # [<bool>]
        #Option    "AGPSize"                # <i>
        #Option    "GARTSize"               # <i>
        #Option    "RingSize"               # <i>
        #Option    "BufferSize"             # <i>
        #Option    "EnableDepthMoves"       # [<bool>]
        #Option    "EnablePageFlip"         # [<bool>]
        #Option    "NoBackBuffer"           # [<bool>]
        #Option    "DMAForXv"               # [<bool>]
        #Option    "FBTexPercent"           # <i>
        #Option    "DepthBits"              # <i>
        #Option    "PCIAPERSize"            # <i>
        #Option    "AccelDFS"               # [<bool>]
        #Option    "IgnoreEDID"             # [<bool>]
        #Option    "DisplayPriority"        # [<str>]
        #Option    "PanelSize"              # [<str>]
        #Option    "ForceMinDotClock"       # <freq>
        #Option    "ColorTiling"            # [<bool>]
        #Option    "VideoKey"               # <i>
        #Option    "RageTheatreCrystal"     # <i>
        #Option    "RageTheatreTunerPort"     # <i>
        #Option    "RageTheatreCompositePort"     # <i>
        #Option    "RageTheatreSVideoPort"     # <i>
        #Option    "TunerType"              # <i>
        #Option    "RageTheatreMicrocPath"     # <str>
        #Option    "RageTheatreMicrocType"     # <str>
        #Option    "ScalerWidth"            # <i>
        #Option    "RenderAccel"            # [<bool>]
        #Option    "SubPixelOrder"          # [<str>]
        #Option    "ShowCache"              # [<bool>]
        #Option    "DynamicClocks"          # [<bool>]
        #Option    "VGAAccess"              # [<bool>]
        #Option    "ReverseDDC"             # [<bool>]
        #Option    "LVDSProbePLL"           # [<bool>]
        #Option    "AccelMethod"            # <str>
        #Option    "DRI"                    # [<bool>]
        #Option    "ConnectorTable"         # <str>
        #Option    "DefaultConnectorTable"     # [<bool>]
        #Option    "DefaultTMDSPLL"         # [<bool>]
        #Option    "TVDACLoadDetect"        # [<bool>]
        #Option    "ForceTVOut"             # [<bool>]
        #Option    "TVStandard"             # <str>
        #Option    "IgnoreLidStatus"        # [<bool>]
        #Option    "DefaultTVDACAdj"        # [<bool>]
        #Option    "Int10"                  # [<bool>]
        #Option    "EXAVSync"               # [<bool>]
        #Option    "ATOMTVOut"              # [<bool>]
        #Option    "R4xxATOM"               # [<bool>]
    Identifier "Card0"
    Driver     "radeon"
    VendorName "ATI Technologies Inc"
    BoardName  "Radeon Mobility U1"
    BusID      "PCI:1:5:0"
EndSection

Section"Screen"
    Identifier"Screen0"
    Device    "Card0"
    Monitor   "Monitor0"
    DefaultColorDepth 24
    #Option MonitorLayout"crt, crt"
    #
    SubSection"Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection"Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection"Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection"Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection"Display"
        Viewport   0 0
        Depth     16
        Modes"1024x768"
    EndSubSection
    SubSection"Display"
        Viewport   0 0
        Depth     24
        Modes"1024x768"
    EndSubSection
EndSection
Posts: 1,062
Dave
Joined: 20 Jan 2010
#15
Thanks for posting this,

please try this xorg.conf, make sure you have a way to go back if it does not work!

Code: Select all

Section"ServerLayout"
   Identifier    "X.org Configured"
   Screen      0 "Screen0" 0 0
   Screen      1 "Screen1" 0 0
   InputDevice   "Mouse0""CorePointer"
   InputDevice   "Keyboard0""CoreKeyboard"
EndSection

Section"Files"
   ModulePath  "/usr/lib/xorg/modules"
   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"
   FontPath    "built-ins"
EndSection

Section"Module"
   Load "dri"
   Load "dri2"
   Load "extmod"
   Load "dbe"
   Load "record"
   Load "glx"
EndSection

Section"InputDevice"
   Identifier "Keyboard0"
   Driver     "kbd"
EndSection

Section"InputDevice"
   Identifier "Mouse0"
   Driver     "mouse"
   Option      "Protocol""auto"
   Option      "Device""/dev/input/mice"
   Option      "ZAxisMapping""4 5 6 7"
EndSection

Section"Monitor"
   Identifier  "Monitor0"
   Option      "DPMS"
EndSection
Section"Monitor"
   Identifier  "Monitor1"
   Option      "DPMS"
EndSection

Section"Device"
   Identifier "Card0"
   Driver     "radeon"
   VendorName "ATI Technologies Inc"
   BoardName  "Radeon Mobility U1"
   BusID      "PCI:1:5:0"
EndSection
Section"Device"
   Identifier "Card1"
   Driver     "radeon"
   VendorName "ATI Technologies Inc"
   BoardName  "Radeon Mobility U1"
   BusID      "PCI:1:5:0"
EndSection

Section"Screen"
   Identifier"Screen0"
   Device    "Card0"
   Monitor   "Monitor0"
   DefaultColorDepth 24
   Modes"1280x1024, 1024x768"
EndSection
Section"Screen"
   Identifier"Screen1"
   Device    "Card1"
   Monitor   "Monitor1"
   DefaultColorDepth 24
   Modes"1280x1024, 1024x768"
EndSection
if this does not work, download and install a program called automseat and all of its depends, and change a line in the /usr/bin/automseat file to make the video driver radeon. This should be on line 345 in geany. Looks like

Code: Select all

 ATI)
    driver="ati"
   ;;
should look like

Code: Select all

 ATI)
    driver="radeon"
   ;;
this will ensure the correct driver on start up. Not sure how well it will work but works well for my multiseat system. It will automatically reconfigure everytime there is a hardware change on startup

Hope this helps somewhat __{{emoticon}}__