libera/#maemo-leste/ Monday, 2022-08-15

freemangordontmlind_: we still have that 'dma modifiers' or whatever issue in mesa, right? I am going to fix it, but could you provide a simple test-case I can use on leste?08:24
tmlind_freemangordon: ah right, the test case i used was trying to start current version of sway with just the pending sway patch applied08:56
tmlind_freemangordon: sorry pending wlroots patch, the top commit in this branch https://github.com/tmlind/wlroots/tree/missing-unpack-subimage08:58
tmlind_freemangordon: have not updated wlroots and sway git trees for several months, presumably you just need the commit above still and can just use current git versions of wlroots and sway09:01
freemangordontmlind_: so, I have to build something? will it build on leste?10:41
tmlind_freemangordon: should build just fine on leste, not sure what dependencies it might bring in though11:34
tmlind_freemangordon: wlroots tinywl test app might be enough to test it with no sway needed11:35
tmlind_i'd assume similar checks will eventually propagate further as the wlroots folks are also patching mesa11:37
tmlind_so hopefull will help a bit also making m-l a bit more future proof :)11:37
freemangordontmlind: so, I shall build https://github.com/tmlind/wlroots/tree/missing-unpack-subimage ?13:14
tmlindfreemangordon: that should do yeah13:16
freemangordonok13:16
buZz22:40:23 < freemangordon> again: I did 'sudo reboot' and end-up with animated battery15:08
buZz22:40:31 < freemangordon> that's broken IMO15:08
buZzhehe yeah, even hits that at 99% charge :P15:08
kabouikWizzup: https://0x0.st/o2UH.png It's already reserved, I'm sorry I couldn't reach IRC in the last days, I was away. I assume you would be more interested in a Pro1 anyway, and hopefully some Pro1x owners will sell their Pro115:32
Wizzupkabouik: check, ty anyway15:50
_uvos_fremangordon: i dont like your tone, and we disscused this behavior before. its works this way because the only piece of information about the boot is if charging/usb is enbaled/plugged whenuserspace starts, we dont have anything more because the stock kernel swallows it so this is the best we can do (enter charge mode when ever the battery is charging on boot)15:50
Wizzupfreemangordon: btw: I might have a pretty reliable way to crash X on d415:51
_uvos_now certenly you could have kexecboot relay the boot reason information to the mainline kernel15:51
_uvos_but we would still need this behavior as a fallback because ever phones bootloader has its own special way to give the kernel this information15:52
_uvos_popular is for example appending random strings to cmdline15:52
_uvos_so we would need code for every device ergo we need a fallback where we dont15:53
_uvos_regaring entering charge mode at 99% @buzz15:53
_uvos_this is because the d4 kernel is not so great15:53
_uvos_and almost never flags the battery as fully charged15:53
buZzhmhm, but, it can see (in the animation) that its >30% , right?15:53
_uvos_it would not enter charge mode otherwise15:54
buZzso maybe just skip the 'stay here' when >x% ?15:54
buZznot just at 'fully'15:54
_uvos_when its booted via usb plug it should stay15:54
buZzwhy?15:54
_uvos_untill full and then shut off15:54
buZzshut off? :O15:54
_uvos_which is what it dose15:54
_uvos_d4 kernel bugs aside15:54
buZzi'm not sure why anyone would want that?15:55
buZzwhats the usecase? why would a person want to wait till battery is 100% until continueing boot?15:55
_uvos_it dosent continue15:55
_uvos_it shuts down15:55
_uvos_the usecase is i want to charge the phone while "off"15:56
buZzO_o15:56
_uvos_so it charges fully and then exits charge mode15:56
_uvos_to off15:56
_uvos_this is how charge mode works on ever device i have ever used15:56
buZz-afaics- 'charge mode' desire on d4 came mostly because of the 'we cant finish boot with just x % battery'15:57
buZzso when we're (well) above that x% , we could just continue boot?15:57
_uvos_no charge mode exits because its usefull15:58
_uvos_it allows charging whout the device being on15:58
_uvos_the fact that the kernel is running is an implementation detail15:58
buZzi still dont really see a usecase15:58
_uvos_weill every phone manufacture ever dose15:58
_uvos_and i do to15:58
buZzyeah? whats the usecase then?15:59
_uvos_i just told you15:59
buZzyour phone is off & empty, you hook it up to power, and then come back to a phone thats off?15:59
buZz'but full' :D15:59
_uvos_yes if i dident turn it on15:59
_uvos_i dont want it on15:59
buZzit pretty much sounds like 'i wanna charge but not use' is not such a normal usecase16:00
_uvos_maybe for you16:00
_uvos_and thats fine16:00
_uvos_this is configureable via text file bte16:00
buZzso a user has 1 device, wants to be online with the 1 device , it cannot boot because its too empty16:00
_uvos_btw16:00
buZzshould that user now wait 2-3 hrs before its 100%?16:00
buZzah, cool, i didnt know16:01
_uvos_then he shal charge it a bit in charge mode16:01
_uvos_and then turn it on16:01
_uvos_by pressing power16:01
_uvos_charge mode prevents exit when its unsafe16:01
_uvos_ie to low16:01
buZzright, so it could just continue when safe?16:02
_uvos_it could, but the point is the device should not turn on unless the power button is exercised16:03
auantaidk..if you wanted to turn it on to use it you could...press the power button? it'd be kinda annoying to have it turn on upon plugin..i'd have to shut it down.. but don't mind me..16:03
_uvos_exactly16:03
buZzauanta: with 'charge-mode' you have to 'power it on' with plugging a USB cable, it will 'fully boot' , then hit the SDL tool16:03
_uvos_it hardly fully boots16:04
buZzi dont really see a config file for it? hmm16:04
buZz_uvos_: within 1minute after that charge-mode , and then pressing power button, you're in hildon16:04
buZzi see a brightness_file ?16:04
_uvos_its in the initscript16:05
buZzhttps://github.com/maemo-leste/charge-mode/blob/master/charge-mode ?16:05
buZzi'm pretty blond, guess i'm really not seeing it16:06
_uvos_you can have the script do whatever you want16:07
_uvos_depending on exit reason16:07
_uvos_of the binary16:07
buZzah, the textfile for config is the .sh ?16:07
buZzright , ok :)16:07
buZzstill think a >x % charge 'continue with boot' would not be very unwelcome :P16:08
buZzmaybe i'll just mod that in and try16:08
auantaidk how you plan on making it but if it's touch screen activated, consider use case where i have e.g. a battery brick and the phone is in my pocket.. if you do that, you would need volume keys and power button to select i would imagine16:10
buZzselect what? atm its not touchscreen activated, just by 'is there a usb cable with power attached'16:33
auantaoh, the 'continue with boot' if that is going to be something that shows up while charging i wouldn't want it to accidentally get selected while in my pocket or something16:37
auantabut now i reread and see i didnt parse correctly16:38
auantanvm16:38
siceloregarding charging-sdl, just need to clarify that it doesn't help charging in any way.16:46
sicelocan refer to upstream: https://gitlab.com/postmarketOS/pmaports/-/issues/106416:47
_uvos_sicleo: upstream charing-sdl and our charging sdl has nothinin common16:47
_uvos_except some of the code that renders the battery16:48
_uvos_it works entirely different16:48
siceloyou're implying that ours helps battery charging?16:49
_uvos_that said yes it dosent help charging except that it turns off the backlight and termniates userspace bingup early16:49
sicelook16:49
freemangordonuvos: while I agree that phone should not auto power on if a charger is plugged, it should not remain in charging mode after a reboot17:41
freemangordonalso, what will happen if you have an alarm while in charge mode?17:42
freemangordonuvos: imagine - you are sleeping and your phone is on the charger where you left it just before you start sleeping. with almost empty battery. 15 minutes after you are asleep, the is a power outage for long enough so the battery gets fully depleted. eventually electricity is restored, but your phone stays in charging mode. Your morning alarms do not ring, you are late for work and you are sacked.17:49
WizzupWe can all imagine the scenario, but we're not at the point where we claim this reliably works anyway17:50
freemangordonok, but then why implement "stay in charge mode forever" instad of just continuing boot when there is anough charge?17:50
freemangordon*enough17:51
freemangordonthis brings more harm than good currently17:51
Wizzupit hasn't bothered me yet, but I suppose if you're debugging remotely it could be17:51
freemangordonto me, currently the only use case is: "see, we can do it"17:52
Wizzupthe whole point of charge mode is to prevent boot loops17:52
freemangordoncaused by?17:52
Wizzuplowbat17:53
freemangordonlow battery?17:53
freemangordonsure, but this is not how it behaves17:53
freemangordonthe only scenario in which phone shall stay in charge mode after there is enough battery charge is iff a charger is connected after user powered it down17:54
freemangordonin all other cases it shall continue17:55
freemangordonWizzup: "I might have a pretty reliable way to crash X on d4..."18:22
freemangordonelaborate please18:22
freemangordonhmm, just seen the note about my tone...18:24
freemangordonuvos: sorry, I find nothing wrong with my tone18:25
freemangordonalso, we may have discussed it back then, but charging mode was not working at all. back then.18:25
freemangordonyesterday it was the first time ever I saw that animated battery18:25
freemangordonand I was a bit of surprised when it was just sitting like that18:26
freemangordonso, despite my tone(whatever is wrong with it), this is broken UX. The fact that the current 'user' was me does not make it less broken18:27
freemangordonspeaking of who likes what, I also don;t like the way you push *your* usecases to the others.18:28
freemangordondisregarding the other users comments/suggestions18:28
freemangordontmlind: no way to build on leste:18:40
freemangordonmeson.build:1:0: ERROR: Meson version is 0.56.1 but project requires >=0.58.118:40
freemangordonanything else I can use?18:41
sicelomaybe that version is available in (devuan's equivalent of) backports?18:49
freemangordonI am already on backports18:50
freemangordonthe one in leste is 0.4618:50
freemangordonsicelo: maybe I can install it with pip18:52
siceloyeah sounds like an idea18:57
freemangordonok, thise guys are crazy18:59
freemangordon*those18:59
freemangordonDEPRECATION: CMake support for versions <3.17 is deprecated since Meson 0.62.0.18:59
freemangordonDependency wayland-server found: NO found 1.16.0 but need: '>=1.20'19:00
freemangordonI don;t see how I can compile that19:00
freemangordondoes anyone know how to pass library directory to meson?19:08
freemangordonok, figured it out (subprojects)19:13
auantajust to give a fair warning... i'm going in to edit the wiki for the PinePhone19:17
siceloyou're more than welcome. the wiki definitely needs some love19:18
auanta:)19:19
auantadoes anyone know how to get maemo to boot on the emmc?19:36
auantai'll test it and put it in the instructions. current instructions are lacking19:37
auantathe old instructions to modify mmcblk0 to point to mmcblk2 no longer work, and a simple dd to the emmc doesn't either. i will retry with a new partition table though..19:46
auanta(boot.txt no longer exists in the images)19:46
auantai tried changing the fstab.. but actually it does point to mmcblk2 so maybe thats why :P19:50
tmlindfreemangordon: ok great hopefully git subproject will help :)19:51
freemangordontmlind: it does, to the extent :)20:19
freemangordontmlind: "WARNING: Subproject 'libdrm' did not override 'libdrm' dependency and no variable name specified"20:20
freemangordon"Dependency libdrm from subproject subprojects/libdrm found: NO"20:21
freemangordonno idea what it wants from me20:21
freemangordoncan anyone help with that^^^20:22
tmlindhmm have not seen that20:23
freemangordonhttps://github.com/mesonbuild/meson/discussions/1048420:24
freemangordonbut I don;t understand the documantation20:24
freemangordon:(20:24
tmlindfreemangordon: i wonder if debian or devuan unstable has some build related patches for that?20:28
auantadoes maemo leste use a gpt or mbr partitioning scheme in their images? (pinephone)20:28
freemangordontmlind: ok, figured it out20:29
freemangordontmlind: https://pastebin.com/uBfj6eEr20:29
auantaanswered my question.. it's msdos so mbr20:34
freemangordon:)20:35
freemangordontmlind: ok, I build that (in amd64 VM) using defaults, what am I supposed to run?20:43
freemangordonor, shall I enable some backen?20:44
freemangordon*backend20:44
auantanew partition table on the emmc, dd'd it on there.. i'll leave it on the charger and see if it boots. i think last time i did it on the microsd, it took a long time on first boot and thought it was dead. all the latest boot times have been much shorter.20:57
auantaperhaps there's some initial scripts that go or something20:58
sicelothat's strange, i think20:58
freemangordonsicelo: any idea what am I suposed to do with this wlroots tingie?21:00
siceloyou can start it from console (so stop h-d)21:01
freemangordonstart what?21:01
freemangordonoh, wait21:02
freemangordontinywl?21:02
sicelosway :-)21:02
freemangordonwhere it is?21:02
sicelooh yes, in your case tinywl21:02
freemangordonok, it started under h-d21:02
freemangordonwhat it does?21:02
freemangordonI see a black screen :)21:03
sicelo:-P21:03
freemangordonso, what does this mean?21:03
freemangordonthat I shall do the same on d4?21:03
freemangordonand see if it errors out?21:03
siceloi think so21:03
freemangordonok21:03
siceloi'm not sure exactly what tmlind and yourself were testing but yes, something like that :-)21:04
freemangordonme neither :)21:04
siceloi don't know if starting it under h-d won't skew results, but let's see21:04
freemangordonwell, he tmlind said the error is related to missing gles extension support21:05
freemangordonso h-d should not interfere21:05
sicelohttps://pastebin.com/yN9r386U for sway, i use this script. you can try using it with tinywl if it complains while starting21:05
siceloah, ok21:05
freemangordonsicelo: any wl terminal emulator?21:24
sicelofoot os21:25
sicelofoot is a good one21:25
freemangordonok, we are here:21:25
freemangordon00:00:00.424 [render/egl.c:766] Failed to query number of dmabuf format21:25
freemangordonI guess this is what tmlind is talking about21:25
freemangordonoh, no, another mesa build on d4 :D21:26
Wizzuphi21:46
Wizzupfreemangordon: re: X crashing, osso-xterm increase/decreasing font size very often crashes it for me21:46
Wizzupfreemangordon: today in the A1 shop when I was trying to receive a SMS and I had to reboot the phone and tell the guy to send the SMS again for example :P21:46
Wizzupauanta: great @ wiki21:47
freemangordonWizzup: ok21:47
Wizzupfreemangordon: I tried it earlier this afternoon and then it didn't crash, but usually when it crashes I'm doing exactly that (font size changes)21:47
buZzmaybe the volume-fontsize can become a toggle in xterm's config?21:50
WizzupbuZz: do you mean that the volume buttons work in xterm?21:50
Wizzupin my case I was purposefully  changing the fonts21:51
buZzWizzup: atm volumebuttons change fontsize for me, or arent you talking about those fontsize changes?21:51
buZzah, you werent :P21:51
freemangordonWizzup: how do you change it? from th esettings?21:55
Wizzupfreemangordon: volume buttons22:03
WizzupbuZz: I was22:03
Wizzupfreemangordon: yeah just broke it again22:03
Wizzup(X)22:03
buZzmight be related to that xterm crash i had before?22:04
buZzi've only been seeing that since i enabled bitmap fonts22:05
WizzupbuZz: could be, it's known that we have some X crashes, but with this one it's relatively easy to reproduce22:06
buZzah, it didnt crash X for me, just xterm22:07
buZzbut repeatadly, until i deleted its settings22:07
Wizzupnever saw that before22:08
buZzquite sure thats about the bitmapfonts, i still need/want to make a proper issue out of it on freemangordon's request22:09
Wizzupissues are cheap, go for it :D22:10
freemangordonWizzup: ok, will have a look22:10
freemangordonbut first will try to fix mesa, that should be easy22:11
Wizzupok22:12

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