deckmaster icon indicating copy to clipboard operation
deckmaster copied to clipboard

XGB: conn.go:47: Could not get authority info: EOF

Open liljenstolpe opened this issue 2 years ago • 4 comments

The XGB include breaks if you aren't running XWindows (i.e. running Wayland). There is a uinput go library that works for both Wayland and X11. I think the desktop code also uses the XGB for 'last window' widget, etc, so it may not be a direct swap, but it would be nice if we didn't throw errors if you aren't running XWindows. Maybe at least a toggle to not run that code-path as a config?

liljenstolpe avatar Mar 01 '22 23:03 liljenstolpe

The X connection should already be entirely optional. What errors are you seeing? uinput has neither X nor Wayland dependencies, but Wayland may only support reading events via libinput.

muesli avatar Mar 02 '22 00:03 muesli

I'll have to put the code back in to get the error messages - my bad. Will do so later tonight.

liljenstolpe avatar Mar 11 '22 01:03 liljenstolpe

Here is the stderr output

❯ deckmaster --deck ~/.config/deckmaster/decks/main.deck
XGB: conn.go:47: Could not get authority info: EOF
XGB: conn.go:48: Trying connection without authority info...
XGB: conn.go:47: Could not get authority info: EOF
XGB: conn.go:48: Trying connection without authority info...
Could not create virtual input device (/dev/uinput): failed to create virtual keyboard device: could not open device file
Emulating keyboard events will be disabled!

liljenstolpe avatar Mar 12 '22 06:03 liljenstolpe

Hi, Try to add this line to your udev rules : KERNEL=="uinput", MODE="0666"

I'ts work for me, I doesn't have the error message anymore

Here is the stderr output

❯ deckmaster --deck ~/.config/deckmaster/decks/main.deck
XGB: conn.go:47: Could not get authority info: EOF
XGB: conn.go:48: Trying connection without authority info...
XGB: conn.go:47: Could not get authority info: EOF
XGB: conn.go:48: Trying connection without authority info...
Could not create virtual input device (/dev/uinput): failed to create virtual keyboard device: could not open device file
Emulating keyboard events will be disabled!

jauninp avatar Aug 22 '22 07:08 jauninp