mlambda | 24 Jul 2012 15:49
Picon

[Fwd: Re: Running OpenBSD on an Acer Aspire One 110L netbook]

Forwarded to tech, as nobody seemed to notice this on misc.

-------- Forwarded Message --------
> From: mlambda <mlambda <at> gmail.com>
> To: misc <at> openbsd.org
> Subject: Re: Running OpenBSD on an Acer Aspire One 110L netbook
> Date: Tue, 10 Jul 2012 23:52:49 +0200
> 
> By the way, are you sure 'pckbd_set_xtscancode' in sys/dev/pckbc/pckbd.c
> is correct?
> This function tries to check for scancode set 3 using
> 
> 
> 			cmd[0] = KBC_SETTABLE;
> 			cmd[1] = 0;
> 			if (pckbc_poll_cmd(kbctag, kbcslot, cmd, 2, 1, resp, 0)) {
> 				/*
> 				 * query failed, step down to table 2 to be
> 				 * safe.
> 				 */
> #ifdef DEBUG
> 				printf("pckbd: table 3 verification failed\n");
> #endif
> 				continue;
> 			} else if (resp[0] == 3) {
> #ifdef DEBUG
> 				printf("pckbd: settling on table 3\n");
> #endif
> 				break;
> 			}
(Continue reading)

Alexandr Shadchin | 24 Jul 2012 19:39
Picon

Re: [Fwd: Re: Running OpenBSD on an Acer Aspire One 110L netbook]

Hi,

I discussed about this with miod <at> . This code works correctly, but not optimal.
I need more tests to fix it.

IMHO this is not related to your original issue.

----- Forwarded message from Alexandr Shadchin <alexandr.shadchin <at> gmail.com> -----

Date: Tue, 15 Nov 2011 02:52:30 +0600
From: Alexandr Shadchin <alexandr.shadchin <at> gmail.com>
To: Miod Vallat <miod <at> online.fr>
Subject: rewrite pckbd_set_xtscancode()

Hi,

I rewrote function pckbd_set_xtscancode() for pckbd(4).

Old behavior:
 * Try enabling translation
   * If succes, then N = 3
   * If failed, then N = 2
 * Try set begin with #N
   If N=3, then check correctly set #3
   But if translation enabled, then check set #3 return 3F (not 3) [1]
   So set #3 never used.

Also sets #1 and #3 are not recommended [2]

New behavior:
(Continue reading)


Gmane