小编mpe*_*kov的帖子

包装温度高于阈值误报

我的 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)

lenovo overheating temperature

6
推荐指数
1
解决办法
6910
查看次数

Vim 禁用 ibus IME——这是一个错误吗?

我正在使用 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: 没有聚焦的输入上下文

这发生在以下条件下:

  1. 我进入插入模式
  2. 我插入了一些日语文本
  3. 我退出插入模式

如果我不通过 IME 输入任何日语文本,则不会引发异常。

我还注意到,如果在 IME 仍然启用的情况下输入一些日语文本后退出插入模式,则 IME 输入将被禁用(我可以看到任务栏中的图标发生了变化)。如果我在没有输入任何日语文本的情况下退出插入模式,但当 IME 仍然启用时,IME 将保持启用状态(图标不会改变)。在某些情况下,GVim 似乎正在禁用 IME(或 IME 正在关闭)。它可能与异常有关吗?

编辑我注意到这不会发生在命令行 Vim,只有 GVim。IME 仍然被禁用,但不会抛出上述异常。

我的问题是:

  1. 这是一个错误吗?如果是,那么它是谁的错误?Vim、Ibus 或其他什么?
  2. 有没有办法解决这个异常?

编辑

我的系统信息:

> misha@misha-lmd:~/git/iwait2013/lagos$ apt-cache policy ibus ibus:  
> Installed: …
Run Code Online (Sandbox Code Playgroud)

vim gvim ibus

5
推荐指数
1
解决办法
951
查看次数

Fluxbox:模糊的 TTF 字体

我正在使用fluxbox。我注意到 TTF 字体非常模糊(尤其是在 GVim 中):

这是一个示例,在 Fluxbox 中使用 Inconsolata 12pt:

在此处输入图片说明

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

在此处输入图片说明

您可以看到,在 Unity 案例中,文本不仅更易于阅读,而且还更大。字体颜色在fluxbox 情况下看起来也褪色了。我想问的是:

  1. 如何让 Fluxbox 下的字体看起来和 Unity 下的一样?看起来 Fluxbox 没有完全正确地获得字体大小并且做了过度的抗锯齿。
  2. 为什么字体以不同的大小呈现?我认为 12pt 应该在每个环境中(在相同的硬件上)看起来都一样。

我使用的是 LCD,所以我在 gnome-tweak-tool 下的字体设置是:

  • 提示:轻微
  • 抗锯齿:RGBA

这是我的 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 后问题解决。前:

在此处输入图片说明

后:

在此处输入图片说明

fonts fluxbox

3
推荐指数
1
解决办法
2087
查看次数

无法在 sudoers 中使用 :NOPASSWD

我有以下 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)

sudo

2
推荐指数
1
解决办法
2417
查看次数

标签 统计

fluxbox ×1

fonts ×1

gvim ×1

ibus ×1

lenovo ×1

overheating ×1

sudo ×1

temperature ×1

vim ×1