This is really a stupid design in android. On Fri, Feb 5, 2010 at 10:25 AM, navlrac <carl.vansch...@gmail.com> wrote: > So it seems like its the old power management issue again. Not having > power management enabled in my kernel, the Input service thinks the > screen is off and drops the ABS_X and ABS_Y events. (Not dropping the > events makes things work). Annoyingly it seems not to drop the > button_touch event however so the clicks do infact interact with the > android system even if it thinks the screen is off. Not sure if this > means touch events on an actual phone who's screen is off will get > through to the UI but it seems so and may be a bug? > > This is on 2.0.1 source > > cheers, > Carl > > On Feb 4, 6:25 pm, navlrac <carl.vansch...@gmail.com> wrote: >> I've been trying to implement my touch screen driver and debugging by >> comparing expected behavior with the Goldfish port. >> Have the problem that touch events are going to the UI, but it seems >> not the touch position. Ie. touching anywhere on the screen causes the >> notification panel to show the drag-bar. (just touch and hold the >> notification bar without dragging too see this on any other device). >> My guess is that the X,Y coordinates of the touch-screen remain at >> (0,0) and the BUTTON_TOUCH is working. >> >> I'm at the stage where the touch driver gets the ABS_X and ABS_Y >> values and sends these along with BUTTON_TOUCH into the input system. >> As far as I can tell, I've setup all the relevant absbits and keybits >> for BUTTON_TOUCH, also the driver scales touch position to match >> screen pixel X/Y scale and that appears ok. >> >> Running >> # getevent >> >> /dev/input/event0: 0003 0000 0000012a >> /dev/input/event0: 0003 0001 0000017c >> /dev/input/event0: 0001 014a 00000001 >> /dev/input/event0: 0000 0000 00000000 >> >> It shows my EV_ABS and ABS_X / ABS_Y events along with the button >> touch events and looks the same as what I see on the goldfish >> emulator. >> >> Anyone have any ideas as to what is happening? >> >> Thanks >> Carl > > -- > unsubscribe: android-porting+unsubscr...@googlegroups.com > website: http://groups.google.com/group/android-porting >
-- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting