This forum has been archived. All content is frozen. Please use KDE Discuss instead.

kdeconnect: how to reset defunct user configuration?

Tags: None
(comma "," separated)
TomK
Registered Member
Posts
6
Karma
0
Hi,
since I was unable to find an official support channel for kdeconnect, I give it a shot here.

Some months ago, I first installed kdeconnect on my Debian (Unstable) system, using the official unstable repository. It worked out of the box (connecting to my Phone, Samsung i9100). Then I changed the default name of my Phone from within the Android app. From this point on, my configuration was botched. Both applications (the one on KDE & on the phone) are even unable to see each other. I purged both applications and reinstalled them several times, to no avail. I even deleted all *kdeconnect* files I could find by hand:

$ qdbus org.kde.kded /kded unloadModule kdeconnect
$ kbuildsycoca4 -noincremental
$ rm /home/user1/kde/share/config/kdeconnectrc
$ rm -r /home/user1/.kde/share/apps/kdeconnect
$ qdbus org.kde.kded /kded loadModule kdeconnect
$ kbuildsycoca4 -noincremental

...with no error messages, but still to no avail. Probably there are more configuration files somewhere, but I can't find them.

So, how exactly do I completely wipe the kdeconnect user configuration in ordner to give it a fresh start?

Btw, I have another test user on my Debian box, where kdeconnect does work flawless (I connected the machines after I switched back to the default phone name).

Any suggestions much appreciated!

Tom
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Are there any problems with the device pairing? It may help to unpair and repair it to try to restore the connectivity.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
TomK
Registered Member
Posts
6
Karma
0
bcooksley wrote:Are there any problems with the device pairing? It may help to unpair and repair it to try to restore the connectivity.


The devices do not seem to be paired (with my main user). The Android app only shows the pairing with my test user (testuser@debianbox).
The counterpart in KDE (main user) looks like this:
http://pbrd.co/1swgQGC
No option to do anything at all. And I already tried to remove user config files in ~/.kde, as stated above... unless I miss some files which do not contain *kdeconnect* in their filenames...
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You should be able to manage pairing of devices using the Bluetooth icon in the system tray.
When you are removing the KDE Connect configuration, do you have it running? One possibility is that the change is not being detected because the configuration has already been read. To avoid this, could you try removing the KDE Connect configuration outside of KDE (at a virtual terminal)?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
TomK
Registered Member
Posts
6
Karma
0
I guess I've found the main problem: kdeconnect seems to dislike multiple running user sessions.

I did not make extensive tests, but I found out that when I first login to my Linux box as user1, then in addition as user2, then most of the time (almost always) user2 cannot see the android device with kdeconnect (likewise from the Android device) - it just doesn't get listed. The same applies to the Android device, it can't see user2's session on the Linux box.

I can cope with that, but it seems to be a bug (or at least something which could be improved). Now how to report it?

Edit: I forgot to mention the most important part :z
When I switch the user login ordner, ie. first login as user2, then user2 is the lucky winner - visibility of the devices is always given, whereas the second user (user1) mostly is "invisible".
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Which session is active when you are performing these tests (ie. is user2 the one currently on screen, or is it user1)?
Also, do both users use KDE Connect, or does only one user use it?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
TomK
Registered Member
Posts
6
Karma
0
bcooksley wrote:Which session is active when you are performing these tests (ie. is user2 the one currently on screen, or is it user1)?

It does not matter which KDE session is currently active. Whatever User is the first to login to KDE has mutual visibility (and connectivity) between the KDE session and Android device.
Also, do both users use KDE Connect, or does only one user use it?

