I am trying to set up KDE Connect between a machine running Linux Mint and my Android-device. It does not show up, and it turns out I don’t receive any response if I ping it, and I have the same issue trying to ping the machine from my Android device (from Termux). I’ve tried two different Android devices, but no luck.
This is not an issue with two other machines I have. Both have KDE Connect setup and I can ping the phone just fine, and I can also ping from the phone. They’re all connected to the same VLAN. I can also ping from this machine to the other machines. ufw is disabled.
What could be the issue here?
EDIT: Connection established suddenly after installing and running iptraf.
Cheers, that’s pretty cool! I’ve looked into scrcpy before, but never got around to testing it. The way you present it is super easy, so I will definitely give this a shot!
Regarding my problem, it seems it wasn’t as fixed as I thought :p The connection issue described in the original post still comes once in a while, not sure what triggers it, but it usually resolves if I ping the device and run iptraf to monitor the traffic. Probably superstitious, seems weird to me that it should fix it. It also happened once between my laptop and my new machine, so it was not isolated to the phone after all.
If you’re using wireless then you could try disabling power saving on the wifi card. It will drain more battery but the only reason I can see iptraf helping is if it wakes the network card.
https://unix.stackexchange.com/questions/269661/how-to-turn-off-wireless-power-management-permanently#315400
I’ve already done that after having had very slow speeds in a room far away from the WiFi hotspot. But another thing I’ve noticed is that the TxPower-setting is very low (3 dBm), which I believe was the real culprit for the slow speeds. I think the max allowed value of this is 20 (according to a line in the dmesg
output), so I’ve been wondering if I could just change this to a higher value. It is now placed close to the router, so I am thinking of connecting it by cable (I just don’t have one at the moment) - maybe that could solve my other problem as well.
This is yet another problem, but do you know if the TxPower-setting could affect the Bluetooth-capabilities? I use a keyboard connected by Bluetooth. When I run the Dolphin Emulator, where I’ve set it to emulate a Bluetooth-adapter and search continuously for my Wii-remotes, it seems to interfere with the keyboard-signals.