close

手邊的EeePC 1000安裝的系統的發行版是Debian。

核心是3.2.0-4-686-pae

因為鍵盤會連續發出“F10”的訊號給小筆電,在各種情形下都很不方便。

在露天拍賣買了一個全新的鍵盤,還附帶保固

在自己把新鍵盤裝上後,並不太確定新鍵盤的狀況如何。

想測試新鍵盤,但是測試軟體多半是為了Windows寫的。

Google了“鍵盤測試”,“linux”,的確有人寫了個script來側錄鍵盤事件。

但重新Google了“keyboard test linux”,得到了更好的答案。

(http://www.linuxforums.org/forum/miscellaneous/6173-how-do-i-find-keycode.html)

只要在Xterm的指令列中輸入“xev”就會跳出一個視窗。

同時在指令列紀錄鍵盤事件(包含按下及釋放),以及在新視窗中的人滑鼠事件。

下面是man xev的部分內容:

       Xev creates a window and then asks the X server to send it events when‐
       ever anything happens to the window (such as it being  moved,  resized,
       typed  in,  clicked  in,  etc.).  You can also attach it to an existing
       window.  It is useful for seeing what causes events  to  occur  and  to
       display  the  information that they contain; it is essentially a debug‐
       ging and development tool, and should not be needed in normal usage.

真是太厲害了。掌聲鼓勵!

arrow
arrow
    創作者介紹
    創作者 Jia-Yang 的頭像
    Jia-Yang

    Jia-Yang的部落格

    Jia-Yang 發表在 痞客邦 留言(0) 人氣()