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

Huavei 10 mate lite Capslock state detection problem #68

Open
JanuszChmiel opened this issue Jun 1, 2020 · 30 comments
Open

Huavei 10 mate lite Capslock state detection problem #68

JanuszChmiel opened this issue Jun 1, 2020 · 30 comments

Comments

@JanuszChmiel
Copy link

Dear specialists, I Am using yours app with Archlinux Aarch 64 which run by using Termux and Android device. Sure, Multivnc run on normal Android phone. I have issues with The Capslock key detection state. Orca screen reader uses XKB protocol to get information about pressed keys. For example. When I turn Capslock on, I can correctly type big letters. But Orca do not detect if Capslock have been pressed and its state. On or off. This problem is independent which Hardware keyboard model will I use. Orca can not also correctly detect if I have pressed left ALT or right ALT key. Orca speak left ALT even I press right ALT. The most annoing issue is The fact, that I can not control Orca navigation system. Because if Orca do not detect CAPSLOCK state, it can not react on key combination CAPSLOCk and some letter such as u, j or l.
Do you think, that there is some chance to find out The ccause of this issue?
The problem is really in VNC client app. May be, that Orca need to get more specific more exact info about keys. The question is, if is itpossible to develop such code inside yours app, which would inform this screen reader about The state of CAPSLOCk key.
Sure. Orca have been developed for A situation, where user uses it iwth standard Linux not controlled by using VNC protocol.
Any help will be very welcomed.
Thank you very much for yours time.

@JanuszChmiel
Copy link
Author

Orca can correctly detect. Left or right CTRL keys.
ALT key can not be detected correctly. Orca present left ALT key even if I press Right ALT key.
Numeric Insert can not be detected too. Other keys are working perfectly.
I have also tested External USB hardware keyboard. What do you think, what is The cause of those issues?
Specific Orca app, which need too much specific information. Or VNC protocol, which can not because of its nature transfer all needed info from running Xvnc to Android client?

@boroli
Copy link

boroli commented Nov 27, 2020

Same problem here on my Huawei MediaPad M3 Lite 10.
The Shift key is no longer recognised within MultiVNC when connected to VNC server from a debian running in a termux environment on localhost. Which makes it pretty hard to use in the end...
Apparently it worked flawlessly in the past (~6 months ago I would guess). Unfortunately, I can't retrace with which update this was introduced. Shift key works in Android without any problem including the termux terminal.

@bk138
Copy link
Owner

bk138 commented Nov 27, 2020

I can provide you with older versions to test, if you want. Which one are you using right now?

@bk138 bk138 added the bug label Nov 27, 2020
@boroli
Copy link

boroli commented Nov 27, 2020

Sure. Happy to test.
At the moment 1.9.5 from F-droid. Already tried to downgrade from the most recent one, but without any success.

@bk138
Copy link
Owner

bk138 commented Nov 27, 2020

I propose you start with 1.8.12 from https://apkpure.com/multivnc/com.coboltforge.dontmind.multivnc/versions and go back if the issue is there as well.

@bk138
Copy link
Owner

bk138 commented Nov 27, 2020

@boroli actually, are you sure this is the right issue? @JanuszChmiel was reporting Caps and Alt, you're reporting Shift.

@boroli
Copy link

boroli commented Nov 28, 2020

Well, I don't know (and can't at all) if it's the same bug, but it sounded pretty close.
Caps Lock didn't work for me either, and I didn't test ALT.
I tried 1.8.12 and at least Shift is working again properly. Also Caps Lock is working at least for characters, but not for numbers of the first line.
Ctrl and Alt keys work partially, but not fully as one would expect from desktop input. For example in Spyder3 IDE, Ctrl+z is working, whereas Ctrl+1 is doing nothing. Apparently this (Ctrl+1) didn't work in the past either. So I'm not sure if this is an Android limitation itself, or one from MultiVNC.

@bk138
Copy link
Owner

bk138 commented Nov 28, 2020

