星期五, 十二月 18, 2009

Linux 視窗切換, 鍵盤常常無法輸入任何字元 解法

自從升級到 Ubuntu Linux 9.10 後, 於 Alt-Tab (切換視窗) 後, 經常鍵盤會無法輸入任何字元(中文、英文), 但是可以繼續切換視窗.

通常就是要 Alt-1, Alt-2 切換到其它視窗去, 再切回來, 就可以輸入文字.(或 Alt-Tab 多切換幾次)

問題

看起來是 scim 造成的問題 - SCIM disturbs keyboard focus (不知道是不是 Ubuntu 9.10 的 iBus 造成的)

解法

  1. im-switch -s scim-bridge # 設到 scim-bridge 去即可. (我這樣子就解決了)
  2. 如果再不行就試試把 iBus 移掉看看. XD

到此就解決囉~

下述只是紀錄一些檢查的資訊筆記~

使用 im-switch 檢查

  • $ im-switch -l # 預設沒改的狀況(忘記先備份狀態, 在此拿另一台正常, 但是沒改過的來看)
    Your input method setup under zh_TW locale as below.
    =======================================================
    The configuration "/home/user/.xinput.d/zh_TW" is defined as a link pointing to
    scim-chewing
    This private configuration supersedes the system wide default.
    =======================================================
    The system wide default is pointed by "/etc/alternatives/xinput-zh_TW" .
    xinput-zh_TW - auto mode
     目前的連結是指向 ibus

    ibus - 優先權 60
    scim - 優先權 50
    scim-bridge - 優先權 60
    scim-chewing - 優先權 50
    scim-immodule - 優先權 0
    目前 `最佳' 的版本為 ibus。
    =======================================================
    The available input method configuration files are:
    default default-xim ibus none scim scim-bridge scim-chewing scim-immodule scim-pinyin th-xim
    =======================================================

改完後 im-switch 結果

  • $ im-switch -l
    Your input method setup under zh_TW locale as below.
    =======================================================
    No private "/home/user/.xinput.d/zh_TW or /home/user/.xinput.d/all_ALL" is defined.
    =======================================================
    The system wide default is pointed by "/etc/alternatives/xinput-zh_TW" .
    xinput-zh_TW - manual mode
     目前的連結是指向 scim

    ibus - 優先權 60
    scim - 優先權 50
    scim-bridge - 優先權 60
    scim-chewing - 優先權 50
    scim-immodule - 優先權 0
    目前 `最佳' 的版本為 ibus。
    =======================================================
    The available input method configuration files are:
    /usr/bin/find: ‘/home/user/.xinput.d’: 沒有此一檔案或目錄
    default default-xim ibus none scim scim-bridge scim-chewing scim-immodule th-xim
    =======================================================

update-alternatives xinput 結果

  • $ /usr/sbin/update-alternatives --display xinput-zh_TW
    xinput-zh_TW - manual mode
     目前的連結是指向 /etc/X11/xinit/xinput.d/scim

    /etc/X11/xinit/xinput.d/ibus - 優先權 60
    /etc/X11/xinit/xinput.d/scim - 優先權 50
    /etc/X11/xinit/xinput.d/scim-bridge - 優先權 60
    /etc/X11/xinit/xinput.d/scim-chewing - 優先權 50
    /etc/X11/xinit/xinput.d/scim-immodule - 優先權 0
    目前 `最佳' 的版本為 /etc/X11/xinit/xinput.d/ibus。

相關標籤

Add this page to del.icio.us

發表迴響

標題

內容 (限制 1000 字)

暱稱

電子郵件

個人網頁


 authimage


PS: 若無法留言, 請先確認是否有打開 JavaScript, 造成您的困擾, 實在萬分對不起 Orz...(如果無法留言, 勞煩可以發信給我好嗎? 謝謝.)
PS2: 若您的留言被誤判, 我都會再自行看過, 不需要一直重覆張貼~