![登录时黑屏 12.04.3](https://linux22.com/image/841545/%E7%99%BB%E5%BD%95%E6%97%B6%E9%BB%91%E5%B1%8F%2012.04.3.png)
我最近安装了新版的 Ubuntu 12.04.3 Desktop。在登录屏幕上,除了鼠标光标和左上角闪烁的下划线外,其他都是黑色的。我可以听到 Ubuntu 启动鼓声,只需输入密码即可进入桌面。
我注意到这种情况在安装后大约第四次或第五次重启后开始发生。
$ awk '/CRITICAL/ || /WARNING/' /var/log/lightdm/x-0-greeter.log
** (at-spi2-registryd:2210): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
** (at-spi2-registryd:2210): WARNING **: Unable to register client with session manager
[+0.14s] CRITICAL: g_error_free: assertion `error != NULL' failed
[+0.17s] WARNING: IndicatorObject class does not have an accessible description.
[+0.21s] WARNING: IndicatorObject class does not have an accessible description.
[+0.56s] WARNING: invalid cast from `GtkMenuItem' to `IndicatorMenuItem'
[+0.56s] WARNING: invalid cast from `GtkMenuItem' to `IndicatorMenuItem'
[+0.56s] WARNING: invalid cast from `GtkMenuItem' to `IndicatorMenuItem'
[+0.56s] WARNING: menubar.vala:561: Indicator object 0x83bde8 not in menubar
[+0.56s] WARNING: Getting layout failed: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface `com.canonical.dbusmenu' on object at path /com/canonical/indicator/users/menu
[+0.80s] CRITICAL: ido_calendar_menu_item_set_date: assertion `IDO_IS_CALENDAR_MENU_ITEM(menuitem)' failed
我无法理解这些错误。
我的显卡是集成 Haswell CPU 的 Intel HD 4600。
$ sudo lightdm --test-mode
Failed to use bus name org.freedesktop.DisplayManager, do you have appropriate permissions?
经过观察,/etc/dbus-1/system.d/org.freedesktop.DisplayManager.conf
我发现:
<!-- Only root can own the service -->
<policy user="root">
<allow own="org.freedesktop.DisplayManager"/>
<allow send_destination="org.freedesktop.DisplayManager" send_interface="org.freedesktop.DisplayManager" send_member="AddSeat"/>
</policy>
这是怎么回事?Root 拥有该服务,但当我以 root 身份访问时,系统会询问我是否具有适当的权限。
答案1
apt-get purge nvidia-prime
这帮我解决了问题。然后我注册了 bumblebee ppa 并手动安装 bumblebee。