检查是否indicator-power-service
正在运行:
ps ax | grep indicator-power
如果它正在运行,请尝试重置其设置,然后重新启动它:
dconf reset -f /com/canonical/indicator/power/
pkill -f indicator-power-service
没有成功,找到它,然后从终端尝试(寻找输出中的任何错误):
sudo updatedb; locate -r indicator-power-service$
我的系统是64位的,所以:
/usr/lib/x86_64-linux-gnu/indicator-power/indicator-power-service
如果它与命令一起使用,则其自动启动有些问题。
经检查,它没有在启动时运行。验证是否存在:
/usr/share/upstart/sessions/indicator-power.conf
description "Indicator Power Backend"
# Want to move to indicator-services-[start|end], but that's not all
# there yet. Use the signals that exist today for now.
start on indicators-loaded or indicator-services-start
stop on desktop-end or indicator-services-end
respawn
exec /usr/lib/x86_64-linux-gnu/indicator-power/indicator-power-service
/etc/xdg/autostart/indicator-power.desktop
[Desktop Entry]
Type=Application
Name=Indicator Power
Exec=/usr/lib/x86_64-linux-gnu/indicator-power/indicator-power-service
NotShowIn=Unity;
NoDisplay=true
StartupNotify=false
Terminal=false
这对我来说适用于全新的Ubuntu 14.04,indicator-power.desktop
类似于其他指标的自动启动条件修改。(已提交的错误报告 lp#1330302)
sudo nano /etc/xdg/autostart/indicator-power.desktop
去掉:
NotShowIn=Unity;
替换为:
OnlyShowIn=Unity;XFCE;GNOME;
AutostartCondition=GNOME3 unless-session gnome
注销/登录
gsettings get com.canonical.indicator.power icon-policy
什么?它应该是“存在”。如果不是,那么问题是为什么它与设置GUI不匹配。