2 X-Server 2 Mäuse, aber wie?

Piloboy

Admiral Special
Mitglied seit
11.04.2004
Beiträge
1.995
Renomée
36
Standort
/home/piloboy
  • RCN Russia
  • Spinhenge ESL
Habe hier schon länger multiple X-Server über eine Grafikkarte am laufen. Zurzeit sind ausserdem 2 Mäuse angeschlossen.
Nun mein Vorhaben.
Ich möchte gerne das die 2. nur auf den 2. Monitor angesprochen wird und von dem anderen also getrennt. Die 1. soll aber nachwievor über beide Server funktionieren.
Hat jemand ein Vorschlag für eine xorg.conf?
 
Habe hier schon länger multiple X-Server über eine Grafikkarte am laufen. Zurzeit sind ausserdem 2 Mäuse angeschlossen.
Nun mein Vorhaben.
Ich möchte gerne das die 2. nur auf den 2. Monitor angesprochen wird und von dem anderen also getrennt. Die 1. soll aber nachwievor über beide Server funktionieren.
Hat jemand ein Vorschlag für eine xorg.conf?
Ich würde beide Mäuse über evdev konfigurieren, dann eben bei dem einen X Server
nur die eine eintragen und gegebenenfalls sogar xf86-input-mouse deinstallieren.
Dann sollten die X Server auf jeden Fall nichts mehr automatisch konfigurieren.

Was sagt denn /proc/bus/input/devices?

Wie sieht denn deine bisherige xorg.conf aus?
 
/proc/bus/input/devices
Code:
I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/class/input/input0
H: Handlers=kbd event0
B: EV=120013
B: KEY=4 2000000 3802078 f840d001 feffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0003 Vendor=05e3 Product=000b Version=0100
N: Name="USB Mouse"
P: Phys=usb-0000:00:02.0-1/input0
S: Sysfs=/class/input/input1
H: Handlers=mouse0 event1
B: EV=7
B: KEY=1f0000 0 0 0 0 0 0 0 0
B: REL=103

I: Bus=0003 Vendor=046d Product=c012 Version=0110
N: Name="Logitech USB-PS/2 Optical Mouse"
P: Phys=usb-0000:00:02.0-2/input0
S: Sysfs=/class/input/input2
H: Handlers=mouse1 event2
B: EV=7
B: KEY=f0000 0 0 0 0 0 0 0 0
B: REL=103

I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
S: Sysfs=/class/input/input3
H: Handlers=kbd event3
B: EV=40001
B: SND=6

xorg.conf
Code:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder3)  Sat May 26 01:04:16 PDT 2007

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (buildmeister@builder3)  Sat May 26 01:05:11 PDT 2007
# Auto-generated by mkxf86config

Section "ServerLayout"

# Serial Mouse not detected
#No Synaptics touchpad found
    Identifier     "X.Org Configured"
    Screen      0  "Screen0" 1360 0
    Screen      1  "Screen1" LeftOf "Screen0"
    InputDevice    "Serial Mouse" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "PS/2 Mouse" "AlwaysCore"
    InputDevice    "USB Mouse" "AlwaysCore"
EndSection

