修改:
--- a/kernel/drivers/hid/hid-input.c
+++ b/kernel/drivers/hid/hid-input.c
@@ -620,7 +620,11 @@ static void hidinput_configure_usage(struct hid_input *hidi
case 0x289: map_key_clear(KEY_REPLY); break;
case 0x28b: map_key_clear(KEY_FORWARDMAIL); break;
case 0x28c: map_key_clear(KEY_SEND); break;
-
+//Roger add for blue tooth keyboard
+ case 0x1b1: map_key_clear(KEY_SCREEN); break;
+ case 0x30a: map_key_clear(KEY_BRIGHTNESSDOWN); break;
+ case 0x30b: map_key_clear(KEY_BRIGHTNESSUP); break;
+//End of Roger add
default: goto ignore;
}
break;
通过是系统崩溃获取追踪信息:
在kernel/drivers/input/input.c:
void input_event(struct input_dev *dev,
unsigned int type, unsigned int code, int value)
{
unsigned long flags;
//add by cvt_hgd
unsigned int type, unsigned int code, int value)
{
unsigned long flags;
//add by cvt_hgd
(int *) 0 =0;
//the end by cvt_hgd
if (is_event_supported(type, dev->evbit, EV_MAX)) {
spin_lock_irqsave(&dev->event_lock, flags);
if (is_event_supported(type, dev->evbit, EV_MAX)) {
spin_lock_irqsave(&dev->event_lock, flags);