Hmm...upon a bit of further research and due to the unpredictability of this error, it looks like getting k_msg capability is gonna help a lot, since you won't be able to use Catlog to save the logs with the touchscreen frozen, and I don't think Catlog saves on its own until you tell it to, and I'm not sure if Catlog holds on to the logs after reboot.
Gonna have to do more research....Though I'm sure mgr666 has some ideas.
We don't know yet on which side the problem should be fixed, in the kernel or Android. We need to see logcat first to determine if we can eliminate Android and focus on the kernel. If the screen is frozen but kernel is working fine, adb can be used to obtain logcat. The link below has information on using adb to get logcat.
http://forum.xda-developers.com/showthread.php?p=28132214
I have doubt that the kernel is problem since the problem descriptions so far don't mention about spontaneous reboot. When kernel crashes, system most of the time reboots by itself.
Anyway, I have updated the kernel in the OP with several fixes and patches. Some of them might help with this evasive problem too. Let's see. Please post your feedback if there is anything different, good or bad. It seems this build is running find on my phone. Changes are as follows, you can see the details in my repo.
- further kernel config cleanup
- ARM: enable CONFIG_KTIME_SCALAR
- disable CONFIG_OABI_COMPAT
- ARM: 7791/1: a.out: remove partial a.out support
- Set CONFIG_PANIC_TIMEOUT=5, AOSP recommended value
- update ashmem from MiRaGe shooter kernel
- Staging: android: timed_gpio: Fix unreg order
Cheers!