Section "Files"
    FontPath        "/usr/share/fonts/util"
    FontPath        "/usr/share/fonts/encodings"
    FontPath        "/usr/share/fonts/misc"
    FontPath        "/usr/share/fonts/local"
    FontPath        "/usr/share/fonts/terminus"
    FontPath        "/usr/share/fonts/corefonts"
    FontPath        "/usr/local/share/fonts"
    FontPath        "/usr/share/fonts/default"
    FontPath        "/usr/share/fonts/TTF"
    FontPath        "/usr/share/fonts/type1"
    FontPath        "/usr/share/fonts/100dpi"
    FontPath        "/usr/share/fonts/75dpi"
    FontPath        "/usr/share/fonts/arphicfonts"
    FontPath        "/usr/share/fonts/jisx0213"
    FontPath        "/usr/share/fonts/shinonome"
    FontPath        "/usr/share/fonts/baekmuk-fonts"
    FontPath        "/usr/share/fonts/kacst-fonts"
    FontPath        "/usr/share/fonts/sgi-fonts"
    FontPath        "/usr/share/fonts/unfonts"
    FontPath        "/usr/share/fonts/default/ghostscript"
    FontPath        "/usr/share/fonts/xfonts-cronyx-100dpi:unscaled"
    FontPath        "/usr/share/fonts/xfonts-cronyx-75dpi:unscaled"
    FontPath        "/usr/share/fonts/xfonts-cronyx-misc:unscaled"
    FontPath        "/usr/share/fonts/xfonts-cronyx-100dpi"
    FontPath        "/usr/share/fonts/xfonts-cronyx-75dpi"
    FontPath        "/usr/share/fonts/xfonts-cronyx-misc"
    FontPath        "/usr/share/fonts/xfonts-cronyx-cp1251-100dpi:unscaled"
    FontPath        "/usr/share/fonts/xfonts-cronyx-cp1251-75dpi:unscaled"
    FontPath        "/usr/share/fonts/xfonts-cronyx-cp1251-misc:unscaled"
    FontPath        "/usr/share/fonts/xfonts-cronyx-cp1251-100dpi"
    FontPath        "/usr/share/fonts/xfonts-cronyx-cp1251-75dpi"
    FontPath        "/usr/share/fonts/xfonts-cronyx-cp1251-misc"
    FontPath        "/usr/share/fonts/xfonts-cronyx-isocyr-100dpi:unscaled"
    FontPath        "/usr/share/fonts/xfonts-cronyx-isocyr-75dpi:unscaled"
    FontPath        "/usr/share/fonts/xfonts-cronyx-isocyr-misc:unscaled"
    FontPath        "/usr/share/fonts/xfonts-cronyx-isocyr-100dpi"
    FontPath        "/usr/share/fonts/xfonts-cronyx-isocyr-75dpi"
    FontPath        "/usr/share/fonts/xfonts-cronyx-isocyr-misc"
    FontPath        "/usr/share/fonts/xfonts-cronyx-koi8r-100dpi:unscaled"
    FontPath        "/usr/share/fonts/xfonts-cronyx-koi8r-75dpi:unscaled"
    FontPath        "/usr/share/fonts/xfonts-cronyx-koi8r-misc:unscaled"
    FontPath        "/usr/share/fonts/xfonts-cronyx-koi8r-100dpi"
    FontPath        "/usr/share/fonts/xfonts-cronyx-koi8r-75dpi"
    FontPath        "/usr/share/fonts/xfonts-cronyx-koi8r-misc"
    FontPath        "/usr/share/fonts/xfonts-cronyx-koi8u-100dpi:unscaled"
    FontPath        "/usr/share/fonts/xfonts-cronyx-koi8u-75dpi:unscaled"
    FontPath        "/usr/share/fonts/xfonts-cronyx-koi8u-misc:unscaled"
    FontPath        "/usr/share/fonts/xfonts-cronyx-koi8u-100dpi"
    FontPath        "/usr/share/fonts/xfonts-cronyx-koi8u-75dpi"
    FontPath        "/usr/share/fonts/xfonts-cronyx-koi8u-misc"
EndSection

Section "Module"

#    Load           "ddc"
    Load           "vbe"
#    Load           "GLcore"
    Load           "dbe"
#    Load           "dri"
    Load           "extmod"
    Load           "glx"
    Load           "bitmap"
    Load           "type1"
    Load           "freetype"
    Load           "record"
EndSection

Section "ServerFlags"
    Option         "AllowMouseOpenFail" "true"
    Option         "Xinerama" "0"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "CoreKeyboard"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc105"
#       Option  "XkbOptions" "grp:toggle,grp_led:scroll"
    Option         "XkbVariant" "nodeadkeys,winkeys"
    Option         "XkbLayout" "de"
EndSection

Section "InputDevice"
    Identifier     "Serial Mouse"
    Driver         "mouse"
    Option         "Protocol" "Microsoft"
    Option         "Device" "/dev/ttyS0"
    Option         "Emulate3Buttons" "true"
    Option         "Emulate3Timeout" "70"
    Option         "SendCoreEvents" "true"
