Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
liljenstolpe opened this issue Mar 1, 2022 · 4 comments
Open

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

liljenstolpe opened this issue Mar 1, 2022 · 4 comments

Comments

@liljenstolpe
Copy link

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?

@muesli
Copy link
Owner

muesli commented Mar 2, 2022

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.

@liljenstolpe
Copy link
Author

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

@liljenstolpe
Copy link
Author

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
Copy link

jauninp commented Aug 22, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants