键盘问题(某些键反应迟钝,但windows下正常)

声卡/显卡/打印机/USB设备等硬件问题(网卡问题请发上面的网卡板块)
回复
basil
帖子: 11
注册时间: 2006-01-20 14:26
送出感谢: 0
接收感谢: 0

键盘问题(某些键反应迟钝,但windows下正常)

#1

帖子 basil » 2006-01-31 22:01

我的笔记本安装ubuntu后就一直受到键盘问题困扰,导致使用不便,
但是在windows下没有问题,不知哪位有这样的经历并且有好的解决方案?

谢谢关注!
basil
帖子: 11
注册时间: 2006-01-20 14:26
送出感谢: 0
接收感谢: 0

#2

帖子 basil » 2006-02-02 17:28

使用了kbdrate调快了键盘速度, 似乎好了一点, 不过有时候尤其是硬盘响或其他程序忙的时候如果键盘速度快了还是偶尔会个别出不来.
basil
帖子: 11
注册时间: 2006-01-20 14:26
送出感谢: 0
接收感谢: 0

dmesg信息

#3

帖子 basil » 2006-02-06 14:38

[4295114.594000] atkbd.c: Spurious ACK on isa0060/serio0. Some program, like XFree86, might be trying access hardware directly.
[4295115.596000] atkbd.c: Spurious ACK on isa0060/serio0. Some program, like XFree86, might be trying access hardware directly.
[4295154.366000] atkbd.c: Spurious ACK on isa0060/serio0. Some program, like XFree86, might be trying access hardware directly.
[4295155.368000] atkbd.c: Spurious ACK on isa0060/serio0. Some program, like XFree86, might be trying access hardware directly.
[4295208.768000] atkbd.c: Spurious ACK on isa0060/serio0. Some program, like XFree86, might be trying access hardware directly.
[4295209.769000] atkbd.c: Spurious ACK on isa0060/serio0. Some program, like XFree86, might be trying access hardware directly.
[4297154.121000] atkbd.c: Unknown key released (translated set 2, code 0xaa on isa0060/serio0).
[4297154.121000] atkbd.c: Use 'setkeycodes e02a <keycode>' to make it known.
[4297154.211000] atkbd.c: Unknown key pressed (translated set 2, code 0xaa on isa0060/serio0).
[4297154.211000] atkbd.c: Use 'setkeycodes e02a <keycode>' to make it known.


查了很久,,说是内核2.6的问题,但是没有找到解决方案。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#4

帖子 eexpress » 2006-02-06 15:06

执行xev。也可以试试,应该有点帮助
● 鸣学
basil
帖子: 11
注册时间: 2006-01-20 14:26
送出感谢: 0
接收感谢: 0

#5

帖子 basil » 2006-02-06 21:52

终于发现原来是屏幕保护程序在后台运行了 一大堆 xscreensaver-command导致过一段时间就系统忙导致键盘响应迟钝,但是禁用屏幕保护并未能修正该问题。
请问一下各位达人如何彻底停止屏幕程序的运行?

谢谢!
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#6

帖子 eexpress » 2006-02-07 22:14

记得有帖子说明了所有常用的系统服务的功能,找找,把想要去掉的服务取消就是。
● 鸣学
basil
帖子: 11
注册时间: 2006-01-20 14:26
送出感谢: 0
接收感谢: 0

#7

帖子 basil » 2006-02-08 15:17

我将屏幕保护的包全部都删除了,还是不行。

最后发现是acpi的问题,它会定期启动/etc/acpi/power.sh里面会调用
su $user -c "xscreensaver-command -unthrottle" &
导致出现一大堆相关命令的进程,如下:
。。。
root 2315 1 0 15:10 ? 00:00:00 su basil -c xscreensaver-command
root 2335 1 0 15:10 ? 00:00:00 su basil -c xscreensaver-command
root 2353 1 0 15:10 ? 00:00:00 su basil -c xscreensaver-command
root 2373 1 0 15:10 ? 00:00:00 su basil -c xscreensaver-command
root 2391 1 0 15:10 ? 00:00:00 su basil -c xscreensaver-command
root 2411 1 0 15:10 ? 00:00:00 su basil -c xscreensaver-command
root 2430 1 0 15:10 ? 00:00:00 su basil -c xscreensaver-command
root 2450 1 0 15:10 ? 00:00:00 su basil -c xscreensaver-command
root 2468 1 0 15:10 ? 00:00:00 su basil -c xscreensaver-command
root 2488 1 0 15:10 ? 00:00:00 su basil -c xscreensaver-command
root 2506 1 0 15:10 ? 00:00:00 su basil -c xscreensaver-command
root 2526 1 0 15:10 ? 00:00:00 su basil -c xscreensaver-command
root 2544 1 0 15:10 ? 00:00:00 su basil -c xscreensaver-command
root 2564 1 0 15:10 ? 00:00:00 su basil -c xscreensaver-command
root 2582 1 0 15:10 ? 00:00:00 su basil -c xscreensaver-command
。。。

暂时还没有找到更好的办法,只好把该段代码注释掉。
cne
帖子: 1
注册时间: 2006-02-24 13:37
送出感谢: 0
接收感谢: 0

#8

帖子 cne » 2006-02-25 11:21

刚刚看到的:

When I do a $dmesg, which, by the way shows me the log of system messages and errors and such, I get the following two lines, repeated over and over, ad inifinitum:

[4314715.415000] atkbd.c: Unknown key pressed (translated set 2, code 0xaa on isa0060/serio0).
[4314715.415000] atkbd.c: Use ’setkeycodes e02a <keycode>’ to make it known.

I figured out that this bug happens because on some machines (laptops) the keyboard key with the code “e02a” is for the hibernate key.

The most unobstrusive way to work around the problem might be to edit the /usr/share/hotkey-setup/generic.hk file and commenting out, or deleting the offending line that says:
setkeycodes e02a 256
and then restarting the hotkey-setup service by doing a:
$sudo /etc/init.d/hotkey-setup restart
回复

回到 “常用硬件支持”