[root@localhost ~]# yum search keyboard
已加載插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile* base: mirrors.aliyun.com* extras: mirrors.aliyun.com* updates: mirrors.aliyun.com
============================================================================================== N/S matched: keyboard ==============================================================================================
system-config-keyboard.noarch : A graphical interface for modifying the keyboard
system-config-keyboard-base.noarch : system-config-keyboard base components
xkeyboard-config.noarch : X Keyboard Extension configuration data
xkeyboard-config-devel.noarch : Development files for xkeyboard-config
xorg-x11-drv-keyboard.x86_64 : Xorg X11 keyboard input driver
caribou.i686 : A simplified in-place on-screen keyboard
caribou.x86_64 : A simplified in-place on-screen keyboard
caribou-antler.x86_64 : Keyboard implementation for caribou
gnome-shell-extension-windowsNavigator.noarch : Support for keyboard selection of windows and workspaces in GNOME Shell
iok.x86_64 : Indic Onscreen Virtual Keyboard
kbd.x86_64 : Tools for configuring the console (keyboard, virtual terminals, etc.)
keybinder3.i686 : A library for registering global keyboard shortcuts
keybinder3.x86_64 : A library for registering global keyboard shortcuts
langtable.noarch : Guessing reasonable defaults for locale, keyboard layout, territory, and language.
libgnomekbd.i686 : A keyboard configuration library
libgnomekbd.x86_64 : A keyboard configuration library
libxklavier.i686 : High-level API for X Keyboard Extension
libxklavier.x86_64 : High-level API for X Keyboard Extension
python2-caribou.noarch : Keyboard UI for caribou
從搜索信息看,caribou包是與屏幕鍵盤相關(guān)的,用yum info caribou命令查看該包是已經(jīng)安裝了的。卸載該包是發(fā)現(xiàn)因?yàn)閳D形界面相關(guān)包依賴于caribou,卸載該軟件包會(huì)導(dǎo)致圖形界面相關(guān)軟件也被卸載,故此法不可行。 從google上檢索了下,并沒有必要卸載對應(yīng)軟件包,只需禁用其開機(jī)啟動(dòng)即可。查看caribou軟件包的自啟動(dòng)文件為 /etc/xdg/autostart/caribou-autostart.desktop,將這個(gè)文件刪除后,重啟系統(tǒng),屏幕鍵盤依舊會(huì)彈出。 禁用caribou開機(jī)自啟后,從進(jìn)程信息中并不能查看到caribou相關(guān)進(jìn)程了,分析屏幕鍵盤與它無關(guān)。接下來用top命令查看進(jìn)程資源占用信息,觸發(fā)屏幕鍵盤后,重復(fù)快速點(diǎn)擊虛擬鍵盤的按鍵,能明顯看到gnome-shell進(jìn)程的CPU資源占用明顯升高,因此,屏幕鍵盤是由gnome-shell程序生成控制的。gnome-shell軟件包就龐大多了,它是窗口管理器、應(yīng)用啟動(dòng)器、桌面布局的集合,想卸載它除非不用桌面環(huán)境了。 繼續(xù)檢索吧,查到一個(gè)可行的方案,就是改gnome-shell包的源碼,重新編譯gnome-shell軟件包,或者給gnome-shell添加擴(kuò)展插件。