1. 30 Nov, 2016 1 commit
  2. 17 Nov, 2016 1 commit
    • Dmitry Torokhov's avatar
      Input: psmouse - disable automatic probing of BYD touchpads · e9fb7cc6
      Dmitry Torokhov authored
      BYD automatic protocol detection is extremely unreliable and is often
      triggers false positives on regular mice, Sentelic touchpads, and other
      devices. BYD has several documents that have recommended detection
      sequence, but they conflict with each other and, as far as I can see, still
      would not produce unique enough output to reliably differentiate BYD from
      other PS/2 devices.
      
      OEMs sourcing BYD devices also do not do us any favors by not supplying any
      reasonable DMI data and instead leaving turds like "To Be Filled By O.E.M."
      in place of vendor data, or "System Serial Number" as serial number.
      
      On top of that BYD is not truly modern multitouch controller, but rather a
      single-touch transitional device that only reports absolute coordinates at
      the beginning of finger contact and then reverts to reporting
      displacements, and thus not very precise; the only benefit from using BYD
      mode vs the legacy PS/2 mode is possibility of edge scrolling.
      
      Given the above, and the fact that BYD devices are somewhat uncommon, let's
      disable automatic detection of BYD devices. Users who know they have BYD
      trackpads or want to experiment can attempt to activate BYD protocol via
      sysfs:
      
      	echo -n "byd" > /sys/bus/serio/devices/serio1/drvctl
      
      Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=151691
      Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=175421
      Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=120781
      Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=121281
      Fixes: 98ee3771 ("Input: byd - add BYD PS/2 touchpad driver")
      Cc: stable@vger.kernel.org # 4.6+
      Reviewed-by: default avatarPali Rohár <pali.rohar@gmail.com>
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      e9fb7cc6
  3. 25 Oct, 2016 1 commit
  4. 19 Oct, 2016 1 commit
    • Patrick Scheuring's avatar
      Input: i8042 - add XMG C504 to keyboard reset table · da25311c
      Patrick Scheuring authored
      The Schenker XMG C504 is a rebranded Gigabyte P35 v2 laptop.
      Therefore it also needs a keyboard reset to detect the Elantech touchpad.
      Otherwise the touchpad appears to be dead.
      
      With this patch the touchpad is detected:
      
      $ dmesg | grep -E "(i8042|Elantech|elantech)"
      
      [    2.675399] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
      [    2.680372] i8042: Attempting to reset device connected to KBD port
      [    2.789037] serio: i8042 KBD port at 0x60,0x64 irq 1
      [    2.791586] serio: i8042 AUX port at 0x60,0x64 irq 12
      [    2.813840] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input4
      [    3.811431] psmouse serio1: elantech: assuming hardware version 4 (with firmware version 0x361f0e)
      [    3.825424] psmouse serio1: elantech: Synaptics capabilities query result 0x00, 0x15, 0x0f.
      [    3.839424] psmouse serio1: elantech: Elan sample query result 03, 58, 74
      [    3.911349] input: ETPS/2 Elantech Touchpad as /devices/platform/i8042/serio1/input/input6
      Signed-off-by: default avatarPatrick Scheuring <patrick.scheuring.dev@gmail.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      da25311c
  5. 14 Oct, 2016 1 commit
  6. 11 Oct, 2016 2 commits
  7. 07 Oct, 2016 3 commits
  8. 04 Oct, 2016 9 commits
  9. 03 Oct, 2016 3 commits
  10. 27 Sep, 2016 3 commits
  11. 21 Sep, 2016 1 commit
    • Hans Verkuil's avatar
      Input: serio - add hangup support · 51db0137
      Hans Verkuil authored
      The Pulse-Eight USB CEC adapter is a usb device that shows up as a ttyACM0
      device.  It requires that you run inputattach in order to communicate with
      it via serio.
      
      This all works well, but it would be nice to have a udev rule to
      automatically start inputattach. That too works OK, but the problem comes
      when the USB device is unplugged: the tty hangup is never handled by the
      serio framework so the inputattach utility never exits and you have to kill
      it manually.
      
      By adding this hangup callback the inputattach utility now properly exits
      as soon as the USB device is unplugged.
      
      The udev rule I used on my Debian sid system is:
      
      SUBSYSTEM=="tty", KERNEL=="ttyACM[0-9]*", ATTRS{idVendor}=="2548", ATTRS{idProduct}=="1002", ACTION=="add", TAG+="systemd", ENV{SYSTEMD_WANTS}+="pulse8-cec-inputattach@%k.service"
      
      And /etc/systemd/system/pulse8-cec-inputattach@.service is as follows:
      
      ===============================================================
      [Unit]
      Description=inputattach for pulse8-cec device on %I
      
      [Service]
      Type=simple
      ExecStart=/usr/local/bin/inputattach --pulse8-cec /dev/%I
      KillMode=process
      ===============================================================
      Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Tested-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      51db0137
  12. 10 Sep, 2016 5 commits
  13. 05 Sep, 2016 3 commits
  14. 30 Aug, 2016 2 commits
  15. 25 Aug, 2016 4 commits