libera/#maemo-leste/ Wednesday, 2023-03-15

freemangordonuvos: yes, the questions "how mce tells x11 to disable input devices" is still relevant07:14
freemangordon*question07:15
freemangordonscratch that, found it07:17
freemangordonheh07:34
freemangordonmce: x11-ctrl: unable to open display07:34
freemangordonroot does not have access to X display07:49
freemangordonWizzup: any objections adding "xhost +local:" to startup scripts?07:49
rafael2kI here cheering for you.07:49
rafael2kxhost +07:50
rafael2k: )07:50
freemangordonyeah07:50
freemangordonrafael2k: could you upgrade your device to chimaera-devel and confirm xorg runs as user 'user'?08:33
rafael2kyes09:00
freemangordonrafael2k: 'yes, I could' or 'yes, it runs as user'? :)09:08
freemangordonuvos: it turned out mce cannot open the display :)09:08
freemangordonso no input devices got disabled09:08
rafael2kfreemangordon, sorry, I'll just apt-get upgrade with chimaera-devel repo and let you know, just a sec09:09
freemangordonsure, no hurry, I just wasn't sure what that 'yes' was supposed to mean09:09
rafael2kThe following NEW packages will be installed:09:15
rafael2k  autologin xinit09:15
rafael2kinsserv: Script zzzremove-first-boot-flag has overlapping Default-Start and Default-Stop runlevels (S 1 2 3 4 5) and (0 1 2 3 4 5 6). This should be fixed.09:17
rafael2kgot this too ^09:17
rafael2kInstalling new version of config file /etc/X11/Xsession-post ...09:18
rafael2kInstalling new version of config file /etc/X11/Xsession.d/00settings ...09:18
rafael2kInstalling new version of config file /etc/init.d/xorg ...09:18
rafael2kIt will take a bit as the kernel is also being upgraded (6.1.13 -> 6.1.15)09:19
rafael2krebooted - it is up09:24
rafael2kautologin, startx and xinit as "user"09:26
rafael2kXorg as "root"09:26
rafael2kXsession-post as "user" too09:28
freemangordonok, seems we'll have to tell it to run as "user"09:29
freemangordonrafael2k: does loginctl lists x11 session09:29
freemangordonit should be cN09:29
rafael2koginctl09:30
rafael2kSESSION  UID USER SEAT  TTY09:30
rafael2k      1 1000 user       pts/009:30
rafael2k     c2 1000 user seat009:30
rafael2k2 sessions listed.09:30
freemangordoncool09:44
rafael2klemme know any test needed09:45
freemangordonsure, thanks!09:46
rafael2k: ))09:46
freemangordonuvos__: do we car that much if startx runs Xorg as root? or, shall we divert /etc/X11/Xwrapper.config and add needs_root_rights=no?09:48
freemangordon*care09:49
sicelowhy would omap4 (samsung tab 2) break on thumb2 kernel? freemangordon any ideas?11:02
sicelois that perhaps why leste kernel isn't thumb2?11:02
freemangordonsicelo: what is the contaxt?11:47
freemangordon*context11:47
Wizzupfreemangordon: what does that do @ xhost?11:49
Wizzupfreemangordon: ah, that was the problem?11:50
freemangordonmhm11:50
freemangordonmce was unable to open the display so it was not disabling input devices11:50
freemangordonwith upgraded maemo-system-services we should be back to normal11:51
Wizzuplol11:51
Wizzupgood find11:52
freemangordonat least here I am seeing something like 40mA on d411:52
freemangordonwith gprs on11:52
freemangordonWizzup: maybe upgrade and confirm idle draw on your device is normal11:54
WizzupI will11:54
freemangordonwell, better upgrade :)11:54
WizzupI did :)11:56
sicelofreemangordon: working with mighty17[m], i was trying to use a common kernel config for his samsung espresso and my n900. it works, as long as THUMB2_KERNEL is not set. when set, the espresso doesn't boot correctly. unfortunately, he hasn't got uart, so for now we can't tell what breaks things with THUMB212:03
uvosmaybe build a thumb2 kernel for d412:10
uvospossibly its broken for omap4 in general12:11
uvosand d4 is easy to debug12:11
uvosthe leste kernel is not not useing thumb2 beacause of any know issue12:12
uvosits not thumb2 because thats upstream default, and i dident change it12:12
WizzupI think we have the same kernel for d4 and n900 now12:13
uvosyes12:13
Wizzuparen't we enabling thumb kernel? or just userspace?12:13
uvosjust userspace12:13
uvoswe have never used thumb2 kernel on d4 afaik, and since we absorbed the n900 into the d4 kernel it has not been thumb2 either12:14
uvosfreemangordon: we build our own xorg anyhow, so changeing the config file seams no issue. we dont care THAT mutch, but it is a real security thing.12:23
freemangordonuvos: if we are going to change Xorg, I would say we better fix it properly12:35
freemangordonthis: https://github.com/freedesktop/xorg-xserver/blob/master/hw/xfree86/xorg-wrapper.c#L235 is buggy12:35
freemangordonbecause it unconditionally checks for modesetting capability on dri devices12:36
freemangordonIIUC, there no way pvr driver to have modesetting caps :)12:37
freemangordonI wonder if it wouldn;t be easier to just remove pvr node from /dev/dri12:46
freemangordonBTW, we have the same issue with lima12:46
freemangordonso it is not d4 only12:47
freemangordonumm, pvr only12:47
siceloi would test thumb2 with my droid 4, but i'm going to be physically away from it for around 2-3 months12:48
bencohsicelo: may I ask which espresso you were referring to? because samsung chips have been shipped with arm64 kernels for quite a while13:02
bencoh(and/or which exynos SoC if you know)13:03
sicelosamsung tab 213:03
siceloit has omap4430 :-)13:03
bencohah, I see13:03
freemangordonWizzup: cannot build xorg on device or in VM, requires libsystemd-dev :(13:51
Wizzupheh14:15
WizzupI can help in 30 mins or so14:15
freemangordonWizzup: what about https://pastebin.mozilla.org/NHJousDv ?14:53
freemangordonor anybody who has a clue in that regard :)14:58
Wizzupfreemangordon: and you can't install libsystemd-dev?15:19
rafael2kxorg should not need systemd, this is strange, as it runs on OSes without systemd15:34
Wizzupif you want to build it with logind support you need libsystemd-dev15:35
Wizzupiiuc15:35
Wizzupand on debian they didn't make it so that you can use libsystemd-dev with elogind installed, again iiuc15:35
Wizzupfreemangordon: you can just tag it and run on CI15:35
rafael2kwhat a shit15:35
rafael2k:(15:35
arno11freemangordon: new dist-upgrade works on n90015:54
arno11power cons back to normal15:54
arno11idle 4715:54
arno11i've tested lot of stuff on n900. most things works fine15:59
arno11with chimaera16:00
siceloand modem?16:01
arno11modem is the main problem16:01
sicelostill broken? i would like to see the dmesg, etc. as requested yesterday16:02
arno11ok16:02
arno11[    0.486175] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possible.16:03
arno11[   16.314483] ehci-omap 48064800.ehci: new USB bus registered, assigned bus number 116:03
arno11[   16.410766] ohci-platform 48064400.ohci: new USB bus registered, assigned bus number 216:03
siceloi've got working modem in vanilla 6.3-rc2, i.e. without powervr, but it shouldn't affect modem in any way16:03
siceloarno11: modem is not on USB ...16:04
arno11sorry wrong command16:04
arno11in fact no mistake16:05
arno11grep modem and usb result16:05
sicelo:-)16:06
sicelos/vanilla//16:06
arno11mdbus2 gives no modem as well16:08
arno11only bluetooth lol16:09
sicelozgrep NOKIA_MODEM /proc/config.gz16:10
arno11CONFIG_NOKIA_MODEM=m16:10
sicelook, at least that's a good start16:11
arno11yes indeed16:11
sicelozgrep OMAP_SSI /proc/config.gz16:11
arno11CONFIG_OMAP_SSI=m16:12
sicelobtw, does the modem on your N900 work, e.g. in Fremantle?16:12
arno11yes no probs16:12
sicelodmesg | grep 'ssi\|modem'16:12
arno11usb results lol16:13
siceloi don't understand ...16:14
arno11see previous copy paste16:14
arno11ehci usb bla bla16:14
arno11but no modem16:14
siceloi'm not sure this comes from that dmesg + grep command16:14
arno11i confirm16:15
sicelooh, haha, i see. it's the "ssi"16:15
sicelossi exists in possible :p16:15
sicelo lsmod | grep ssi16:16
arno11no result16:17
sicelolsmod | grep 'nokia\|hsi'16:17
siceloweird16:17
siceloso the module doesn't load, but it exists16:18
arno11yep16:18
arno11nokia hsi no result16:18
arno11if no sim card is detected ?16:19
sicelomodem is independent of SIM. should still probe without it16:19
arno11ok16:19
sicelopost your dmesg somewhere16:19
arno11?16:21
arno11only dmesg ssi\|modem give results but not related to modem16:23
buZzare we merging https://marc.info/?l=linux-omap&m=167819256924890&w=2 soon? :D16:27
buZzcurious how the charging will get improved on cpcap16:27
buZzguess i could just do my own kernel again, but meh :P16:28
sicelobuZz: if you do build kernel, please humor me and enable THUMB2_KERNEL :-)16:52
buZz:D16:52
siceloI'm dying to know if it works on d4 or not16:52
freemangordonWizzup: I installed libsystemd-dev, in the cost of removing couple of packages17:47
freemangordonso, any thoughts about https://pastebin.mozilla.org/NHJousDv ?17:48
uvosi mean its not technicly true17:53
uvosyou could have a device with a render node that only supports ums17:53
uvosthat would be wierd, and dosent exist17:53
uvosbut its not impossib;e17:54
uvoshonestly the should just drop ums support form xorg allready...17:54
buZzis xorg even still being developed?17:56
uvossure17:57
uvosits commit history is still quite healthy17:57
uvoseven if you ignore xwayland stuff17:57
uvosand its still the dominat display server17:58
uvosat least like 1 year ago it was sill like 90%17:59
Wizzupfreemangordon: no real thoughts, if it works, let's do it19:32
freemangordonuvos: while I agree, the current check is even worse21:28
freemangordonBTW, if you have better idea how to fix that, please share21:32
freemangordonoh, ok, why is xserver-xorg-legacy installed in the first place?21:59
freemangordonWizzup: we shall remove that from the image21:59
freemangordonyep, removing that package from d4 makes Xorg run as user, without any patches22:04
sicelo:-)22:08
sicelobtw, there are chimaera images around already? or need dist-upgrade?22:09
uvosfreemangordon: any idea why https://github.com/maemo-leste/sphone/blob/6ca8fcc19d28e6f89163132fa5a8258a995680c6/src/modules/contacts-ui-abook.c#L95 never finds any contacts?22:16
uvosthe exact same query finds the contact if used with e_book_client_get_contacts_sync22:16
freemangordonuvos: maybe enable abook debug messages22:18
freemangordonsee https://github.com/maemo-leste/osso-abook/blob/master/lib/test-contact-chooser.c#L3222:19
freemangordonsicelo: yes, afaik22:21
freemangordon(there are images)22:21
uvosOSSO_ABOOK_DEBUG=all sphone -v -v dosent appear to print anything22:21
uvosis there something else22:21
uvosis osso_abook_debug_init required to get any output?22:21
freemangordonG_MESSAGES_DEBUG=all22:24
freemangordonalso, seems   osso_abook_aggregator_new() is async22:25
uvosah22:25
uvosok22:25
uvosdoc dosent tell me this22:25
uvoshttp://maemo.org/api_refs/5.0/beta/libosso-abook/OssoABookAggregator.html#osso-abook-aggregator-new22:26
freemangordonbut, why don't you use the functions I propsed?22:26
freemangordon*proposed22:26
uvosbecause i want to use the same query22:26
freemangordonok22:26
uvosthe idea being that later sphone can genrate ebook quers for eatch backend22:27
freemangordonok22:27
uvosand then both the eds and the abook module can use those22:27
uvosnot sure how to tell when osso_abook_aggregator_new is ready22:27
freemangordonsee https://github.com/maemo-leste/osso-abook/blob/master/lib/eds.c#L12822:28
freemangordonI think you should connect to  "ebook-status" signal22:29
uvosi presume havein a aggregator open at all times is bad22:33
uvos(ie uses power because its updateing presence or sutch)22:33
uvosothwerise it could just have a roster at all times and check OssoABookAggregatorState when it wants to query22:34
uvoshttps://github.com/maemo-leste/modest/blob/dc9929645ad2880b6a91848ce6dc514cacfb5c43/src/hildon2/modest-address-book.c#L9322:35
uvosmodest seams to solve this problem with a dirty hack22:36
Wizzupfreemangordon: cool, shall we conflict it on in hildon-base ?22:42
Wizzupor do we install it explicitly?22:43
uvosit was needed for n90022:43
uvospre ddk1.1722:43
uvosso presumably we install it explicitly22:43
WizzupI can't find it in leste-config, hildon-base or image-builder22:46
freemangordonwho install it then?22:56
freemangordon*installs22:56
uvoshmm osso_abook_aggregator_get_state never returns anything except OSSO_ABOOK_AGGREGATOR_PENDING (no mater how long it has been)22:57
uvosmust be doing something else wrong too22:57
Wizzupfreemangordon: maybe if you don't install elogind it gets installed automatically, but not removed when you install elogind23:00
Wizzupjust a guess23:01
Wizzupwe can conflict with it in any case I think?23:01
Wizzupwell, if you remove it on the d4 now, and dist-upgrade doesn't pull it back in... we're fine to conflict with it23:01
Wizzupmaybe good to also have it tested on the PP23:03
Wizzupjust tested, it doesn't get pulled back in23:04
arno11got the modem working on n900: module is not loaded on startup23:12
arno11otherwise it works23:12
arno11but the phone menu settings is not working23:13
uvosi mean no shit23:13
uvosits blacklisted https://github.com/maemo-leste/leste-config/blob/master/leste-config-n900/etc/modprobe.d/blacklist-omap-ssi.conf.leste23:13
Wizzupuvos: wait, we still blacklist the modem?23:18
WizzupI thought the issue was resolved23:18
uvosyes, aperantly23:18
uvossure maybe someone solved the underlying issue23:19
uvosbut no one updated leste-config23:19
arno11i can confirm: modem blacklisted23:19
Wizzupuvos: yes this is the case I believe23:21
Wizzupsicelo: ^^ shall I update the blacklist?23:21
siceloof course. blacklist should be removed23:21
Wizzuparno11: btw I'm just getting my n900 set up, so I can try to get you a trace tomorrow for the shutdown issues you're seeing23:22
Wizzupsicelo: just checking :)23:22
arno11i sent a message no more issue with shutdown23:23
arno11in fact most things works great now23:25
arno11excepting this bloody phone menu settings23:25
Wizzupthe setting applet?23:25
arno11yes23:25
Wizzupyeah... that's not finished...23:25
arno11ok23:26
Wizzupit requires a non significant amount of work, but it's not -impossible-23:27
Wizzupbasically the phone settings uses connui-cellular which wraps C functions to ofono calls23:27
Wizzupand the C functions made certain assumptions about when to block that don't make it super pleasant to wrap23:28
WizzupI did a bunch, but some things aren't even implemented at all / just stubbed23:28
arno11ok23:28
Wizzupenough for the signal and operator name and basic stuff to work though23:28
Wizzuppin/puk too23:29
arno11yeah23:29
Wizzupwe can look at it some time, see what else needs to be tackled.23:29
WizzupI guess for the n900 we still want call audio23:30
Wizzuppavel offered to help with some of it at fosdem when I talked with him23:30
sicelooh, he did?23:31
Wizzupyes, I thought I wrote that here23:31
siceloi thought he all but quit n900. nice to know :-)23:32
Wizzuphe prefers the droid, but he offered to help23:32
arno11that's nice23:32
Wizzuphe said he can get it to work, but we have to fix the latency, but he thought it was maybe some pa issue23:32
Wizzupmaybe even just the default pa buffer latency23:33
Wizzup(I think)23:33
arno11or resampling23:33
arno11with pa23:33
Wizzupif we can get it to work with alsa, even with poor quality, that'd be a big step towards actually getting it to work23:34
siceloi did get it working once myself. just need to get back to it23:35
Wizzupmaybe soon is a good time :D23:36
Wizzup<-- says he who constantly bites of more than he can chew to the point that he can't even bite anymore :p23:36
sicelo:-D23:37
uvoshttps://github.com/maemo-leste/libhildonmime/pull/423:45
uvosfreemangordon: ^^23:45
uvosallows one to open urls in modest23:45
Wizzupuvos: great :)23:47
Wizzuparno11: can you share your module blacklist for pm?23:49
arno11pm?23:52
sicelopower management, i.e. how you get 47mA standby23:54
arno11ok i m tired lo23:54
arno11lol23:54
arno11sec23:54
arno11omap3_isp23:54
arno11ehci_omap23:55
arno11omap_hdq23:55
arno11hci_nokia23:55
arno11hci_uart23:55
arno11sometimes less than 4723:56
Wizzupgreat, this will probably also help with debugging RET23:57
WizzupI wonder if we just add these to leste-config blacklist for now23:57
uvosthis is with ret right? 47mA seams like it would need to hit ret23:57
Wizzuphe said without23:57
uvosoh ok23:57
WizzupI'm going to check23:58
arno11we can try if we are sure they will not interact with other stuff23:58
Wizzupuvos: does maemo-6.1.y contain the n900 modem fix?23:59
WizzupI just pulled it, but still searching23:59
uvosWizzup: idk whats the modem fix?23:59
uvosits only 15mA more than d4 gets with ret, so pretty good23:59
arno11cool23:59
WizzupI see my 'force pio for now', but iirc sicelo tracked it down23:59

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