r-c-f/waynergy

Not connecting to server (Ubuntu 22.10)

vid opened this issue · 3 comments

vid commented

Hi, I've used Synergy then Barrier for years and it's great.

Now I have a desktop (plaza), a laptop, and a tablet (192.168.0.107). I want to use the laptop as the synergy host, the desktop as a synergy client and using Gnome's new extend feature which requires Wayland, the tablet as another display over RDS.

I compiled waynergy to use as a client on the desktop. I had issues with udev rules for uinput, so added myself to the group for now, so I'm past that hurdle. But while waynergy starts up, it doesn't seem to try connecting.

Here is my command: waynergy --backend uinput -c 192.168.0.107 -L debug -p 24800 -E (I have tried other variations)

The config file:

host = 192.168.0.107
port = 24800
name = plaza
restart_on_fatal = true

[screensaver]
start = pkill -SIGUSR1 swayidle
stop = pkill swaylock

[idle-inhibit]
method = key
keyname = HYPR

[tls]
enable = false
tofu = false

[log]
level = 3
mode = a
path = /tmp/waynergy.log

[wayland]

Here's logging output:

Dropping gid from 1001 to 1000
0.000000211: [DEBUG] Section log not found in INI
0.000021965: [INFO] Log initialized at level 4
0.000029841: [INFO] waynergy version v0.0.14-1-g0eeaf22
0.000041035: [DEBUG] Property syn_raw_key_codes not found in INI
0.000050251: [DEBUG] requiring wait() on SIGCHLD
0.000469698: [DEBUG] Child died: PID 6423, Status 0
0.000499725: [DEBUG] Found wl-paste
0.000896805: [DEBUG] Child died: PID 6424, Status 0
0.000925838: [DEBUG] Found wl-copy
0.000934094: [DEBUG] not requiring wait() on SIGCHLD
0.006204717: [DEBUG] SIGCHLD sent without exit
0.006227820: [WARN] Could not kill lingering wlpaste instances: -1

0.006510824: [DEBUG] Section wayland not found in INI
0.006625111: [DEBUG] Mutating output...
0.006632769: [DEBUG] Got output at position 0,0Watch mode requires a compositor that supports wlroots data-control protocol

0.006648904: [DEBUG] Got current mode: 5120x2160@71997*
0.006655913: [DEBUG] Mutating output...
0.006663017: [DEBUG] Got scale factor for output: 1
0.006669755: [DEBUG] Mutating output...
0.0066766250.006679527: [WARN] Child died: PID 6427, Status 1
: [INFO] Output updated: 5120x2160 at 0, 0 (scale: 1)
0.006705938: [DEBUG] All outputs updated, triggering event
0.006712622: [INFO] Geometry updated: 5120x2160
0.006719590: [DEBUG] Got xdg output position: 0, 0
0.006726257: [DEBUG] Mutating output from xdg_output event
0.006733064: [DEBUG] Got xdg output size: 5120x2160
0.006739680: [DEBUG] Mutating output from xdg_output event
0.006746399: [DEBUG] Got xdg output name: DP-3
0.006753013: [DEBUG] Mutating output from xdg_output event
0.006759778: [DEBUG] Got xdg output desc: LG Electronics 40"
Watch mode requires a compositor that supports wlroots data-control protocol
0.006766416: [DEBUG] Mutating output from xdg_output event
0.006780980: [INFO] Output name: DP-3
0.006787640: [INFO] Output description: LG Electronics 40"
0.006794395: [INFO] Output updated: 5120x2160 at 0, 0 (scale: 1)
0.006801219: [DEBUG] 0.006805446: [WARN] Child died: PID 6428, Status 1
All outputs updated, triggering event
0.006829548: [INFO] Geometry updated: 5120x2160
0.006836460: [DEBUG] Seat has pointer
0.006843012: [DEBUG] Seat has keyboard
0.006850397: [DEBUG] Seat name is seat0
0.006886291: [DEBUG] Property wl_keyboard_map not found in INI
0.006916893: [DEBUG] Current keymap updated
0.006936096: [INFO] Compositor seems to be gnome-shell
0.006944002: [DEBUG] Section button-map not found in INI
0.006952436: [DEBUG] Set button mapping: 0 -> 0
0.006959279: [DEBUG] Section button-map not found in INI
0.006966649: [DEBUG] Set button mapping: 1 -> 272
0.006973374: [DEBUG] Section button-map not found in INI
0.006980736: [DEBUG] Set button mapping: 2 -> 274
0.006987349: [DEBUG] Section button-map not found in INI
0.006994607: [DEBUG] Set button mapping: 3 -> 273
0.007001261: [DEBUG] Section button-map not found in INI
0.007008586: [DEBUG] Set button mapping: 4 -> 275
0.007015256: [DEBUG] Section button-map not found in INI
0.007022577: [DEBUG] Set button mapping: 5 -> 276
0.007169709: [INFO] Using uinput

I'm not sure what "child" died, that's confusing.

After startup, it just sits there. There aren't any indications it's trying to connect on the server. If I telnet to port 24800 from the client to the host system, I see the Barrier string. I can connect from other clients as usual.

Here's some more system info;

$ ls -lat /dev/uinput  # I have to re-do this on login
crw-rw---- 1 root uinput 10, 223 Dec  4 09:55 /dev/uinput

$ grep uinput /etc/group
uinput:x:1001:vid

$ ls -lat /usr/local/bin/
total 432
drwxr-xr-x  2 root root     4096 Dec  4 07:34 .
-rwxr-sr-x  1 root uinput 327168 Dec  4 07:34 waynergy
-rwxr-sr-x  1 root uinput  80920 Dec  4 07:34 waynergy-mapper
-rwxr-sr-x  1 root uinput  23864 Dec  4 07:34 waynergy-clip-update

$ tail /var/log/syslog
…
Dec  4 10:39:04 plazaz kernel: [ 2630.152604] input: waynergy keyboard as /devices/virtual/input/input84
Dec  4 10:39:04 plazaz kernel: [ 2630.152740] input: waynergy mouse as /devices/virtual/input/input85

$ cat /etc/udev/rules.d/49-input-rules
KERNEL=="uinput",GROUP:="uinput",MODE:="0660"

$ cat /etc/modules-load.d/uinput.conf
uinput

$ uname -a
Linux plazaz 5.19.0-26-generic #27-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 23 20:44:15 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/issue
Ubuntu 22.10 \n \l

Thanks for any help, I've been kicking at this all weekend.

r-c-f commented

It looks like it was a bit of a stupid race condition, but it should be resolved in latest master (at least it works here).

When using latest release version (0.0.14) I was repeatedly getting similar errors to @vid

I just removed the package and then did a clean build of waynergy-git from the AUR, and it works without issue now.

Thanks for the quick turnaround!

vid commented

Well, I did an update for Ubuntu 22.10 and the system display is borked. Have to get some work done so rather than messing with that I went to a 22.04 partition running Wayland, set up Waynergy, and after some usual confusion… it works!!!! Thank you!!!!!!