Please also have a try with 1.9.4 attached here and try "native" vs "traditional" mode:
app-debug.zip

@JanuszChmiel
Copy link
Author

JanuszChmiel commented Nov 28, 2020 via email

@JanuszChmiel
Copy link
Author

JanuszChmiel commented Nov 28, 2020 via email

@JanuszChmiel
Copy link
Author

JanuszChmiel commented Nov 28, 2020 via email

@boroli
Copy link

boroli commented Nov 30, 2020

Please also have a try with 1.9.4 attached here and try "native" vs "traditional" mode:
app-debug.zip

No improvement to 1.8.12 for traditional mode.
Native mode is even worse. Shift and CapsLock doesn't work.

@bk138
Copy link
Owner

bk138 commented Nov 30, 2020 via email

@boroli
Copy link

boroli commented Dec 5, 2020

Status of the Shift key:
1.8.12 (apkpure) yes
1.9.4 Traditional (app-debug.zip) yes
1.9.4 Native (app-debug.zip) no
1.9.5 (F-Droid) no
1.9.7 (F-Droid) no

@bk138
Copy link
Owner

bk138 commented Feb 20, 2021

Hi guys, was this closed by 03770d9 (which is in version 1.9.10)?

@bk138
Copy link
Owner

bk138 commented Mar 28, 2021

@JanuszChmiel @boroli friendly ping about this Huavei 10 mate lite Capslock state detection problem issue :-)

@JanuszChmiel
Copy link
Author

JanuszChmiel commented Mar 29, 2021 via email

@bk138
Copy link
Owner

bk138 commented Mar 29, 2021

When I have tried .apk several months ago, Capslock have not been correctly detected. BVNC Pro have solved my problems with Capslock. Proot developers have even implemented SHMGET and SHMAD so shared memory work as it should.

Would you mind giving it a quick try with MultiVNC 1.9.11 for the sake of testing @JanuszChmiel ? That would help us a lot!

@JanuszChmiel
Copy link
Author

JanuszChmiel commented Mar 29, 2021 via email

@bk138
Copy link
Owner

bk138 commented Mar 29, 2021

@JanuszChmiel you can use this apk.

@JanuszChmiel
Copy link
Author

JanuszChmiel commented Mar 29, 2021 via email

@bk138
Copy link
Owner

bk138 commented Mar 29, 2021

Please send direct .apk package download link.

https://f-droid.org/repo/com.coboltforge.dontmind.multivnc_79.apk

@JanuszChmiel
Copy link
Author

JanuszChmiel commented Mar 29, 2021 via email

@JanuszChmiel
Copy link
Author

JanuszChmiel commented Mar 29, 2021 via email

@JanuszChmiel
Copy link
Author

JanuszChmiel commented Mar 29, 2021 via email

@JanuszChmiel
Copy link
Author

JanuszChmiel commented Mar 29, 2021 via email

@JanuszChmiel
Copy link
Author

JanuszChmiel commented Mar 29, 2021 via email

@gujjwal00
Copy link
Contributor

I think we are missing conversion from KeyEvent.KEYCODE_CAPS_LOCK to X key-symbol XK_Caps_Lock (0xffe5) in here:

case KeyEvent.KEYCODE_CTRL_RIGHT: keyCode = 0xffe4; break;
default:

This would fix MultiVNC but Vino simply ignores Caps-lock events (don't know about Tigervnc).

@bk138
Copy link
Owner

bk138 commented Mar 31, 2021

I think we are missing conversion from KeyEvent.KEYCODE_CAPS_LOCK to X key-symbol XK_Caps_Lock (0xffe5) in here:

case KeyEvent.KEYCODE_CTRL_RIGHT: keyCode = 0xffe4; break;
default:

This would fix MultiVNC but Vino simply ignores Caps-lock events (don't know about Tigervnc).

I can have a look.

@JanuszChmiel
Copy link
Author

JanuszChmiel commented Mar 31, 2021 via email

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

No branches or pull requests

4 participants