我知道我可以向用户发送一条通知,该通知将出现在屏幕右上角并自行消失,如下所示:
notify-send "Device detected correctly"
gnome-terminal
但是,这仅在我在图形环境中运行时才有效。
我想从守护进程发送通知。它以不同的用户身份运行,并由 systemd 启动。我怎样才能做到这一点?
我知道我可以向用户发送一条通知,该通知将出现在屏幕右上角并自行消失,如下所示:
notify-send "Device detected correctly"
gnome-terminal
但是,这仅在我在图形环境中运行时才有效。
我想从守护进程发送通知。它以不同的用户身份运行,并由 systemd 启动。我怎样才能做到这一点?
昨天我像往常一样安装了一些更新,我注意到有一个新的内核版本和一个新版本的 nvidia 驱动程序。今天,登录屏幕的分辨率非常低,重新启动没有帮助。输入密码后,系统日志中会显示以下内容,几秒钟后我会返回登录屏幕。
Nov 12 21:35:02 Kalle-PC lightdm: pam_ecryptfs: pam_sm_authenticate: /home/kalle is already mounted
Nov 12 21:35:02 Kalle-PC org.gtk.vfs.Daemon[4431]: A connection to the bus can't be made
Nov 12 21:35:02 Kalle-PC systemd[1]: Started Session c13 of user kalle.
Nov 12 21:35:03 Kalle-PC org.ayatana.bamf[4647]: bamfdaemon start/running, process 4702
Nov 12 21:35:04 Kalle-PC org.a11y.atspi.Registry[4799]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Nov 12 21:35:04 Kalle-PC dbus[933]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'
Nov 12 21:35:04 Kalle-PC systemd[1]: Started CUPS Scheduler.
Nov 12 21:35:04 Kalle-PC gnome-session[4788]: X Error of failed request: BadValue (integer parameter out of range for operation)
Nov 12 21:35:04 Kalle-PC gnome-session[4788]: Major opcode of failed request: 154 (GLX)
Nov 12 21:35:04 Kalle-PC gnome-session[4788]: Minor opcode of failed request: 3 (X_GLXCreateContext)
Nov 12 21:35:04 Kalle-PC gnome-session[4788]: Value in failed request: 0x0
Nov 12 21:35:04 Kalle-PC gnome-session[4788]: Serial number of failed request: 26
Nov 12 21:35:04 Kalle-PC gnome-session[4788]: Current serial number in output stream: 27
Nov 12 21:35:04 Kalle-PC gnome-session[4788]: gnome-session-check-accelerated: Helper exited with code 256
Nov 12 21:35:04 Kalle-PC gnome-session[4788]: gnome-session-binary[4788]: CRITICAL: We failed, but the fail whale is dead. Sorry....
Nov 12 21:35:04 Kalle-PC gnome-session-binary[4788]: CRITICAL: We failed, but the fail whale is dead. Sorry....
Nov 12 21:35:04 Kalle-PC lightdm[1090]: ** (lightdm:1090): CRITICAL **: session_get_login1_session_id: assertion 'session != NULL' failed
Nov 12 21:35:06 Kalle-PC acpid: client 4411[0:0] has disconnected
Nov 12 21:35:06 Kalle-PC acpid: client connected from 4936[0:0]
Nov 12 21:35:06 Kalle-PC acpid: 1 client rule loaded
Nov 12 21:35:06 Kalle-PC systemd[1]: Started Session c14 of user lightdm.
Nov 12 21:35:06 Kalle-PC org.a11y.atspi.Registry[4972]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
我已经尝试过apt-get purge nvidia-*
然后apt-get install nvidia-current
重新启动。这修复了分辨率,但我遇到了登录错误。
有没有人可能对正在发生的事情有所了解?
我刚买了预装了 Ubuntu 的新笔记本电脑,超级键无法打开破折号。我已经安装了compizconfig-settings-manager
,我可以在其中分配一个组合键,例如Super+ X,但它不会让我自己分配Super键。
我怎样才能让超级键再次工作?