[systemsettings] [Bug 493699] Night Light does not identify GPS location when using GeoClue locator backend

2024-12-28 Thread Ismael Asensio
https://bugs.kde.org/show_bug.cgi?id=493699

Ismael Asensio  changed:

   What|Removed |Added

 CC||isma...@gmail.com

--- Comment #14 from Ismael Asensio  ---
I've been researching a bit on the topic, since I've been also affected by this
issue (Kubuntu 24.10 base, Qt 6.8.1, KDE master).

After the downfall of Mozilla Location Service (MLS) (in which most FOSS
location services were based on). Since then, we've moved to QtPositioning,
which for our use case, acts mostly a layer on top of geoclue. At the same
time, geoclue moved from using MLS as a default provider based on Wi-Fi
networks to no default service
(https://gitlab.freedesktop.org/geoclue/geoclue/-/merge_requests/184). 

This means that the issue is a bad configuration of GeoClue's settings, which
is now mostly up to the distribution: arch opted to use the Google services
with a custom API key
(https://gitlab.archlinux.org/archlinux/packaging/packages/geoclue/-/commit/561b66e7e965f5a2e9f5b0597367243d43bbfa0f),
while others such as NixOs (https://github.com/NixOS/nixpkgs/issues/321121) are
leaning into beaconDB (https://beacondb.net/). The version on my system
(Kubuntu 24.10) stills point to the Mozilla services, which explain why it
fails.

>From a user POV, as a workaround, one can restore the functionality by editing
the `/etc/geoclue/geoclue.conf` file, for example with this (or a different
provider url):
[wifi]
enable=true
url=https://api.beacondb.net/v1/geolocate

I also had to enable the location service access using `gsettings set
org.gnome.system.location enabled true`. 

On our KDE side, I think we need to improve the integration with the geoclue
service (as we are going to increasingly use it), so we can let the users set
or at least know about the settings, and the error state to show in the UI. I
still haven't been able to get an error message or even a state change from
QtPositioning when the service is failing.

Also, it is no longer true that geoclue uses GeoIP for the location
(https://gitlab.freedesktop.org/geoclue/geoclue/-/merge_requests/184/diffs?commit_id=6ec21c1e9e6b82ae0ea629ccc0acdd5c088e487b).
We should update this info on the KCM, ideally with the actual provider the
user's sending packages to.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 493699] Night Light does not identify GPS location when using GeoClue locator backend

2024-12-20 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=493699

Nate Graham  changed:

   What|Removed |Added

Summary|Night Light does not|Night Light does not
   |identify GPS location   |identify GPS location when
   ||using GeoClue locator
   ||backend

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 493699] Night Light does not identify GPS location

2024-12-19 Thread Ivan Garcia
https://bugs.kde.org/show_bug.cgi?id=493699

Ivan Garcia  changed:

   What|Removed |Added

 CC||igar...@cloudox.org

--- Comment #13 from Ivan Garcia  ---
Hello!

same as everybody else. My nightlight also cannot locate my location; geoclue2
is installed and my system is up to date.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 493699] Night Light does not identify GPS location

2024-11-28 Thread José Rafael
https://bugs.kde.org/show_bug.cgi?id=493699

--- Comment #12 from José Rafael  ---
On my PC with Fedora KDE Spin version 41, the GPS night light geolocation still
doesn't work with the Plasma 6.2.4 update.
However, on my other laptop using Fedora Atomic Kinoite 41 with KDE Plasma
6.2.4, the gps is working normally.

Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.11.8-300.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-4200U CPU @ 1.60GHz
Memory: 7.7 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4400

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 493699] Night Light does not identify GPS location

2024-11-21 Thread Aranjedeath
https://bugs.kde.org/show_bug.cgi?id=493699

Aranjedeath  changed:

   What|Removed |Added

 CC||orangewi...@gmail.com

--- Comment #11 from Aranjedeath  ---
My nightlight also cannot locate my location; geoclue2 is installed. I am on
KDE NEON user edition not fedora.

running kcm on CLI gives:

qml: Page SubCategoryPage_QMLTYPE_105(0x62d4c3883b10) is already in the PageRow
qml: Pushed pages do not conform to the rules. Please check the documentation.
qml: push
(file:///usr/lib/x86_64-linux-gnu/qt6/qml/org/kde/kirigami/PageRow.qml:223)
onActiveSubCategoryRowChanged
(qrc:/qt/qml/org/kde/systemsettings/SubCategoryPage.qml:180)
qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0


querying journalctl --reverse after produces:

Nov 21 14:52:54 tsubaki geoclue[1702]: Failed to query location: Query location
SOUP error: Not Found

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 493699] Night Light does not identify GPS location

2024-11-21 Thread TraceyC
https://bugs.kde.org/show_bug.cgi?id=493699

TraceyC  changed:

   What|Removed |Added

 Resolution|WAITINGFORINFO  |---
 Status|NEEDSINFO   |CONFIRMED

--- Comment #10 from TraceyC  ---
On my regular Plasma install with 6.2.3 I see
❯ pgrep -fla geoc
2870 /usr/lib64/geoclue/geoclue-2.0/demos/agent

On git-master, I don't see any geoclue service running

The location service isn't working on either, so the agent seems like a
separate but related problem.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 493699] Night Light does not identify GPS location

2024-11-21 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=493699

Nate Graham  changed:

   What|Removed |Added

 Resolution|--- |WAITINGFORINFO
 Status|CONFIRMED   |NEEDSINFO

--- Comment #9 from Nate Graham  ---
> qt.positioning.geoclue2: Unable to obtain the client: 
> "org.freedesktop.DBus.Error.ServiceUnknown" "The name is not activatable"

This seems to imply that it's failing to communicate with geoclue, which is the
geolocating service. On my system where it works, I see
/usr/libexec/geoclue-2.0/demos/agent running. Is it not running on your system
where it's broken?

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 493699] Night Light does not identify GPS location

