当我使用多个工作区时,尤其是当我编写代码并且每个工作区都被某个进程占用时,并在包含 Google Chrome 的工作区和其他工作区之间切换时,Chrome 会随机停止接受我的键盘输入。每次发生这种情况时,让它再次检测到我的输入的唯一方法是重新启动它,有人能帮帮我吗?
答案1
与ibus有冲突
关闭 ibus:在“语言支持”(在 Ubuntu 的“偏好设置”下)中,将“键盘输入法系统”从 IBUS 切换为无
答案2
在 Ubuntu 17.10 中,我意外启用了“慢速键”,导致 Chrome 和 VirtualBox 无法响应。禁用“慢速键”对我的配置有效。
答案3
简短回答:使用此命令终止所有 chrome 活动进程:
ps -eopid,cmd | grep -i chrome | tr -s " " | cut -d " " -f 2 | xargs kill
今天我也遇到了这种情况。我不知道具体是什么问题,但是我发现即使我关闭了其他 chrome 进程,它仍然处于活动状态:
$ ps -eopid,cmd | grep chrome
3651 /opt/google/chrome/chrome http://www.tiobe.com/tiobe-index/
3662 /opt/google/chrome/chrome-sandbox /opt/google/chrome/chrome --type=zygote --enable-crash-reporter=e10f842f-2e3b-4773-9e66-7e0b7e03ff17,
3664 /opt/google/chrome/chrome --type=zygote --enable-crash-reporter=e10f842f-2e3b-4773-9e66-7e0b7e03ff17,
3666 /opt/google/chrome/chrome-sandbox /opt/google/chrome/nacl_helper
3668 /opt/google/chrome/nacl_helper
3670 /opt/google/chrome/chrome --type=zygote --enable-crash-reporter=e10f842f-2e3b-4773-9e66-7e0b7e03ff17,
3695 /opt/google/chrome/chrome --type=gpu-process --field-trial-handle=3127510087132043728,612135776437230997,131072 --enable-crash-reporter=e10f842f-2e3b-4773-9e66-7e0b7e03ff17, --gpu-preferences=KAAAAAAAAACAAACAAQAAAAAAAAAAAGAAAAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAA --service-request-channel-token=14003487884351161854
3725 /opt/google/chrome/chrome --type=-broker
3741 /opt/google/chrome/chrome --type=renderer --field-trial-handle=3127510087132043728,612135776437230997,131072 --service-pipe-token=13853926457551779350 --lang=pt-BR --enable-crash-reporter=e10f842f-2e3b-4773-9e66-7e0b7e03ff17, --enable-offline-auto-reload --enable-offline-auto-reload-visible-only --num-raster-threads=4 --enable-main-frame-before-activation --service-request-channel-token=13853926457551779350 --renderer-client-id=7 --no-v8-untrusted-code-mitigations --shared-files=v8_context_snapshot_data:100,v8_natives_data:101
3817 /opt/google/chrome/chrome --type=renderer --field-trial-handle=3127510087132043728,612135776437230997,131072 --service-pipe-token=4234779571667657876 --lang=pt-BR --enable-crash-reporter=e10f842f-2e3b-4773-9e66-7e0b7e03ff17, --extension-process --enable-offline-auto-reload --enable-offline-auto-reload-visible-only --num-raster-threads=4 --enable-main-frame-before-activation --service-request-channel-token=4234779571667657876 --renderer-client-id=3 --no-v8-untrusted-code-mitigations --shared-files=v8_context_snapshot_data:100,v8_natives_data:101
3845 /opt/google/chrome/chrome --type=renderer --field-trial-handle=3127510087132043728,612135776437230997,131072 --service-pipe-token=14130276234297054033 --lang=pt-BR --enable-crash-reporter=e10f842f-2e3b-4773-9e66-7e0b7e03ff17, --extension-process --enable-offline-auto-reload --enable-offline-auto-reload-visible-only --num-raster-threads=4 --enable-main-frame-before-activation --service-request-channel-token=14130276234297054033 --renderer-client-id=4 --no-v8-untrusted-code-mitigations --shared-files=v8_context_snapshot_data:100,v8_natives_data:101
6106 /opt/google/chrome/chrome --type=renderer --field-trial-handle=3127510087132043728,612135776437230997,131072 --service-pipe-token=1105491960801759215 --lang=pt-BR --enable-crash-reporter=e10f842f-2e3b-4773-9e66-7e0b7e03ff17, --enable-offline-auto-reload --enable-offline-auto-reload-visible-only --num-raster-threads=4 --enable-main-frame-before-activation --service-request-channel-token=1105491960801759215 --renderer-client-id=70 --no-v8-untrusted-code-mitigations --shared-files=v8_context_snapshot_data:100,v8_natives_data:101
6167 /opt/google/chrome/chrome --type=renderer --field-trial-handle=3127510087132043728,612135776437230997,131072 --service-pipe-token=18228045149230041600 --lang=pt-BR --enable-crash-reporter=e10f842f-2e3b-4773-9e66-7e0b7e03ff17, --enable-offline-auto-reload --enable-offline-auto-reload-visible-only --num-raster-threads=4 --enable-main-frame-before-activation --service-request-channel-token=18228045149230041600 --renderer-client-id=69 --no-v8-untrusted-code-mitigations --shared-files=v8_context_snapshot_data:100,v8_natives_data:101
6180 /opt/google/chrome/chrome --type=renderer --field-trial-handle=3127510087132043728,612135776437230997,131072 --service-pipe-token=7644340091502831181 --lang=pt-BR --enable-crash-reporter=e10f842f-2e3b-4773-9e66-7e0b7e03ff17, --enable-offline-auto-reload --enable-offline-auto-reload-visible-only --num-raster-threads=4 --enable-main-frame-before-activation --service-request-channel-token=7644340091502831181 --renderer-client-id=68 --no-v8-untrusted-code-mitigations --shared-files=v8_context_snapshot_data:100,v8_natives_data:101
6207 /opt/google/chrome/chrome --type=renderer --field-trial-handle=3127510087132043728,612135776437230997,131072 --service-pipe-token=3756294107921279265 --lang=pt-BR --enable-crash-reporter=e10f842f-2e3b-4773-9e66-7e0b7e03ff17, --enable-offline-auto-reload --enable-offline-auto-reload-visible-only --num-raster-threads=4 --enable-main-frame-before-activation --service-request-channel-token=3756294107921279265 --renderer-client-id=73 --no-v8-untrusted-code-mitigations --shared-files=v8_context_snapshot_data:100,v8_natives_data:101
6228 /opt/google/chrome/chrome --type=renderer --field-trial-handle=3127510087132043728,612135776437230997,131072 --service-pipe-token=9129535788251446015 --lang=pt-BR --enable-crash-reporter=e10f842f-2e3b-4773-9e66-7e0b7e03ff17, --enable-offline-auto-reload --enable-offline-auto-reload-visible-only --num-raster-threads=4 --enable-main-frame-before-activation --service-request-channel-token=9129535788251446015 --renderer-client-id=74 --no-v8-untrusted-code-mitigations --shared-files=v8_context_snapshot_data:100,v8_natives_data:101
6412 grep --color=auto chrome
终止所有进程后,它又开始工作了。