BUG: On ICS, Android thinks that the lid state (keyboard) is 0 when 1 and 1 when 0 which causes lag and incorrect keyboard state, thus breaking the software and hardware keyboard. I have fixed this in my Epic 4G MIUIANDROID port. The smali fix is in...