Bug 497099 - "The service will be used", asked to file a bug
Summary: "The service will be used", asked to file a bug
Status: RESOLVED DOWNSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_nighttime (other bugs)
Version First Reported In: 6.2.4
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 511532 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-12-05 20:09 UTC by Ilya Bizyaev
Modified: 2025-11-11 11:08 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot (128.61 KB, image/png)
2024-12-14 18:01 UTC, Ilya Bizyaev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Bizyaev 2024-12-05 20:09:38 UTC
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
Comment 1 Nate Graham 2024-12-13 20:40:06 UTC
Lol what? Where exactly do you see this? Can you attach a screenshot?
Comment 2 Ilya Bizyaev 2024-12-14 18:01:23 UTC
Created attachment 176609 [details]
Screenshot
Comment 3 Nate Graham 2024-12-17 18:00:48 UTC
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.
Comment 4 Ilya Bizyaev 2024-12-22 17:31:20 UTC
It seems to work fine, I get Night Light enabled at the right time
Comment 5 Nate Graham 2025-01-09 16:07:54 UTC
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.
Comment 6 postix 2025-11-10 17:35:10 UTC
*** Bug 511532 has been marked as a duplicate of this bug. ***
Comment 7 Vlad Zahorodnii 2025-11-10 17:43:40 UTC
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?
Comment 8 postix 2025-11-10 18:02:31 UTC
> 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.
Comment 9 Christian Hartmann 2025-11-10 19:04:46 UTC
> 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
Comment 10 Christian Hartmann 2025-11-11 07:38:03 UTC
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).
Comment 11 Vlad Zahorodnii 2025-11-11 08:09:46 UTC
(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?
Comment 12 Vlad Zahorodnii 2025-11-11 08:10:04 UTC
The exact executable location*
Comment 13 Christian Hartmann 2025-11-11 08:21:56 UTC
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
Comment 14 Vlad Zahorodnii 2025-11-11 08:33:19 UTC
(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.
Comment 15 Vlad Zahorodnii 2025-11-11 08:50:00 UTC
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.
Comment 16 Ilya Bizyaev 2025-11-11 09:50:09 UTC
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.
Comment 17 Ilya Bizyaev 2025-11-11 10:51:10 UTC
Filed https://bugzilla.opensuse.org/show_bug.cgi?id=1253244 to track in openSUSE
Comment 18 Christian Hartmann 2025-11-11 11:08:28 UTC
(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!