libera/#maemo-leste/ Wednesday, 2024-12-18

inkyapply for the repo (:00:32
tmlindfreemangordon: yup making them serdev_device_drivers would clarify things quite a bit04:47
freemangordontmlind: ok, I think I am sorting this out. What I don;t understand is why tty/serdev (no ngsm, ordinary stuff) are allocating serdev controller per port. we shall have only one, right, not one per serdev device?08:10
dsc__hmm yes, I can see how this vkb Qt stuff was a bit complicated xD11:57
dsc__there are 2 issues I have right now with the vkb Qt module16:18
dsc__him vkb is misbehaving by stealing focus, its not how virtual keyboards should work, am pretty sure16:18
dsc__the other is interpreting incoming xcb events16:18
Wizzuphow does it 'steal' focus, by bringing up the keyboard?16:28
dsc__yeah, I'm not sure what mechanism takes the focus16:30
dsc__https://github.com/community-ssu/qt-x11-maemo/blob/b3282763fc0a95b7f6eddc7b8caf7406003975ac/src/gui/inputmethod/qhildoninputcontext_x11.cpp#L492-L49516:31
dsc__this poor Nokia engineer had the same issue16:31
dsc__dont think I can replicate his hack due to changes in Qt16:31
dsc__but I can certainly write a different hack ^^16:32
dsc__the correct way: https://github.com/valve-project/steam-qt-keyboard-plugin/blob/master/src/steaminputcontext.cpp#L48-L6616:32
dsc__cant use hideInputPanel() because it triggers as soon as focus is stolen16:33
freemangordondsc__: I am not sure this is really a bug, as you can have 2 types of VKB16:45
freemangordonlike, the one in android (for example) is not fullscreen, so it shoudl not steal the focus16:46
freemangordonhowever, HIM VKB *is* fullscreen, with its own edit field16:46
freemangordonso, it makes all the sense for it to steal the focus16:47
freemangordonalso, VKB already hides itself when clicked outside, there is no need for you to hide it once again16:48
freemangordonI can bet hideInputPanel() is for cases when VKB behaves like android one16:48
dsc__oki makes sense16:49
freemangordonmaybe, just maybe VKB shall take care to return the same focus as before stealing16:50
dsc__this is quite awkward though, as vkb sends Qt events, and nothing is in focus, so first need to ensure the widget is in focus again16:50
dsc__at which point a focus event triggers, but vkb is already opened, etc16:50
dsc__as vkb sends events to Qt*16:50
freemangordonwait, why would vkb send qt events before it is closed?16:51
dsc__this was my understanding, but maybe I am misinterpreting how it works16:51
freemangordonthe whole point (iiuc) is to do whatever has to be done in vkb edit field and return the end result to qt16:51
dsc__makes sense16:51
freemangordonyou should not send any keys or whatever to qt before vkb is done, unless I am missing somethoing16:52
freemangordonWizzup: ^^^16:52
dsc__well the reason why I think that16:52
dsc__sec16:52
* freemangordon has to go to do some shopping, bbl in 15 minutes16:53
dsc__user presses 'space' on the keyboard: https://github.com/community-ssu/hildon-input-method-plugins/blob/b83654e5cfb1dbccd90926295c282f0465c35a16/hildon-im-fkb/hildon-im-western-fkb.c#L280916:54
dsc__it goes to here:16:54
dsc__https://github.com/maemo-leste/hildon-input-method/blob/master/src/hildon-im-ui.c#L211216:54
dsc__which does hildon_im_ui_send_event()16:54
dsc__this event goes through the underlying application, so it seems it does send events while the vkb is active17:04
dsc__goes to the*17:04
dsc__cant type anymore :D17:04
dsc__and also, it would make sense for vkb to constantly emit these events as its not just keys, it also needs to communicate key modifiers and such - it would be strange to send those in bulk at the end of the vkb operation... maybe17:12
dsc__bbl17:13
freemangordondsc__: seems to depend on commit mode17:20
freemangordonalso, this sends event to him framework17:22
freemangordonI guess this is done to enable plugin to filter some keys or dunno17:24
freemangordonor, could be related to word prediction17:26
freemangordontmlind: oh, there is a comment in the code "/* Only a single slave device is currently supported. */". that explains it why we have a controller per port17:38
tmlindfreemangordon: oh ok17:50
freemangordonI am about to test something, just wonder how would DTS for child nodes should look like17:52
tmlindreg = <1> for dlci117:53
tmlindchannel@1 { reg = <1>; );17:53
freemangordonwho is going to read that? current cares about compatible only17:54
freemangordonbut anyway, lets get to that17:54
freemangordontmlind: getting there :D https://pastebin.com/XmqpSYHL17:58
tmlindok great18:13
freemangordonnot really, is I don;t see why it would error, but meh18:13
freemangordontmlind: ok,   of_serdev_register_devices() is doing   for_each_available_child_of_node()18:36
freemangordontmlind: getting there :) https://pastebin.com/T66DdMMB20:15
freemangordontmlind: https://pastebin.com/zi0jUFxs YAY!21:15
freemangordonusing serdev21:15
inkyalso him rotates the screen when whitespace is pressed21:53
inkyi have to disable him to prevent that.21:53
inkyit happens with all onscreen keyboards.21:54
Wizzupfreemangordon: sweet :)21:55
siceloinky: just tried on my droid 4, from both landscape and portrait orientations. no such problem. or what are the specific steps to reproduce?21:56
inkyinstall any onscreen x11 keyboard21:56
inkyremember diejuse?21:57
siceloyou said him21:57
inkyhe had exactly the same issue with bboard or something21:57
inkyyes when you use any x11 onscreen keyboard and press whitespace21:58
inkyhim rotates the screen21:58
inkythe only way to prevent it and use x11 onscreen keyboard in disabling him from startup21:58
siceloyou mean *both* him *and* the additional keyboard become active at the same time?21:58
inkyyes21:59
inkywell no21:59
inkyvkb is not visible21:59
inkyjust your arbitrary onscreen keyboard21:59
inkyyou press whitespace and screen rotates21:59
siceloso where is him when the additional vkb is there? how do you know him rotates the screen if it's not even there?21:59
inkyi disable him, reboot, and no probrem. without him service running everythiwg works good.22:00
inky> so where is him when the additional vkb is there? how do you know him rotates the screen if it's not even there?22:00
inkybecause if i remove him then screen does not rotate22:00
siceloanyway, i think leste is not planning to change keyboards anytime soon22:01
inkywell i am not using vkb or him because of that.22:02
inkyevery time i install leste on a device first hhing to bring it to usable state is to disable him and use other onscreen keyboard.22:02
sicelowhat the problem with him?22:03
inkyi dont know where to start22:04
sicelonearly no one has reported problems :-)22:04
mkfinky how many devices do you have running leste22:05
siceloand thousands have used it on Fremantle without problems either. i think everyone agrees that it has its flaws, but that device is unusable...22:06
inkyi complained here and everywhere so many times. thet i helped uvos to create a header file that partially solved some problems22:06
inkyok let me come to the computer and explain22:06
inkysicelo, you don't notice the problems because you:22:17
inky* use hardware keyboard22:18
inky* don't use non latin characters.22:18
inkynow imagine you use pinephone.22:18
inkyor anything without hardware keyboard.22:18
inkyhttps://github.com/maemo-leste/hildon-input-method/commit/5dcba543c36c12ac70288a7b652310e275eebee722:18
inkythis commit mentions me.22:18
inkysince that it is possible to type in lets say regular xterm (not osso xterm)22:19
inkybut22:19
inky* only if you can trigger the keyboard and22:19
inky* only if you can switch the layout which requires typing setxkbmap by hand in other terminal.22:19
inkyon pinephone you cannot trigger the keyboard by pressing a hardware button like "search" button on d4.22:20
inkyso no way to type almost everywhere.22:20
inkyi can use leafpad, type there, but then no way to select and copy paste to other place.22:20
inkyyou have no hwkbd to do ctrl+c22:20
inkyyou just can type in leafpad22:20
inkyin any other regular linux app you need to be able to trigger keyboard, it needs to appear so that you would typee22:21
inkybut you have no hardwarke key to trigger it. and if you tap it won't come, because it only comes if you tap on gtk2-3, not everywhere.22:21
siceloi guess this - 23:18 < inky> * don't use non latin characters. ...22:22
inkybut in gtk2, lets say in leafpad you cannot then select the text and then copy paste it to other place, no ctrl+c22:22
inkyother problem is that in order to type non latin, you have to write by hand setxkbmap in osso-xterm22:22
sicelohardware keyboard aint it, because we do use it with keyboard closed, and Librem5 does not have hardware keyboard. i didn't have a problem on it either22:22
inkythen only in other place non latin will work. if you able to trigger keyboard which you cannot do because you have no hardware key mapped.22:23
inkyhow do you trigger keyboard on librem5?22:23
inkyis there a hardware button for it?22:23
siceloit just pops up when input field is focused22:23
inkyin which browser?22:23
siceloi didn't test browsers22:24
inkyyou cannot write anything in any browser22:24
inkyand you cannot copy paste to the browser input field.22:24
inkyso blogging is out of question. using webmail is out of question. web anything.22:24
* sicelo doesn't use Qt if he can help it ... and yes, does recall that the leste browser is Qt22:25
sicelobut the Qt problem is already being worked on ... so that's soon not going to be a problem either, i believe22:25
inkyit's not a qt problem. if you want to tap in firefox, it's not qt22:26
inkytap in the address bar, it doesnt bring you the keyboard.22:26
freemangordoninky: browsers do not bring vkb up because they don;t follow the standards22:26
inkywell i use other keyboard, i solved my problems.22:27
freemangordonit is really browser issue, not leste or vkb22:27
freemangordonsure22:27
inkybut other users cannot solve them.22:27
freemangordonstill, it makes sense someone to raise bugs against browsers22:27
inkyi think the best thing i can do for others is to package the keyboard i use and explain how to use it in the wiki22:27
inkyand also then my package i guess should disable him. and uninstalling it should enable him back.22:28
inkyit's not only browsers. xterm also doesnt feel the tap.22:28
freemangordonno way22:28
inkynot osso xterm. regular one.22:28
freemangordonah, xterm22:28
inkyyes.22:28
freemangordonanyway, I am not going to argue that HIM is the best option around22:29
inkyfreemangordon: i am extremely thankful to you for all your support and all what you did with him. i can use him with dino or some other programs.22:29
inkyi just wanted to say to sicelo that it has problems, and on pinephone if you use non latin keyboard you just cannot survive because as i explained no way to trigger it, and necessity to write setxkbmap in osso xterm which not many would be ready to do.22:31
freemangordonyeah, we have to write that gesture handler that brings vkb up someday22:32
inkyoh that would be amazing!22:32
inkyjust for you to know, i mentioned it, but for you to know, there is also a bug which, when you write in vkb, sometimes non latin characters are not copied to the input field of underlying program.22:33
inkylet's say you type in vkbd and what you typed has to appear in leafpad or our email program or anything supported22:33
inkybut then only "," or "." symbols are there22:34
inkyinstead of other non latin symbols you get whitespaces.22:34
inkyit happens rarely, but it happens.22:34
inkyi have no idea how can you repeat it. it's not often.22:34
inkyfreemangordon: i am also very thankful that you enabled unicode in xmpp accounts.22:47
inkymy account is unicode so thanks no you i can use conversations.22:47
dsc__firefox is able to raise a vkb, but only on wayland it seems23:55
dsc__going to guess its because wayland standardized the way virtual keyboards are suppose to work23:55
dsc__people have been asking for firefox vkb support since 2010 on their tracker, i doubt x11 will get it23:56
dsc__s/tracker/bugtracker/g23:56
dsc__just a guess @ wayland, I dunno much about wayland internals :p23:58

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!