home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / doc / xserver-xorg-input-synaptics / pc_keyb.c.diff.2.4.3 < prev    next >
Encoding:
Text File  |  2006-04-16  |  1.5 KB  |  58 lines

  1. *** pc_keyb.c.orig    Thu Oct  4 21:48:24 2001
  2. --- pc_keyb.c    Thu Oct  4 21:52:41 2001
  3. ***************
  4. *** 63,68 ****
  5. --- 63,69 ----
  6.   #ifdef CONFIG_PSMOUSE
  7.   static void aux_write_ack(int val);
  8.   static void __aux_write_ack(int val);
  9. + static int aux_reconnect = 0;
  10.   #endif
  11.   
  12.   static spinlock_t kbd_controller_lock = SPIN_LOCK_UNLOCKED;
  13. ***************
  14. *** 403,409 ****
  15.           }
  16.           mouse_reply_expected = 0;
  17.       }
  18. !     else if(scancode == AUX_RECONNECT){
  19.           queue->head = queue->tail = 0;  /* Flush input queue */
  20.           __aux_write_ack(AUX_ENABLE_DEV);  /* ping the mouse :) */
  21.           return;
  22. --- 404,411 ----
  23.           }
  24.           mouse_reply_expected = 0;
  25.       }
  26. !     else if(scancode == AUX_RECONNECT && aux_reconnect){
  27. !         printk(KERN_DEBUG "AUX_RECONNECT scancode read\n");
  28.           queue->head = queue->tail = 0;  /* Flush input queue */
  29.           __aux_write_ack(AUX_ENABLE_DEV);  /* ping the mouse :) */
  30.           return;
  31. ***************
  32. *** 751,756 ****
  33. --- 753,776 ----
  34.   }
  35.   
  36.   #if defined CONFIG_PSMOUSE
  37. + /*
  38. +   AUX_RECONNECT support becomes a boot option, default off 
  39. +   WARNING: aux-reconnect breaks synaptics ps2 touchpad support
  40. +   (synaptics generates spurious AUX_RECONNECT scancodes ?)
  41. +   ported from 2.2.18 by MAtteo HCE Valsasna (hce@uninsubria.it)
  42. + */
  43. + static int __init aux_reconnect_setup(char *str, int *ints)
  44. + {
  45. +       aux_reconnect=1;
  46. +       printk(KERN_INFO "AUX_RECONNECT support enabled, forget your synaptics\n");
  47. +       return 1;
  48. + }
  49. + __setup("aux-reconnect", aux_reconnect_setup);
  50.   
  51.   /*
  52.    * Check if this is a dual port controller.
  53.