[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#392498: marked as done (palmax touchscreen logic bug prevents use in low loads)



Your message dated Mon, 11 May 2009 19:17:03 +0100
with message-id <200905111817.n4BIH3T7010717@kmos.homeip.net>
and subject line xserver-xorg-input-palmax has been removed from Debian, closing #392498
has caused the Debian Bug report #392498,
regarding palmax touchscreen logic bug prevents use in low loads
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
392498: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=392498
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: xserver-xorg-input-palmax
Version: 1.0.0.5-2

The palmax touchscreen driver contains a bug related to
the parsing of data from the serial port. The problem 
occurs when less than five bytes have been read after the
current package to be processed, a very frequent case
except when the system is under high load. The result is
that touchscreen data is discarded instead of parsed,
rendering the touchscreen unresponsive. 

I have found the faulty logic and am attaching a patch 
which seems to solve the problem correctly for me, though
it could probably use a second set of eyes to check for 
other thinkos. 

I am using a Palmax PD-1100, and with this patch applied
my touchscreen seems to work fine. 
*** xserver-xorg-input-palmax-1.0.0.5/src/xf86Palmax.c	Mon Feb 13 04:47:12 2006
--- xserver-xorg-input-palmax-1.0.0.5.fixed/src/xf86Palmax.c	Thu Oct 12 01:18:17 2006
***************
*** 15,20 ****
--- 15,23 ----
  #include "xf86Module.h"
  #endif
  
+ #include <stdlib.h>
+ #include <string.h>
+ 
  /*
   ***************************************************************************
   *
***************
*** 28,34 ****
  #define DEFAULT_MAX_Y		61592
  #define DEFAULT_MIN_Y		7608
                                
! #define XI_STYLUS		"TOUCHSCREEH"	/* X device name for the stylus device	*/
  
  
  /*
--- 31,37 ----
  #define DEFAULT_MAX_Y		61592
  #define DEFAULT_MIN_Y		7608
                                
! #define XI_STYLUS		"TOUCHSCREEN"	/* X device name for the stylus device	*/
  
  
  /*
***************
*** 301,307 ****
  	bytes_in_packet = 0;
  	start_ptr = ptr;
  
! 	while (num_bytes >= report_size) 
  	{
  		/*
  		 * Skip bytes until we hit a header (FE/FF)
--- 304,310 ----
  	bytes_in_packet = 0;
  	start_ptr = ptr;
  
! 	while (num_bytes >= report_size-bytes_in_packet) 
  	{
  		/*
  		 * Skip bytes until we hit a header (FE/FF)

--- End Message ---
--- Begin Message ---
Version: 1:1.2.0-1+rm

The xserver-xorg-input-palmax package has been removed from Debian so we are closing
the bugs that were still opened against it.

For more information about this package's removal, read
http://bugs.debian.org/527698 . That bug might give the reasons why
this package was removed, and suggestions of possible replacements.

Don't hesitate to reply to this mail if you have any question.

Thank you for your contribution to Debian.

Kind regards,
--
Marco Rodrigues


--- End Message ---

Reply to: