[Patch] psm(4) ClickPad detection (was Re: Lenovo W540 so far)

Ivan Rokotov ivan.rokotov.bsd at gmail.com
Thu Jun 19 12:28:42 UTC 2014


Well, with patched synaptics driver + patched kernel = no touchpad at
all, no keyboard (Ctrl+Alt+F1 worked). With patched synaptics +
unpatched kernel = everything works as earlier. (Bluetooth mouse works
all time time.)

I post the relevant part of the logs + my xorg.conf, just for the case.

# cat dmesg.today | grep psm0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Synaptics Touchpad, device ID 0

# grep '\(keyboard\|kbd\)' Xorg.0.log
[    32.694] (II) LoadModule: "kbd"
[    32.695] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so
[    32.695] (II) Module kbd: vendor="X.Org Foundation"

# cat messages | grep atkbd
Jun 19 14:00:47 thorium kernel: atkbdc0: <Keyboard controller (i8042)>
port 0x60,0x64 irq 1 on acpi0
Jun 19 14:00:47 thorium kernel: atkbd0: <AT Keyboard> irq 1 on atkbdc0
Jun 19 14:00:47 thorium kernel: kbd0 at atkbd0
Jun 19 14:00:47 thorium kernel: atkbd0: [GIANT-LOCKED]
Jun 19 14:00:47 thorium kernel: psm0: <PS/2 Mouse> irq 12 on atkbdc0

# cat /etc/X11/xorg.conf | grep -v '^[[:space:]]*#' | sed 's/#.*$//'
Section "ServerLayout"
Identifier     "X.org Configured"
Screen      0  "Screen0" 0 0
InputDevice    "Mouse0" "CorePointer"
InputDevice    "Touchpad0" "CorePointer"
InputDevice    "Keyboard0" "CoreKeyboard"
Option "DontZap" "off"
Option "AutoAddDevices" "off"
Option "AllowEmptyInput" "off"
Option         "AIGLX" "true"
EndSection

Section "Server Flags"
    Option               "IgnoreABI"
EndSection

Section "Files"
ModulePath   "/usr/local/lib/xorg/modules"
FontPath     "/usr/local/lib/X11/fonts/misc/"
FontPath     "/usr/local/lib/X11/fonts/TTF/"
FontPath     "/usr/local/lib/X11/fonts/OTF"
FontPath     "/usr/local/lib/X11/fonts/Type1/"
FontPath     "/usr/local/lib/X11/fonts/100dpi/"
FontPath     "/usr/local/lib/X11/fonts/75dpi/"
FontPath "/usr/local/lib/X11/fonts/Droid/"
FontPath "/usr/local/lib/X11/fonts/LinLibertineG/"
FontPath "/usr/local/lib/X11/fonts/Liberation/"
FontPath "/usr/local/lib/X11/fonts/GentiumBasic/"
EndSection

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

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

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

Section "InputDevice"
   Identifier  "Touchpad0"
   Driver      "synaptics"
   Option       "SHMConfig" "On"
   Option       "Protocol" "psm"
   Option       "Device"   "/dev/psm0"
   Option      "SendCoreEvents" "true"
        Option "ClickPad" "1"
        Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
        Option "TapButton1" "1"
        Option "TapButton2" "3"
        Option "TapButton3" "2"
        Option "ClickFinger1" "1"
        Option "ClickFinger2" "3"
        Option "ClickFinger3" "2"
        Option "VertTwoFingerScroll" "1"
        Option "HorizTwoFingerScroll" "1"
        Option "VertScrollDelta" "-50"
        Option "HorizScrollDelta" "-60"
        Option "EmulateMidButtonTime" "0"
        Option "EdgeMotionMinSpeed" "30"
        Option "EdgeMotionMaxZ" "60"
        Option "FingerLow" "29"
        Option "FingerHigh" "38"
        Option "MaxTapTime" "250"
        Option "MaxTapMove" "100"
        Option "MaxDoubleTapTime" "100"
        Option "ClickTime" "100"
        Option "SingleTapTimeout" "200"
        Option "MaxSpeed" "1.8"
        Option "HorizHysteresis" "32"
        Option "VertHysteresis" "32"
        Option "AccelFactor" "0.04"
        Option "LockedDrags" "1"
        Option "LockedDragTimeout" "200"
        Option "PalmDetect" "1"
        Option "PalmMinWidth" "10"
        Option "PalmMinZ" "130"
        Option "CoastingSpeed" "0.3"

       Option "VertEdgeScroll" "on"
       Option "HorizEdgeScroll" "on"

EndSection

Section "Monitor"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
Option "DMPS"
EndSection

Section "Device"
Identifier  "Card0"
Driver      "intel"
VendorName  "Intel Corporation"
BoardName   "3rd Gen Core processor Graphics Controller"
BusID       "PCI:0:2:0"
EndSection

Section "Screen"
Option         "AddARGBGLXVisuals" "True"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
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
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     24
EndSubSection
EndSection

Section "Extensions"
   Option         "Composite" "Enable"
EndSection


More information about the freebsd-mobile mailing list