libera/#maemo-leste/ Wednesday, 2022-04-27

lelIMbackK opened a pull request: https://github.com/maemo-leste/osso-xterm/pull/3 (Don't use osso service activation)00:20
lelIMbackK synchronize a pull request: https://github.com/maemo-leste/osso-xterm/pull/3 (Don't use osso service activation)00:23
lelfreemangordon closed a pull request: https://github.com/maemo-leste/osso-xterm/pull/3 (Don't use osso service activation)07:49
_uvos_freemangordon: i dont think there is a bug08:11
_uvos_its just impossible for dbus activation to work08:11
_uvos_since there is just the one xterm dbus interface, but we have several seperate apllications running in xterms08:12
_uvos_there is no way for the interface to work as desinged, as there is no way for it to know what application needs activation08:13
_uvos_so short of having xterm crate a different service for eatch application i dont see how a solution is possible besides just not using dbus activation for xterm08:15
freemangordonuvos: and who and why tries to activate xterm?08:43
_uvos_freemangordon: hildon08:44
freemangordonyou mean - there are xterms, and you click on the launcher icon?08:44
_uvos_so we have 1 application running in an xterm08:44
freemangordongui application?08:44
_uvos_this xterm was launched on behalf of this application08:44
freemangordonok08:44
_uvos_because its termnial=true08:45
freemangordonok08:45
_uvos_in .desktop08:45
freemangordonyeah, got it08:45
_uvos_then the user wants a xterm08:45
_uvos_right then the problem happens08:45
freemangordonlemme check how that works in fremantle08:45
_uvos_in freemantle terminal=true is not supported08:46
_uvos_we added that08:46
freemangordondoes not matter08:46
freemangordonyou still can start htop or mc08:46
freemangordonstarting mc from the launcher starts mc in osso-xterm, trying to start osso-xterm after that brings mc on top08:48
freemangordonthat's correct08:48
freemangordonif you want another terminal, you shall start it with "new" anyways08:49
_uvos_i think this is bad08:49
freemangordonno08:49
freemangordonthis is by design and sane behaviour imo08:49
_uvos_its not sane at all imo08:49
freemangordononly one copy of xterm can be started from the launcher, no matter if something runs there or not08:50
_uvos_if i click on xterm i want xterm not nmcpp or whatever08:50
freemangordonno, this does not work like that08:50
freemangordonnew osso-xterm is launched from the menu08:50
freemangordonnot from the launcher08:51
freemangordonnew as in "new after the first"08:51
_uvos_well yeah but osso-xterm is several different applications if its launched via .desktop termnial=true08:51
freemangordonalso, see what ctrl-shift-x does08:52
_uvos_the fact that this application is running in an xterm is just an implemnentation detail08:52
_uvos_this is really broken if only one xterm is allowed08:52
freemangordonit opens new terminal even if there is already running one08:52
freemangordonI think you are getting this wrong08:52
freemangordonyou *can* open new terminals08:53
freemangordonjust not from the launcher08:53
_uvos_since by your method whenerver one terminal=true app is running08:53
_uvos_all .desktop files with terminal=true are broken08:53
_uvos_its just broken behavior08:53
freemangordonwhat do you mean "broken"?08:53
_uvos_they tont work08:53
_uvos_you cant launch nmcpp while htop is running08:53
_uvos_via its .desktop file08:53
_uvos_the dekstop file is broken08:54
freemangordonwell then, the issue is with "terminal=true" support, not with xterm08:54
_uvos_untill all xterms are closed08:54
_uvos_no08:54
_uvos_because again08:54
freemangordoncheck how ctrl-shift-x opens new terminal08:54
_uvos_yes i know08:54
_uvos_it uses dbus08:54
freemangordonthe same shall be done for "terminal=true" IIUC08:54
freemangordonso?08:55
_uvos_the fact that htop runs in xterm is a im9plementation detail08:55
_uvos_it shal not change the bavior of the xterm .desktop file either08:55
_uvos_thats jus assinine08:55
_uvos_*just08:55
freemangordondo I get it right that we discuss some imaginary distro with hildon and without osso-xterm?08:55
_uvos_no08:56
freemangordonsorry, I don;t really understand the issue then08:56
freemangordonhildon-desktop shall call libhildonmime finctions to try dbus activation, if it fails, then it shall do what it does now (running osso-xterm directly, IIUC)08:57
freemangordonor rather osso-rpc08:57
freemangordonnot libhildonmime08:57
freemangordon_uvos_: right now hildon just executes osso-xterm, right?08:58
_uvos_except that dosent work for this case at all08:58
freemangordonWTYM?08:58
freemangordonwhat exactly does not work?08:58
_uvos_as xterm can have serval personalities depening of it it was launched for the user08:59
_uvos_or on behalf of some other application as an implementation detail08:59
freemangordonok08:59
freemangordonok, lemme try to explain my idea:08:59
_uvos_anyhow this is useless i allready know your never going to reccognize the problem as its a design flaw in freemantle08:59
_uvos_and we cant have those08:59
freemangordon_uvos_: do you get disconnected or you don;t want to discuss?09:00
norly_uvos_, freemangordon: i can confirm this xterm bug.15:31
norlylaunching htop from the hildon app meny first, then xterm from the app menu, doesn't open the second xterm window15:32
norlyhowever the converse works: opening xterm first, then opening htop from the app menu results in two windows.15:32
uvosright the htop desktop file dosent use dbus activation15:52
Wizzupisn't that how it works on fremantle?16:02
Wizzupthe only way to open another xterm is to use the menu16:03
uvosWizzup: yes it is16:13
uvosWizzup: the problem is this becomes broken when you launch .desktop files that implicitly open xterm16:13
Wizzupoh16:13
uvosie launch htop or whatever16:13
Wizzupyeah that's a problem16:13
uvosthen when you want to launch xterm....16:14
freemangordonI think a proper fix is to not register xterm as osso-service when launched by h-d because of 'terminal=true'16:41
freemangordonmaybe additional cmdline paramater or something16:42
freemangordon*parameter16:42
Wizzupright16:43
freemangordonnot to say I think this is already implementd16:48
freemangordonhttps://github.com/maemo-leste/osso-xterm/blob/master/src/main.c#L4916:48
freemangordonso, h-d shall start osso-xterm through dbus, by using "run_command"16:49
freemangordonthis opens new terminal window and executes whatever needed, IIUC16:49
uvosthis dosent help16:50
freemangordonwhy?16:50
freemangordonIIUC the particular issue is that you cannot start more than one applications with "terminal=true"16:50
uvosits still broken since the xterm desktop file will still focus a random application window instead of creating the "first" xterm window16:50
uvosno its not16:51
uvosthis works fine16:51
freemangordonuvos: look at the code16:51
uvossince hildon dosent use dbus activation for desktop files without the x-osso-whatever key16:51
freemangordonwell, we can teach it to do so for "terminal=true"16:51
freemangordonand this will be a proper fix - new window will be opened and it will get focus16:52
uvosthen it would break it again16:52
uvosit works  _now_ since it dosent use dbus activation16:52
uvosthe problem comes if you launch the osso-xterm desktop file only16:52
uvoswith the special key16:52
uvossince it dose use dbus activation16:52
uvosactivating a random xterm launched by terminal=true16:52
freemangordonok, thats another issue then16:53
freemangordondo you have example desktop file/application?16:53
uvosany deksktop file with terminal=true works fine here to repo16:54
freemangordonuvos: ok, to summarize:16:58
freemangordon1. h-d support for terminal=true shall be changed to use dbus "run_command" method16:58
freemangordon2. we can change osso-xterm to not focus (the first opened) terminal window but to create another window if needed, though I don't see why we shall do that given that you can always start "new" window from xterm menu16:58
freemangordonhmm, most-probably if we start osso-xterm for terminal=true in such a way that it does not register itself as dbus service will fix (2) too17:01
freemangordonnorly: this is not a bug, this is by design17:03
freemangordonBTW the same happens on fremantle: if you start mc and then you start osso-xterm, mc is window is activated17:07
freemangordon*mc window is activated17:07
freemangordonbut then again, you can always start new terminal from the menu17:08
norlyfreemangordon: this is totally unexpected and confusing17:11
norlybut i see you already have ideas, so thanks a lot!!17:11
freemangordonnorly: ever used fremantle?17:12
norlyfreemangordon: yes, but i haven't gotten around to set it up again to compare, sorry :(17:17
norlyin any case, leste is evolving at an amazing pace, and even that already feels like being back home (like fremantle). so thank you so much.17:19
freemangordonWizzup: uvos: what about adding another dbus method ('terminal'?) to osso-xterm that is used by h-d to start terminal=true applications and that sets a property ("no_focus_on_activation'?) of the particular window, so when dbus activation is requested, windows with this property to be excluded. if we have no available window to be activated, create a new one.17:24
norlyfreemangordon: that sounds great, actually!17:40
norlythe no_focus_on_activation solution, i mean17:41
tmlinduvos: no idea what goes wrong there with the stock kernel.. but sure looks like the uart is not clocked when something is getting printed19:43
uvostmlind: ok, its pretty wierd19:45
uvostmlind: i just removed all printascii debug prints from kexec modules19:46
uvosit dosent help19:46
uvos:`qq19:46
uvostmlind: btw kexecboot build root dosent build anymore with newer gcc19:47
uvostmlind: theres a fix in upstream buildroot19:47
uvosits also to big and dosent fit anymore now :(19:48
uvosfreemangordon: sure but that seams like a lot of effort for bahvior i think is bad ui anyhow19:52
Wizzuphow about other non-terminal apps like contacts?19:54
uvoswhat about them?19:54
uvossure contacts being a singleton make sense19:54
uvossame with sphone eg19:54
uvosthe terminal? not so mutch19:55
Wizzupis there some xdg key for singleton?19:55
uvosthere is a x-osso key19:55
freemangordonuvos: the rationale behind is that no new osso-xterm process is started, just a new window instead20:02
uvosso?20:03
freemangordonso you save on RAM20:03
uvosthat dosent enforce the sigelton pattern in the ui wrt ram20:03
freemangordonWizzup: every osso application is singleton one20:03
uvosreally annyoing in other places to btw20:03
uvoslike why cant i have to pdf viewers20:03
uvostwo20:04
buZzdangit, maemo said 60% battery, i pull the usb cable , plop , shutdown20:04
freemangordonuse your laptop20:04
buZzreally think my install is kinda crooked again :P20:04
Wizzupmaybe we can make it configurable20:04
freemangordonno, please, stop that20:04
freemangordonwe have lots of gaps here and there20:04
WizzupbuZz: I think my device also please turns off a bit too quickly with older battery20:04
buZzi think the thresholds might be a bit too tight20:04
buZzor dno20:04
uvosbuZz: mce turns it off it it goes below 3.45 volts20:04
uvosits quite conservative20:05
uvossince we cant boot if the voltage is to low20:05
uvosyou can lower it a bit if you want20:05
uvos(at the expense of maybe causing to to be unbootable)20:05
uvosalso the battery indicator lies if uncallibrated20:05
freemangordonuvos: I am under the impression that you are missing the point of what a mobile OS is20:06
freemangordonthis is not server/desktop OS20:06
uvosi dont get why being on mobile should restict me in what windows i can open20:07
uvosbut ok20:07
freemangordonbecause it is resource limited20:07
uvosbut20:07
uvosits not20:07
uvosd4 can open hundres of xterms before its out of ram20:07
freemangordonbecause it opens new windows, not new processes20:07
freemangordonexactly because of the osso service acttivation20:07
uvosnot really20:08
freemangordonyes, really20:08
uvosbut thats not the point20:08
freemangordonwhat is tha RAM usage of a single osso-xterm process?20:08
uvosno idea but probubly not more than 4 meg20:08
* freemangordon checks20:08
uvosbesides this is not the point20:08
WizzupI think fmg says multiple pdf windows is fine, just preferrably not multiple processes20:08
freemangordonexactly20:09
freemangordonon amd64 VM, osso-xterm uses 23644k RES memory according to top20:09
uvosthat.. tells us nothing20:10
freemangordonno, that tells us that it uses ~24MBs of RAM20:10
freemangordon"RES stands for the resident size, which is an accurate representation of how much actual physical memory a process is consuming"20:11
uvosno idea where you have that from20:11
uvosbut it includes shared20:11
uvosso with what maemo launcher is doing...20:12
uvosalso 64bit x86 != 32 bit arm20:12
freemangordonsure20:12
uvosnumber is mostly useless20:12
siceloWithout entering this discussion, may I mention that on Fremantle i have vim, htop and irssi ... all these have .desktops. i can open them without getting any of them to open in a random existing xterm window.20:12
freemangordonsicelo: yeah... but because they have "hildonized" .desktop files20:13
freemangordonwe want to get rid of that20:13
uvosobviously replaceing all the .dekstop files in debian repos is out of scope20:13
freemangordonthere is a standard way (terminal=true)20:13
freemangordonuvos: so, back to the matter - besides that it will require some effort to be implementd, do you see any other flaws in my proposal  how to fix the issue?20:14
uvosno20:14
freemangordonok20:14
freemangordonthen please opens an issue and assign it to me20:15
freemangordon*open20:15
buZzdidnt sliding closed after sliding open used to turn off screen20:15
buZz?20:15
uvosyeah20:15
uvosi had to break this temprarly20:15
uvosmce dose this20:15
freemangordonbuZz: auto-lock is broken too in -devel20:16
freemangordonbut uvos said he'll fix it when he has some time20:16
uvosfreemangordon: ill do it right after i get my device to boot again with sim20:16
uvosautorelock is harder20:16
freemangordonuvos: sure, I didn;t mean to sound offensive or something20:16
uvosfreemangordon: no worrys20:17
freemangordonjust explaining the situation20:17
uvosbuZz: so mce relocks whever no input event was caused, except for events that are ignored20:17
uvosbuZz: unfortionatly mce chooses events to ignore based on which device they come frome20:18
uvosbuZz: unfortionaly on d4 the slider key and the volume buttons are on one deivce20:18
uvosbuZz: you can have it ignore the volume buttons, or you can have it not ignore the slider key as an "input" for autorelock20:18
uvosyou cant have both20:18
uvosatm20:18
buZzah ok, cool , np20:19
freemangordonuvos: do you want me to look at this?20:21
uvosfreemangordon: no its fine20:21
freemangordonok20:22
uvosi just have to replace the filter system with soemthing that filters per key code instead of per device20:22
uvosits on my list20:22
freemangordonright20:22
uvostmlind: not ever loading the uart module dosent help either :|21:12
uvostmlind: so there is a bug in stock kernel uart subsystem that somehow triggers on kexec21:12
uvostmlind: (with this sim)21:12
uvosreally strange21:13
uvostmlind: well im at a loss21:19
uvostmlind: ill go with echo shutdown > /sys/class/radio/mdm6600/command; sleep 5 for now21:20
uvosthat makes it boot reliably at least21:20
uvosWizzup: tmlind:  https://github.com/maemo-leste/clown-boot-kexec/tree/3.0.8-leste-simboot-tests <-- here will be the modules with working ainchent cross compile toolchain (x64) and build script if you have to build these hatefull things21:25
uvosin future21:25
uvos21:27
Wizzuphoneycomb builds are now working on armhf, adding arm64 now22:05
Wizzupthe speed beats the amd64 builds :)22:05
uvosWizzup: great22:09
norlyis there an easy way to have a mouse pointer when running the x86 build in a VM?22:22
norlyas in, to have it *visible*?22:23
norlyah, got it. invoking qemu with -display gtk,show-cursor=on should do the trick :)22:32
norlynext question then... F7/F8 are mapped to the volume keys. but when running the VM, is there a key to turn on the virtual screen again after it went to sleep?22:38
uvosF7/F8 are not mapped to the volume keys22:38
uvosjust some applications react to f7/f8 the same as volume22:38
uvosanyhow22:38
uvosits by pressing the acpi power button22:39
uvoshow thats done on your vm varies22:39
uvosfreemangordon: new mce version should be fine wrt autolock23:10
uvosfreemangordon: but dident test beacuse i use the newer cp applets that do not use the gconf if anyhow (so setting autolock works either way)23:10
Wizzupuvos: can you check the mce arm64 build23:18
Wizzupuvos: I am not sure if it's my changes or something in mce23:18
uvosnone of the depends changed23:19
uvosso i dont see how it can be a change in mce23:19
Wizzuphmm23:19
Wizzuparmhf worked fine though23:19
Wizzupand they are the same setup23:19
Wizzupmaybe just retry?23:20
uvosits not finding any packges23:21
uvoslooks like23:21
Wizzupok23:21
uvosfrom leste repo23:21
uvosis it maybe missin in sources.list somehow?23:21
uvossure i can retry that dosent cost anything23:21
Wizzuptry again?23:22
Wizzupyeah23:22
WizzupI just made a change23:22
Wizzupmaybe not in time23:22
Wizzuplet's see23:22
uvosstill failing23:22
Wizzupoh I see..23:22
uvoshmm?23:23
WizzupI missed a config file23:25
uvosready?23:25
WizzupI started it23:25
Wizzupty23:25
uvosok23:25
uvosthanks23:25
Wizzupnote it might still fail but that should be a predictable one23:26
Wizzupit will build the pbuilder env now23:26
Wizzupand then I will chroot and add the keys (one time thing)23:26
Wizzupyup23:26
uvosnot sure what your doing there but im sure youl make it work :P23:27
Wizzupit should work this time23:28
Wizzupi've just been reverse engineering the bash history of root on the build pis that parazyd set up23:28
uvoslol23:28
Wizzup*shrug*23:28
Wizzupit works23:28
uvosmaybe write it down this time23:28
WizzupI have23:28
uvosgood :)23:28
Wizzupboth are set to 8GB ram and 6 cores23:29
Wizzupcould increase it some but I don't want to fully hit the machine yet23:29
uvosok23:29
uvosprobubly the storage io speed is the biggest gain here tho23:30
uvoson the pis most of the time installing the packages took more time than the compile23:30
Wizzupyes23:30
Wizzupthe speed is also 3x at least23:30
Wizzupgoing to sleep soon, but glad this is finally done23:37

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