One user uses it, the second just for testing purposes. Whoever logs in to KDE first, can see the Android counterpart (and vice versa). If the pairing is done, and the users happens to login as the second user afterwards, then KDE Connect (on KDE) looks like this:
http://pbrd.co/1kVnLS9
...and on the Android device, the KDE session is not visible (only the other KDE session of the user who logs in first).
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Can you please provide the output of "netstat -epntl"?
It appears likely that KDEConnect is dependent on listening on a given TCP port - which only process can do at a time (therefore, limiting usage of it to one user).


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
TomK
Registered Member
Posts
6
Karma
0
$ netstat -epntl (on first user starting KDE; kdeconnect visible)
Code: Select all
Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode       PID/Program name
tcp        0      0 0.0.0.0:60959           0.0.0.0:*               LISTEN      0          10063       -               
tcp        0      0 0.0.0.0:59424           0.0.0.0:*               LISTEN      0          7014        -               
tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN      0          9111        -               
tcp        0      0 127.0.0.1:2947          0.0.0.0:*               LISTEN      0          12314       -               
tcp        0      0 0.0.0.0:55620           0.0.0.0:*               LISTEN      102        8502        -               
tcp        0      0 0.0.0.0:8200            0.0.0.0:*               LISTEN      119        9193        -               
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      107        12600       -               
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      0          8450        -               
tcp        0      0 0.0.0.0:1714            0.0.0.0:*               LISTEN      1000       277518      6835/kdeconnectd
tcp        0      0 0.0.0.0:47538           0.0.0.0:*               LISTEN      0          10070       -               
tcp        0      0 0.0.0.0:1715            0.0.0.0:*               LISTEN      1001       303179      -               
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          12418       -               
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      0          21179360    -               
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      0          21186193    -               
tcp        0      0 0.0.0.0:38713           0.0.0.0:*               LISTEN      0          6973        -               
tcp6       0      0 :::48097                :::*                    LISTEN      0          10059       -               
tcp6       0      0 :::2049                 :::*                    LISTEN      0          9114        -               
tcp6       0      0 ::1:2947                :::*                    LISTEN      0          12315       -               
tcp6       0      0 :::6566                 :::*                    LISTEN      0          12385       -               
tcp6       0      0 :::52808                :::*                    LISTEN      0          10075       -               
tcp6       0      0 :::111                  :::*                    LISTEN      0          8453        -               
tcp6       0      0 :::80                   :::*                    LISTEN      0          21189642    -               
tcp6       0      0 :::41397                :::*                    LISTEN      0          10067       -               
tcp6       0      0 :::22                   :::*                    LISTEN      0          12420       -               
tcp6       0      0 ::1:631                 :::*                    LISTEN      0          21179359    -               
tcp6       0      0 :::58743                :::*                    LISTEN      102        8506        -               
tcp6       0      0 :::45274                :::*                    LISTEN      0          6975        -               
tcp6       0      0 :::32123                :::*                    LISTEN      1000       278661      6992/ktorrent


$ netstat -epntl (on second user starting KDE; kdeconnect invisible)
Code: Select all
Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode       PID/Program name
tcp        0      0 0.0.0.0:60959           0.0.0.0:*               LISTEN      0          10063       -               
tcp        0      0 0.0.0.0:59424           0.0.0.0:*               LISTEN      0          7014        -               
tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN      0          9111        -               
tcp        0      0 127.0.0.1:2947          0.0.0.0:*               LISTEN      0          12314       -               
tcp        0      0 0.0.0.0:55620           0.0.0.0:*               LISTEN      102        8502        -               
tcp        0      0 0.0.0.0:8200            0.0.0.0:*               LISTEN      119        9193        -               
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      107        12600       -               
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      0          8450        -               
tcp        0      0 0.0.0.0:1714            0.0.0.0:*               LISTEN      1000       277518      -               
tcp        0      0 0.0.0.0:47538           0.0.0.0:*               LISTEN      0          10070       -               
tcp        0      0 0.0.0.0:1715            0.0.0.0:*               LISTEN      1001       303179      7554/kdeconnectd
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          12418       -               
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      0          21179360    -               
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      0          21186193    -               
tcp        0      0 0.0.0.0:38713           0.0.0.0:*               LISTEN      0          6973        -               
tcp6       0      0 :::48097                :::*                    LISTEN      0          10059       -               
tcp6       0      0 :::2049                 :::*                    LISTEN      0          9114        -               
tcp6       0      0 ::1:2947                :::*                    LISTEN      0          12315       -               
tcp6       0      0 :::6566                 :::*                    LISTEN      0          12385       -               
tcp6       0      0 :::52808                :::*                    LISTEN      0          10075       -               
tcp6       0      0 :::111                  :::*                    LISTEN      0          8453        -               
tcp6       0      0 :::80                   :::*                    LISTEN      0          21189642    -               
tcp6       0      0 :::41397                :::*                    LISTEN      0          10067       -               
tcp6       0      0 :::22                   :::*                    LISTEN      0          12420       -               
tcp6       0      0 ::1:631                 :::*                    LISTEN      0          21179359    -               
tcp6       0      0 :::58743                :::*                    LISTEN      102        8506        -               
tcp6       0      0 :::45274                :::*                    LISTEN      0          6975        -               
tcp6       0      0 :::32123                :::*                    LISTEN      1000       278661      -   

Hope it helps!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Interesting - it seems to have compensated by using a different port. When configuring the mobile application, do you have to specify port numbers or anything along those lines?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
TomK
Registered Member
Posts
6
Karma
0
Ahem... not sure if I understand you correctly, but I can't find any place where to specify a port number. The device name is pretty much the only thing I can specify, at least that I'm aware of...
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Okay, I suspected as much. I'm afraid only the KDEConnect developer will be able to assist in resolving this issue - it would appear that KDEConnect is able to handle multiple users to a certain extent though...


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
cylverbak
Registered Member
Posts
88
Karma
0
OS
Try this . . .
On your cellphone(s) remove KDEConnect under App Info > Force stop, Clear cache, Clear data, Uninstall.
On your computer do a "complete" uninstall of KDEConnect (ie. hopefully getting rid of any configuration data)
On your computer re-install KDEConnect.
Re-install KDEConnect on your cellphone.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]