jr-logbot has quit [Read error: Software caused connection abort]
jr-logbot has joined #maemo-leste
jessicant has quit [Read error: Software caused connection abort]
jessicant has joined #maemo-leste
l_bratch has quit [Ping timeout: 264 seconds]
l_bratch has joined #maemo-leste
l_bratch is now known as Guest4495
Guest92 has joined #maemo-leste
<Guest92> Latest release?
Guest92 has quit [Client Quit]
xmn has quit [Ping timeout: 272 seconds]
<Wizzup> Guest92 -- I'm almost back in europe (literally, in air atm), and then I'll get on it.
<Wizzup> I also have a call re: leste and the new blog post on friday
joerg has quit [Ping timeout: 248 seconds]
joerg has joined #maemo-leste
<freemangordon> norayr: and for how much longer do you expect your already bad battery to last?
<freemangordon> also, there is no argument that there should be enough charge before shutdown
<freemangordon> the discussion is about no warning given before shutdown
<freemangordon> I guess that was the reason your battery went so flat that you had to charge it externally
<Wizzup> either that, or the device uses power after power off
<freemangordon> it uses, but uvos said 1-2 mA
<freemangordon> which for 24 gours is less that 50 mAh
<freemangordon> *hours
<freemangordon> hmm, do we power-down the modem on shutdown?
<Wizzup> still, that could be enough
<Wizzup> I think the kernel does
<freemangordon> does it?
<Wizzup> unloading the module afaik powers it down
<freemangordon> this is different
<Wizzup> worth checking
<freemangordon> lemme check
<freemangordon> nope
<Wizzup> it powers up the modem though I think
<freemangordon> yes
<freemangordon> and leaves it powered on :)
<Wizzup> hm
<freemangordon> do you have d4 with psu connected so we can test?
<Wizzup> well, yes, but I'm still in-air
<freemangordon> well, ok
<freemangordon> when you are on the ground obviously :)
<Wizzup> I'll try to remember, have a bunch to do
<Wizzup> I think my d4 currently on a lab psu at home has an idle draw of 0.16A even when powered off and never powered on
<freemangordon> I guess uvos has psu/d4 as well
<Wizzup> probably something burned (it still works)
<freemangordon> 160mA?!?
<Wizzup> so I should swap that out
<Wizzup> uh sorry 1
<Wizzup> 16
<freemangordon> ah
<freemangordon> if you power down from android, does it still draw the same current?
<Wizzup> if I take away all the power and turn the psu off, and then the psu back on, it still draws it, yes
<Wizzup> this is unrelated
<Wizzup> mostly just saying that I need to swap the device first
<Wizzup> (for our test)
<freemangordon> ah
<freemangordon> yeah
<freemangordon> tmlind: don;t we need .shutdown callback in phy_mdm6600_driver structure, to power-off the modem on shutdown?
<freemangordon> otherwise it will be left in reset (I guess)
<freemangordon> tmlind: this? https://pastebin.com/7jtJFtGR
ceene has joined #maemo-leste
<tmlind> hmm yeah maybe, worth measuring if there is s difference in power consumption after shutdown
peetah has quit [Ping timeout: 246 seconds]
<freemangordon> do you have d4 with lab psu?
mardy has joined #maemo-leste
Twig has joined #maemo-leste
<tmlind> yeah i have one wired with an ina226 i2c shunt, afaik power consumption is already very low after poweroff but yet lower after android poweroff. the difference might be missing shtudown functions for cpcap audio or modem etc like you're suggesting
<tmlind> will measure with your patch at some point when i get a chance
<tmlind> for runtime measurements, polling the charge counter about once a minute follows the ina226 numbers reasonably close
alex1216 has joined #maemo-leste
pere has quit [Ping timeout: 255 seconds]
akossh has joined #maemo-leste
pere has joined #maemo-leste
uvos__ has joined #maemo-leste
<uvos__> i no longer have a d4 on psu
<uvos__> since my main device broke
<uvos__> so now i use this one
<uvos__> the difference between android and mainline shutdown is mutch greater on bionic btw
<uvos__> it uses like 7-8mA
<uvos__> and was even more recently
<uvos__> there was an issue where the button backlights wherent turned off proparly, the upstream regulator was disabled
<uvos__> but the leds where not in cpcap
<uvos__> the upstream regulator leaked some power even when disabled
<uvos__> you could even see the leds glow slightly while the device was off
<uvos__> this is fixed
<uvos__> by disableing the leds in cpcap on shutdown, but just sayiing its been cpcap before ;)
<freemangordon> ok, lets wait for Wizzup to land, I guess he will measure the draw with and without the patch, unless tmlind is faster
<uvos__> btw when considering shutdown voltage
<uvos__> also consider the bionic, since it takes even loger to boot
<uvos__> it has to boot android then mainline and then mainline again
<uvos__> same for d3
<uvos__> but we could fix that in kexecboot i gues
<freemangordon> I understand that, but I think we shall not try to support batteries that has 500 mAh capacity left
<freemangordon> or at least we shall give priority to good batteries over bad
<uvos__> (ie add something that causes kexecboot to pause if its running on mainline)
<uvos__> and the battery is low
<uvos__> another option is also to add charging support to kexecboot, even when running on the android kernel
<uvos__> and also haveing it pause if the battery is low
<uvos__> maybe tmlind knows how the cpcap interface on the android kernel works
<freemangordon> also, I think a simple lowering the mce shutdown voltage from 3350 to 3250 or similar will have great effect on UX while in leste
<uvos__> i gues maybe you do to since you re'd the blob that uses it to do charging
<uvos__> this is insufficant
<uvos__> i tested this alot
<freemangordon> well, 3300 then
<freemangordon> or 3299
<uvos__> the voltage is so noisy i doubt this makes a real difference
<freemangordon> it will make all the difference on good battery
<uvos__> i think you massively overestimate how mutch charge remains at so low voltages
<uvos__> the discarge curve is realy steep here
<freemangordon> sure, but we need 50 mAh
<freemangordon> and I bed we have that @ 3.3
<freemangordon> *bet
<freemangordon> even for bad batteries
<freemangordon> also, what we can do for d4 is to disable cpu1 on boot as soon as we have a chance
<uvos__> im more refearing to that 50mV extra will make a difference
<freemangordon> sure
<freemangordon> but we can workaround that by disabling cpu1
<uvos__> the discarge curve is too steep and the mesurement uncertanty is to high imo
<freemangordon> but it still depends on the load
<freemangordon> well...
<freemangordon> we can at least try to
<freemangordon> the other option is those with good batteries to have no low warnings
<freemangordon> and I don;t think that's acceptable
<uvos__> and we discused how to solve that
<uvos__> its an independen problem from when shutdown happens exatcly
<freemangordon> but this is a massive work compared to what I propose
<freemangordon> also, how is upower going to produce low signals? polling?
<uvos__> it polls allready
<uvos__> how do you think mce gets the voltage
<freemangordon> on kernel event
<uvos__> no upower polls the battery
<freemangordon> and by polling, I mean - timer based polling
<uvos__> im very sure it polls the battery the kernel creates no events for changeing voltage
<freemangordon> ah, it polls tha battery and when it sees low it generates dbus signal?
<uvos__> and upower recodes it even
<freemangordon> I am not si sure
<freemangordon> *so
<uvos__> mce just reacts to upowers signals
<uvos__> they come in regular intervals
<freemangordon> "/sys" supports inotufy
<freemangordon> *inotify
<uvos__> anyhow its imaterial if upower polls or gets a signal form the kernel at regular intervals, the point is upower gets voltage at regular intervals
<freemangordon> also, if we do that, we risk calibration to never finish
<uvos__> and could absolutly act on it
<freemangordon> because it needs low irq, IIUC
<uvos__> freemangordon: yes this is antoher problem
<uvos__> it works ok rn tho
<freemangordon> sure
<freemangordon> that's why I prefer to keep it
<uvos__> but yes if you set the tresh very high
<freemangordon> and just reduce shutdown voltage by a bit
<freemangordon> combined with idle fix(hopefully) and disabling cpu1 shall be ok
<freemangordon> also, I will start working to bring charger detection at some point
<freemangordon> and then we'll be more or less fine, no matter the charge
<uvos__> iirc on android this works via cpcap-uc
<uvos__> detection
<freemangordon> well, 'almost'
<freemangordon> ok
<freemangordon> so, really, lets at least try what I propose. we can always revert it
<freemangordon> assuming poweroff fix works
* freemangordon checks what cpcap-uc is
<uvos__> i came up with the current value by doing testing, chainging it just because you think is ok (and we use very good batteries so ofc its going to be ok for us, but it wont for others) is absurd
<uvos__> freemangordon: microcontroller on cpcap
<uvos__> android uploades short macros to it
<freemangordon> uvos__: you checked in different conditions
<freemangordon> now I propose to change the conditions and test again
<uvos__> i dont see how you having a good battery now are valid conditions
<freemangordon> 1. you reserved some charge because of the idle draw, now that's (hopefully) fixed
<freemangordon> I have a bad battery too
<freemangordon> and another device to test with, if needed
<uvos__> for sure you have not fixed it on bionic
<freemangordon> how do you know?
<uvos__> because i doubt that the same issue uses mutch more power on one device than the other
<uvos__> ie there are at least 2 issues
<freemangordon> why not, modem firmwares are diffirent, no?
<uvos__> yes, slightly still i doubt
<freemangordon> and 'fixing' it by putting a band-aid (lets shut down @ 3.35) is not a real fix
<uvos__> never siad its a real fix
<freemangordon> so, lets try to properly fix it
<uvos__> how
<uvos__> the real fix would be to drop every mapphone besides xt910
<freemangordon> modem shutdown is step 1, for sure
<uvos__> (wich has no locked bootloader)
<freemangordon> disable cpu1 is step2
<freemangordon> what you proposed (charge in kexecboot) - step 3
<uvos__> you could also build cpcap modules into kernel
<uvos__> to make it charge slightly sooner in boot
<freemangordon> right
akossh has quit [Quit: Leaving.]
alex1216 has quit [Ping timeout: 252 seconds]
alex1216 has joined #maemo-leste
pere has quit [Ping timeout: 252 seconds]
<sicelo> freemangordon: what do you mean 'bring charger detection' ... or you mean to kexecboot?
<uvos__> sicelo: cpcap-charger dosent negotiate for power via usb protocoll
<uvos__> nor dose it recognize the tied datapins signal
pere has joined #maemo-leste
<uvos__> it just takes 500mA, no matter if the port supports less or more than that
<sicelo> ok
<uvos__> this causes additional headaches at boot
<uvos__> as the device will continue to discharge even after enableing charging
<uvos__> until its truely done with booting
nedko has quit [Remote host closed the connection]
<Wizzup> uvos__: ping
<uvos__> Wizzup: pong (limited avialability)
<uvos__> Wizzup: nice :)
<Wizzup> just check the photo
<Wizzup> I managed to carry this all somehow
<Wizzup> lol
<uvos__> what are those white ones?
<Wizzup> droid 2
<Wizzup> just white
<uvos__> not the d2
<uvos__> second row
<Wizzup> also atrix
<Wizzup> mb886
<Wizzup> others are mb885
<Wizzup> maybe they're not mapphones :)
<uvos__> these cant be the same
<uvos__> they dont even have touchscreen buttons
<Wizzup> qualcomm
<uvos__> ah atrix hd
<uvos__> ok
<uvos__> yeah atrix 2 is mapphone atrix hd and atrix 4g are not
<Wizzup> still MSM8960 is pretty well supported in mainline
<uvos__> true
<Wizzup> but all the other stuff :D
<uvos__> altho id rather support xt1602, i need to try to get another one
<uvos__> anyhow neat :)
<Wizzup> yeah I didn't know I had this many
<Wizzup> explains why my back hurts
<Wizzup> argh I wrote create instead of crazy
uvos__ has quit [Ping timeout: 252 seconds]
Guest4495 is now known as l_bratch
pere has quit [Ping timeout: 272 seconds]
pere has joined #maemo-leste
xmn has joined #maemo-leste
uvos__ has joined #maemo-leste
* norayr
<norayr> on pmo wiki i see there are even modern sony phones that work with mainline: sony xperia 10 and 10 plus or xa2 plus.
<norayr> those are very fast devices.
<norayr> on motorola, i think i'll buy a tablet as soon as you tell me that tablet has chances to be supported by maemo.
<norayr> no space on the table for notebook to watch youtube together so a tablet which can do that would be great.
<norayr> i see even sony z2 tablet is supported by mainline. just it is too expensive for us now.
<Wizzup> norayr: do they work with modem and 3d and everything?
<Wizzup> all the ones I checked usually only have some things working
<uvos__> if devices are to be taken from pmos to support
<norayr> i don't know, i see the screenshots on their wiki and i filtered those down by the "mainline: works" field.
<uvos__> i imo makes the most sense to coose from the ones in at least the Community support category in the devices wiki page
<norayr> many other devices dont have that.
<Wizzup> can you link to some that actually work?
<norayr> yeah, the one plus has pretty good support, i saw it on video.
<uvos__> Wizzup: MSM8916 devices like xt1602 really work with mainline quite well
<uvos__> on xt1602 specificly everything works really
<uvos__> besides the cameras
<Wizzup> got a link to one from the wiki?
<norayr> I think i saw 8916 devices on their wiki
<uvos__> take your pick
<uvos__> really
<uvos__> choose one with manny Y
<norayr> i was filtering sony's from there because i like how they look.
<Wizzup> so I have looked there many times and ask you to pick one, because I never saw that supports all the things say the d4 does
<uvos__> right ok
<uvos__> i have one of those
<uvos__> everything works
<uvos__> like d4
<uvos__> except pm
<uvos__> its worse
<Wizzup> yeah, pm is probably poor
<uvos__> its also fairly fast
The_Niz has quit [*.net *.split]
dreamer has quit [*.net *.split]
lightbringer has quit [*.net *.split]
<uvos__> chipset can do good pm, but it is not teribly great on mainline
<uvos__> note that everything only works on xt1602, (ie european variant) other people have wierd issues with the other variants
<Wizzup> yeah I saw that on the wiki page
<Wizzup> *shrug*
<Wizzup> it would be good to support some of those, but it doesn't seem like it's only a little bit of work
<Wizzup> I wonder if they have scripts for pm for example
<Wizzup> and if it works with ofono (it mostly mentions mm, probably because phosh wants that)
<uvos__> it works with ofono
<uvos__> at least in very basic capacity
<Wizzup> ok
<uvos__> i dont think it would be mutch more work than mapphone bringup
* Wizzup going to rest for bit, bbl
<uvos__> to get it to the state of pp
<Wizzup> right
<uvos__> gn :P
<uvos__> still on us clock i imagine
<Wizzup> mostly just no sleep during travel, and I have more work in a few hours :)
<Wizzup> but yes, also on west coast clock
<norayr> i even think of n9 sometimes because it also looks good, i like square corners, jolla is pretty good looking for me. but i understand it is very difficult to find n9 with good battery and it is d to replace it.
<norayr> and jolla has no mainline support.
<norayr> i have the device and i dont use it. just hope it will have better mainline support one day.
<uvos__> i kinda think the n9 is a poor target, it dident sell nearly as well as mainstream android devices and its hw was really outdated even when it was released
<norayr> in generally it would be great to be available on something which is produced today.
<uvos__> with a keyboard in d4 size :P
<uvos__> i gues they still make the pp, at least the pro
<sicelo> norayr: you're wasting your time :-)
<uvos__> norayr: they very mutch might not even make this phone 2 years on
<uvos__> without the vendors themselves supportin mainline linux
<uvos__> we will imo never have fully working devices that are not fairly old
<uvos__> like at least a couple of years
lightbringer has joined #maemo-leste
The_Niz has joined #maemo-leste
dreamer has joined #maemo-leste
ceene has quit [Remote host closed the connection]
alex1216 has quit [Quit: WeeChat 2.3]
<norayr> sicelo: what do you mean? (:
<norayr> (i am, surely, thats what i do best is wasting, but it is interesting what do you think about this situation)
uvos__ has quit [Read error: Connection reset by peer]
uvos__ has joined #maemo-leste
uvos__ has quit [Ping timeout: 248 seconds]
uvos__ has joined #maemo-leste
uvos__ has quit [Ping timeout: 252 seconds]
uvos__ has joined #maemo-leste
akossh has joined #maemo-leste
peetah has joined #maemo-leste
uvos has joined #maemo-leste
<sicelo> i still get unexpected reboots on droid 4, with no load, and no power issues (it rebooted while on charger)
<Wizzup> I haven't really seen those recently, on -devel
<Wizzup> uvos: also I don't recall seeing Xorg hangs really, is that the same drm thing still?
<sicelo> i'm on devel too
<freemangordon> sicelo: battery
<freemangordon> charger doe not make much differerence as it is allowed to draw up to 500 mA
<freemangordon> as soon as you go over that, charger is disconnected and all of the load is taken by the battery
<freemangordon> Wizzup: me neither, but I use it mainly with cromium
<sicelo> there was no load on the system at all
<freemangordon> was it connected to network?
<sicelo> actually i wanted to do `apt update` ... but it died while i was just typing
<sicelo> freemangordon: yes, it was on wifi. no network applications running
<sicelo> it'd be funny for it to die on charger due to battery issues
<freemangordon> try to increase charging current
<freemangordon> to see if it will happen
<freemangordon> like, connect some 2.4 A charger
<freemangordon> and set max current to 2.2 or something
<sicelo> the thing is ... it does this when i don't expect it
<freemangordon> could it be something stupid, like loose battery connection ?
<sicelo> after it rebooted, i actually did the apt upgrade without issue. it's still fine now, after installing a few other packages in ham
<sicelo> not loose battery. the last time it happened (i reported here), the device was sitting on a table
<freemangordon> did you try to tighten the screws?
<sicelo> they're tight :-)
<sicelo> anything beyond this tight will break something
<freemangordon> ok
<freemangordon> what is the capacity of your battery?
<sicelo> no idea tbh. the general consensus in the chat is that it's weak
<freemangordon> please pastebin /sys/class/power_supply/battery/uevent
<freemangordon> 903982
<freemangordon> also, what do you mean by 'unexpected reboot"?
<freemangordon> does it just reset or it is normal shutdown?
<sicelo> typing `apt update`, device dies and starts up again. i didn't expect it to do that
<sicelo> it's not shutdown. it boots itself up
<freemangordon> the battery is genuine or some replacement?
<sicelo> actually not even the white led shows up, so it's not a shutdown
<freemangordon> when kernel shuts down because of low voltage, there is no white led
<sicelo> battery is a replacement. i reused the original eb41 circuitry however
<freemangordon> what is the design capacity?
<sicelo> it's written 2000mAh, but likely false :-p
<freemangordon> well, I would recommend to bye another one. The one uvos recommended seems to be very good and is very easy to disassemble
<sicelo> can't find those batteries this side of the world.
peetah_ has joined #maemo-leste
peetah has quit [Ping timeout: 252 seconds]
<freemangordon> you cant find battery for LG Google Nexus 4?
<freemangordon> E960 BL-T5
<freemangordon> amazon should have it, no idea if they will deliver
<freemangordon> not sure this one is good though, but you got the idea
<sicelo> yes, no nexus phones ever landed here. anyway, i don't mind the capacity of this battery atm since i don't really use the droid 4. just boot it to update once in a while.
nedko has joined #maemo-leste
<freemangordon> it is not about the capacity
<freemangordon> but about the internal resistance
<freemangordon> keep in mind that it is possible that eb41 BMS might cut off the connection under some unknown conditions
<freemangordon> for example, the battery of the second d4 I have here (the one I used as a donor for battery circuit) was providing 0V at the terminals, despite the cell was @ 3.8V
<freemangordon> I had to connect a charger to make it provide voltage
<freemangordon> we don;t know what else protection logic there is
<Wizzup> nedko: I'll get you the sticker files tomorrow
<nedko> Wizzup: great, thanks
<uvos> my d4 also ocassionaly hangs and watchdog reboots
<uvos> its mutch less often than it used to
<uvos> but it still happens
<uvos> its def a hang and wd reboot
<Wizzup> was the microwave wifi problem ever fixed?
<uvos> because i use the device to listen to music alot, and when it happens the music will loop for a while untill wd kicks in
<uvos> Wizzup: no idea, its at least better, it used to crash very often when loosing wifi
<uvos> but havent tested that explictly
<uvos> the wd reboot ends with no logs in pstore
<uvos> hmm
<uvos> maybe the reason why i dont see the wifi hang anymore could also be because i use gprs now while under way
<uvos> so the device dosent autoconnect to public wifi aps anymore
<sicelo> i would agree to the hang + wd observation
<freemangordon> just happened
<freemangordon> but I have oops
<freemangordon> uvos: https://pastebin.com/PWbWmk30
<freemangordon> I guess cpcap_battery_lowbph_enable
<freemangordon> looks like my 30s patch
pere has quit [Ping timeout: 248 seconds]
<freemangordon> tmlind: please help with ^^^
<freemangordon> why does it complain that I can't schedule from a timer function?!? do I need to have a wq for that?
<freemangordon> oh: "Timer functions must be atomic in all the ways we discussed in..."
pere has joined #maemo-leste
doc|home has joined #maemo-leste
<sicelo> freemangordon: that's LDD? :-)
* sicelo guesses he should get a copy too
<freemangordon> umm, ldd?
<freemangordon> ah, "linux device drivers" I guess
<sicelo> yes. is 3rd edition still the latest, or my search engine-fu fails me?
peetah_ has quit [Ping timeout: 252 seconds]
peetah has joined #maemo-leste
<freemangordon> oh, ok, seems I have to use delayed_work and not timer
Guest42 has joined #maemo-leste
Guest42 has quit [Client Quit]
Twig has quit [Remote host closed the connection]
mardy has quit [Quit: WeeChat 3.5]
pere has quit [Ping timeout: 272 seconds]
pere has joined #maemo-leste
<Wizzup> 'rethink possible' - atrix startup screen
akossh has quit [Quit: Leaving.]
uvos has quit [Read error: Connection reset by peer]
peetah_ has joined #maemo-leste
peetah has quit [Ping timeout: 252 seconds]
peetah_ is now known as peetah