1
54c3 2014-08-24 07:27:41 +08:00 1
不如試試 xdotools?
|
3
ctexlive 2014-08-24 08:30:36 +08:00 via Android 1
132+8=140 试试
|
4
whywhywhy 2014-08-24 08:59:05 +08:00 1
fn是硬件级按键,模拟不了,也获取不了的,别闹了洗洗睡吧
|
5
elvodn 2014-08-24 09:13:00 +08:00
dmesg 里面提示了 Use "setkeycodes xxxx <keycode>" to make it know
|
6
zqhong OP @54c3 谢谢 可能没支持我这本子吧。 不过我找到了
keycode 236 = XF86KbdLightOnOff NoSymbol XF86KbdLightOnOff keycode 237 = XF86KbdBrightnessDown NoSymbol XF86KbdBrightnessDown keycode 238 = XF86KbdBrightnessUp NoSymbol XF86KbdBrightnessUp xdontool key XF86KbdBrightnessDown 应该就可以关闭背光键盘。 一开始我以为是xmodmap的映射问题, 找了试了一早上, 结果。。。 /etc/acpi/events/asus-keyboard-backlight-down /etc/acpi/events/asus-keyboard-backlight-up 呼。估计asus是支持, 等等编译下内核试试看 |
7
zqhong OP @ctexlive 谢谢。 之前就尝试过了,
找到了keycode了 keycode 236 = XF86KbdLightOnOff NoSymbol XF86KbdLightOnOff keycode 237 = XF86KbdBrightnessDown NoSymbol XF86KbdBrightnessDown keycode 238 = XF86KbdBrightnessUp NoSymbol XF86KbdBrightnessUp |
8
zqhong OP @whywhywhy 怎么说呢。网上好多人也这么说, 不过我试了下, 单纯按 F12, 得到的keycode是 96 如果 Fn+F12, 得到的keycode是 78
|
9
bcxx 2014-08-24 12:50:24 +08:00 1
|
10
akfish 2014-08-24 12:52:06 +08:00 2
Fn按键组合产生的是USB HID Report,所以你需要直接拦截处理raw HID report
|