SUMMARY A label in the Night Light KCM states: "The service will be used to periodically update the device's location. Please open a bug report at https://bugs.kde.org asking KDE developers to write a detailed description of what this service will do." STEPS TO REPRODUCE 1. Open the Night Light KCM 2. Set "Switching times" to "Sunset and sunrise at current location" OBSERVED RESULT Asked to file a bug EXPECTED RESULT Some non-empty service name with a description SOFTWARE/OS VERSIONS Operating System: openSUSE Tumbleweed 20241129 KDE Plasma Version: 6.2.4 KDE Frameworks Version: 6.8.0 Qt Version: 6.8.0 Kernel Version: 6.11.8-1-default (64-bit) Graphics Platform: Wayland ADDITIONAL INFORMATION
Lol what? Where exactly do you see this? Can you attach a screenshot?
Created attachment 176609 [details] Screenshot
Ok, so looks like I wrote this code! text: automaticLocationProvider.name === "geoclue2" ? xi18nc("@info", "The <application>GeoClue2</application> service will be used to periodically update the device's location using GPS or cell tower triangulation if available, or else by sending its IP address to <link url='https://geoip.com/privacy/'>GeoIP</link>.") : xi18nc("@info", "The <application>%1</application> service will be used to periodically update the device's location. Please open a bug report at <link url='https://bugs.kde.org'>https://bugs.kde.org</link> asking KDE developers to write a detailed description of what this service will do.", automaticLocationProvider.name) so apparently the location provider on your system isn't geoclue, and it's also blank so we don't know what it is and therefore can't figure out what it does to write a better description. Does automatic location work on your system? If not, then it sounds like geolocation is broken, and the bug is that the KCM doesn't notice this and prevent you from using that setting.
It seems to work fine, I get Night Light enabled at the right time
This is closely related to the conclusion that Ismael reached in https://bugs.kde.org/show_bug.cgi?id=493699#c14. Seems the KCM is making some assumptions that aren't valid anymore with the way distros have adapted to Mozilla Location Services' retirement.
*** Bug 511532 has been marked as a duplicate of this bug. ***
Maybe the issue is not with geoclue but with the way qtpositioning is packaged(In reply to Ilya Bizyaev from comment #4) > It seems to work fine, I get Night Light enabled at the right time Does the map in the day-night cycle kcm display the correct position?
> It seems to work fine, I get Night Light enabled at the right time For me too. > Does the map in the day-night cycle kcm display the correct position? It does not for me, it picks always a default location, where the times are 6 am and 6 pm.
> Does the map in the day-night cycle kcm display the correct position? No, also a default position with 6 am to 6 pm. I'll do a test with the automatic setting and see if it switches at the correct time tomorrow
I've tried to reproduce it by setting the time manually and the switch between dark/light mode happened at around 6:30 am instead of 07:48 am (sunrise was at 7:18 am today).
(In reply to Christian Hartmann from comment #9) > > Does the map in the day-night cycle kcm display the correct position? > > No, also a default position with 6 am to 6 pm. I'll do a test with the > automatic setting and see if it switches at the correct time tomorrow Huh, can you run `/usr/lib/geoclue-2.0/demos/where-am-i`? The exact location may differ depending on distro conventions, this demo should come with geoclue. Does where-am-i display reasonable coordinates?
The exact executable location*
The where-am-i demo outputs the coords for Frankfurt/Main which is more to the west than my actual location, so sunrise is even later
(In reply to Christian Hartmann from comment #13) > The where-am-i demo outputs the coords for Frankfurt/Main which is more to > the west than my actual location, so sunrise is even later So it still reports valid coordinates. So there must be something with qtpositioning or something then.
For me, where-am-i doesn't work in a virtual machine. It fails to connect to GeoClue2 even though it's running. It'll be great if openSUSE folks could weigh in because it looks like a distro setup issue so far.
The issue appears to be that qt6-positioning is not installed, only libQt6Positioning6: $ rpm -ql qt6-positioning /usr/lib64/qt6/plugins/position /usr/lib64/qt6/plugins/position/libqtposition_geoclue2.so /usr/lib64/qt6/plugins/position/libqtposition_nmea.so /usr/lib64/qt6/plugins/position/libqtposition_positionpoll.so With qt6-positioning installed, kcm_nighttime works as expected.
Filed https://bugzilla.opensuse.org/show_bug.cgi?id=1253244 to track in openSUSE
(In reply to Ilya Bizyaev from comment #16) > With qt6-positioning installed, kcm_nighttime works as expected. I can confirm that this fixes the problem for me, too. Thanks!