# $Id: openbsd-oqo_pckbc.diff,v 1.3 2007/02/05 05:48:46 jcs Exp $ # XXX: committed a better version that works on all keyboards # # hack for the pckb controller driver to support an apparently broken keyboard # on the oqo model 01. the oqo's keyboard does not do xt scancode translation, # but falsely reports that it does. # # see http://jcs.org/laptops/ for more information # # by joshua stein # Index: sys/dev/ic/pckbc.c =================================================================== RCS file: /cvs/src/sys/dev/ic/pckbc.c,v retrieving revision 1.10 diff -u -r1.10 pckbc.c --- sys/dev/ic/pckbc.c 6 Aug 2005 19:49:19 -0000 1.10 +++ sys/dev/ic/pckbc.c 18 Aug 2005 16:38:36 -0000 @@ -472,6 +472,8 @@ return (1); } + return (0); + ison = t->t_cmdbyte & KC8_TRANS; if ((on && ison) || (!on && !ison)) return (1);