[Gentoo] Meerdere pointers in X?

Pagina: 1
Acties:

  • lvh
  • Registratie: Juli 2001
  • Laatst online: 02-11-2022
Ik heb een laptop met Gentoo erop. Versie van xorg-x11 is 6.8.2, niet dat dat voor mijn vraag veel zal uitmaken denk ik ;-)

Mijn laptop heeft twee, soms drie muizen. Om de kernelnotatie te volgen:
/dev/input/mouse0 : Synaptics touchpad
/dev/input/mouse1 : Keyboardclitoris
/dev/input/mouse2 : (soms) een externe muis

Dit werkte allemaal feilloos door als core pointer in xorg.conf gewoon het device "/dev/input/mice" met de "mouse" driver opgeef. Dan kan ik zelfs een USB-muis (/dev/input/mouse2) en een PS/2-muis tegelijk aansluiten en alle vier de input devices werken feilloos.

Ik heb echter een synaptics touchpad. Ik heb ook al op andere laptops met deze touchpad gewerkt en ik ben dus ook gewend om te scrollen, rechterklikken... etc met deze touchpad -- bijgevolg heb ik (met succes) de synaptics driver geinstalleerd. Probleem is dat ik helemaal niet wil dat mijn andere devices ook met de synaptics driver gaan werken -- mouse1, de clitoris, moet met 'mouse' en de externe USB-muis moet met evdev (voor de extra knopjes). Ik moet dus meerdere pointers definieren en ze ook in mijn Screen setup gebruiken, maar ik heb compleet geen idee hoe ik dit moet aanpakken. Gewoon bij mijn Screen drie lijnen met core pointers instellen werkt niet, dan werkt namelijk alleen de eerste.

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# **********************************************************************
# ServerLayout sections.
# **********************************************************************

# Any number of ServerLayout sections may be present.  Each describes
# the way multiple screens are organised.  A specific ServerLayout
# section may be specified from the X server command line with the
# "-layout" option.  In the absence of this, the first section is used.
# When now ServerLayout section is present, the first Screen section
# is used alone.

Section "ServerLayout"

# The Identifier line must be present
    Identifier  "Simple Layout"

# Each Screen line specifies a Screen section name, and optionally
# the relative position of other screens.  The four names after
# primary screen name are the screens to the top, bottom, left and right
# of the primary screen.  In this example, screen 2 is located to the
# right of screen 1.

    Screen "Screen 1"

# Each InputDevice line specifies an InputDevice section name and
# optionally some options to specify the way the device is to be
# used.  Those options include "CorePointer", "CoreKeyboard" and
# "SendCoreEvents".

    InputDevice "Mouse1" "CorePointer"
    InputDevice "Mouse2" "CorePointer"
    InputDevice "Mouse3" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"

EndSection

# Section "DRI"
#    Mode 0666
# EndSection


code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************

Section "InputDevice"

# Identifier and driver

    Identifier  "Mouse1"
    Driver      "synaptics"
  Option        "Device"        "/dev/input/mouse0"
  Option        "Protocol"      "auto-dev"
  Option        "LeftEdge"      "1700"
  Option        "RightEdge"     "5300"
  Option        "TopEdge"       "1700"
  Option        "BottomEdge"    "4200"
  Option        "FingerLow"     "25"
  Option        "FingerHigh"    "30"
  Option        "MaxTapTime"    "180"
  Option        "MaxTapMove"    "220"
  Option        "VertScrollDelta" "100"
  Option        "MinSpeed"      "0.09"
  Option        "MaxSpeed"      "0.18"
  Option        "AccelFactor"   "0.0015"
  Option        "SHMConfig"     "on"
#  Option       "Repeater"      "/dev/ps2mouse"

# Mouse-speed setting for PS/2 mouse.

#    Option "Resolution"        "256"

# When using XQUEUE, comment out the above two lines, and uncomment
# the following line.

#    Option "Protocol"  "Xqueue"

# Baudrate and SampleRate are only for some Logitech mice. In
# almost every case these lines should be omitted.

#    Option "BaudRate"  "9600"
#    Option "SampleRate"        "150"

# Emulate3Buttons is an option for 2-button Microsoft mice
# Emulate3Timeout is the timeout in milliseconds (default is 50ms)

    Option "Emulate3Buttons"
#    Option "Emulate3Timeout"    "50"

# ChordMiddle is an option for some 3-button Logitech mice

#    Option "ChordMiddle"

EndSection
# **********************************************************************
# Other input device sections 
# this is optional and is required only if you
# are using extended input devices.  This is for example only.  Refer
# to the xorg.conf man page for a description of the options.
# **********************************************************************
#
Section "InputDevice" 
    Identifier  "Mouse2"
    Driver      "mouse"
    Option      "Protocol"      "auto"
    Option      "Device"        "/dev/input/mouse1"
EndSection


Section "InputDevice"
    Identifier "Mouse3"
    Driver     "mouse"
    Option     "Device"        "/dev/input/mice"
EndSection

  • lvh
  • Registratie: Juli 2001
  • Laatst online: 02-11-2022
Dit is weer een prachtig voorbeeld van hoe je een week met iets bezig kan zijn en twee minuten nadat je hulp vraagt je ineens het licht ziet :D

De oplossing zat in de eindsectie waar ik dus meerdere mice had opgegeven als Core Pointers. Zo mag je er namelijk maar eentje hebben. De twee laatste moest ik gewoon vervangen door "SendCoreEvents", dan worden blijkbaar de events die van die muizen afkomt doorgestuurt naar CorePointer maar eerst wel geinterpreteerd door die eigenste muisdriver :-)

Gelukkig (spijtig?) gebruik ik wmi en heb ik mijn muis toch nauwelijks nodig, maar dit werkt toch wel weer :-)

  • LauPro
  • Registratie: Augustus 2001
  • Laatst online: 07:25

LauPro

Prof Mierenneuke®

Ik dacht dat /dev/input/mice in de kernel al werd gemerged bij meerdere devices? Wat is dan het nut om nog expliciet extra devices te configureren. Probeer eens cat /dev/input/mice en beweeg al je muizen, je zou dan data moeten zien verschijnen.

Of krijg je met de situatie echt meerdere pointers (pijltjes) op je scherm? Ben wel benieuwd wat daar het nut dan van is :? .

Inkoopacties - HENK terug! - Megabit
It is a war here, so be a general!


  • lvh
  • Registratie: Juli 2001
  • Laatst online: 02-11-2022
Dat doet /dev/input/mice al. Maar mijn trackpoint moet de PS/2 als protocol hebben, mijn externe muis ExplorerPS/2, en mijn touchpad synaptics. En dat gaat niet echt zo :-)

  • LauPro
  • Registratie: Augustus 2001
  • Laatst online: 07:25

LauPro

Prof Mierenneuke®

Men is bezig om alle drivers uit userspace te halen en in de kernel te stoppen. Misschien heb je dat uitgeschakeld of niet aangegeven?

Inkoopacties - HENK terug! - Megabit
It is a war here, so be a general!