2024-11-21 Thread TraceyC
https://bugs.kde.org/show_bug.cgi?id=493699

--- Comment #8 from TraceyC  ---
Upstream related bug https://codereview.qt-project.org/c/qt/qtlocation/+/604697

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 493699] Night Light does not identify GPS location

2024-11-20 Thread TraceyC
https://bugs.kde.org/show_bug.cgi?id=493699

TraceyC  changed:

   What|Removed |Added

 Status|REOPENED|CONFIRMED
 CC||kde...@tlcnet.info

--- Comment #7 from TraceyC  ---
I am able to reproduce this on git-master, fully rebuilt with kde-builder
workspace and restarted

Night Light does not retrieve the current location, causing it to use Lat: 0
Long: 0 as the location. This causes Night Light to turn on and off at the
wrong times.

STEPS TO REPRODUCE
1. Set Night Light to Sunset and sunrise at current location, Apply

OBSERVED RESULT
The status animation under "Locating..." stays animated until some timeout is
reached
The current location is not detected
Night light turns night mode on at the wrong time, even though GeoIP.com
correctly detects my location based on the machine's IP. 
After some time, the current location shown in the kcm is Lat: 0 Long: 0


EXPECTED RESULT
Location is detected

Additional note:
If the location lookup fails, there should be an error presented to the user to
let them know what happened and what steps, if any, they can take

SOFTWARE/OS VERSIONS - reproduced on
git-master (re-ran kde-builder workspace)

also on
KDE Neon (Uses GeoClue2, no animation representing location query)
KDE Neon Testing
Kubuntu (still says its using Mozilla Location Service - which returns US as my
country, verified by clicking the link) - one older VM, one freshly installed
VM

also on
Operating System: Solus 4.6
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.7.3
Kernel Version: 6.11.7-309.current (64-bit)
Graphics Platform: Wayland


ADDITIONAL INFORMATION
geoip.com correctly detects my machine's IP address and location based on that
Another user that has Solus Plasma sees the same issue (located in Canada, we
are both in Central Time)

