我的 kern.log 每 5 分钟就有这样一段歌舞:
Sep 10 20:56:41 cabron kernel: [99978.849080] CPU6: Core temperature/speed normal
Sep 10 20:56:41 cabron kernel: [99978.849081] CPU4: Package temperature/speed normal
Sep 10 20:56:41 cabron kernel: [99978.849082] CPU0: Package temperature/speed normal
Sep 10 20:56:41 cabron kernel: [99978.849082] CPU2: Core temperature/speed normal
Sep 10 20:56:41 cabron kernel: [99978.849083] CPU2: Package temperature/speed normal
Sep 10 20:56:41 cabron kernel: [99978.849083] CPU6: Package temperature/speed normal
Sep 10 20:56:41 cabron kernel: [99978.849118] CPU7: Package temperature/speed normal
Sep 10 20:56:41 cabron kernel: …Run Code Online (Sandbox Code Playgroud) 我正在使用 ibus IME 将日语文本输入到 GVim。当 GVim 启动时,我有以下 Vim 脚本:
autocmd InsertLeave * :call bug#onInsertLeave()
function! bug#onInsertLeave()
python << EOT
import vim
import ibus
bus = ibus.Bus()
ic = ibus.InputContext(bus, bus.current_input_contxt())
ic.disable()
print "bug#onInsertLeave(): exiting"
EOT
endfunction
Run Code Online (Sandbox Code Playgroud)
构造 InputContext 的行引发异常:
dbus.exception.DBusException: org.freedesktop.DBus.Error.Failed: 没有聚焦的输入上下文
这发生在以下条件下:
如果我不通过 IME 输入任何日语文本,则不会引发异常。
我还注意到,如果在 IME 仍然启用的情况下输入一些日语文本后退出插入模式,则 IME 输入将被禁用(我可以看到任务栏中的图标发生了变化)。如果我在没有输入任何日语文本的情况下退出插入模式,但当 IME 仍然启用时,IME 将保持启用状态(图标不会改变)。在某些情况下,GVim 似乎正在禁用 IME(或 IME 正在关闭)。它可能与异常有关吗?
编辑我注意到这不会发生在命令行 Vim,只有 GVim。IME 仍然被禁用,但不会抛出上述异常。
我的问题是:
编辑
我的系统信息:
> misha@misha-lmd:~/git/iwait2013/lagos$ apt-cache policy ibus ibus:
> Installed: …Run Code Online (Sandbox Code Playgroud) 我正在使用fluxbox。我注意到 TTF 字体非常模糊(尤其是在 GVim 中):
这是一个示例,在 Fluxbox 中使用 Inconsolata 12pt:

这是相同的示例,使用 Inconsolata 12pt,但在 Unity 中除外:

您可以看到,在 Unity 案例中,文本不仅更易于阅读,而且还更大。字体颜色在fluxbox 情况下看起来也褪色了。我想问的是:
我使用的是 LCD,所以我在 gnome-tweak-tool 下的字体设置是:
这是我的 DPI 设置(在 Fluxbox 和 Unity 下相同):
misha@misha-lmd:~$ xdpyinfo | grep -B2 resolution
screen #0:
dimensions: 1280x1024 pixels (382x302 millimeters)
resolution: 85x86 dots per inch
Run Code Online (Sandbox Code Playgroud)
编辑
编辑 .Xresources 后问题解决。前:

后:

我有以下 sudoers 文件:
misha@misha-K42Jr:~$ sudo cat /etc/sudoers
[sudo] password for misha:
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# …Run Code Online (Sandbox Code Playgroud)