norly has quit [Quit: Leaving.]
norly has joined #maemo-leste
joerg has quit [Ping timeout: 248 seconds]
joerg has joined #maemo-leste
macros_ has quit [Ping timeout: 256 seconds]
macros_ has joined #maemo-leste
Twig has joined #maemo-leste
mardy has joined #maemo-leste
<freemangordon> mighty17[m]: I investigated a bit about GL_IMG_read_format/GL_EXT_read_format_bgra and came to the conclusion that it will be incorrect if driver reports GL_EXT_read_format_bgra if it only supports GL_IMG_read_format. The reason is that if GL_EXT_read_format_bgra is supported, one can pass UNSIGNED_SHORT_1_5_5_5_REV_EXT to glReadPixels, but this is unsupported by GL_IMG_read_format.
<freemangordon> so, it is the application that shall be fixed to support GL_IMG_read_format
<freemangordon> assuming it does not require UNSIGNED_SHORT_1_5_5_5_REV_EXT
<freemangordon> Wizzup: do we have an issue about ofono problems on d4?
<mighty17[m]> ohk thats interesting, i did assume they were interchangable, but `UNSIGNED_SHORT_1_5_5_5_REV_EXT` does make sense
<mighty17[m]> in this case, if something calls for `GL_EXT_read_format_bgra` we'd check if it wants `UNSIGNED_SHORT_1_5_5_5_REV_EXT`, if not we can pass it on to `GL_IMG_read_format`
<mighty17[m]> this can be done in mesa, but does feel a bit hacky?
<mighty17[m]> basically `GL_IMG_read_format` would be a subset of `GL_EXT_read_format_bgra` right?
Twig has quit [Ping timeout: 256 seconds]
<mighty17[m]> freemangordon do you know why the shader crashes here, i've not been able to successfully replicate it multiple times tho https://paste.debian.net/1251407/
Pali has joined #maemo-leste
pere has quit [Ping timeout: 248 seconds]
Pali has quit [Ping timeout: 248 seconds]
n900 has quit [Quit: WeeChat 2.3]
pere has joined #maemo-leste
xmn has quit [Remote host closed the connection]
xmn has joined #maemo-leste
uvos__ has joined #maemo-leste
<uvos__> but its not compleat (there are way more issues)
<Wizzup> freemangordon: yes, like uvos__ linked, I think many of the issues are the same, what we maybe need a good way to compare kernel serial interaction with what ofono actually sees
<Wizzup> I think we can make the kernel modules fully verbose
<Wizzup> n_gsm.debug as 0xff iirc
<uvos__> also maybe diff bionic and d4 behavior more
<uvos__> as bionic works better
<uvos__> wich btw
<uvos__> bionics modem fw was not updated as often
<uvos__> maybe some older d4 firmware works better
<uvos__> so far motorla never prevented installing old images on d4
<uvos__> so you can likely just flash one
<Wizzup> let's hope it's not a firmare issue
<uvos__> well it works in android so it cant be an insrumoutable firmware isssue
<uvos__> still some older version might work better
<Wizzup> what makes you conclude that? (older versions work better)
<uvos__> thay are closer to bionic
<uvos__> (bionics wasent updated as often)
<uvos__> (version wise)
<Wizzup> aha
crab has quit [Quit: WeeChat 3.6]
crab has joined #maemo-leste
<freemangordon> mighty17[m]: yes (subset)
<freemangordon> no idea about the shader
<freemangordon> uvos__: thanks
n900 has joined #maemo-leste
<freemangordon> uvos__: in the meanwhile I fixed h-d portrait tasknav bug
<freemangordon> please test notify fixes when you have chance
<mighty17[m]> freemangordon: so i'd think its better to have a hack in mesa rather than patching each application that calls for it? for example for now wlroots seems to need it, so i'd need to patch wlroots everytime thye do some major changes, rather than that why not mesa?
<freemangordon> what you are going to do if application requires UNSIGNED_SHORT_1_5_5_5_REV_EXT?
<uvos__> crash, mesa allready has sutch flags that alow you to make it lie about capabilities
<uvos__> like the ogl version override
<uvos__> he could just add one
<mighty17[m]> <freemangordon> "what you are going to do if..." <- That point we say we don't support it :P
<mighty17[m]> Or just crash :P, but there's no way to know whether an application requires it or not right?
<freemangordon> mighty17[m]: as uvos__ said, use MESA_EXTENSION_OVERRIDE onstead of hacking mesa
<freemangordon> *instead
<mighty17[m]> For that we'll still need to add GL_IMG_* to mesa tho
<uvos__> sure and thats fine
<uvos__> you can half implement it
<uvos__> and then hide it behind an extension overide
<uvos__> thats how ogl >3 works on r600 < 5050
<freemangordon> mighty17[m]: sorry, WTYM?
<freemangordon> why add GL_IMG_* to mesa? it is already there
<freemangordon> export MESA_EXTENSION_OVERRIDE=GL_EXT_read_format_bgra
<freemangordon> or maybe the full list
<freemangordon> but it does not matter
<freemangordon> that way you 'hack' only the applications you know work fine
<freemangordon> you don;t need to add GL_IMG_* to wlroots
<freemangordon> because:
<freemangordon> #define GL_BGRA_EXT 0x80E1
<freemangordon> #define GL_BGRA_IMG 0x80E1
<freemangordon> hmm, seems this gets ignored
<mighty17[m]> Oh right, it's the same.....
* freemangordon checks why
<freemangordon> driver has to call _mesa_override_extensions() it seems
Livio has joined #maemo-leste
Livio has quit [Changing host]
Livio has joined #maemo-leste
<freemangordon> mighty17[m]: will take a hile, have to build mesa on d4, again :)
<freemangordon> *while
<uvos__> dont forget that mesa disables 1/2 cores when the display is off
<uvos__> er mce
<freemangordon> yeah
<freemangordon> I am stopping it
<freemangordon> and also my current limit is 2200000 :)
<freemangordon> lets hope it won';t overheat
<uvos__> it cant
<freemangordon> cool
<uvos__> ro shuld not
<uvos__> we implemented throtteling some time ago
<freemangordon> POWER_SUPPLY_CURRENT_NOW=1517000
<freemangordon> :)
<freemangordon> POWER_SUPPLY_CHARGE_FULL=816965
<freemangordon> does this mean my battery is 800mAh?
<uvos__> yes
<freemangordon> :(
<uvos__> thats pretty bad
<uvos__> its a underestimation
<freemangordon> yeah, never calibrated it
<uvos__> (it conisders 3.4v i think to be empty)
<uvos__> and 4.2 to be full
<uvos__> so it underestimates a bit
<freemangordon> POWER_SUPPLY_VOLTAGE_MIN_DESIGN=3200000
<uvos__> freemangordon: its seperate from that
<uvos__> but a good battery gets at least 1200
<freemangordon> ah
<uvos__> the couloub counter gets restet sooner
<uvos__> to ensure callibraation can happen
<uvos__> but this causes underestimation
<freemangordon> can't we get some new batteries?
<uvos__> sure
<uvos__> i run a 2200mah one
<freemangordon> oh
<freemangordon> link?
<uvos__> its a nexus g4 battery
<uvos__> with wires spotwelded on
<uvos__> and a custom adapter pcb
<freemangordon> :)
<uvos__> (on my host you can find the gerber files0
<uvos__> )
<freemangordon> so battery is not smart?
<uvos__> it is
<freemangordon> hmm
<uvos__> but i added a flag to the kernel driver
<uvos__> so you can use a dumb battery
<uvos__> (you loose temperature monitoring fyi)
<uvos__> funny enough android dosent care mutch (but wont charge it)
<freemangordon> can we somehow reuse the electronics in d4 battery and attach it to a dumb one?
<uvos__> you culd
<uvos__> but other than the temperature probe
<uvos__> we dont use the eeprom anyhow
<uvos__> it ontains information we cant parse
<freemangordon> hmm
<uvos__> well thats not entirely true, i added some code that ids the battery based on eeprom contence
<uvos__> to the kernel
<freemangordon> this g4 battery - is it a dumb one?
<uvos__> no, but i threw everything away besides the cell
<uvos__> but we dont use the iding code because of pm issues
<uvos__> also apearntly its buggy, depending on what battery version you have ask buzz :P
<freemangordon> isn't it a bit dangerous to disassembe a charged battery?
<uvos__> not really
<uvos__> im sure
<freemangordon> ok
<uvos__> if you dont know at all waht you are doing
<buZz> what are we doing? :D
<buZz> freemangordon: the -battery- is always a 'dumb' one, the BMS is the only intelligence in it
<buZz> and yeah , that code is kinda buggy :P i still wanna try to patch my ID into it, to see if it then -does- work :D
<uvos__> d4 also realy dosent need a bms (im not conviced the d4 batterys have one, i have way underdiscarged a eb41 before)
<buZz> but i'm still all for a override on cpcap_charger or cpcap_battery
<uvos__> it may just have a temp probe and a eeprom
<freemangordon> buZz: I want to replace my battery, but to keep the electronics
<uvos__> cpcap is the bms
<buZz> uvos__: a BMS doesnt have to be -good- ;)
<buZz> just measuring/storing data, can already be a BMS
<uvos__> it dosent do that
<uvos__> the eeprom is fixed
<buZz> freemangordon: i think thats totally doable
<uvos__> its just some metadata
<buZz> freemangordon: just make sure not to fold/pierce the battery cell itself
<buZz> uvos__: right, fine by me
<buZz> still data thats stored then :D
<uvos__> yeah some mystery data
<buZz> :)
<freemangordon> uvos__: do you have the exact battery model around?
<buZz> uvos__: did my dumps match yours? in sha256 etc?
<uvos__> freemangordon: not atm
<uvos__> freemangordon: ill look at it later
<freemangordon> ok
<freemangordon> because all I can find are 3.85 V
<uvos__> no
<buZz> you can find a 3.8V 404562???
<uvos__> dont by that one
<uvos__> that one was bad
<buZz> buy* why not?
<buZz> yeah its a liter clone :P
<uvos__> it hat huge internal resistance
<uvos__> the d4 hates that
<buZz> liters labels are different
<uvos__> i bought a g4 battery later
<uvos__> its really good
<uvos__> and fits in the bay (just bearly)
<buZz> ah nice
<uvos__> but yeah thats the adapter pcb
<buZz> used your breakout pcb?
<uvos__> yes
<buZz> uvos__: i couldnt find the gerbers to that on your /maserati :(
<freemangordon> uvos__: maybe you can start selling those
<freemangordon> I am willing to pay :)
<buZz> if we have the gerbers, you could get 10 for 5 usd perhaps? :P just singlelayer flexpcb i think?
<freemangordon> I will lose too much time if I have to make pcb, mill a holder, etc
<uvos__> maseraiBatteryAdapter.tar.xz
<uvos__> freemangordon: we could pannalize it and order lots
<buZz> ahhh, typos
<buZz> :D
<uvos__> for like 25 euro
<buZz> might be nice uvos__
<uvos__> typos? me? never!
<buZz> leste can probably sponsor that
<buZz> :D
<buZz> typos unkown
<buZz> i was laughing so much, finding your own name typo'd in your commits ;)
<buZz> no offense :P
<buZz> just was really amusing
<uvos__> pff you just dont know my brother
<buZz> i dont believe i do
<uvos__> he is called cal klamm
<buZz> :)
<freemangordon> uvos__: LMK if you want to do it
<freemangordon> oh, original battry uses a flex cable? hmm...
n900 has quit [Quit: WeeChat 2.3]
<uvos__> yes
<buZz> freemangordon: flexpcb*
<buZz> :)
<freemangordon> mhm
<buZz> (and those cheap pcb factories can make em , pretty cheap)
<freemangordon> I think I can just scavenge that
<buZz> that too
<uvos__> yeah
<uvos__> you can
<buZz> dont overheat it though
<freemangordon> overheat?
<buZz> maybe easiest to just snip the old battery tabs off
<freemangordon> is it soldered?
<uvos__> i would do so by just cutting the tabs
<uvos__> no
<buZz> i hope so, freemangordon :D lol
<uvos__> its spot welded
<freemangordon> mhm
<buZz> oh
<buZz> well, soldering would be fine ;) just dont make it too hot
<freemangordon> I will try to solder back, using low-temp солдер
<uvos__> eh i dont like soldering
<uvos__> on lipos
<freemangordon> I don;t have spot-welding tools
<uvos__> also note that you cant solder the g4 battery tabs
<freemangordon> ugh, why?
<uvos__> those are not nikel, but something else thats unsolderable (i tried)
<freemangordon> you said I shall use the element itself
<uvos__> element?
<freemangordon> disassemble g4 battery
<uvos__> right
<uvos__> i just broke the stock welds
<freemangordon> so the cell is somehow connected, right?
<uvos__> and then i spot welded them to some tabs
<freemangordon> so I guess I can reuse the original spot-welded connectors and soldeer wires to them, no?
<uvos__> maybe
<freemangordon> ok
<uvos__> i dont remember the g4 construction in that detail
<freemangordon> will see
<freemangordon> Wizzup: do you plan to visit BG soon?
<uvos__> obv haveing a spot welding machine i didnt examine any other options ;)
<freemangordon> or, do you have left some d4 battery @ hackerspace
<freemangordon> uvos__: yeah :)
<freemangordon> makes sense
<freemangordon> I guess this https://www.amazon.com/Battery-Motorola-Droid-XT894-Li-ion/dp/B002NE8TUY is so old that it lost capacity, right?
<uvos__> best eb41 i have ever found ( have >6) was 1300 ish
<uvos__> so yeah
<uvos__> they lost quite a bit of cap
n900 has joined #maemo-leste
<uvos__> the newest ones where made in 2014 as far as i can tell
<freemangordon> did you try polarcell?
<uvos__> yes
<uvos__> d4 was only sold in us and eb41 was only used in d4
<freemangordon> and they are still 1300? ugh...
<uvos__> they dont have it
<freemangordon> ah
<uvos__> afaik there are only oem motorola ones
<uvos__> that where made 2012-2014
<freemangordon> no other battery fits? like EB40 perhaps?
<uvos__> not that i know of
<uvos__> also since d4 uses screw terminals for the battery, just wireing in leads like i did is imo the simplesed option
<uvos__> you dont even really need the adapter pcb, you could by some m1.5 washers and solder you leads to those
<freemangordon> yeah
<freemangordon> but it will be ugly :)
<uvos__> its exactly what motorola did on mz6xx mapphones :D
<uvos__> (well they had m1.5 crimps but still
<uvos__> )
Livio has quit [Ping timeout: 268 seconds]
<freemangordon> BST-41 seems to be the same/similar size
<freemangordon> it is not lipo though
<uvos__> eb41 is also hwlipo
<uvos__> (designed for 4.35v)
<uvos__> *hvlipo
<freemangordon> BST-41 is li-ion
<uvos__> yeah
<uvos__> android will wreck it
<freemangordon> will overcharge?
<uvos__> yes
<sicelo> freemangordon: i kept the eb41 electronics on my d4's replacement. works fine
<freemangordon> good to know
<uvos__> sicelo: unless you used a hvlipo replacement, dont boot android
<freemangordon> uvos__: seems there is li-po variant as well
<uvos__> freemangordon: sure, if you remove the eb41 electronics android will refuse to charge
<uvos__> this saves your battery if its not a hvlipo
<uvos__> and leste can be configured to stop charging at a voltage
<uvos__> (and defaults to 4.2 anyhow)
<freemangordon> sicelo: what did you use as a replacement?
<sicelo> uvos__: i've been booting android just fine too, for many months. no issues (besides droid4+cpacp)
<uvos__> if you have a replaement battery with eb41 chip
<sicelo> freemangordon: some no name battery, like in that pic from uvos__
<uvos__> android charges to 4.35V
<uvos__> that might work a couple of times
<uvos__> but its very mutch not safe
<sicelo> i use it ALL the time is what i'm saying :-)
<sicelo> and yes, i use android more than Leste
<uvos__> and its not safe you are overcharging the lipo
uvos__ has quit [Quit: Konversation terminated!]
uvos__ has joined #maemo-leste
<freemangordon> thats BH5X
<freemangordon> hmm, it is li-ion it seems
uvos__ has quit [Ping timeout: 252 seconds]
Livio has joined #maemo-leste
Livio has joined #maemo-leste
Livio has quit [Changing host]
<Wizzup> freemangordon: october I think
<Wizzup> freemangordon: what do you need?
<freemangordon> some bad d4 battery, to scavenge the electronics from
<Wizzup> init Lab has 4 droid4s
<Wizzup> I left them there
<Wizzup> you can take them, I can arrange it
<Wizzup> it's near NDK
<freemangordon> ok
<freemangordon> yeah, I was there for the signing :)
<freemangordon> I need only one, or more precisely - its battery
<Wizzup> I'd just take the device as well
<freemangordon> well, I will :)
<Wizzup> fwiw you can use the other and hook it up to a lab supply directly
<Wizzup> I do this at home
<Wizzup> the other d4
<freemangordon> I don't have lab supply :)
<freemangordon> but yeah, I got th epoint
<Wizzup> the association could pay for one if you want
<Wizzup> they're usually not too expensive
<freemangordon> well, if I manage to recover one battery, I will be a ble to recover 2
<freemangordon> no, I don;t have place for that
<Wizzup> ok
<freemangordon> PC is in the bedroom and I am not sure GF will like a PSU here :D
<Wizzup> they aren't too big
<freemangordon> still, a matter of principle I guess
<Wizzup> maybe 10cmx30cmx30cm w-h-l
<Wizzup> ok
<Wizzup> sure
uvos__ has joined #maemo-leste
uvos has joined #maemo-leste
<mighty17[m]> <freemangordon> "mighty17: will take a hile, have..." <- on d4? ouch.... I can try tomorrow tho
<uvos> freemangordon: liion vs lipo dosent really matter for the charger/bms unless you end up with an ainchent lithium cobalt battery
<uvos> freemangordon: but non liion batterys are generally harder to attach stuff to (no tabs) and harder to disassemble.
<freemangordon> ok, but what about the max voltage?
<mighty17[m]> <freemangordon> "mighty17: as uvos__ said, use..." <- didnt work
<freemangordon> I know
<freemangordon> that's why I am compiling mesa
<mighty17[m]> on d4 :'( we just need the dri part tho
<freemangordon> hmm?
<freemangordon> what is "dri part"?
<mighty17[m]> as in the mesa-dri thingy right?
<mighty17[m]> thats what the package is called, my bad
<freemangordon> ok, what do we need there? a hack for GL_EXT_read_format_bgra?
<mighty17[m]> right.... yes
<freemangordon> I may add an environ variable that when set, exports this extension
<mighty17[m]> so that only when needed we export it?
<freemangordon> I will *not* export it unconditionally, as it is not 100% exported and might cause issues
<mighty17[m]> have you pushed the changes to git?
<mighty17[m]> I'll try building as well then
<freemangordon> what changes?
<mighty17[m]> for GL_EXT_read_format_bgra
<freemangordon> I want to first see where to attach
<freemangordon> no changes yet
<mighty17[m]> ah okay
pere has quit [Ping timeout: 268 seconds]
Pali has joined #maemo-leste
<uvos> a close all windows button would be neat
<uvos> i just opened 100 notifications (as a test) and its really hard to close all of them
pere has joined #maemo-leste
<uvos> freemangordon: patched hildon-home works fine, but i cant seam to get it to process tags
<freemangordon> what do you mean "process"?
<freemangordon> like markup?
<freemangordon> also, you need fixed hildon-desktop
<freemangordon> which is in -devel
<uvos> yeah i have that installed
<uvos> animation fix works fine
<uvos> but adding a <b><\b> is just passed by hildon home
<freemangordon> so, what is the markup you want to be parsed?
<freemangordon> hmm, weird
<uvos> er <b></b> ofc
<freemangordon> I tested with test0markup.c from libnotify and it works fine
<uvos> im at bf4916ebb52cfa8ed991ffb20c186bfdfad56a04
<uvos> so that looks ok
<freemangordon> test-markup.c
<freemangordon> lemme check
<freemangordon> yes, bf4916ebb52cfa8ed991ffb20c186bfdfad56a04
<freemangordon> how do you start hildon-home?
<uvos> i just killed it
<uvos> and let dsme restart it
<freemangordon> you built debian package?
<uvos> yes
<freemangordon> what do you use to send the markup?
<freemangordon> notigy-send?
<freemangordon> notify-send?
<uvos> yeah i tried notify-send "<b>test</b>" expecting that to work
<freemangordon> lemme check
<freemangordon> well, no
<freemangordon> this is the title
<uvos> ah summary is not processed?
<freemangordon> try notify-send "title" "<b>test</b>"
<freemangordon> no
<freemangordon> shall I process it?
<uvos> dunno let me read spec
<freemangordon> I guess it is vague
* freemangordon reads specs as well
<uvos> Body text may contain markup.
<uvos> no
<uvos> its not vauge
<uvos> ok its fine
<freemangordon> ok
<freemangordon> test with <i>,<u>,<b>,<a> and <img>
<freemangordon> specs mandate 'alt' img property
<freemangordon> but if it is missing, the filename should be shown instead
<uvos> notify-send "test" "<img src="/home/user/2022-07-27-162354_960x540_scrot.png" alt="screenshot"/>"
<uvos> hmm
<uvos> everything else works
<freemangordon> weird
<freemangordon> for sure I tested with img
<uvos> maybe it cant decode png?
<freemangordon> lemme see what's wrong with that
Livio has quit [Ping timeout: 256 seconds]
<freemangordon> no, it is some parsing issue
<freemangordon> uvos: notify-send "test" "<img src='/home/user/2022-07-27-162354_960x540_scrot.png' alt='screenshot'/>"
<freemangordon> do not use double-quotes
<freemangordon> or maybe escape them
<uvos> hmm i still cant get it to display the image
<freemangordon> yep, notify-send "test" "<img src=\"/home/user/2022-07-27-162354_960x540_scrot.png\" alt=\"screenshot\"/>" works as well
<uvos> it displays the text
<freemangordon> sure, this is not supported :)
<uvos> ah
<uvos> ok
<freemangordon> bbl
Livio has joined #maemo-leste
Livio has joined #maemo-leste
<freemangordon> uvos: so, are there any other non-compliances in notify server?
<uvos> freemangordon: i dont think so, gues supporting urgency levels and the behavior around critical is not implemented.
<uvos> besides that there are of course several wildly used optional features missing
<uvos> (actions being the most widely used)
<freemangordon> that's true, we lack support for some features
<freemangordon> but lets what we have to be compliant, at least
<freemangordon> so, I am going to merge and release
<uvos> i think except the bhavior around ciricital its compliant
<freemangordon> ok
<uvos> im also not sure org.freedesktop.Notifications.GetCapabilities is correct
<freemangordon> why so?
<uvos> we support icon-static and persistence no?
<uvos> it returns just 'body', 'body-markup', 'icon-static'
<uvos> nvm icon-static i missed it
<freemangordon> we dont; support persistence
<uvos> "The server supports persistence of notifications. Notifications will be retained until they are acknowledged or removed by the user or recalled by the sender. The presence of this capability allows clients to depend on the server to ensure a notification is seen and eliminate the need for the client to display a reminding function (such as a status icon) of its own. "
<uvos> that seams how it behaves
<freemangordon> no
<uvos> not sure what it means
<uvos> if not
<freemangordon> you explained it yesterday
<freemangordon> other servers retain a queue
<uvos> i dont think thats nesscary
<uvos> reading that
<uvos> keeping the "window" in tasknav is sufficant no?
<uvos> per spec
<freemangordon> it is not kept forever
<uvos> ah really?
<uvos> how long is it kept?
<freemangordon> yes, unless you specify a timeout of zero
<freemangordon> for 'timeout' period
<uvos> right ok, but then just overrding timeout to 0 if persistance is set
<uvos> in the code seams like a easy peasy way to support this feature
<uvos> but ok
<freemangordon> yes, it is, but thats a hack
<uvos> anyhow ok
<freemangordon> as IIUC this is not what specs require
<freemangordon> we shall support "transient" hint as well
<uvos> i dont think spec imples a que
<freemangordon> if we say we support persistence
<uvos> even thoug i think it suggests one to exist
<uvos> *though
<freemangordon> but this is >= 1.2
<freemangordon> the version that is
<uvos> yeah
<uvos> supporting sound would be really usefull btw
<uvos> (just an asside)
<uvos> rn the app has to play a sound itself which is not as nice
<uvos> but yeah you can push it
mardy has quit [Quit: WeeChat 2.8]
Livio has quit [Quit: Lost terminal]
uvos has quit [Ping timeout: 252 seconds]
<norayr> this battery stuff should be documented.
<norayr> i don't understand it well, otherwise would try to add info from recent chats to the wiki.
uvos__ has quit [Ping timeout: 252 seconds]