>From git-master:
 ~  systemsettings kcm_nightlight  
qml: Pushed pages do not conform to the rules. Please check the documentation.
qt.positioning.geoclue2: Unable to obtain the client:
"org.freedesktop.DBus.Error.ServiceUnknown" "The name is not activatable"


I'm wondering if queries to the APIs fail from certain locations but not
others?

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 493699] Night Light does not identify GPS location

2024-10-13 Thread José Rafael
https://bugs.kde.org/show_bug.cgi?id=493699

José Rafael  changed:

   What|Removed |Added

 Resolution|WAITINGFORINFO  |---
 Status|NEEDSINFO   |REOPENED
 Ever confirmed|0   |1
Version|6.1.90  |6.2.0

--- Comment #6 from José Rafael  ---
My main laptop using Fedora SPIN KDE also still can't locate the GPS with GeoIP
(GeoClue2) which also keeps locating forever with no response. 

➜  ~ systemsettings kcm_nightlight
qml: Pushed pages do not conform to the rules. Please check the documentation.
qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0

➜  ~  rpm -qa | grep geoc
geoclue2-2.7.0-5.fc40.x86_64


➜  ~ kinfo
Operating System: Fedora Linux 40
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.2
Kernel Version: 6.10.12-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-4200U CPU @ 1.60GHz
Memory: 7.7 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4400
➜  ~

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 493699] Night Light does not identify GPS location

2024-10-12 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=493699

--- Comment #5 from Bug Janitor Service  ---
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days.
Please provide the requested information, then set the bug status to REPORTED.
If there is no change for at least 30 days, it will be automatically closed as
RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 493699] Night Light does not identify GPS location

2024-09-28 Thread José Rafael
https://bugs.kde.org/show_bug.cgi?id=493699

--- Comment #4 from José Rafael  ---
(In reply to Vlad Zahorodnii from comment #3)
> Você tem o geoclue2 instalado em sua máquina?

Yes, I have this package installed on my system

joserafael2@Ibyte-Fly2:~$ rpm -qa | grep geoc
geoclue2-2.7.0-6.fc41.x86_64
joserafael2@Ibyte-Fly2:~$

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 493699] Night Light does not identify GPS location

2024-09-27 Thread Vlad Zahorodnii
https://bugs.kde.org/show_bug.cgi?id=493699

--- Comment #3 from Vlad Zahorodnii  ---
Do you have geoclue2 installed on your machine?

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 493699] Night Light does not identify GPS location

2024-09-26 Thread José Rafael
https://bugs.kde.org/show_bug.cgi?id=493699

--- Comment #2 from José Rafael  ---
(In reply to Nate Graham from comment #1)
> Talvez o backend do geoclue esteja quebrado no seu sistema? Funciona no meu.
> Você tem um proxy ou VPN ativo? Você pode executar `systemsettings
> kcm_nightlight` em uma janela de terminal, reproduzir o problema e colar
> qualquer texto mostrado na janela do terminal? Muito obrigado!

joserafael2@Ibyte-Fly2:~$ systemsettings kcm_nightlight
qml: Pushed pages do not conform to the rules. Please check the documentation.
qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0

So, I don't use Proxy or VPN here, I've already created a new user on this
Laptop, so it's clean of settings from other past versions of fedora, but the
location spends forever looking for my location anyway! Above is the command
you asked for and it only showed that!

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 493699] Night Light does not identify GPS location

2024-09-26 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=493699

Nate Graham  changed:

   What|Removed |Added

 Status|REPORTED|NEEDSINFO
   Keywords||regression
 Resolution|--- |WAITINGFORINFO
 CC||n...@kde.org

--- Comment #1 from Nate Graham  ---
Perhaps the geoclue backend is broken on your system? It works on mine. Do you
have a proxy or a VPN active? Can you run `systemsettings kcm_nightlight` in a
terminal window, reproduce the issue, and paste any text that it shows in the
terminal window? Thanks a lot!

-- 
You are receiving this mail because:
You are watching all bug changes.