Kde Connect never stays connected for very long, and I don’t think it’s anything to do with the phone’s power saving control systems.
I have a few Android phones that i have tested with.
After a while (cant say exactly) It just shows “Paired device is unavailable.” If I log out and log back in on the desktop, it works again and automatically reconnects, so I don’t think it’s the phone.
I have disabled all power-saving options for its app on Android as well.
I have tested putting the system to sleep and waking it up, but it remained connected, so it’s not specifically sleep that causes the issue. However, I do use sleep much more than shutdown, so the desktop is often asleep for long periods. I’m not exactly sure when or what causes it to become disconnected and unavailable. If I knew, I might be able to write a script to reset Kde Connect at that point, but I’m unsure how to do that or when to use it.
I don’t know, it will be connected when i first start the computer but when i next look up to check its icon is still showing its gone and i cant connect any more without re-logging out/in.
This command seems like it should refresh the connection; if that helps:
kdeconnect-cli --refresh
If you haven’t updated kdeconnect on your phone for a while, that could potentially be a consideration. I have nothing else to offer at this time. Good luck.
Yea i tried that one but had no effect to the availability of the phone and its connection. It remains “unavailable”. This is the “drop-down” widget menu after issuing that command :-
There is no way i can get the connection to come back that i can find, except logout and back in. Not on the desktop or the phone.
I havent removed the config’s but i have got several phones and they all act the same, i have removed a load of them and recreated the pairing but still the same on all phones. This is a new system with a new install of Manjaro kde but Manjaro on my laptop was/is just the same anyhow.
Ahh thats what i would have thought until i find that just logging off on my desktop and back in again and it all reconnects just fine (for a little while). I have a strong feeling it has to do with the desktop going to sleep for a reasonable period but i cant recreate it on demand.
O and i can refresh the phone by pulling down on the screen as many times as i like, it tries to refresh the connection but can not do it.
And you ARE on the same network, there is not some kind of vlan setup with briges and stuff?
As an example. I have noticed if I forget to disconnect my phone to my LAN vpn I use when I am outside my wifi (so I am on the same lan, but connect in a loop back to the vpn via internet, confusing it even works to be honest), it will show behavior you describe, connect and disconnect.
The few similar issues I found in a quick search all seemed to point to power saving settings as the culprit. If you’re confident it’s not that, then I don’t know what else to suggest that you haven’t tried already.
Iv got it connected again atm without using the user logout/in. I think it might possibly have been a conjunction of some or all of the things we have tried.
I put a bet on doing both of the following:-
kdeconnect-cli --refresh
refresh the kde-connect app on phone by pulling down the screen
I shall have to wait until it disconnects again and test that theory, but even if it is it still don’t help me keep it connected. I can do a script to do kdeconnect-cli --refresh if it drops out, but not so easy to script on the phone.
But that would leave me wondering why logging out and in did not need me to refresh the phone though? hmm we shall see.
This is a longshot, and at face value it shouldn’t make a difference.
However, in plugin settings I have Inhibit screensaver (when device is connected) which isn’t enabled by default. See if enabling that will also prevent the apparent disconnecting.
Why would you assume that? I think kdeconnect was installed either as a panel widget or directly with Pacman, but I never see anything stating that I should have installed android-udev. If it’s a requirement (dependency), surely it would have been installed along with kdeconnect. I do not have android-udev installed though, should i install it?
Which devices and what version of Android are they running?
I have no issues on my Pixel 8 running Android 14 with both GSConnect and occasional testing of Valent on GNOME.
Does it reconnect when you wake the screen? Depending on the manufacturer / Android version, the KDE Connect Android app may be getting killed in the background.