EndSection

Section "InputDevice"
    Identifier     "PS/2 Mouse"
    Driver         "mouse"
    Option         "Protocol" "IMPS/2"
    Option         "Device" "/dev/misc/psaux"
    Option         "Emulate3Buttons" "true"
    Option         "Emulate3Timeout" "70"
    Option         "SendCoreEvents" "true"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    Identifier     "USB Mouse"
    Driver         "mouse"
    Option         "Device" "/dev/input/mice"
    Option         "SendCoreEvents" "true"
    Option         "Protocol" "IMPS/2"
    Option         "ZAxisMapping" "4 5"
    Option         "Buttons" "5"
EndSection

Section "InputDevice"
    Identifier     "Synaptics"
    Driver         "synaptics"
    Option         "Protocol" "event"
    Option         "Device" ""
    Option         "LeftEdge" "1900"
    Option         "RightEdge" "5400"
    Option         "TopEdge" "1900"
    Option         "BottomEdge" "4000"
    Option         "FingerLow" "25"
    Option         "FingerHigh" "30"
    Option         "MaxTapTime" "180"
    Option         "MaxTapMove" "220"
    Option         "VertScrollDelta" "100"
    Option         "MinSpeed" "0.02"
    Option         "MaxSpeed" "0.10"
    Option         "AccelFactor" "0.0010"
    Option         "SHMConfig" "on"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "NEC LCD1850X"
    HorizSync       31.0 - 82.0
    VertRefresh     50.0 - 85.0
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "SHARP TV"
    HorizSync       28.0 - 48.0
    VertRefresh     48.0 - 62.0
EndSection

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 7300 GS"
    BusID          "PCI:5:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Videocard1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 7300 GS"
    BusID          "PCI:5:0:0"
    Screen          1
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "DFP-0: 1280x1024_75 +0+0; DFP-0: 1280x1024 +0+0; DFP-0: 1024x768 +0+0; DFP-0: 800x600 +0+0; DFP-0: 640x480 +0+0"
    SubSection     "Display"
        Depth       24
        Modes      "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Videocard1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "CRT-1: 1360x768_60 +0+0"
    Option         "UseEdidDpi" "False"
    SubSection     "Display"
        Depth       24
        Modes      "nvidia-auto-select"
    EndSubSection
EndSection
 
Hm, so geht das glaub ich nicht. Ich dachte jetzt, du hast zwei getrennte X Server
gestartet (also z.B. VT7+VT8 ).
 
Totally freak. ;)
Naja, wenn es funktioniert um so besser. :)
 
Mal schauen, mich scheut es solch ein Eingriff ins System, durchforste derzeit mal den Gentoo Portage nach ähnlichen Lösungen.
.
EDIT :
.

Mal eben was anderes.
Hat Nvidia was am Treiber gemacht so das eine 3D Unterstützung nun auch auf den 2. Monitor möglich ist, wenn man einen multiplen Server fährt? Früher war das definitiv nicht der Fall.

Code:
piloboy@ivan ~ $ glxinfo | grep di
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
    GL_ARB_shadow, GL_ARB_shader_objects, GL_ARB_shading_language_100,
    GL_NV_float_buffer, GL_NV_fog_distance, GL_NV_fragment_program,
    GL_NVX_conditional_render, GL_SGIS_generate_mipmap, GL_SGIS_texture_lod,
display: :0  screen: 1
direct rendering: Yes
    GL_ARB_shadow, GL_ARB_shader_objects, GL_ARB_shading_language_100,
    GL_NV_float_buffer, GL_NV_fog_distance, GL_NV_fragment_program,
    GL_NVX_conditional_render, GL_SGIS_generate_mipmap, GL_SGIS_texture_lod,

World of Padman läuft auch mit 90 FPS nun auf dem TV *noahnung*

In der aktuellen Readme des Treibers finde ich auch noch das bekannte

