[oe-issues] [Bug 2636] New: The corgi_ts driver has a small bug : it doesn' t trigger the KEY event it advertises

bugzilla-daemon at tinman.treke.net bugzilla-daemon at tinman.treke.net
Tue Jul 10 17:18:43 UTC 2007


http://bugs.openembedded.org/show_bug.cgi?id=2636

           Summary: The corgi_ts driver has a small bug : it doesn't trigger
                    the KEY event it advertises
           Product: Zaurus Kernel
           Version: unspecified
          Platform: ARM
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: C3xxx
        AssignedTo: openembedded-issues at lists.openembedded.org
        ReportedBy: r.goyet at gmail.com
         QAContact: openembedded-issues at lists.openembedded.org


Kernel version : vanilla, 2.6.21.5

 The corgi_ts driver has provision for reporting BTN_TOUCH events, which is
really nice : you could just use the evdev X.org driver, and you'd be ready to
go ! The event should be reported when the user touches the screen. It doesn't
work : just use http://game-sat.com/~brian/Howtos/evtest.c to make sure. Xev on
X.org reports the same behaviour : touching the screen reports X, Y, and
Pressure, but never any Key/Button event.


I tweaked a bit "static void new_data(struct corgi_ts *corgi_ts)" :

- Step 0 : I removed a sanity check :

        //      if (!corgi_ts->tc.pressure && corgi_ts->pendown == 0)           
        //return;                                                               


 - Step 1 : I hardcoded a "click" event :

        input_report_key(dev, BTN_TOUCH, 0);
        input_report_key(dev, BTN_TOUCH, 1);

      Nothing was reported by the evtest program, nor by Xev

- Step 2 : I commented out the pressure reporting function :

        // input_report_abs(dev, ABS_PRESSURE, corgi_ts->tc.pressure);"

  Now the hardcoded click is reported.

I haven't had time to dig this further, but sounds like I'm on something.

 - Romain


-- 
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.




More information about the Openembedded-issues mailing list