meefik / linuxdeploy

Install and run GNU/Linux on Android
https://meefik.github.io/linuxdeploy
GNU General Public License v3.0
5.23k stars 680 forks source link

VNC and keyboard configuration #723

Open deb75 opened 7 years ago

deb75 commented 7 years ago

Hello,

I installed debian stretch with latest linux-deploy and I use vnc graphic system.

With the VNC graphic system I try to use my samsung bluetooth keyboard (ej-bt230). It works well with android, on a terminal all keys and modifiers work well, but through VNC some keys are not working like altGR, so that I cannot type ~#{[|`\^@]} ... to name but a few :()

I tried without success at the moment with xmodmap, I do not think setxkbmap would help because there is no XKB extensions.

How can I solve this issue ?

Thanks for your help

Regards

deb75 commented 7 years ago

Hi

Still no clue, I tried with an USB keyboard, I tried with changing the localization, or with changing the android keyboard configuration to qwerty : the altGR key is not working.

Here is the results of "xmodmap -pke"

keycode 8 = Control_L keycode 9 = Control_R keycode 10 = Shift_L keycode 11 = Shift_R keycode 12 = Meta_L keycode 13 = Meta_R keycode 14 = Alt_L keycode 15 = Alt_R keycode 16 = space keycode 17 = 0 parenright keycode 18 = 1 exclam keycode 19 = 2 at keycode 20 = 3 numbersign keycode 21 = 4 dollar keycode 22 = 5 percent keycode 23 = 6 asciicircum keycode 24 = 7 ampersand keycode 25 = 8 asterisk keycode 26 = 9 parenleft keycode 27 = minus underscore keycode 28 = equal plus keycode 29 = bracketleft braceleft keycode 30 = bracketright braceright keycode 31 = semicolon colon keycode 32 = apostrophe quotedbl keycode 33 = grave asciitilde keycode 34 = comma less keycode 35 = period greater keycode 36 = slash question keycode 37 = backslash bar keycode 38 = a A keycode 39 = b B keycode 40 = c C keycode 41 = d D keycode 42 = e E keycode 43 = f F keycode 44 = g G keycode 45 = h H keycode 46 = i I keycode 47 = j J keycode 48 = k K keycode 49 = l L keycode 50 = m M keycode 51 = n N keycode 52 = o O keycode 53 = p P keycode 54 = q Q keycode 55 = r R keycode 56 = s S keycode 57 = t T keycode 58 = u U keycode 59 = v V keycode 60 = w W keycode 61 = x X keycode 62 = y Y keycode 63 = z Z keycode 64 = BackSpace keycode 65 = Return keycode 66 = Tab keycode 67 = Escape keycode 68 = Delete keycode 69 = Home keycode 70 = End keycode 71 = Prior keycode 72 = Next keycode 73 = Up keycode 74 = Down keycode 75 = Left keycode 76 = Right keycode 77 = F1 keycode 78 = F2 keycode 79 = F3 keycode 80 = F4 keycode 81 = F5 keycode 82 = F6 keycode 83 = F7 keycode 84 = F8 keycode 85 = F9 keycode 86 = F10 keycode 87 = F11 keycode 88 = F12 keycode 89 = keycode 90 = .... keycode 255 =

The output of this command is the same whatever I change on the keyboard.

Through VNC, xev says the algGR keycoed is 15, which is Alt_R

deb75 commented 7 years ago

I switched from realVNC to androidVNC (from fdroid). Surprisingly, altGR key works with androidVNC and not with realVNC, nevertheless, it seems androidVNC does not manage copy/paste mouse actions.

joaopa00 commented 7 years ago

The control of keys is indeed the job of the vnc server, not the linux distrib. Bvnc asserts to support altgr. I did not manage to get it working. Can you give it a try? If it does not work, can you add your issue to my post there? https://github.com/iiordanov/remote-desktop-clients/issues/88

You have use to use the latest version of bvnc https://github.com/iiordanov/remote-desktop-clients/releases/download/v3.8.8/freebVNC-v3.8.8-final.apk

deb75 commented 7 years ago

Hi

I tried. Bvnc v3.8.8 does not seem to support it. I will add this issue to your post. Right now.

For the moment, I use android-vnc-viewer from https://github.com/antlersoft/android-vnc-viewer because this is the only one with which you can type @|#]}

However, some keys do not work well, Ctrl+a, Ctrl+e, Ctrl+d, Ctrl+k, to name but a few, do not work in a terminal as they should (with a bluetooth keyboard). On the contrary, Bvnc handles them well.

For android-vnc-viewer, there may be one solution here http://www.timelesssky.com/blog/customize-android-vnc-viewer-keys

but this requires to recompile the app, I just do not know how to do it within debian.

joaopa00 commented 7 years ago

worth giving a try to the following link: http://goo.gl/pvzAZ

deb75 commented 7 years ago

Hi,

I have just tried http://goo.gl/pvzAZ : AltGR key does not work, no access to @]}|[#, but Ctrl+a, Ctrl+e, Ctrl+c, ... work in a linux terminal as they do on any linux PC.

So, it seems either AltGR key works but Ctrl+aekc do not, although you can send them with the "Send key" tab of the menu, not very convenient though, or AltGR key does not work but Ctrl+aekc do.

Would this mean it is not possible to get all keys working at the same time ? I wish I understand how it works.

joaopa00 commented 7 years ago

Good news. With the latest update of https://play.google.com/store/apps/details?id=android.androidVNC&hl=fr ALTGR, CTRL, TAB keys work fine There are still some issues with this viewer though

Otherwise, I had a touch with the realvnc viewer developpers about the keys problem. They want to fix the bug. But I dd not manage to provide the useful informations to them. Maybe someone would be interested to get in touch with them to try to definitely fix this problem in RealVcNC