[gpm] alps error workaround (correct)

Peter Berg Larsen pebl@math.ku.dk
Fri, 18 Apr 2003 22:18:47 +0200 (MET DST)


On Fri, 18 Apr 2003, Andrea Dieni wrote:


> Here' attached some output I receive when starting gpm
> gpm -m /dev/mouse -t alps2

My fault: In alps_ps2_translate_data change (the last 0x01)

  if (data[0] == 0xFF && ((data[2] & 0x84) == 0x00) && ((data[3] &
0x88) == 0x01)) {

to 

  if (data[0] == 0xFF && ((data[2] & 0x84) == 0x00) && ((data[3] &
0x88) == 0x08)) {


Is the last column always 00 (this is suppose to be the pressure on the
pad)? if so turn off wmode_enabled. 

Peter
--
E-Mail:       pebl@math.ku.dk 
Real name:    Peter Berg Larsen 
Where:        Department of Computer Science, Copenhagen Uni., Denmark