While there are several disadvantages to this approach as compared to TwinView (e.g.: windows cannot be dragged between X screens, hardware accelerated OpenGL cannot span the two X screens), it does offer several advantages over TwinView:
 
Ja, mit Twinview.
Ist genauso wie MergedFB (X.org) oder BigDesktop (Ati).
.
EDIT :
.

BTW, warum hast du eigentlich 3 Mäuse konfiguriert?
 
Ja, mit Twinview.
Ist genauso wie MergedFB (X.org) oder BigDesktop (Ati).
.
EDIT :
.

BTW, warum hast du eigentlich 3 Mäuse konfiguriert?

Bloss habe ich kein Twinview konfiguiert, das dort 3D möglich ist, das weis ich. Ich habe halt nen multiplen Server. Die Anzeigen sind getrennt, kann auch keine Fenster zwischen den Anzeigen hin und her schieben.
Wie kommt denn jetzt diese Beschleunigung zustande?

Naja ist halt noch eine für PS/2 und eine für ne Seriele drinn *noahnung* habs nie gelöscht.
 
Bloss habe ich kein Twinview konfiguiert, das dort 3D möglich ist, das weis ich. Ich habe halt nen multiplen Server. Die Anzeigen sind getrennt, kann auch keine Fenster zwischen den Anzeigen hin und her schieben.
Wie kommt denn jetzt diese Beschleunigung zustande?

Naja ist halt noch eine für PS/2 und eine für ne Seriele drinn *noahnung* habs nie gelöscht.
Ich möchte mich jetzt nicht zu weit aus dem Fenster lehnen, aber ich glaub, dass
dann 3D Beschleunigung nicht möglich ist.
Das hängt glaub ich damit zusammen, dass nur ein Server auf das Framebuffer Device
zugreifen kann, naja, sicher bin ich nicht.
Deshalb kann man ja nur durch einen MergedFB erreichen, dass beide 3D
Beschleunigung haben.
 
Hast da schon recht, steht ja auch so in der Readme des Nvidia Treibers.
Darum bin ich ja jetzt total verwirrt, weil ich anscheinend auf beiden Bildschirmen eine 3D Beschleunigung habe obwohl dies nicht sein darf *noahnung*
Wie gesagt glxinfo sagt auf beiden Bildschirmen währe ein Direct Rendering aktiviert und OpenGL Spiele laufen super.

Mir solls recht sein, kommt eh noch ne 2. Tastatur und dann wird World of Padman aufn 37" TFT gedattelt. Die Dolby Anlage dazu auf eine gescheite Lautstärke und die Nachbarn denken der 3. Weltkrieg ist ausgebrochen *rofl* .
 
Hast da schon recht, steht ja auch so in der Readme des Nvidia Treibers.
Darum bin ich ja jetzt total verwirrt, weil ich anscheinend auf beiden Bildschirmen eine 3D Beschleunigung habe obwohl dies nicht sein darf *noahnung*
Wie gesagt glxinfo sagt auf beiden Bildschirmen währe ein Direct Rendering aktiviert und OpenGL Spiele laufen super.
Huh?
Dann hast wohl doch irgendwie Twinview laufen. ;)
Naja, is ja egal, Hauptsache es funktioniert, wen interessieren dann schon die Hintergründe. ;)

Mir solls recht sein, kommt eh noch ne 2. Tastatur und dann wird World of Padman aufn 37" TFT gedattelt. Die Dolby Anlage dazu auf eine gescheite Lautstärke und die Nachbarn denken der 3. Weltkrieg ist ausgebrochen *rofl* .
Hehe, nicht dass dann plötzlich das BKA vor der Tür steht oder die Amis Bomben auf dein
Haus schmeißen. :D
 
Naja, is ja egal, Hauptsache es funktioniert, wen interessieren dann schon die Hintergründe. ;)

Wirst du wohl diese Sprüche lassen! Ich hab in letzter Zeit mit genug Problemen zu kämpfen, deren Ursache sich nicht bestimmen lässt, oder noch schlimmer, die von ganz alleine wieder verschwinden. Das ist nicht lustig! :-[
 
Zurück
Oben Unten