libera/#maemo-leste/ Thursday, 2024-08-01

arno11inky: also got it with proot00:45
arno11iirc the culprit is hildon-input-method00:45
inkyohhh...02:44
inkymy friend wrote very good keyboard, and added rotation support. so it rotates together with the screen, adjusts its size. so in portrait mode it is very convenient to use onscreen keyboard now. but yes, whitespace rotates back to landscape. then another whitespace rotates to portrait. :/02:50
inkymaybe this is here... https://github.com/maemo-leste/hildon-desktop/blob/e79fbd450eae55e832feb2f1eb481a146ee5143e/src/launcher/hd-app-mgr.c#L140802:55
sicelointeresting that whitespace rotates orientation :-D09:15
siceloinky: and no, i don't think it's that line. that seems to be checking for a space before some command, so it can remove the spaces before running the command.09:16
siceloat least that's what i think is happening there, with my limited C-fu09:16
* enyc meows sicelo 10:24
enycWizzup: AIUI in practice zram seems more helpful/used than zswap, but  things like n900 might now be considered a niche case10:25
enycPOP!_OS includes some zram setup heuristic out the box that apparently works well10:26
enycnot sure Ubuntu/Mint/Debian/MX/Devuan do at all though; tried to suggest it ........10:27
uvosinky: i dont think i quite grok what you are reporting11:20
uvosso in your cusom vkb pressing space causes the device to rotate?11:20
uvosi would suggest that maybe something is causing a different window to be (momentarly) focused on space11:21
uvosh-d would then check the protraitable flag of that window11:21
uvosfind it missing and rotate to landscape11:21
uvosmaybe try setting the "allways allow portrait" setting in transition.ini to check if its that11:21
uvosotherwise maybe describe whats happening in more detail11:22
inkyuvos__: so diejuse also experiences it, and i even found it in the logs, h e reported it in this chat in february 18. though he uses onboard.12:28
inkyok, interesting, i tried with wired keyboard, and hardware wired keyboard does not rotate the screen. but onscreen keyboards do. will write to the author again.12:40
arno11could someone explain me what is the role of hildon-desktop-wait in xsession.post plz ?13:21
arno11(can't find relevant info in logs)13:21
uvosarno11: h-d sends a signal hat it is ready (im not sure what the criteria for ready is) this xsession script halts untill the signal is recived13:25
uvosarno11: this is so that stuff that requires h-d to be up can be started for sure after its up13:26
uvosarno11: this is kindof a dependancy management hack maemo dose because it lacks a session manager with real depedancy managment.13:26
arno11ok ty13:28
arno11i wonder if it could be the culprit for random boot issues: maybe sometimes hd is never 'ready' (?)13:32
uvosthe only reason for that to be that i can think of is oom13:34
uvoswithout some kind of log output during a failed boot i dont think i makes sense to speculate more13:35
Wizzupinky: maemo detects attached keyboards13:35
Wizzupand then prevents rotation, I think13:35
uvosyes13:35
uvosbut i think the real issue is13:35
Wizzupif you want osd to not rotate, or to rotate, you need to either set certain X11 atoms, or work with us to see if there's an issue in h-d where it special cases hildon keyboard13:35
WizzupI think we wanted to look at the latter anyway for qtvirtualkeyboard13:36
Wizzups/osd/osk/ or whatever :)13:36
uvosthat when he clicks on the osd hildon sees a window raised that that dosent support portait13:36
uvoshe should be able to check that by setting transiition.ini to ingore those atoms13:36
dsc_hopefuly can commit Matrix stuff in the next few days13:46
dsc_it was a bit complicated13:46
dsc_:-P13:46
arno11cool13:48
dsc_I'm now an expert on Matrix and federation13:52
dsc_rip13:52
inkydsc_: i use xmpp. i even join this irc via xmpp gateway. xmpp is much easier to host. and it is a democratically governed protocol. yes, i wish maemo had some representation on fediverse.13:54
Wizzupwe're also making progress on omemo13:55
Wizzupfor xmpp13:55
inkyin transision.ini i don't see any "allways allow portrait" like setting. i see forcerotation = 0 (also i tried it with 1, but didn't help).13:57
inkyi also added those apps to whitelist, but still pressing whitespace with x11 keyboard, not our maemo keyboard, rotates.13:57
inkyhm, i see osso-xtrem is in blacklist, but it rotates happily.13:58
dsc_inky: I also prefer xmpp, at least from an protocol/implementation standpoint13:59
dsc_Matrix clients are hard to code, and you see that in the existing clients14:00
Wizzupinky: can you make a bug report with this rotation issue so that we can discuss / keep track there?14:04
inkyso okay, i am using coolkbd (diejuse reported the same with onboard).14:04
inkythat's an onscreen keyboard developed by my friend. he even added maemo docked mode.14:04
inkyhis keyboard has 3 modes. it can cover the screen from up, from down, and it is able to resize active window and fit under it (i think he described it as maemo toolbar mode).14:04
inkyi connected that keyboard to the power button with xbindkeys, so when i press the power button on pinephone, the keyboard appears, then it disappears (gets killed).14:04
inkythe biggest problem is that in landspace mode, if the onscreen keyboard is used/sized comfortably, there is not enough space for the app in the upper part of the screen.14:04
inkyso portrait mode is indeed more convenient for using onscreen keyboard. right now our keyboard takes 1/3 of the screen in portrait mode and is very convenient.14:04
inkyi rotate dino, or other apps, and i use them in portrait mode. the only problem is that pressing whitespace triggers screen rotation.14:04
Wizzuppls also link the keyboard in question and the exact problem14:04
inkyWizzup: i'll open a ticket right now. i was searching for diejuse's issue to continue there but didn't find. still he has the same issue with onboard keyboard.14:04
sicelodsc_: yes, matrix protocol is huge14:18
inkyhttps://github.com/maemo-leste/bugtracker/issues/74214:25
dsc_sicelo: also, on the server side of things, I heard it has performance issues with the reference server daemon written in Python (?)14:25
dsc_anyway mostly growing pains14:26
dsc_this 'libquotient' library I have been using is high quality14:26
inkyyes, correct. synapse is written in python and is very heavy. also matrix (according to protocol) syncs all the images, all the data from the known other nodes of the network.14:27
inkyso my friend who runs it, just disabled federation.14:27
inkybecause his server space gets exhausted in days otherwise.14:28
inkyi think he mentioned about 50g per day back then.14:28
dsc_\o/14:28
dsc_oh god, its written in Twisted14:29
dsc_the predecessor to asyncio14:29
Wizzupdsc_: don't demotivate yourself xP14:30
inkyWizzup: did you see my github issue link?14:30
dsc_Wizzup: ever done stuff in Twisted?14:30
dsc_:P14:31
inkydsc_: i demotivated myself long ago. i am unable to use matrix. but i am always on xmpp. i don't have anything else.14:31
dsc_im not demotivated I'm just motivated to fork Matrix, remove 70% of the features and write a daemon in c++14:31
dsc_but maybe in another life :P14:31
inkymy biggest concern is that the protocol is governed by a private corp. not by community, like xmpp.14:32
dsc_yep14:32
dsc_well I dont really care about that tbh14:33
uvos__matrix syncs all the content incl videos/images for channels a user of that matrix server is registered on14:34
dsc_but I can see how some people care14:34
uvos__so it only grows huge if your users are in channels that send alot of media14:34
uvos__btw14:34
uvos__so if you run a server with a freind you can avoid it mostly14:34
Wizzupinky: I did see it, yes, I can't look into detail now14:37
inkyyay, good.14:38
uvos__inky: if you have forcerotation = 1 and it forces to landscape on space thats pretty wierd behavior14:39
inkyyes, it also forces with forcerotation 1 or 0, doesn't matter.14:40
inkyand with orientation lock applet enabled.14:40
uvos__dose space do anything else?14:40
inkyand i checked that:14:40
inky$ gconftool-2 --get /apps/osso/hildon-desktop/ui_can_rotate false  $ gconftool-2 --get /apps/osso/hildon-desktop/orientation_lock true14:40
uvos__like a popup like android dose?14:40
uvos__inky: as for the window being to small in landscape thats a hard to solve problem14:40
inkyi noticed that when i press the left upper button, and see all the minimized apps, and then press space, they all disappear and i see the wallpaper screen, like if i pressed the left upper button once again.14:41
uvos__android solves this by not allways makeing the window smaller but instead by paning the window to the input field14:41
uvos__but that only works beacuse andoird allways knows what input field is selected14:41
uvos__we dont beacuse it depends on the toolking14:41
uvos__(altho with at-spi you could alllways know too)14:41
uvos__inky: ok wierd14:41
inkythis keyboard is very indeed useful for me. i even want to package it.14:42
uvos__could you run xev14:42
uvos__and record what events it gets when you type something (incl space)14:42
inkyi can use it in portrait, and it types in everything. it also works on regular linux/x11.14:42
inkyminute, i am running xev14:42
uvos__sure i looks mutch better than him in general14:42
uvos__him is kinda, not so great14:42
inkyxev when opened, forces rotation to landscape. then when i press whitespace: https://bpa.st/ZJOQ14:44
uvos__if you have forcerotation = 114:44
uvos__you should be able to start with xev in portrait14:44
inkyminute14:44
inkyyes it started in portrait.14:45
inkyshould i type in xev window or in other window?14:45
uvos__into xev14:45
uvos__im looking to see if it sees any focus out events14:45
uvos__during text input14:45
inkythis is whitespace now: https://bpa.st/4MUA14:45
inkyyeah, no focus out.14:46
uvos__hmm14:46
inkylet me try other button14:46
uvos__but no keypress either14:46
uvos__it sends a change to the xcb map (strange why) but no keypress14:46
uvos__that dosent make any sense14:47
inkythis is pressing button a https://bpa.st/RNPQ14:47
inkyi think it tries to change the map to add the button to the current layout because it also has cyrillic and armenian layouts.14:47
uvos__the whitespace trace makes no sense14:47
uvos__could you do that again but14:47
uvos__show the fous in event14:48
uvos__when you switch to xev14:48
uvos__then type some text14:48
uvos__then space14:48
uvos__then type some text again?14:48
inkyi got keypress and keyrelease now with whitespace14:48
inkyhttps://bpa.st/7SJA14:48
inkynow i'll try as you say14:48
uvos__i think there should at least alos be a window resize event14:49
uvos__when rotation happens14:49
uvos__(ofc start in portrait)14:49
inkyhttps://bpa.st/ZUTA14:49
inkybtw it doesn't rotate now for some reason. in xev.14:49
inkybut if i press on something else it'll rotate.14:50
inkyi hope xev will register the event, if i press on something else.14:50
uvos__dose it rotate in xterm (not osso-xterm, regular xterm)?14:50
inkylet me try14:50
inkyinteresting, xterm is not forced to portrait when i even added it to transisions.ini whitelist.14:53
inkybut i can try dino or leafpad14:53
uvos__forcrotation = 1 should force it to portrait14:53
inkyit is set...14:53
uvos__something is wrong then14:53
uvos__xterm can be protrait on my device with that set14:53
uvos__are you restarting hildon-desktop?14:53
inkyoooooh14:53
inkyso i opened leafpad.14:53
inkytyped a14:54
inkyi didn't get any event in xev output14:54
inkythen i pressed whitespace in leafpad and got looots of events14:54
inkylet me give you14:54
uvos__thats notmal xev only shows events sent to its window14:54
uvos__oh thats not normal14:54
uvos__unless its the xcb map event again14:54
uvos__that is sent to every client14:54
inkyhttps://bpa.st/BWGA14:56
uvos__that looks like a normal rotation sequence (no input)14:57
inkyinteresting.14:58
inkyi am trying onboard, diejuse said onboard behaves the same.14:58
inkyhttps://bpa.st/WTEQ15:04
uvos__inky: ok these traces are unfortionatly not of any use, it would seam its not what i was suspecting it might be15:28
uvos__well i gues that dose make them of some use, they disproved that theory15:28
inkywhat was the theory?15:57
inkyhouse m. d. was saying 'nothing means something'.15:57
inkysorry... 'nothing tells us something'.15:57
uvos__inky: dose "xdotool key a space b"16:11
uvos__trigger portait rotation?16:11
uvos__when done via ssh wih export DSIPLAY=:0.116:11
uvos__*when done via ssh wih export DSIPLAY=:0.016:11
uvos__inky: i was expecting a focus out event that suggests some other window is takeing over for some time16:12
uvos__maybe even with a force landscape atom or  no atoms etc16:12
uvos__since that would cause h-d to reevalutate portrait mode16:12
inkylet me try16:18
inkyno, xdo tool types that 'a b' in the dino input field but does not rotate.16:18
inkyit's hard to check with onboard, i only have to believe to diejuse and arno11, who said same is in their android proot.16:20
inkyonboard is too big and goes to background for me.16:20
inkyi will work with coolkbd author as well, to try to understand what is happening.16:20
arno11inky: out of curiosity, is the issue still there if you remove (temporary) hildon-input-method from xsession ?17:14
arno11Wizzup: btw i have cmtspeech ready for 8000Hz (but need new shm value as well)18:00
Wizzupright18:07
WizzupI think we can push a leste-config with client and daemon changes, agreed?18:07
arno11yep18:08
arno11we already have daemon stuff btw18:08
arno11*custom daemon18:09
arno11i'll make a PR for cmtspeech this evening/night18:11
inkyarno11: let me try.18:17
arno11ok18:17
inkyroot@devuan-pinephone:/etc/X11# find . | grep -i hildon-input18:18
inky./Xsession.post/25hildon-input-method-configurator18:18
inky./replace/Xsession.post/hildon-input-method-configurator18:18
inkyi guess the file that starts with 25? temporary move it somewhere?18:18
arno11yep18:21
arno11and reboot18:22
arno11(on proot, it avoids weird behaviour with other keyboards)18:25
inkyarno11: thank you! when i remove hildon-input-method from xsession, my keyboard works!!!19:36
inkyTHANK YOU.19:37
inkyarno11, i don't remember what you also suggested for so that my status won't be... broken on boot?19:38
inkyi need to document those changes. i don't know what did i do and why already.19:38
arno11inky: no probs. the other stuff was hildon-status-menu on boot: the tweak is to start it later to avoid it to crash. but that's not a proper fix since nobody knows what's going on with it actually21:52

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