Commit Graph

119 Commits

Author SHA1 Message Date
maya abbdd87862 Add Turkish keyboard layout.
from berte in PR kern/53011.
2018-02-19 14:34:17 +00:00
jmcneill 26f4df0434 Add hw.synaptics.movement_enable sysctl. Default value is 1, but if set
to 0 disables movement events from the touchpad.

While here, fixup a few sysctl nodenum comparisons in
pms_sysctl_synaptics_verify to compare against node numbers instead of
values.
2017-12-05 18:04:21 +00:00
ryoon 24512689e1 Return res in non-synaptics case like before. Fix ALPS case 2017-11-07 12:39:07 +00:00
blymn fe90bab42e Add two finger support and middle/right button emulation. 2017-11-06 21:07:17 +00:00
nat 1940716d95 Remove extra newline. 2017-08-16 21:18:58 +00:00
nat d7b3efdac7 If ALPS probe fails, send a PMS_RESET.
Restores functionality on a wrong version ALPS touchpad.

Addresses PR kern/52489.

This patch was prepared by/committed on behalf of maya@.
2017-08-16 21:09:48 +00:00
ryoon 9828247cf0 Do not print ALPS related message when generic PS/2 case 2017-08-15 22:23:09 +00:00
christos 014b6d5aae PR/52483: Ryo ONODERA: Add support for ALPS PS/2 pointing devices 2017-08-13 08:49:27 +00:00
nat b377bbb391 New device wsbell - allows for a console beep for non pckbds (usb etc).
Works for platforms without pcppi - can work with spkr at audio and spkr
at pcppi.

To use add the following to your kernel config:
wsbell* at spkr? console?

Ok pgoyette@.
2017-06-11 03:55:56 +00:00
prlw1 88f0bbeb89 Disambiguate debug message. 2015-07-16 15:01:04 +00:00
christos 418d39e325 Fix clickpad button detection (From Rhialto) 2015-03-04 22:58:35 +00:00
mbalmer e0f28f4a46 Add a belgian keyboard layout, based on the french keyboard layout.
Fixes PR install/46871.
2014-07-14 10:05:23 +00:00
riastradh 14aa54934d Nuke trailing whitespace. 2014-06-11 20:09:17 +00:00
christos ef2e77d3d6 PR/48831: Jörg Grundmann: Synaptics Touch pad (ClickPad) and
Klick-by-tap-gestures do not work
2014-05-23 01:11:29 +00:00
pooka 4f6fb3bf35 Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
2014-02-25 18:30:08 +00:00
jakllsch e45cb093f5 KASSERT that cmd is non-NULL in more places, and in a place that previously
did not use KASSERT to do the same thing.
2014-01-11 20:29:03 +00:00
martin eb6986a1b3 Cosemetically "fix" the pckbd_attach() return value, so gcc can see the
value is used (no functional change)
2013-09-15 09:24:05 +00:00
christos 953e0bb7b8 fix debugging printf 2013-03-06 04:22:03 +00:00
christos 3fdfd2de8e Deal with Foxconn NanoPC nT-i1250 returning BAT_FAIL and don't infinite loop
From OpenBSD.
2013-03-06 03:26:17 +00:00
jdc 343abb5591 Add the extra keys found on the Tadpole SPARCle to the keysym list. 2012-10-13 17:51:51 +00:00
jdc b0cdfa37f7 Add two flags to keyboard/mouse attachment:
PCKBC_CANT_TRANSLATE for keyboards that cannot translate to XT scancodes
  PCKBC_NEED_AUXWRITE for mice that don't probe first time
These flags can be set by the port-specific attachments.

Add the translation table and function to handle set 2 to set 1 keyboard
translation in software.

Based on OpenBSD sys/dev/ic/pckbc.c revisions 1.10, 1.16, 1.17, and
sys/dev/pckbc/pckbd.c revision 1.15, and 8042 scan code information at:

  http://www.computer-engineering.org/ps2keyboard/

Note, that this changes the signature of pckbc_cnattach(), so ride the
kernel version bump for namei.
2012-10-13 17:51:28 +00:00
dsl f4005a420d Remove a couple of (void *) casts added in the previous commin.
They aren't needed here (script error).
2012-06-03 13:52:46 +00:00
dsl e21a34c25e Add some pre-processor magic to verify that the type of the data item
passed to sysctl_createv() actually matches the declared type for
  the item itself.
In the places where the caller specifies a function and a structure
  address (typically the 'softc') an explicit (void *) cast is now needed.
Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c
  sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting
  AcpiGbl_EnableAmlDebugObject.
