Date: Thu, 19 Jun 2014 06:47:29 -0700 From: Anthony Jenkins <scoobi_doo@yahoo.com> To: Ivan Rokotov <ivan.rokotov.bsd@gmail.com> Cc: Eric McCorkle <eric@metricspace.net>, "freebsd-mobile@freebsd.org" <freebsd-mobile@freebsd.org> Subject: Re: [Patch] psm(4) ClickPad detection (was Re: Lenovo W540 so far) Message-ID: <1403185649.28371.YahooMailNeo@web140703.mail.bf1.yahoo.com> In-Reply-To: <CAOTTJKHsAyiXnKL3kad6hJ_PbgvHU1TG%2B_J40jKvcSv81MYoqA@mail.gmail.com> References: <539DA73B.7050709@metricspace.net> <CAOTTJKEamc=tsFJxz0H43wxhJpowy0Nm-4JBCjozzi%2Brfcp=6Q@mail.gmail.com> <1402931204.35984.YahooMailNeo@web140703.mail.bf1.yahoo.com> <58DCAA2E-44DA-48F3-87B3-366301F55138@metricspace.net> <CAOTTJKFwXJOyaW-7fX3300jfBu4WQYqgte%2BuE9cvej_NxULAPw@mail.gmail.com> <53A02532.60201@metricspace.net> <53A03BAF.3020807@yahoo.com> <CAOTTJKFLbwUj0q9vyFZf4kWf95NgF_SqN2nWurp_aD8qbVg54g@mail.gmail.com> <CAOTTJKFCEjUL6zUy6e18Yn0YTJ7CBa9FFAML3xMSU0Vad2o1zA@mail.gmail.com> <53A080D3.2000207@yahoo.com> <CAOTTJKF6-W0w3jtLsC1SyoZmWCeUY-TZemewePpXY7JEJd14xw@mail.gmail.com> <53A23DAF.7030201@yahoo.com> <CAOTTJKHsAyiXnKL3kad6hJ_PbgvHU1TG%2B_J40jKvcSv81MYoqA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Is your X server compiled with devd(8) support (experimental) or hald suppo= rt?=0A=0A=0AThe keyboard not working bugs me - you might try doing a 'make = buildworld/installworld' as per /usr/src/UPDATING (or just copy /usr/src/sy= s/sys/mouse.h to /usr/include/sys/mouse.h) and rebuild x11-drivers/xf86-inp= ut-{mouse|keyboard|synaptics}.=A0 My touchpad detection didn't work because= ioctl(/dev/psm0) detected the different sizes of struct synapticshw_t.=A0 = You might also try backing out my ClickPad detection patch from psm(4).=0A= =0A=0AI'll probably need your entire /var/log/Xorg.0.log to see why it's no= t working.=A0 Can you kill your X server, then run=0A=0A=A0=A0 X -logverbos= e 99 -verbose 99=0A=0A, switch back to console with <Ctrl><Alt><F1>, kill t= he server with <Ctrl>-C and send /var/log/Xorg.0.log?=A0 One difference bet= ween us is I'm not using an /etc/X11/Xorg.conf config file.=0A=0A=0AI was u= p late last night getting devd support working (when they said "experimenta= l", they weren't lying!) and finally got Xorg to detect my touchpad as a Sy= naptics device and use the right driver, but my hacks are nowhere near read= y for posting.=A0 I had to uninstall xf86-input-mouse to get it to load bef= ore the mouse driver.=0A=0A=0AIn total, I think this is what's needed (I'll= put these in order I guess):=0A=0A=A0- psm(4): Add ClickPad support (detec= tion, click handling)=0A=A0- devd(8): Make sure devd(8) properly reports Sy= naptics devices.=0A=A0- x11-servers/xorg-server: Massively clean up devd su= pport=0A=0A=A0- x11-drivers/xf86-input-synaptics: Enable detection of psm(4= ) Synaptics support=0A=A0- sysutils/hal: Make sure hald(8) properly reports= Synaptics devices.=0A=0Adevd(8) just reports "PS/2 mouse" for the existenc= e of a psm[0-9] device; should probably append attributes like "Synaptics t= ouchpad" or "Synaptics ClickPad" to that.=0A=0AAnthony=0A=0A=0A=0A----- Ori= ginal Message -----=0AFrom: Ivan Rokotov <ivan.rokotov.bsd@gmail.com>=0ATo:= Anthony Jenkins <Scoobi_doo@yahoo.com>=0ACc: Eric McCorkle <eric@metricspa= ce.net>; "freebsd-mobile@freebsd.org" <freebsd-mobile@freebsd.org>=0ASent: = Thursday, June 19, 2014 8:28 AM=0ASubject: Re: [Patch] psm(4) ClickPad dete= ction (was Re: Lenovo W540 so far)=0A=0AWell, with patched synaptics driver= + patched kernel =3D no touchpad at=0Aall, no keyboard (Ctrl+Alt+F1 worked= ). With patched synaptics +=0Aunpatched kernel =3D everything works as earl= ier. (Bluetooth mouse works=0Aall time time.)=0A=0AI post the relevant part= of the logs + my xorg.conf, just for the case.=0A=0A# cat dmesg.today | gr= ep psm0=0Apsm0: <PS/2 Mouse> irq 12 on atkbdc0=0Apsm0: [GIANT-LOCKED]=0Apsm= 0: model Synaptics Touchpad, device ID 0=0A=0A# grep '\(keyboard\|kbd\)' Xo= rg.0.log=0A[=A0 =A0 32.694] (II) LoadModule: "kbd"=0A[=A0 =A0 32.695] (II) = Loading /usr/local/lib/xorg/modules/input/kbd_drv.so=0A[=A0 =A0 32.695] (II= ) Module kbd: vendor=3D"X.Org Foundation"=0A=0A# cat messages | grep atkbd= =0AJun 19 14:00:47 thorium kernel: atkbdc0: <Keyboard controller (i8042)>= =0A=0A=0A=0Aport 0x60,0x64 irq 1 on acpi0=0AJun 19 14:00:47 thorium kernel:= atkbd0: <AT Keyboard> irq 1 on atkbdc0=0AJun 19 14:00:47 thorium kernel: k= bd0 at atkbd0=0AJun 19 14:00:47 thorium kernel: atkbd0: [GIANT-LOCKED]=0AJu= n 19 14:00:47 thorium kernel: psm0: <PS/2 Mouse> irq 12 on atkbdc0=0A=0A# c= at /etc/X11/xorg.conf | grep -v '^[[:space:]]*#' | sed 's/#.*$//'=0ASection= "ServerLayout"=0AIdentifier=A0 =A0 "X.org Configured"=0AScreen=A0 =A0 =A0= 0=A0 "Screen0" 0 0=0AInputDevice=A0 =A0 "Mouse0" "CorePointer"=0AInputDevi= ce=A0 =A0 "Touchpad0" "CorePointer"=0AInputDevice=A0 =A0 "Keyboard0" "CoreK= eyboard"=0AOption "DontZap" "off"=0AOption "AutoAddDevices" "off"=0AOption = "AllowEmptyInput" "off"=0AOption=A0 =A0 =A0 =A0 "AIGLX" "true"=0AEndSectio= n=0A=0ASection "Server Flags"=0A=A0 =A0 Option=A0 =A0 =A0 =A0 =A0 =A0 =A0 = "IgnoreABI"=0AEndSection=0A=0ASection "Files"=0AModulePath=A0 "/usr/local/= lib/xorg/modules"=0AFontPath=A0 =A0 "/usr/local/lib/X11/fonts/misc/"=0AFon= tPath=A0 =A0 "/usr/local/lib/X11/fonts/TTF/"=0AFontPath=A0 =A0 "/usr/loca= l/lib/X11/fonts/OTF"=0AFontPath=A0 =A0 "/usr/local/lib/X11/fonts/Type1/"= =0AFontPath=A0 =A0 "/usr/local/lib/X11/fonts/100dpi/"=0AFontPath=A0 =A0 "= /usr/local/lib/X11/fonts/75dpi/"=0AFontPath "/usr/local/lib/X11/fonts/Droid= /"=0AFontPath "/usr/local/lib/X11/fonts/LinLibertineG/"=0AFontPath "/usr/lo= cal/lib/X11/fonts/Liberation/"=0AFontPath "/usr/local/lib/X11/fonts/Gentium= Basic/"=0AEndSection=0A=0ASection "Module"=0ALoad=A0 "dbe"=0ALoad=A0 "dri"= =0ALoad=A0 "dri2"=0ALoad=A0 "extmod"=0ALoad=A0 "record"=0ALoad=A0 "glx"=0AL= oad=A0 "freetype"=0AEndSection=0A=0ASection "InputDevice"=0AIdentifier=A0 "= Keyboard0"=0ADriver=A0 =A0 =A0 "kbd"=0AEndSection=0A=0ASection "InputDevice= "=0A=A0 Identifier=A0 =A0 "Mouse0"=0A=A0 Driver=A0 =A0 =A0 =A0 "mouse"= =0A=A0 Option=A0 =A0 =A0 =A0 "Protocol" "auto"=0A=A0 Option=A0 =A0 =A0 = =A0 "Device" "/dev/sysmouse"=0A=A0 Option=A0 =A0 =A0 =A0 "ZAxisMapping" = "4 5 6 7"=0AEndSection=0A=0ASection "InputDevice"=0A=A0 Identifier=A0 "Tou= chpad0"=0A=A0 Driver=A0 =A0 =A0 "synaptics"=0A=A0 Option=A0 =A0 =A0 "SHM= Config" "On"=0A=A0 Option=A0 =A0 =A0 "Protocol" "psm"=0A=A0 Option=A0 = =A0 =A0 "Device"=A0 "/dev/psm0"=0A=A0 Option=A0 =A0 =A0 "SendCoreEvents"= "true"=0A=A0 =A0 =A0 =A0 Option "ClickPad" "1"=0A=A0 =A0 =A0 =A0 Option "S= oftButtonAreas" "50% 0 82% 0 0 0 0 0"=0A=A0 =A0 =A0 =A0 Option "TapButton1"= "1"=0A=A0 =A0 =A0 =A0 Option "TapButton2" "3"=0A=A0 =A0 =A0 =A0 Option "Ta= pButton3" "2"=0A=A0 =A0 =A0 =A0 Option "ClickFinger1" "1"=0A=A0 =A0 =A0 =A0= Option "ClickFinger2" "3"=0A=A0 =A0 =A0 =A0 Option "ClickFinger3" "2"=0A= =A0 =A0 =A0 =A0 Option "VertTwoFingerScroll" "1"=0A=A0 =A0 =A0 =A0 Option "= HorizTwoFingerScroll" "1"=0A=A0 =A0 =A0 =A0 Option "VertScrollDelta" "-50"= =0A=A0 =A0 =A0 =A0 Option "HorizScrollDelta" "-60"=0A=A0 =A0 =A0 =A0 Option= "EmulateMidButtonTime" "0"=0A=A0 =A0 =A0 =A0 Option "EdgeMotionMinSpeed" "= 30"=0A=A0 =A0 =A0 =A0 Option "EdgeMotionMaxZ" "60"=0A=A0 =A0 =A0 =A0 Option= "FingerLow" "29"=0A=A0 =A0 =A0 =A0 Option "FingerHigh" "38"=0A=A0 =A0 =A0 = =A0 Option "MaxTapTime" "250"=0A=A0 =A0 =A0 =A0 Option "MaxTapMove" "100"= =0A=A0 =A0 =A0 =A0 Option "MaxDoubleTapTime" "100"=0A=A0 =A0 =A0 =A0 Option= "ClickTime" "100"=0A=A0 =A0 =A0 =A0 Option "SingleTapTimeout" "200"=0A=A0 = =A0 =A0 =A0 Option "MaxSpeed" "1.8"=0A=A0 =A0 =A0 =A0 Option "HorizHysteres= is" "32"=0A=A0 =A0 =A0 =A0 Option "VertHysteresis" "32"=0A=A0 =A0 =A0 =A0 O= ption "AccelFactor" "0.04"=0A=A0 =A0 =A0 =A0 Option "LockedDrags" "1"=0A=A0= =A0 =A0 =A0 Option "LockedDragTimeout" "200"=0A=A0 =A0 =A0 =A0 Option "Pal= mDetect" "1"=0A=A0 =A0 =A0 =A0 Option "PalmMinWidth" "10"=0A=A0 =A0 =A0 =A0= Option "PalmMinZ" "130"=0A=A0 =A0 =A0 =A0 Option "CoastingSpeed" "0.3"=0A= =0A=A0 =A0 =A0 Option "VertEdgeScroll" "on"=0A=A0 =A0 =A0 Option "HorizEd= geScroll" "on"=0A=0AEndSection=0A=0ASection "Monitor"=0AIdentifier=A0 "Mon= itor0"=0AVendorName=A0 "Monitor Vendor"=0AModelName=A0 =A0 "Monitor Model"= =0AOption "DMPS"=0AEndSection=0A=0ASection "Device"=0AIdentifier=A0 "Card0"= =0ADriver=A0 =A0 =A0 "intel"=0AVendorName=A0 "Intel Corporation"=0ABoardNam= e=A0 "3rd Gen Core processor Graphics Controller"=0ABusID=A0 =A0 =A0 "PCI= :0:2:0"=0AEndSection=0A=0ASection "Screen"=0AOption=A0 =A0 =A0 =A0 "AddARG= BGLXVisuals" "True"=0AIdentifier "Screen0"=0ADevice=A0 =A0 "Card0"=0AMonit= or=A0 =A0 "Monitor0"=0ASubSection "Display"=0AViewport=A0 0 0=0ADepth=A0 = =A0 1=0AEndSubSection=0ASubSection "Display"=0AViewport=A0 0 0=0ADepth=A0= =A0 4=0AEndSubSection=0ASubSection "Display"=0AViewport=A0 0 0=0ADepth= =A0 =A0 8=0AEndSubSection=0ASubSection "Display"=0AViewport=A0 0 0=0ADept= h=A0 =A0 15=0AEndSubSection=0ASubSection "Display"=0AViewport=A0 0 0=0ADe= pth=A0 =A0 16=0AEndSubSection=0ASubSection "Display"=0AViewport=A0 0 0=0A= Depth=A0 =A0 24=0AEndSubSection=0AEndSection=0A=0ASection "Extensions"=0A= =A0 Option=A0 =A0 =A0 =A0 "Composite" "Enable"=0AEndSection=0A
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1403185649.28371.YahooMailNeo>