Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: Výstup na dva monitory a displayconfig-gtk  (Přečteno 2299 krát)

kotz

  • Návštěvník
  • Příspěvků: 68
Výstup na dva monitory a displayconfig-gtk
« kdy: 07 Září 2007, 12:59:28 »
Mám dva monitory a řeším tyhle problemy:

- nainstaloval jsem si displayconfig-gtk a upravil xorg.conf podle wiki pro výstup na dva monitory. Od tý doby mě nejde spustit displayconfig-gtk:
Kód: [Vybrat]
Traceback (most recent call last):
  File "/usr/bin/displayconfig-gtk", line 11, in
    app = DisplayConfig("/usr/share/displayconfig-gtk/displayconfig.glade")
  File "/usr/lib/python2.5/site-packages/displayconfiggtk/DisplayConfig.py", line 116, in __init__
    self.xsetup = XSetup(self.xconfigpath)
  File "/usr/lib/python2.5/site-packages/displayconfig/displayconfigabstraction.py", line 387, in __init__
    self._finalizeInit()
  File "/usr/lib/python2.5/site-packages/displayconfig/displayconfigabstraction.py", line 392, in _finalizeInit
    gfxcard._finalizeInit()
  File "/usr/lib/python2.5/site-packages/displayconfig/displayconfigabstraction.py", line 1103, in _finalizeInit
    screen._finalizeInit()
  File "/usr/lib/python2.5/site-packages/displayconfig/displayconfigabstraction.py", line 1578, in _finalizeInit
    (cw,ch) = self.available_sizes[0]
IndexError: list index out of range
Zkoušel jsem i kopmletní reinstal balíčku, ale nepomohlo to.
Mám nb s grafárnou od Intela.

-Existuje způsob abych donutil X  k znovunačtení konfiguráků za běhu. Pokud připojim ext. monitor tak se rozběhne až po restartu systému a bylo by fajn mít script kterej by to udělal bez odhlášení.
Dýky.

EDIT: add 2: zkoušel jsem klávesovou zkratku ale odhlásilo mě to a potom nešlo přepnout zpět do režimu "jeden monitor"

kotz

  • Návštěvník
  • Příspěvků: 68
Výstup na dva monitory a displayconfig-gtk
« Odpověď #1 kdy: 07 Září 2007, 14:34:39 »
Samozřejmě že zazálohoval.

Aktuální (okop9rovanej z wiki):
Kód: [Vybrat]
Section "Files"
        FontPath        "/usr/share/X11/fonts/misc"
        FontPath        "/usr/share/X11/fonts/cyrillic"
        FontPath        "/usr/share/X11/fonts/100dpi/:unscaled"
        FontPath        "/usr/share/X11/fonts/75dpi/:unscaled"
        FontPath        "/usr/share/X11/fonts/Type1"
        FontPath        "/usr/share/X11/fonts/100dpi"
        FontPath        "/usr/share/X11/fonts/75dpi"
        # path to defoma fonts
        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    "type1"
        Load    "vbe"
EndSection

#Zde zacinaji sekce definic vstupnich zarizeni
Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc104"
        Option          "XkbLayout"     "cz(qwerty),us"
        Option          "XkbOptions"    "grp:switch,grp:shifts_toggle"
EndSection

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ExplorerPS/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
#Zde konci sekce definic vstupnich zarizeni

#Zde zacinaji sekce definic graficke karty
Section "Device"
       Identifier       "Device Interni"
       Driver           "i810"
       BusID            "PCI:0:2:0"
       Option           "MonitorLayout" "NONE,LFP"
EndSection

Section "Device"
       Identifier       "Device Externi"
       Driver           "i810"
       BusID            "PCI:0:2:0"
       Option           "MonitorLayout" "NONE,CRT"
EndSection

Section "Device"
       Identifier       "Device Interni Dual"
       Driver           "i810"
       BusID            "PCI:0:2:0"
       Option           "MonitorLayout" "CRT,LFP"
       Screen           0
EndSection

