Here is the logcat of me plugging in the folio.
http://pastebin.com/S8Qs9w5C
Here is the interesting part:
Code:D/EventHub( 151): No input device configuration file found for device 'Lenovo ThinkPad Tablet'. E/KeyLayoutMap( 151): /system/usr/keylayout/Generic.kl:161: Expected key code label, got 'YEN'. E/Keyboard( 151): Could not determine key map for device 'Lenovo ThinkPad Tablet' and no default key maps were found! I/EventHub( 151): New device: id=8, fd=228, path='/dev/input/event7', name='Lenovo ThinkPad Tablet', classes=0x80000001, configuration='', keyLayout='', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false I/InputReader( 151): Device added: id=8, name='Lenovo ThinkPad Tablet', sources=0x00000101 D/EventHub( 151): No input device configuration file found for device 'Lenovo ThinkPad Tablet'. E/KeyLayoutMap( 151): /system/usr/keylayout/Generic.kl:161: Expected key code label, got 'YEN'. E/Keyboard( 151): Could not determine key map for device 'Lenovo ThinkPad Tablet' and no default key maps were found! I/EventHub( 151): New device: id=9, fd=229, path='/dev/input/event8', name='Lenovo ThinkPad Tablet', classes=0x80000009, configuration='', keyLayout='', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false I/InputReader( 151): Device added: id=9, name='Lenovo ThinkPad Tablet', sources=0x00002103 D/InputReader( 151): BatchSize: 1 Count: 1 D/InputReader( 151): Input event: device=9 type=0x0000 scancode=0x0000 keycode=0x0000 value=0x00000000 flags=0x00000000 D/dalvikvm( 1249): GC_CONCURRENT freed 346K, 21% free 8183K/10311K, paused 1ms+4ms D/InputReader( 151): BatchSize: 5 Count: 5
The Generic.kl did not fix Folio keyboard usage. Pointer and buttons only, still. After replacing file, cold booted, then inserted TPT into folio keyboard. No keypresses are shown, On screen keyboard remains.
D/dalvikvm( 1176): GC_CONCURRENT freed 355K, 22% free 7727K/9863K, paused 1ms+4ms
W/InputManagerService( 149): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@414f5490
D/EventHub( 149): No input device configuration file found for device 'Lenovo ThinkPad Tablet'.
E/KeyLayoutMap( 149): /system/usr/keylayout/Generic.kl:108: Expected key code label, got 'KEYBOARD_LESS'.
E/Keyboard( 149): Could not determine key map for device 'Lenovo ThinkPad Tablet' and no default key maps were found!
I/EventHub( 149): New device: id=10, fd=166, path='/dev/input/event6', name='Lenovo ThinkPad Tablet', classes=0x80000001, configuration='', keyLayout='', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false
I/InputReader( 149): Device added: id=10, name='Lenovo ThinkPad Tablet', sources=0x00000101
D/EventHub( 149): No input device configuration file found for device 'Lenovo ThinkPad Tablet'.
E/KeyLayoutMap( 149): /system/usr/keylayout/Generic.kl:108: Expected key code label, got 'KEYBOARD_LESS'.
E/Keyboard( 149): Could not determine key map for device 'Lenovo ThinkPad Tablet' and no default key maps were found!
I/EventHub( 149): New device: id=11, fd=167, path='/dev/input/event7', name='Lenovo ThinkPad Tablet', classes=0x80000009, configuration='', keyLayout='', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false
I/InputReader( 149): Device added: id=11, name='Lenovo ThinkPad Tablet', sources=0x00002103
D/InputReader( 149): BatchSize: 1 Count: 1
D/InputReader( 149): Input event: device=11 type=0x0000 scancode=0x0000 keycode=0x0000 value=0x00000000 flags=0x00000000
D/dalvikvm( 427): GC_CONCURRENT freed 446K, 24% free 7013K/9223K, paused 2ms+3ms
D/InputReader( 149): BatchSize: 3 Count: 3
D/InputReader( 149): Input event: device=10 type=0x0004 scancode=0x0004 keycode=0x0000 value=0x00070004 flags=0x00000000
D/InputReader( 149): Input event: device=10 type=0x0001 scancode=0x001e keycode=0x0000 value=0x00000001 flags=0x00000000
D/InputReader( 149): Input event: device=10 type=0x0000 scancode=0x0000 keycode=0x0000 value=0x00000000 flags=0x00000000
D/InputReader( 149): BatchSize: 3 Count: 3
I've tested Splashtop HD (remote desktop) and the display is not working correctly.
I didn't try it before on 3.1 (so doesn't know if it works before), but I think it's related with the HW acceleration (, Youtube HD)
Still no luck on my end:
Logcat
http://pastebin.com/kj2n22d8
Code:D/dalvikvm( 1176): GC_CONCURRENT freed 355K, 22% free 7727K/9863K, paused 1ms+4ms W/InputManagerService( 149): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@414f5490 D/EventHub( 149): No input device configuration file found for device 'Lenovo ThinkPad Tablet'. E/KeyLayoutMap( 149): /system/usr/keylayout/Generic.kl:108: Expected key code label, got 'KEYBOARD_LESS'. E/Keyboard( 149): Could not determine key map for device 'Lenovo ThinkPad Tablet' and no default key maps were found! I/EventHub( 149): New device: id=10, fd=166, path='/dev/input/event6', name='Lenovo ThinkPad Tablet', classes=0x80000001, configuration='', keyLayout='', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false I/InputReader( 149): Device added: id=10, name='Lenovo ThinkPad Tablet', sources=0x00000101 D/EventHub( 149): No input device configuration file found for device 'Lenovo ThinkPad Tablet'. E/KeyLayoutMap( 149): /system/usr/keylayout/Generic.kl:108: Expected key code label, got 'KEYBOARD_LESS'. E/Keyboard( 149): Could not determine key map for device 'Lenovo ThinkPad Tablet' and no default key maps were found! I/EventHub( 149): New device: id=11, fd=167, path='/dev/input/event7', name='Lenovo ThinkPad Tablet', classes=0x80000009, configuration='', keyLayout='', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false I/InputReader( 149): Device added: id=11, name='Lenovo ThinkPad Tablet', sources=0x00002103 D/InputReader( 149): BatchSize: 1 Count: 1 D/InputReader( 149): Input event: device=11 type=0x0000 scancode=0x0000 keycode=0x0000 value=0x00000000 flags=0x00000000 D/dalvikvm( 427): GC_CONCURRENT freed 446K, 24% free 7013K/9223K, paused 2ms+3ms D/InputReader( 149): BatchSize: 3 Count: 3 D/InputReader( 149): Input event: device=10 type=0x0004 scancode=0x0004 keycode=0x0000 value=0x00070004 flags=0x00000000 D/InputReader( 149): Input event: device=10 type=0x0001 scancode=0x001e keycode=0x0000 value=0x00000001 flags=0x00000000 D/InputReader( 149): Input event: device=10 type=0x0000 scancode=0x0000 keycode=0x0000 value=0x00000000 flags=0x00000000 D/InputReader( 149): BatchSize: 3 Count: 3
EDIT: I followed your lead and commented out the line that define "KEYBOARD_LESS" (Line 108?) and now the folio seems to work! I'll continue testing all the keys and let you know how it looks, but it seems as if that was the fix.
I installed this last night on my US 16GB WiFi ThinkPad, and I'm happy to report that I was also able to get my keyboard folio working, in fact I'm using it to post this! The only buttons I can find that are not working are the sound mute button, microphone mute button, notification pannel button, settings button, and the zoom buttons.
After commenting out KEYBOARD_LESS on line 108 I can use 95% of the keyboard although @ and " are swapped because I'm using a UK layout. Tilde and hash are also non-functional.
D/InputReader( 150): Input event: device=7 type=0x0001 scancode=0x00f8 keycode=0x00d3 value=0x00000001 flags=0x00000001
The default browser and Chrome beta are freezing a lot on me, just browsing forums. Perhaps because of the HW acceleration problems? I don't seem to have the problem with dolphin.
Chrome freezes on me a lot too. From looking at the ANR logs it seems like chrome sync is the culprit. I'm going to try to disable that and see if it gets better.
HI Koshu, here's the info that you asked for. May I take this opportunity to thank you and Jon2555 for all of your hard work on this ROM, it is much appreciated.
These ones in the first batch are the function keys in the top row
Volume Mute
(definitely does nor work, although has a non zero keycode. 0x71 corresponds to key 113 VOLUME_MUTE in Generic.kl)
D/InputReader(150): Input event: device=7 type=0x0001 scancode=0x0071 keycode=0x00a4 value=0x00000001 flags=0x00000000
Microphone Mute
D/InputReader(150): Input event: device=7 type=0x0001 scancode=0x0212 keycode=0x0000 value=0x00000001 flags=0x00000000
Brightness Button
(Dunno if there is a good match for this, as there is only one key and not two for KEY_BRIGHTNESSDOWN & KEY_BRIGHTNESSUP)
D/InputReader(150): Input event: device=7 type=0x0001 scancode=0x0213 keycode=0x0000 value=0x00000001 flags=0x00000000
Settings Button
Input event: device=7 type=0x0001 scancode=0x008d keycode=0x0000 value=0x00000001 flags=0x00000000
Zoom Out
Input event: device=7 type=0x0001 scancode=0x01a3 keycode=0x0000 value=0x00000000 flags=0x00000000
Zoom In
Input event: device=7 type=0x0001 scancode=0x01a2 keycode=0x0000 value=0x00000000 flags=0x00000000
This next batch are the ones from the rest of the keyboard that don't do anything for me
# / ~
This is the key directly to the left of enter and directly to the right of ' / @.
D/InputReader(150): Input event: device=8 type=0x0001 scancode=0x020b keycode=0x0000 value=0x00000001 flags=0x00000000
Sym Key
Not even sure of what this is supposed to do!
Input event: device=7 type=0x0001 scancode=0x0214 keycode=0x0000 value=0x00000001 flags=0x00000000
The final batch of keys are the ones that are swapped in my case because I don't have a US English layout. Not that bothered about these to be honest!
Grave / Backtick
outputs backtick ` without shift
outputs tilde ~ with shift
2 / "
outputs @ with shift, should be " in my case
' / @
outputs " with shift, should be @ in my case
3 / £
outputs # with shift, should be £ in my case