(mostly passing the address of a uint64_t when typed as CTLTYPE_INT).
I've test built quite a few kernels, but there may be some unfixed MD
  fallout. Most likely passing &char[] to char *.
Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.
2012-06-02 21:36:41 +00:00
jmcneill b2424d9a22 add support for elantech (v2) touchpads that report input pressure 2012-01-07 10:27:58 +00:00
jakllsch eefea85339 Correct and improve some comments. Collect unused variables. Add a define. 2011-09-10 18:38:20 +00:00
jakllsch 2eb0dcce4e Replace pms_synaptics_send_command() and identical pms_elantech_send_command()
with pms_sliced_command().  Linux shows that this sequence can also be used by
"Logitech PS/2++" protocol as well.
2011-09-09 14:29:47 +00:00
jakllsch 33419b02ae const-ify input command buffer argument to
pckbport_poll_cmd and pckbport_enqueue_cmd.
2011-09-09 14:00:01 +00:00
jakllsch 9779175e56 Sprinkle static. 2011-09-08 16:34:09 +00:00
jakllsch e09b9d681e Cosmetic changes. 2011-09-08 15:27:50 +00:00
jakllsch 4df4fc4c6f Make whitespace more consistent. 2011-09-08 15:26:26 +00:00
jakllsch 3d6f16cbff options PMS_DISABLE_POWERHOOK has been obsolete for a while now,
remove what little still remains of it.
2011-09-07 19:05:13 +00:00
christos e55e3f51cc fixes from gilbert dot fernandes at orange dot fr 2011-07-22 23:22:38 +00:00
christos f00e05ebcb fixes from OpenBSD 2011-07-22 19:20:28 +00:00
christos f11ae0d12b PR/35473: Wigcher Spanninga: Add Dutch keyboard support to wscons 2011-07-22 18:17:11 +00:00
joerg c22277f893 Use proper format string 2011-05-24 16:42:53 +00:00
cegger 849bcd741c add PS/2 registers from synaptics spec:
PMS_RESET_WRAP_MODE, PMS_SET_WRAP_MODE, PMS_ACK, PMS_ERROR and PMS_RESEND

while here use #define<tab> consistently.
2011-02-08 07:32:47 +00:00
cegger a40029a856 use aprint_debug_dev and get rid of SYNAPTICSDEBUG 2011-01-29 20:37:24 +00:00
uebayasi 1d247bb84c wakeup needs sys/proc.h. 2010-11-15 05:58:18 +00:00
plunky 56e30c61a6 send the SET_SCALE11 command before the 'sliced' command as per the
Linux driver (and elantech(4)), via PR kern/42853
2010-03-21 20:04:43 +00:00
plunky 4cac2374d5 Extended capability probes can confuse the passthrough device,
reset the touchpad on enable to cure that.
2010-03-21 19:57:05 +00:00
plunky 88c4db2ecc some definitions from the Linux driver (via PR kern/42853) 2010-03-21 19:53:52 +00:00
dyoung c1b390d493 A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.
2010-02-24 22:37:54 +00:00
dyoung cd6e1fbf91 Expand PMF_FN_* macros. 2010-01-08 19:53:10 +00:00
ahoka 2e4db2573f Add hungarian qwertz keyboard layout. 2009-07-28 18:48:27 +00:00
jakllsch 18f1b5273b Ignore scancodes E0 2A, E0 AA, E0 36, E0 B6 when decoding.
For the 10 keys on the editing keypad, these prefix/postfix
scancodes indicate the state of the Left Shift and Right Shift
keys and Num Lock indicator.

This change prevents a spurious WSCONS_EVENT_KEY_UP event upon
press as well as the corresponding WSCONS_EVENT_KEY_DOWN event
upon release.
2009-07-16 20:44:54 +00:00
tonnerre 8faae88204 Add support for Swiss german kezboard to wskbd.
Contributed by Marc Balmer.
2009-06-13 20:21:56 +00:00
mkirby ff12b9febc Add a Czech (QWERTY) keyboard layout, and teach wscons about latin 2 characters.
Original code from Lubomir Kundrak, adapted to current and cleaned up by me.

Fixes PR kern/16216

ok agc@ jdc@
2009-04-06 17:32:09 +00:00
ad 0458d57a95 use aprint_error 2009-03-08 15:06:56 +00:00
ghen a349a96a6f Enable Colemak altgr keys. 2009-02-03 17:50:28 +00:00
jmcneill 9f9ac957a5 Silence printf in common "device not found" error path. 2008-12-30 10:44:30 +00:00