Section "Device"
       Identifier       "Device Externi Dual"
       Driver           "i810"
       BusID            "PCI:0:2:0"
       Screen           1
EndSection
#Zde konci sekce definic graficke karty

#Zde zacinaji sekce definic monitoru
Section "Monitor"
        Identifier      "Interni Monitor"
        Option          "DPMS"
EndSection

Section "Monitor"
        Identifier      "Externi Monitor"
        Option          "DPMS"
        HorizSync       30.0 - 81.0
        VertRefresh     575.0
EndSection
#Zde konci sekce definic monitoru

#Zde zacinaji sekce definic nastaveni rozliseni a barev s vyuzitim sekci predchozich
Section "Screen"
       Identifier      "Screen Externi"
       Device          "Device Externi"
       Monitor         "Externi Monitor"
       DefaultDepth    24
       SubSection "Display"
               Depth   16
               Modes   "1280x1024" "1024x768"
       EndSubSection
       SubSection "Display"
               Depth   24
               Modes   "1280x1024" "1024x768"
       EndSubSection
EndSection

Section "Screen"
       Identifier      "Screen Interni"
       Device          "Device Interni"
       Monitor         "Interni Monitor"
       DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x800"
EndSubSection
EndSection

Section "Screen"
       Identifier      "Screen Externi Dual"
       Device          "Device Externi Dual"
       Monitor         "Externi Monitor"
       DefaultDepth    24
       SubSection "Display"
               Depth   16
               Modes   "1280x1024" "1024x768"
       EndSubSection
       SubSection "Display"
               Depth   24
               Modes   "1280x1024" "1024x768"
       EndSubSection
EndSection

Section "Screen"
       Identifier      "Screen Interni Dual"
       Device          "Device Interni Dual"
       Monitor         "Interni Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x800"
EndSubSection
EndSection
#Zde konci sekce definic nastaveni rozliseni a barev s vyuzitim sekci predchozich

#Zde zacinaji sekce konecnych prostredi s vyuzitim vsech predchozich definic
Section "ServerLayout"
        Identifier      "Dual"
        Screen          0 "Screen Interni Dual"
#        Screen          1 "Screen Externi Dual" LeftOf "Screen Interni Dual"
        Screen          1 "Screen Externi Dual" RightOf "Screen Interni Dual"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
        InputDevice     "Synaptics Touchpad"
        Option          "Xinerama" "true"
EndSection

Section "ServerLayout"
        Identifier      "Externi"
        Screen          "Screen Externi"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
        InputDevice     "Synaptics Touchpad"
EndSection

Section "ServerLayout"
        Identifier      "Interni"
        Screen          "Screen Interni"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
        InputDevice     "Synaptics Touchpad"
EndSection
#Zde konci sekce konecnych prostredi s vyuzitim vsech predchozich definic

Section "DRI"
        Mode    0666
EndSection

# Zde zacina sekce pro specialni volby pro cele xka,
# v nasem pripade urcujeme s jakym nastavenim ze vsech
# definovanych maji nakonec xka nabehnout
Section "ServerFlags"

#Option         "DefaultServerLayout" "Interni"
Option         "DefaultServerLayout" "Dual"
        #Option          "DefaultServerLayout" "Externi"

EndSection
# Zde konci sekce pro specialni volby pro cele xka
Starej:
Kód: [Vybrat]
# /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"
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"
# path to defoma fonts
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" "cz"
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"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

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

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

Section "Device"
Identifier "Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller"
Driver "i810"
BusID "PCI:0:2:0"
EndSection

Section "Monitor"
Identifier "Obecný monitor"
Option "DPMS"
HorizSync 28-64
VertRefresh 43-60
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller"
Monitor "Obecný monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x800"
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

kotz

  • Návštěvník
  • Příspěvků: 68
Výstup na dva monitory a displayconfig-gtk
« Odpověď #2 kdy: 07 Září 2007, 22:43:47 »
Už tam je. :)

 

Provoz zaštiťuje spolek OpenAlt.