如何确定什么事件禁用粘滞键?

如何确定什么事件禁用粘滞键?

我在使用 Kubuntu 14.10 时遇到一个持续的问题,在使用计算机时我发现粘滞键突然残疾了。我重新启用了该功能,但在一段时间后(以三分钟到几天为单位)该功能再次被禁用。以前版本的 Kubuntu 没有这个问题,也就是说,我在 Kubuntu 上使用粘滞键已经很多年了。没有提到任何不寻常的事情dmesg

我写这行是为了通知我粘滞键被禁用的确切秒数,但我还没有找到任何原因:

date && echo 'start' && while true ; do xkbset q | md5sum | grep -v '087e8692adb9691fc4b4169471e2a077' && date && beep ; sleep 1 ; done

该问题可能几天后不会发生,也可能每三分钟突然发生一次。即使我没有积极使用计算机,也会出现问题,即当我在另一个房间时,它会开始发出蜂鸣声。

令人抓狂的是,似乎非常稀有粘滞键将在几秒钟后重新启用,然后再次禁用。请参阅此处,我在 处启用了观察程序13:48:35,并且在 处禁用了粘滞键13:57:00。然后,由于某种原因,13:57:09粘滞键被重新启用,然后再次被禁用13:57:21。这整个过程发生在我在另一个房间洗碗时:

Mon Aug 31 13:48:35 IDT 2015
start
04974f8ab2d6f561ada83a2231e8fd80  -
Mon Aug 31 13:57:00 IDT 2015
04974f8ab2d6f561ada83a2231e8fd80  -
Mon Aug 31 13:57:01 IDT 2015
04974f8ab2d6f561ada83a2231e8fd80  -
Mon Aug 31 13:57:02 IDT 2015
04974f8ab2d6f561ada83a2231e8fd80  -
Mon Aug 31 13:57:03 IDT 2015
04974f8ab2d6f561ada83a2231e8fd80  -
Mon Aug 31 13:57:04 IDT 2015
04974f8ab2d6f561ada83a2231e8fd80  -
Mon Aug 31 13:57:06 IDT 2015
04974f8ab2d6f561ada83a2231e8fd80  -
Mon Aug 31 13:57:07 IDT 2015
04974f8ab2d6f561ada83a2231e8fd80  -
Mon Aug 31 13:57:08 IDT 2015
04974f8ab2d6f561ada83a2231e8fd80  -
Mon Aug 31 13:57:09 IDT 2015
04974f8ab2d6f561ada83a2231e8fd80  -
Mon Aug 31 13:57:21 IDT 2015
04974f8ab2d6f561ada83a2231e8fd80  -
Mon Aug 31 13:57:22 IDT 2015
04974f8ab2d6f561ada83a2231e8fd80  -
Mon Aug 31 13:57:23 IDT 2015
04974f8ab2d6f561ada83a2231e8fd80  -
Mon Aug 31 13:57:24 IDT 2015
04974f8ab2d6f561ada83a2231e8fd80  -
Mon Aug 31 13:57:25 IDT 2015
04974f8ab2d6f561ada83a2231e8fd80  -
Mon Aug 31 13:57:27 IDT 2015
04974f8ab2d6f561ada83a2231e8fd80  -
Mon Aug 31 13:57:28 IDT 2015
04974f8ab2d6f561ada83a2231e8fd80  -
Mon Aug 31 13:57:29 IDT 2015
^C

我的机器没有运行任何用户进程,即没有 Firefox、Okular、Thunderbird、LibreOffice 等,但问题仍然存在。

我如何从 Linux 角度调试这个问题?当然,会发生一些事件来指示粘滞键禁用。我如何确定该事件是什么?到此结束dmesg,出现问题时不再增长:

[437743.582168] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[437744.264830] usb 2-1.4: new full-speed USB device number 16 using ehci-pci
[437744.362557] usb 2-1.4: New USB device found, idVendor=045e, idProduct=07a5
[437744.362562] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[437744.362564] usb 2-1.4: Product: Microsoft® 2.4GHz Transceiver v9.0
[437744.362566] usb 2-1.4: Manufacturer: Microsoft
[437744.365110] input: Microsoft Microsoft® 2.4GHz Transceiver v9.0 as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/0003:045E:07A5.0022/input/input47
[437744.365284] hid-generic 0003:045E:07A5.0022: input,hidraw0: USB HID v1.11 Keyboard [Microsoft Microsoft® 2.4GHz Transceiver v9.0] on usb-0000:00:1d.0-1.4/input0
[437744.369877] input: Microsoft Microsoft® 2.4GHz Transceiver v9.0 as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.1/0003:045E:07A5.0023/input/input48
[437744.370016] hid-generic 0003:045E:07A5.0023: input,hidraw1: USB HID v1.11 Mouse [Microsoft Microsoft® 2.4GHz Transceiver v9.0] on usb-0000:00:1d.0-1.4/input1
[437744.389238] input: Microsoft Microsoft® 2.4GHz Transceiver v9.0 as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.2/0003:045E:07A5.0024/input/input49
[437744.391328] hid-generic 0003:045E:07A5.0024: input,hidraw2: USB HID v1.11 Device [Microsoft Microsoft® 2.4GHz Transceiver v9.0] on usb-0000:00:1d.0-1.4/input2
[437763.788707] audit: type=1400 audit(1441003016.010:106): apparmor="DENIED" operation="open" profile="/usr/sbin/ntpd" name="/etc/hosts_files/hosts.mvps" pid=4855 comm="ntpd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[437768.859972] audit: type=1400 audit(1441003021.087:107): apparmor="DENIED" operation="open" profile="/usr/sbin/ntpd" name="/etc/hosts_files/hosts.mvps" pid=4855 comm="ntpd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[437773.948118] audit: type=1400 audit(1441003026.173:108): apparmor="DENIED" operation="open" profile="/usr/sbin/ntpd" name="/etc/hosts_files/hosts.mvps" pid=4855 comm="ntpd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[437774.016734] audit: type=1400 audit(1441003026.241:109): apparmor="DENIED" operation="open" profile="/usr/sbin/ntpd" name="/etc/hosts_files/hosts.mvps" pid=4855 comm="ntpd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[437779.140972] audit: type=1400 audit(1441003031.366:110): apparmor="DENIED" operation="open" profile="/usr/sbin/ntpd" name="/etc/hosts_files/hosts.mvps" pid=4855 comm="ntpd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0

我还应该查看哪些其他日志?我应该启用什么日志记录才能找到罪魁祸首?该命令xkbset q显示粘滞键的状态,理想情况下我会找到它从哪里获取信息,然后记录导致其发生变化的任何原因。这可能吗?

相关内容