我注意到,redshift
在装有 Linux Mint 21.3 的机器上,该功能不再起作用。我确信大约半年前它仍在运行(尽管在 Linux Mint 21.2 下可能如此)。尝试调试它时,我发现问题一定出在geoclue
:
$ redshift
Trying location provider `geoclue2'...
Using provider `geoclue2'.
Could not connect to wayland display, exiting.
Failed to start adjustment method wayland.
Trying next method...
Using method `randr'.
Waiting for initial location to become available...
^Cpoll: Interrupted system call
Unable to get location from provider.
(我不知道为什么它谈到了 Wayland,它不是一个 Wayland 会话。)
/usr/libexec/geoclue-2.0/demos/where-am-i
从包执行geoclue-2-demo
一段时间后就会超时,没有任何输出或错误。(有时它确实会产生一些关于缺少某些内容的错误消息,但我无法可靠地重现它。)
状态如下geoclue.service
:
$ systemctl status geoclue.service | cat
● geoclue.service - Location Lookup Service
Loaded: loaded (/lib/systemd/system/geoclue.service; static)
Active: active (running) since Sat 2024-06-15 13:53:51 CEST; 7min ago
Main PID: 2434 (geoclue)
Tasks: 4 (limit: 18810)
Memory: 19.1M
CPU: 424ms
CGroup: /system.slice/geoclue.service
└─2434 /usr/libexec/geoclue
Jun 15 13:53:51 Alexey-InfinityBook-Mint systemd[1]: Started Location Lookup Service.
Jun 15 13:54:12 Alexey-InfinityBook-Mint geoclue[2434]: Failed to query location: Not Found
Jun 15 13:54:17 Alexey-InfinityBook-Mint geoclue[2434]: Failed to query location: Not Found
[...]
谷歌搜索“geoclue.service 查询位置未找到失败”并未在搜索结果顶部返回任何相关信息。
我在 LMDE 6 (Linux Mint Debian 版本) 下遇到了同样的问题(至少看起来一样)。
任何帮助将不胜感激。