libera/#maemo-leste/ Wednesday, 2022-12-14

uvoshmm so something about installing the hildon meta package breaks tinydm (and also lightdms)  ability to spawn xorg as user00:10
uvos(and also it breaks dbus, but thats expected conisering what af-services dose)00:11
Wizzupuvos: our x pkg has elogind disabled, maybe this is the problem00:12
uvosah yes probubly00:13
Wizzupuvos: and our old hildon-meta (but not current) would I think conflict with elogind00:13
uvosits current00:13
uvoselogind is there00:13
uvosbut the new x package very likely breaks it00:13
uvoswhy must we disable elogind?00:14
Wizzupuvos: I think it has adverse effects if you don't have elogind00:15
uvosok00:15
uvosis there a good way ensure a package from a repo is ignored?00:16
uvosie that update dosent install xorg from madevu00:16
uvos*upgrade00:16
WizzupI think you can just install it by veresion00:16
Wizzupversion00:17
Wizzupare you testing this in a vm or d4?00:17
uvosvm00:17
uvosd4 is different problem00:17
Wizzupit might be easier to just revert952c00ba0dcbb57c03e8ec0693850d0c02aa43ec and rebuild xorg-server then00:18
Wizzupit only takes a few mins00:18
Wizzupbut if you search for 'apt install specific version' I am sure it will tell you00:18
Wizzupalso I think apt-get install -t <repo name for devuan/debian> might work somehow00:18
Wizzupnot sure how it works exactly, but I know you can pin by version for sure,00:18
Wizzup+ ssh amprolla@maedevu.maemo.org -- mkdir -p images/droid4/2022121301:37
WizzupHost key verification failed.01:37
Wizzup+ exit 101:37
Wizzupargh01:37
Wizzupwell that's over 2 hours of waiting down the drain :p01:43
Wizzuptomorrow then01:43
Wizzupchimaera xz images are ~150MB larger11:45
Wizzupwonder what changed11:45
buZzmaybe compare a du -sh /* ?12:00
buZzWizzup: btw yay, celebrations12:01
* buZz has internet at home again12:01
buZztook almost -exactly- a full month12:01
WizzupbuZz: great12:04
sicelo may i ask - what will go wrong if the evdev/proximity interface for mce is restored, while keeping the iio/proximity interface, i.e. allow them to co-exist?12:23
Wizzupsicelo: agree it could be useful to keep around12:26
buZzooo MCE can do proximity? nice12:27
buZzi was thinking the tklock might benefit from proximity reading, aka 'dont unlock if slide opens but proximity is VERY CLOSE' to prevent pocket-leste'ing12:28
Wizzupuvos: d4 chimaera images boot to 3g and everything, the only thing missing atm is HAM, which needs one code change and then it can work12:29
Wizzupand of course the 'extras' pkgs12:29
WizzupI got an sms from the operator in sphone12:29
Wizzuptmlind: freemangordon: got this just now on my lab droid - linux 6.1: https://dpaste.com/EV5CNE6BW.txt - could be related to uvos toying with screens for razr maybe13:48
norayrinteresting what from my extras packages won't build under chimaera.13:55
norayrcan i already test those in phoenix?13:55
Wizzupnorayr: are you using the vm image to build them?13:56
Wizzupnorayr: and yes, you can :)13:56
norayrusually i develop richt on device, but i have wm with bullseye and maemo13:56
norayris there a vm image already for chimaera?13:57
Wizzupuvos: something happened to my d4 where mce didn't re-enable the touchscreen, I had to go in with serial and type 'xinput enable 7'13:57
Wizzup(which is Filtered Touchscreen)13:57
norayri'll hest in phoenix first, and then if it won't build will use a vm13:57
norayranyone tried to build omweather? i remember i had troubles and didn't manage to solve those.13:58
Wizzupnorayr: ok, there is a vm image already built that should work fyi13:58
Wizzupthere is also a d4 image now13:59
Wizzuphttps://maedevu.maemo.org/images/virtual-machines/20221213-chimaera/13:59
Wizzuphttps://maedevu.maemo.org/images/droid4/20221214-chimaera/13:59
Wizzupit might save you a lot of time if you test on those, but feel free to use the ci13:59
norayrthank you!14:00
Wizzupthe branch is 'maemo/chimaera' as you'd expect14:00
Wizzupnorayr: got a link to omweather?14:01
Wizzupuvos: does gps work for you?14:13
Wizzupuvos: on 6,1?14:13
Wizzupit does not work for me on beowulf-devel or chimaera I think, I'll leave my phones outside a bit longer14:13
Wizzupfreemangordon: btw, let me know when you want to discuss experimental and such setup for chimaera, we're ready now I think14:14
uvosWizzup: @input this can happen if mce exits abnormaly or is killed for any reason14:30
uvosmce disables xinput devices while the display is off, but if it crashes or is killed it has no way of knowing which devices it disabled and which are disabled by xorg due to user config or xorg heuristics14:31
uvosso it cant renable them when it comes back14:32
Wizzupuvos: maybe the kernel trace is related to this then, but mce should be restarted in this case, and maybe it needs to re-enable the ts or something14:32
Wizzuphmm?14:32
uvosrestarting dose not help14:32
uvossee above14:32
WizzupI don't think user config is really a problem is it?14:32
uvosyes it explictly is a problem on mapphones14:32
WizzupI think it's entirely fine for mce to 'take over' when it starts up14:32
Wizzupwhy?14:32
uvosthey have a device that is disabled by xorg14:33
uvos(the normal touchscreen)14:33
uvosmce has no way of knowing which xinput devices are the ones it disabled and wich one is the one disabled by config (as required on mapphones)14:33
uvossame thing is true of the pocophone iirc14:33
uvosmce cant just "take over" all input devices14:34
uvosanyhow this is only a problem if mce crashes or is killed by signal 914:34
uvosotherwise it just releases the input devices on exit14:34
uvossame problem exits on n900 to iirc14:35
uvossince xorg ignores the accelerometer14:35
uvosas this is also a evdev device14:35
uvosthe real solution to this problem is to use replace mces input handeling with libinput14:36
uvossince it then shares heuristics with xorg and can use that to tell wich xinput device belongs to what14:36
uvosand wich are disabled by the user/config14:36
uvostheres also several other reasons to do this, as i have discribed at other times14:37
Wizzupbut what happens here is that the device is basically locking out the user14:41
Wizzuphmm14:41
WizzupI am not sure if mce crashed, but I can try to check the logs14:41
Wizzupbtw, gps works now.14:42
WizzupI was just impatient it seems14:42
Wizzuparg, keyboard is still disabled14:42
Wizzuplol14:42
uvosWizzup: yes its not great, mce generaly never crashes so its not been a problem yet but yes.14:48
Wizzupwell, mce is able to crash since dsme restarts it, so we might want to see if we can rescue it somehow14:51
Wizzupyou're saying that libinput has the same logic as x when deciding what to enable/disable? does it read udev rules?14:51
uvosyes so xorg asks libinput what do disable14:51
uvosso if mce where to be able to check with libinput on start it would know wich devices are disabled by config14:51
uvosand then it can assume the mce instance that died disabled all others14:52
uvosanyhow mces input handing is full of holes and needs to be replaced with libinput anyhow14:53
Wizzupmm15:11
Wizzupuvos: looks like my mc got SIBABRT15:30
WizzupDec 14 12:13:44 localhost DSME: Process '/usr/bin/mce --force-syslog' with pid 2526 exited with signal 6 and restarted with pid 569215:30
Wizzupthat is right around:15:31
WizzupDec 14 12:13:01 localhost kernel: [ 2916.577270] omapdrm omapdrm.0: atomic complete timeout (pipe 0)!15:31
Wizzupwell a bit later15:31
WizzupDec 14 12:13:44 localhost systemui[3235]: Method call received from: :1.64, iface: com.nokia.system_ui.request, method: powerkeymenu_close15:31
WizzupDec 14 12:13:46 localhost systemui[3235]: Method call received from: :1.64, iface: com.nokia.system_ui.request, method: tklock_close15:31
uvosthats systemui, where is mces log?15:33
uvosif it aborted it presumably failed an assert15:34
Wizzupuvos: this is a fresh chimaera image, so I don't think I have any errors from mce logged15:36
WizzupDec 14 12:12:18 localhost mce[2526]: tklock.c: disable_eveater: eveater disabled15:36
WizzupDec 14 12:13:44 localhost mce[5692]: mce-conf: Could not get config key PowerKey/KeyCode15:36
Wizzupthis is the only msg before/after the restart15:36
Wizzupuvos: btw I know it's systemui, but it interacts with mce, which is why I posted it15:37
Wizzup(note that for the two mce lines there are different pids)15:37
Wizzupuvos: btw looks like we're almost done with chimaera :)15:41
uvoswell not the session stuff15:42
uvosthats a lot of work untangeling the mess of how the current session is created15:42
uvossince that happens in a lot of places15:42
uvosany bit of it running breaks all other session15:42
uvoss15:42
Wizzupright, but it's basically the same situation as on beowulf, where elogind also existed15:43
Wizzupuvos: why is the untangling necessary btw?15:43
uvosthere are alot of assumptions made when stuff starts in relation to eatch other15:44
uvosinit scripts spawing processes that need processes in the the session that need processes spawned by init scripts15:44
uvosthe init scripts themselves have lots of dependancies that end up starting xorg or xsession via various depends paths15:45
uvosetc15:45
Wizzupright, but how does this matter to the elogind, can't it just start the stuff the same way?15:45
Wizzupor is it a non-technical reason that you want to untangle it, into actual login sessions15:45
uvoswell untangeling the depens is absoulty nessecary15:46
uvosotherwise the old system will start x15:46
uvosand the way the starting order works is increably fragile15:47
uvosand tends to break if you change anything15:47
uvosie change how the session is started15:47
uvostheres stuff like sleep 215:48
uvos(and hope the other process is started now)15:48
Wizzupso I thought you could replace /etc/init.d/xorg and /etc/init.d/xsession with tinydm15:49
uvosyou can but you need to update the depends and it breaks the sleep asumptions because timeing15:49
Wizzupassuming that would start X and then just execute the scripts that xxession does15:49
Wizzuphm, the timing really breaks? that's odd15:49
uvosalso the current setup starts x15:49
uvosdose stuff15:49
uvosthen starts xsession15:50
uvosthis is not possible15:50
Wizzupok15:50
Wizzupuvos: do you think we ought to wait with the chimaera release for the elogind parts?15:54
WizzupI was hoping we could have it done before christmas, but it's not -required- of course15:55
Wizzupwe could also have people upgrade their way through this, I suppose15:55
uvoswell replaceing the session stuff and haveing it work without reintall is going to be fairly painful/error prone probubly15:55
Wizzupif we release it without elogind, I suppose people would at least be able to dist-upgrade15:56
WizzupI think it would be good if we can make it work btw, dist-upgrade, but I agree it'll be tricky15:56
uvosi mean repalceing the session stuff can work ok via upgrade15:56
uvosits just very likely it will break on manny installs for unforsen reasons15:57
uvostheres also the other unkown issues still15:58
WizzupI think maybe what is best is to re-add the conflict on elogind to hildon-meta for chimaera now, and then in whatever we call the new chimaera experimental, toy around with tinydm there15:59
Wizzupand then from there we can also work on a dist-upgrade path for it15:59
uvosnot sure what the conflict helps at all really15:59
uvosits not like its preinstalled15:59
Wizzupit prevents packages pulling it in, which many do15:59
uvosnot really15:59
Wizzuptry to install anything mafw15:59
uvosapt just drops the metapackage15:59
Wizzupit will pull in elogind and break the device15:59
Wizzupno, it won't16:00
Wizzuphildon-meta is marked 'essential16:00
Wizzup'16:00
uvosok that new16:00
Wizzupso you'll have to type something like 'YES I AM REALLY SURE'16:00
uvosi allways end up with it being removed on beowulfd16:00
uvosby mostly silently apt16:00
Wizzupnot since the new ddx driver I think16:00
uvos*by16:00
uvosok16:00
uvosimo chimaera "stable first" was a mistake and it shows here16:01
Wizzuphm?16:01
Wizzupwhat do you mean?16:03
Wizzupwe'd have to support a dist-upgrade no matter what, no?16:10
uvosWizzup: no i mean you want to revert the change thats a step in the session direction because the chimaera image must continue to work for users now because its stable and no devel equivalent for chimaera exists17:15
uvossame thing with xorg and patching away logind support17:16
uvosthere not being a nonstable eqivalent for chimaera means i have no where to put incremental changes that facilitate the session stuff comeing together17:17
uvosat maybe the expense of stuff being more break happty17:17
Wizzupuvos: we don't want to build new packages for beowulf, right? since we're moving to chimaera?17:35
Wizzupthe porting to chimaera was never aimed to get to elogind sessions, that was just half forced upon us17:36
Wizzupso I don't think I agree it has to happen in lock step with the migration to newer debian17:36
Wizzupsure it would be a nice, but I think we'll hold ourselves back if just stay a in-between beowulf and chimaera limbo until we get it resolved17:36
uvosWizzup: ok17:55
freemangordonuvos: BTW, as you think dsme should be removed, what is the replacement?18:27
freemangordonwho is going to reboot the device in case h-d fails to restart in case of a crash (for example)?18:28
tmlindjus fyi, i got the mz617 lp8550 mostly figured out, driver need changes. will look at the bridge driver again, seeing just dsi errors for now18:39
uvosfreemangordon: so systemd can do that, faling this im not opposed to dsme in pricipal it just needs to be cut back to manage only processes inside the same session it is also in, otherwise its pretty broken19:08
uvosalso the restarting behavior of dsme is totaly broken19:09
uvosthe most common cause of a deamon failing to restart more than n-times is some update brekaing it19:09
uvosor a user config change that exposes a bug19:09
uvosin these cases dsmes reboot behvior will break the install essentally forceing the user to reinstall19:10
uvosbecause it will go into a forever bootloop19:10
uvossame thing if a deamon fails to start during an update19:10
uvosi also dissent that rebooting is usefull behavior at all, except in the case of the kernel (where a reboot IS a restart)19:11
uvosif maemo bits stop working permanently a session restart should be executed instead19:11
uvosofc the current setup makes restarting the session cleanly impossible19:12
uvosalso the session restart shal be exectued only once19:12
uvosto avoid the whole endless session restart thing that might otherwise happen19:12
freemangordonwhy restart session instead of device?19:12
uvosno possible failure mode besides kernel failures cant be resolved by restarting the deamons and the session19:13
freemangordonok, but you want one more layer of complexity to be introduced without real gain19:14
uvosno19:14
freemangordonfew saved seconds is not really a gain19:14
uvosthe thing is with xdg sessions this happens automaticly19:15
uvosdsme must only exit19:15
uvosthe session manager restarts the session19:15
freemangordondsme must run as root19:15
uvosdsme should not run as root19:15
freemangordonand session shall tell dsme about session lifecycle19:15
uvosit should mange session processies only19:15
uvosthe init system should do the system proccesies19:15
uvosthis is the cause of manny a headache19:15
freemangordonno, because dsme takes care for WDs as well19:15
freemangordonand few other things19:16
freemangordondsme stands for DeviceStateManagementEntity19:16
freemangordonthis is not session state19:16
freemangordonso, you want to introduce systemd?19:16
uvosits a terrible alomoration of things this is true19:16
uvosthe point is it shal not mange system processies, and shal leave that to the init system19:17
uvosand the bit that manges session processies must reside inside the session in question19:17
uvosand then whatever is left can reside somewhere elsse19:17
freemangordonso my initial question stands - what will replace dsme functionality19:17
uvosas i say inside the session this is the session managers resposability19:18
uvosie autologin in this case19:18
uvosoutside its init19:18
freemangordonand who reboots the device if a critical session process cannot be restarted?19:19
freemangordonn times19:19
uvosno one19:20
uvosthe session is restarted instead19:20
uvosand the deamons are if needed19:20
uvosthis covers all failure modes outside the kenrel19:20
uvoskernel restarts iself by building it with fatal oopses19:20
uvosthe session is restarted by autologin on the signal of dsme exiting19:21
uvosthis is how all other linux desktops work19:21
uvosand for good reason19:21
freemangordonthis is *not* linux desktop, but anyway, I have to run now19:22
uvosthis is falsely axiomatic19:22
uvosnothing about this happening to run on a phone changes anything here19:23
Wizzuptmlind: great news :)19:39
Wizzupuvos: in any case, it sounds like you're ok with cutting over to chimaera with the expectation that we will still split out the sessions in a future dist-upgrade?20:25
uvosWizzup: sure21:10
uvoscan we haz devel/expiramental branch right after? :)21:10
Wizzupyeah, I'm waiting for fmg to share with preferred names for it21:10
tmlindheh so the stock kernel uses dsi commands only for the bridge, it has gpio_46 usage inverted.. it need to be low to read tc358765 bridge regs with i2ctransfer when the lcd is enabled21:59
Wizzupgood sleuthing22:02
tmlindi think gpio_46 only affects the i2c control22:04

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