我关注了教程在 Unity 上设置亮度指示器。但是当我运行
sudo /opt/indicator-brightness/indicator-brightness.py
来自终端的命令,我得到
(indicator-brightness.py:1734): Gtk-WARNING **: Impossible to find the theme engine in module_path : « pixmap »
Traceback (most recent call last):
File "/opt/indicator-brightness/indicator-brightness.py", line 78, in <module>
create_menu(ind)
File "/opt/indicator-brightness/indicator-brightness.py", line 46, in create_menu
curr_brightness = get_curr_brightness()
File "/opt/indicator-brightness/indicator-brightness.py", line 33, in get_curr_brightness
curr_brightness = int(p.communicate()[0])
ValueError: invalid literal for int() with base 10: 'No backlights were found on your system\n'
。
欢迎任何建议。
答案1
该教程链接到互联网上的一些随机 deb(您不应该相信这样的帖子),因此 deb 很可能已经过时了。
尝试从开发者的 PPA看看是否仍然出现错误。如果仍然出现错误,则需要向亮度指示器开发人员提交该页面上的错误报告,以便他们查看是否是代码问题。
答案2
这个命令对我有用。我太懒了,不想安装东西。希望这能有所帮助。
sudo setpci -s 00:02.0 F4.B=50