我在 Ubuntu 17.04 上使用 Gnome,但无法使用 gdm3。使用 nvidia Optimus 显卡和 Prime Sync 时,桌面会话无法启动。这是 gdm3 错误地尝试启动 Wayland 造成的错误。因此我使用 lightdm。一切都很好,但我的屏幕无法进入省电模式。我认为 gnome 需要 gdm3 才能正常工作。
我已经安装了 light-locker。但是我无法保存设置。如果我在 shell 中运行 light-locker-settings:
我会报告错误,但我不能孤单一人......
tim@raffles:~$ light-locker-settings
/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py:29: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk, GLib, Gio
Traceback (most recent call last):
File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 176, in apply_cb
self.apply_settings()
File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 629, in apply_settings
self.apply_screen_blank_settings(settings)
File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 691, in apply_screen_blank_settings
keyfile = self.get_screensaver_autostart()
File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 400, in get_screensaver_autostart
self.get_autostart('screensaver-settings.desktop', defaults)
File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 358, in get_autostart
GLib.KeyFileFlags.KEEP_TRANSLATIONS)
GLib.Error: g-key-file-error-quark: Valid key file could not be found in search dirs (2)