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
uinput keyboard handler #10
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keyboard handling/mapping on VNC seems to be a difficult topic. It would be good if there were some source for best practices on how to implement it. Did you do any reseacrh on how other servers do it or how clients behave wrt. to this?
How did you test this? Which client(s) did you use?
yes, i looked at several XWindows vnc servers, and at wayvnc. this thing im doing is weird, tho; im using the uinput linux module to send key events. lipstick2vnc is pretty weird itself, tbh. i tested with xtigervncviewer and xtightvncviewer. i use it constantly to send messages |
That sounds good, seems like you've done your homework. 😉 😄 Yeah, this lipstick2vnc is nothing more than a way to get the compositor content passed over USB for another system to use and as such not a replacement for a real VNC server. There are certainly things that would need to be done to make it proper. E.g. performance is not optimal. What would be the alternative to uinput (i.e. the not-weird way)? Is it perhaps libevdev or something that libinput provides? Anyway, I'll test this and let's see if we could merge or if there is something that should be corrected first. I think having something is better than nothing, assuming it doesn't regress what we already have, and that something can be always improved. |
19af243
to
c2d77f0
Compare
|
on a side note, i would prefer to make keyboard support DISABLED by default, but we already had i think i should change it to |
c2d77f0
to
1083fc5
Compare
Yeah, that's a good idea. I think it makes sense because this keyboard support is experimental at best. |
1083fc5
to
3cb6b5e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for your contribution!
|
yay! thanks for merging these PRs! |
rudimentary keyboard handling using
/dev/uinput(solves issue #5 for me)