libera/#maemo-leste/ Monday, 2022-09-19

norayrMStarDict::onDownloadDictionariesMenuItemClicked(GtkButton *button,01:11
norayr MStarDict *mStarDict)01:11
norayrgoes to:01:11
norayrhttp://xdxf.revdanica.com/down2/index.php?down_format=StarDict01:11
norayrwhich doesn't exist anymore01:11
norayrsimilar issue was with msid, which i ported, but one of the sites it was linked to was still available and accessible via, not http, but https.01:12
norayrrevdanica does not exist anymore, so i don't know what to do... don't even know what was the answer of this request.01:12
norayrthat function calls osso_rpc_run(mStarDict->osso_context,01:13
norayr     "com.nokia.osso_browser",01:13
norayr     "/com/nokia/osso_browser",01:13
norayr     "com.nokia.osso_browser",01:13
norayr     "open_new_window",01:13
norayrdo we have com.nokia.osso_browser now?01:14
freemangordonhow am I supposed to calibrate the battery on d4, give that device shuts down on 3.5V?07:58
freemangordon*given07:58
uvos__it shuts down at 3.35v wich is below the cal threshold08:54
uvos__"uvos__: what about "display stay lit while charging" setting?" is not implemented. it got lost when spinal replaced the old battery handling with the upower module. the upower module is without functionatliy (its interfaces are used nowhere and it dose nothing internaly besides read upower (except the battery guard module i added later that dose shutdown on low voltage))08:57
uvos__i plan to reintroduce the feature by taking the uevent code from kerecv, but have not done so08:58
uvos__also in defense fo spinal the old code dident work either beacuse it read a sysfs file.08:58
uvos__anyhow mce dosent know or do anything with charging or usb state really, the bug might be related to the banner appearing (this kicks mce via the dbus if iirc)09:01
uvos__otherwsie idk, i have never seen it bug out at all, please give steps to repo09:02
rafael2kmorning09:30
rafael2kI dont see the updated PP kernel in the repo, something happened in the build?09:31
freemangordonuvos__: IIRC upower module was pulled by me from nemo/mer/sailfish, but I might be wrong, it was long time ago :). Not important though.09:56
freemangordonok, I'll capture a video next time it happens and will try to gather some dbus traces, maybe09:56
freemangordonre battery it seems there are some temporary voltage drops which lead to those shutdowns09:57
freemangordonmaybe some spike filtering shall be done, dunno09:58
freemangordonnow charging in android, to see what it will do09:58
freemangordonuvos__: also, do you know which module/code reads battery eeprom in android?09:59
Wizzuprafael2k: I didn't do it yet, sry, had other things on my mind10:49
Wizzupfreemangordon: the kernel also has its own force shutdown on low battery afaik11:05
Wizzupwhich might be more sensitive to spikes11:05
uvos__freemangordon: battd its a closed source motorola thing11:07
uvos__freemangordon: the eeprom is extremly unlikely to be usefull11:07
uvos__freemangordon: it dose not contain any callibration11:08
uvos__freemangordon: as it is read only it can not11:08
rafael2kWizzup: ?11:11
uvos__freemangordon: indeed the kernel has its own force shutdown too and its not filered at all. the battery voltage is a bit sensetive to spikes in mce too but filtering that is really upowers resposability.11:12
uvos__please also note that pulling the battery below 3.0 under load causes damage, its not the open circut volage thats relevant.11:13
uvos__a problem here is that the d4 has a massive resistance between the battery and cpcaps voltage probe, for some reason11:13
uvos__(an aditional)11:13
* sicelo also just had that shutdown fmg is referring to11:23
freemangordonuvos__: well, battery voltage is measured by cpcap, so a temp spike on *that* voltage should not lead to immediate shutdown11:24
freemangordonalso, this shutdown seems to happen @ < 3.2V11:24
freemangordonthat would guarantee that the battery itself is well above 3.0, no?11:24
uvos__yes we dont shutdown early beacuse it would damage the battery11:24
freemangordonumm, sorry, can't parse11:25
uvos__we shoutdown early beacuse the user cant easly recover from the state wehre the device is fully discarged11:25
freemangordonah11:25
uvos__becasue of bootloader trouble11:25
freemangordonthat's fine11:25
uvos__not really11:25
uvos__but its the best we can do atm11:25
freemangordonthe point is that IMO we shall not shutdown as soon as we see < 3.211:25
uvos__yeah thats a kernel thing11:26
uvos__upower dose filter the spikes11:26
uvos__if its enough idk11:26
freemangordonmhm, we shall filter too11:26
freemangordonIIUC11:26
freemangordonin the kernel driver that is11:26
uvos__sure11:26
freemangordonshall I implement some filtering there?11:27
siceloyessss please :-)11:27
uvos__yes sure11:27
uvos__but atm this would change nothing in leste11:27
sicelobattery issues are the main reason i don't enjoy using my the d411:27
uvos__but still yes11:27
freemangordonit will prevent random shutdowns11:28
uvos__i dont think the kernel ever hits its shutdown11:28
uvos__atm11:28
uvos__its .3v away11:28
uvos__it certenly dosen for me11:28
freemangordonit does, when you stop mce :D11:28
uvos__(kernel shutdown = no white light)11:28
uvos__ok11:28
uvos__sure yeah then11:28
uvos__;)11:28
freemangordonalso, to me 3.5V is too high11:29
uvos__mce is 3,3511:29
freemangordonwhy don;t we shutdown @ 3.25?11:29
uvos__mce is 3.3511:29
uvos__freemangordon: we shoutdown early beacuse the user cant easly recover from the state wehre the device is fully discarged11:29
freemangordonwell,, I guess spikes again11:29
uvos__when are you mesureing 3,5v11:29
uvos__if thats afterwards its useless you need to measure under load11:30
freemangordoneven with charge mode?11:30
uvos__yes11:30
uvos__charge mode helps only a little11:30
freemangordonok, 3.35 then11:30
uvos__the problem is the device dieing before the kenrel finishes booting11:30
uvos__(and the android kernel and kexecboot it all just takes to long)11:30
freemangordonbut, we stall shall filter better11:30
uvos__and no pm during that time either11:30
uvos__sure11:30
uvos__upower dose filter as i saied11:30
freemangordoneven in mce, if needed11:30
uvos__but maybe to fast11:30
freemangordondoes not seem enough11:30
freemangordonyeah11:31
sicelono idea how possible this is - but i really don't mind 3.5v or any other voltage *IF* the shutdown is not initiated immediately, but we test over a couple of seconds to be sure the voltage has really dropped (it's not just a spike)11:31
uvos__mce cant really filter11:31
uvos__iirc11:31
uvos__becasue it gets voltage changed events11:31
uvos__not some polling rate11:31
freemangordonbut, if we filter in kernel, then upower will filter the already filtered value :)11:31
uvos__no11:31
uvos__dont filter the voltage_now value11:31
uvos__that breaks spec11:31
uvos__its defined as a snapshot11:32
uvos__the kernel can filter for its shutdown thresh11:32
uvos__not uapi11:32
uvos__check if voltage_avg is a thing (current_avg) exists11:32
uvos__in uapi11:32
uvos__then filter that, as its defined to be the filtered value11:32
uvos__anyhow ttyl11:33
* freemangordon looks at how mce takes shutdown decisions11:35
Wizzuprafael2k: the kernel build11:36
freemangordonuvos__: yes, it can filter, just not the voltage, but the state11:40
freemangordonlike, it receives 'empty' message with voltage < threshold from upower and starts timer. if after the timer expires we didn;t receive anything from upower with voltage > threshold we initiate shutdown11:42
freemangordonif voltage comes that is > threshold, then we abort "shutdown sequence"11:43
freemangordonand yes, it was me to add battery-upower module https://github.com/maemo-leste/mce/commit/9f89035dd53ccb30d6984f9cc7ea433cf84ae599 :)11:45
freemangordonso here https://github.com/maemo-leste/mce/blob/master/src/modules/battery-upower.c#L19611:47
sicelo+1 on the timer proposal11:47
freemangordonI will try to implement somwthing11:47
freemangordonsome hysteresis algo11:48
rafael2kWizzup: lemme know if there is something wrong11:53
siceloWizzup: wiki down again11:56
freemangordonuvos__: re battery eeprom - at least we'll be able to understand if this is high voltage battery or not and charge properly11:56
freemangordoniven if not @ 4.35, but 4.25 or 4.3 sounds sane to me11:57
freemangordon*even11:57
rafael2kuvos__: the "speaker" button in sphone does not change the audio output to the speakers in the PP11:57
Wizzupsicelo: hm looks like the vm freezes11:58
Wizzupsicelo: that's not great :)12:00
freemangordonDoS attack?12:01
Wizzupmaybe12:02
Wizzupnot likely I think12:02
Wizzupbut we'll see12:02
Wizzuphm I think it froze again already12:03
Wizzupeven the vnc session of qemu disappears12:04
Wizzupwell, it hangs12:04
Wizzupwell, I don't understand atm :)12:08
WizzupI will have to debug this later today12:09
WizzupI will keep it down for now12:11
uvos__freemangordon: this is allready implemented @hv voltage or not12:13
uvos__freemangordon: its just that we cant modprobe the one wire bus driver12:13
uvos__freemangordon: becasue it blocks idle12:13
uvos__freemangordon: also theres a small bug in the code that makes it work on only some phones, but thats small fry and i could fix it immidatly if the other issue is solved12:14
uvos__rafael2k: probubly ucm issue12:15
rafael2kuvos__: indeed. Will try to debug this a bit12:17
uvos__freemangordon: sure you could do that @ timeout, but thats sortof a hack vs just filtering the voltage itself so its not so noisy12:21
uvos__i also have to note thtat i dont have the "noisy battery voltage" problem at all12:26
uvos__mine shuts down very reliably at 3.3 ish volts12:26
uvos__i gues that may be becasue my battery is new and the really old degraded batteries have greateer internal resistance12:27
uvos__thus having great magnitude spikes when the load changes12:27
uvos__in your filtering please also note that spikes upwards might also exitst12:29
uvos__when for instance the phone enters ret for a tiny period of time while otherwise loaded12:29
uvos__this may cause you to shutdown to late (again the closed circut voltage is important, not the open circut one)12:30
uvos__your timer proposal would be subject to this problem12:30
freemangordonuvos__: sure the issue appears because of my old battery12:55
freemangordonthen again - if you say filtering VOLTAGE_NOW will break the specs, I am not sure which voltage to filter12:57
uvos__freemangordon: so cpcap gives the kernel a voltage low irq12:57
freemangordonah12:58
uvos__freemangordon: (btw we should throttle it, it comes way to often below a thresh)12:58
freemangordon@ what voltage?12:58
uvos__hw defined12:58
uvos__3.3 or so i think12:58
freemangordonI see12:58
uvos__but it comes repeatably below that thresh12:58
uvos__and then the driver checks the voltage when the irq fires12:58
freemangordonso you think we shall filter in irq12:58
uvos__i think it dose that 3 times and makes a avg12:59
freemangordonhandler12:59
uvos__allready12:59
uvos__iirc12:59
uvos__but it needs to be longer i gues12:59
freemangordonI see12:59
freemangordonwell, counting to 3 is wrong I would say :)12:59
freemangordonif irq rises every ms12:59
uvos__sure but i think the irq handler dose 3 mesurements by itself13:00
freemangordonahaaa13:00
uvos__iirc, but dont have the code infront of me rn13:00
* freemangordon ckecks the code13:00
freemangordonI see no filtering whatsoever, maybe I can;t find it13:03
uvos__ok13:03
uvos__maybe the 3 mesruements was for someting else (callibration maybe)13:03
uvos__anyhow that needs filtering somehow (irq handler)13:03
uvos__also throtteling, while at it13:03
freemangordondo we have some standard API to do that? or we shall invent it13:07
freemangordonor, you mean we shall not call   power_supply_changed() more than once every few seconds?13:08
freemangordonfrom the irq handler that is13:09
uvos__throtteling is achived by disabeling the irq for some seconds13:09
uvos__by changing cpcaps irqmask13:09
freemangordonok13:10
freemangordondo you know how often does it come now?13:11
uvos__not exactly if you want a ms number13:11
uvos__very often sometimes13:11
uvos__btw the thing is qutie suspect to me anyhow13:12
uvos__im not srue cpcap even guarentees the irq will fire ever again after thresh13:12
uvos__it might just because noise13:12
uvos__anyhow tmlind obviously thought it did13:12
uvos__maybe he can enlighten us13:13
freemangordonyep, I'll pester him on that one13:13
uvos__i get the fealing maybe we should just disable the irq after geting it once and poll after that, untill we shtudown or the charger is plugged13:13
freemangordonlemme see in the logs, yesterday I had mce stopped13:14
freemangordonso I should have several "low" messages in dmesg13:14
uvos__dmsg absolutly spamms you will low becasue of the irq below a thresh13:15
uvos__s/will/with13:15
freemangordonumm, then I don't understand "im not srue cpcap even guarentees the irq will fire ever again after thresh"13:15
uvos__the code as is13:15
uvos__assumes that cpcap will fire the low irq repeadbly after crossing the threshold13:16
uvos__in reality i suspect its just a comperator13:16
uvos__that will fire only when the voltage passes thresh13:16
uvos__that means the kernel may never shutdown13:16
freemangordonit did yesterday13:16
uvos__if the irq fires, the kernel thinks voltage is high enoguh and cpcap thinks its low and has done its duty13:17
uvos__freemangordon: right so tmlinds assumption was wrong13:17
uvos__and wee nedd to " i get the fealing maybe we should just disable the irq after geting it once and poll after that, untill we shtudown or the charger is plugged"13:17
freemangordonyep, I see irq storm in th elogs13:18
freemangordonabout low battery13:19
freemangordonwhat is weird though is the voltage13:19
freemangordonI see battery low @ 3661 mV13:19
uvos__oh ok13:19
uvos__i never see it before 3.3 or so13:20
uvos__i gues its old battery spikes again13:20
uvos__seeing it very early is not that unusual if your battery is really bad i gues13:20
freemangordonok, but @ 3.6V :)13:20
uvos__the irq is unfiltered ofc and very fast13:20
freemangordonyeah13:20
uvos__that means your droping below 3.313:20
freemangordonI guess this drains it even faster :)13:20
uvos__even while mostly charged13:21
freemangordonright13:21
uvos__thats bad13:21
uvos__that means your droping > .3 volts13:21
uvos__d4 hw has ram erros below 2.9 or so13:21
uvos__so you might be even flipping bits with that13:21
freemangordonthe storm continues for 5 seconds13:22
freemangordonand then it stops13:22
freemangordonseems irq is triggered every 20-30 ms though13:22
freemangordonhmm, no13:23
freemangordonit is not on interval13:23
uvos__its probubly triggering on noise after that, is my suspicion13:23
uvos__not a time13:23
freemangordonmhm13:24
freemangordonwhy do we need to start poling once we have 'low' irq?13:25
uvos__becasue how would you know when to shutdown?13:25
uvos__you can rely on noise triggering the irq again13:25
freemangordonwe have 2 irqs13:25
freemangordonone for low and one for empty13:26
uvos__i dont think we use the empty one directly13:26
uvos__iirc13:26
freemangordonsure we do13:26
uvos__without mesrueing the voltage?13:26
freemangordonwit measuring13:26
uvos__right13:26
freemangordon*with13:26
uvos__the problem is13:26
uvos__empty irq fires13:26
freemangordonwell, it uses the last measurement13:27
uvos__we messure voltage13:27
uvos__we think its ok to not shutdown13:27
uvos__now what?13:27
uvos__the irq may never come agian13:27
freemangordonobviously it comes13:27
uvos__because of noise13:27
freemangordondoes not matter13:27
uvos__idk if you cna rely on that13:27
freemangordonhmm, I see13:27
uvos__even if it mostly works13:28
uvos__the voltage may be very clean for some reason13:28
freemangordonwhat we can do:13:28
uvos__phone is is continuous off mode or whatever13:28
freemangordononce we have "empty" irq, start polling every 10 seconds or so13:29
uvos__right13:29
uvos__thats what i said :)13:29
freemangordonif we see voltage < 3.2, shutdown13:29
uvos__"i get the fealing maybe we should just disable the irq after geting it once and poll after that, untill we shtudown or the charger is plugged"13:29
freemangordonyou were talking abot "low" not "empty" :)13:29
uvos__well both13:29
freemangordonno13:29
uvos__both have the sam eproblem13:29
freemangordonwe should disregard empty13:29
freemangordononce it comes13:30
freemangordonwe shall not start poll on "low" only on "empty"13:30
uvos__if you want the low indicated to uapi to be realiable13:30
uvos__you have to do the same thing to it too13:30
uvos__its not as important i gues13:30
uvos__but otherwise it holds13:30
freemangordonobviously it went below the threshold, no?13:30
uvos__sure13:30
freemangordonso it is low13:30
uvos__but yours is obviously totaly bonkers13:30
freemangordonsure13:31
freemangordonthe point is that it does not really matter how much "low" it is, from the shutdown perspective13:31
uvos__sure13:31
freemangordonso, once we detect low, we disable the irq and enable it back only on charger connected13:31
uvos__or reboot yes13:32
freemangordonwell, power-up will enable it for us, obviously :)13:32
freemangordonhmm, wait13:32
uvos__well avoid writeing the state to nvmem xD13:32
freemangordonyou are right we shall start some polling for couple of seconds13:33
freemangordonor not?13:33
* freemangordon checks how mce decodes to shutdown13:33
freemangordon*decides13:33
uvos__mce just gets the voltage from upower13:33
uvos__and descides to shutdown on thresh13:33
uvos__not by default at all btw13:34
uvos__its a device specific config activated on mapphones13:34
freemangordonit receives   UP_DEVICE_STATE_EMPTY13:34
uvos__it dosent use that13:34
uvos__it uses the voltage13:34
uvos__and decides itself13:34
freemangordonboth13:34
uvos__right both but the voltage is allways sooner13:34
freemangordonif (upowbat.state == UP_DEVICE_STATE_EMPTY || upowbat.voltage < private.min_voltage && !mcebat.charger_connected)13:35
freemangordonright13:35
freemangordonok, so upower does not filter enough13:35
* freemangordon is afk for few minutes13:36
freemangordonuvos__: ok, what I think I will implement for now, is to disable 'low' interrupt for 30 seconds and then re-anable13:44
freemangordon*re-enable13:44
uvos__freemangordon: ok well thats not really a final solution, but may at least defer the problem so that its not too annoying for people with batteries that are close to death14:22
freemangordonsure, this is just the first step14:22
freemangordonat least to fix the irq storm14:23
freemangordonuvos__: https://pastebin.com/T3A9yyd514:27
uvos__looks good14:28
buZzhehe yeah, that 'low battery' poweroff is kinda annoying, i even had it happen on ~80% charge14:47
freemangordonthats upower misbehaving, but that's another story14:52
freemangordonuvos__: oh, BTW, I checked GFX domain and it enters OFF when screen is on14:53
uvos__freemangordon: i mean yeah it should, but it dident in the past at some point post ddk 1.914:56
uvos__so good14:56
freemangordonfor sure it does now14:56
uvos__also iirc on android dss enters off too14:56
uvos__and dosent on leste14:56
uvos__(screen on)14:56
freemangordondid you check?14:56
uvos__sure yeah when i was debugging power things14:56
uvos__1 year ago14:57
uvos__so its more of a check this again, not a its broken14:57
freemangordonyeah, it stays ON14:58
uvos__ok i gues the android kernel has special handlig for the command mode dsiplay14:58
uvos__on a regular display dss cant be off ofc14:58
freemangordonhmm, wait14:58
freemangordonI am playing video :)14:58
uvos__lol14:58
freemangordonlemme stop it14:58
uvos__ok14:58
uvos__another problem is14:59
uvos__that we have just one gfx clock14:59
uvos__while android scalles it14:59
uvos__we just have off and full blast14:59
freemangordonyeah14:59
uvos__android ussually never even needs full sgx clock in the ui14:59
freemangordonuvos__: hmm actually OFF counter increases when the display is on15:01
freemangordonso I guess this is some artificial VSYNC that's going on15:01
freemangordonnot that it is good, I will have a look at it15:01
uvos__ok15:04
uvos__well that means the code path at least is sorta there15:04
uvos__to suspend dss with cm mode pannel15:04
freemangordonok, I see no ioctls with display enabled15:06
freemangordonDRM ioctls that is15:06
freemangordonwell, there are few, every 10 seconds or so15:06
freemangordonbut nothing to keep it ON15:06
freemangordonmaybe gsm signal strenght gets updated15:07
uvos__maybe check if its sill a poblem in a vt15:08
uvos__(disable the cursor ofc ;))15:08
freemangordonwill do15:08
freemangordonbut not now15:08
uvos__ok15:08
freemangordonlets first see the battery low patch15:08
buZz:) oh that display thing is weird too15:30
buZzsometimes it seems X thinks the screen is turned off, and you need to press a button for it to 'turn on' before the button arrives at (say) xterm , but the screen would already be on15:31
buZzfeels kinda like DPMS is enabled but not supported, or something15:31
buZzwow did something in charging change? i see d4 charging a lot faster now15:33
buZzhmmz, wiki seems offline, or at least superslow15:35
rafael2kbtw, I have a very strange behavior with the screen backlight when I connect a USB mouse, the screen starts to dim, until it turns off.15:37
rafael2kalso, most likely a WiFi regression, maemo does not connect to an available network, but always try to connect to the latest network, even if it is not available15:37
rafael2kI dunno if it was always like this, but it does not seems right15:38
buZzrafael2k: hm? thats kinda normal? i mean 'dimming and then off' is the normal maemo 'idle screen off'15:38
buZzohhh, you mean, its still turning off even though you are giving external inputs?15:39
buZzthat connection stuff is about auto-connecting to wifi?15:39
rafael2kbuZz: no no, as soon as I connect a USB mouse, it starts to dim off15:39
buZzhuh15:39
buZzthats bizar, lemme try :D15:39
rafael2kindeed, very bizar15:39
buZz*digs around for a usb mouse*15:40
rafael2kbuZz: auto-connecting to wifi - yes - it has a problem15:40
rafael2kit does not try to connect to an available network, but to the last one15:40
buZzinitially? or all the time? does it never get on the available one?15:42
rafael2kI need to manually choose the available one15:42
buZzeh, i just connected a usb mouse, and screen doesnt dim15:43
buZzrafael2k: you're using a d4 aswell?15:43
rafael2kstrange, here the issue starts imediatelly15:43
rafael2knope, just the PP15:43
buZzoh ok, i dont have a usb-c mouse or adapter15:43
rafael2kUSB is indeed working fine, apart of this issue... I dunno if when we have usbnet back things will keep working15:44
buZzaha! screen did dim -eventually- like from normal timeout on maemo15:44
buZzBUT , moving usb mouse does not undim!15:44
rafael2kindeed!15:44
buZztapping screen -does- undim directly15:44
buZzweird issue :P but feels related to my eh 'screen is on but needs a keypress before working'15:45
rafael2kbut the strange thing for me is that just plugin the USB mouse triggers the dimming15:45
buZzhmhm, i'm not using PP a lot15:45
buZzwas great to see the GPU finally getting somewhat fast though :)15:46
rafael2kalso, the mouse wheel makes lots of system clicks sounds... unless I set the system to be silent15:46
rafael2k: )15:46
rafael2knot a big issue thou15:46
buZzhmhm? well 'mousewheel' usually is >1 button, isnt it?15:46
buZzits 'down X lines' or something15:46
buZzi'll try to make a issue from this topic15:47
rafael2kI dunno, but mouse wheel movements makes the same system sound as a left or right click15:47
rafael2kat least with the USB mouse15:47
rafael2kmouse wheel are mouse buttons afaik15:48
buZzi -think- there's no issue describing the dimming/locking already on https://github.com/maemo-leste/bugtracker/issues15:50
rafael2kright, may be I'll open an issue there with the kernel log15:50
buZz> 15:47:15 < buZz> i'll try to make a issue from this topic15:50
buZzbut if you want to , thats fine too :P15:51
buZzi -think- that 'dim on usb connect' is a PP specific issue15:52
rafael2kI think so15:55
rafael2kwill do some more debug before opening it15:55
rafael2kI opened one for sphone "Speaker" button: https://github.com/maemo-leste/bugtracker/issues/63715:56
buZzyeah that regressed, it was working briefly before15:59
buZzoh, it does work on d4 running -devel16:00
buZzrafael2k: are you on -devel?16:03
freemangordonrafael2k: what does it mean "does not connect to the available network?" it connects only to networks that are in the connections list16:03
freemangordonlike, you should have connected at least once16:04
freemangordon*manually*16:04
rafael2kbuZz: yes, on -devel16:08
rafael2kfreemangordon: it was connected to a known network, then this network goes out of range, the phone does not connect to a known available network automatically16:09
freemangordonhmm, weird16:11
freemangordonis it set to do it?16:11
freemangordonin settings16:11
buZz'autoconnect' isnt tested a lot yet, btw16:13
buZzi guess i should enable it now that gprs is working so well <3 <316:13
freemangordonit is not tested, but at least on my d4 it works fine16:14
buZzrafael2k uses a PP16:14
buZzrafael2k: you autoconnect to 'any' or just wifi?16:14
buZzrafael2k: do they, by chance, share the same SSID?16:21
freemangordonuvos__: I see absolutely no filtering done in upower https://github.com/maemo-leste-upstream-forks/upower/blob/master/src/linux/up-device-supply.c#L68416:23
freemangordonif you see one, please LMK16:24
buZzif (voltage < 0.01)16:24
buZzlol, thats a low voltage :D16:24
freemangordonwell, it plays games with float16:24
buZzright, but why even use voltage_now , that drops a ton even if you just turn on the screen16:24
buZzvoltage_avg is the filtered one16:25
freemangordonnot everyone supports it it seems16:25
freemangordond4 for example :)16:25
buZzit does?16:25
freemangordonwhere?16:26
buZzwait, i think it does16:26
freemangordonnope16:26
freemangordonsee /sys/class/power_supply/battery16:26
buZzoh, indeed16:26
freemangordonbuZz: BTW I know rafael2k uses PP, it is just that icd2 does not care if it is PP or d416:27
buZzmaybe we could add a voltage_avg output to cpcap-charger.c ?16:27
buZzor cpcap-battery.c16:27
buZzjust eh. average of last X samples16:27
freemangordonthat wouldn;t help upower16:27
buZzyeah , not as-is, unless we flip _now and _avg on the lines you linked16:27
freemangordonoh, this is again spinal16:28
buZz(afaics)16:28
freemangordon"Subject: [PATCH] Add voltage estimated percentage fallback"16:29
freemangordon"This is common code for status-area-applet-battery and mce"16:29
freemangordonso, I think we shall fix that by trying _avg first and if there is no, average _now16:31
freemangordonor, provide both voltage_avg and voltage_now and leave users decide what they prefer16:33
buZzdoes upower even support providing both?16:33
freemangordonupower supports neither16:33
freemangordonthis is code added by   spinal.by at gmail.com16:34
freemangordonthe same guy that made a rage quit16:34
freemangordonbecause I 'stole' *his* clutter code16:35
freemangordonanyway16:35
buZzrofl16:38
uvos__so the scrollwheel making sounds is as designed16:43
uvos__thats the mousebutton click in mis16:43
uvos__the mouse not undiming the screen is probubly mce misscharacterizing the mouse as a keyboard16:44
uvos__could you post the evtes output of that mouse16:44
uvos__idk whats going on with the display dimming when you insert a mouse but just on pp16:44
uvos__mabybe this is a hw interaction between vbus and the light sensor or sometheing16:45
uvos__no idea16:45
freemangordoncould be the same issue I see on d416:45
uvos__maybe run mce with --verbose --verbose and give me the output16:45
uvos__freemangordon: at least buZz repoted it dident happen to him16:45
freemangordonI am seeing it when I connect a charger16:46
freemangordonhmm, lemme try to repro and see the logs16:46
buZzfreemangordon: your screen dims when you connect a charger?16:47
buZznot here, indeed16:48
freemangordonwhen I disconnect it16:48
buZznot here either16:48
buZzdo you have 'screen on when charging' set?16:48
freemangordonyes16:48
buZzi dont16:48
uvos__pretty wierd behavior16:48
uvos__all around16:48
freemangordondoes not happen all the time though16:48
buZzuvos__: you want me to post something about a usb mouse?16:49
uvos__yeah16:49
uvos__evtest16:49
uvos__the list of events it supports16:49
buZzalright16:49
buZzhmmm , i dont have evtest, what package is that in?16:50
uvos__i think evtest16:51
buZzindeed :)16:51
* buZz waits for dpkg lock to release after connecting wifi -_-16:53
buZzhow do i disable that behaviour? :D16:53
buZzfunny, a mouseclick does undim screen , movement just doesnt16:55
freemangordonuvos__: hmm, you said 'screen on when charging' does nto work, but it seems it works now16:55
freemangordonit does not work correctly (like, it does not turn the display on when charger is connected), but at least display stays lit when connected16:56
uvos__unless i forgot that i partally implmented this again (very unlikely), its not mce16:58
buZzuvos__: https://paste.debian.net/125436216:58
uvos__but anything could hold a lock16:58
buZzdoes that help? should i put that in the issue rafael2k made?16:58
uvos__buZz: it probubly helps but i cant check now16:59
buZzoh, there isnt one yet16:59
buZzok16:59
uvos__most likley mce thinks a mouse/ts needs an absolute axis or soemthing16:59
buZzuvos__: where do you want this paste stored then? a new issue?16:59
uvos__(this is why we should have libinput filter the event types but yeah)16:59
uvos__buZz: sure new issue is good16:59
buZzalright16:59
buZzhttps://github.com/maemo-leste/bugtracker/issues/638  <- there you go17:02
buZz(pretty weird to see so many buttons reported, it doesnt have so many)17:02
Wizzuphm, my d4 thinks there is no sim now17:10
Wizzup(ofono)17:10
freemangordonwhat happened? like, out of the blue?17:11
buZzWizzup: i get that sometimes aswell, mostly after shaking phone hard :P17:14
Wizzupwell we were in the car17:15
WizzupbuZz: ah maybe that's it17:15
freemangordonuvos__: it is getting better :)17:15
buZzwhen i put some cardboard behind sim, its usually better17:15
freemangordonif I run mce --verbose --verbose --verbose and connect usb cable display gets unlocked17:15
buZznearly -always- after dropping phone on something i see 'sim registration failed' or something17:15
Wizzuphmm, I don't usually drop my phone17:16
buZzon a couch?17:16
freemangordonif I just run /etc/init.d/mce start, nothing happens if I connect the cable17:16
buZzor if its in my backpack and i plonk it on the ground17:16
norayrfolks do we have "/com/nokia/osso_browser" now?17:16
freemangordonno17:16
norayrwhat is used instead?17:16
freemangordonxdg browse17:16
freemangordon*browser17:16
freemangordonnot that it is implementd17:17
buZzi just run chromium :P qtwebbrowser is such a hell17:17
freemangordonright17:17
norayrwhen we press that button in mstardict17:17
norayrosso_rpc_run() gets called17:17
freemangordondoes it try to open url?17:18
norayrits first argument is "com.nokia.osso_browser"17:18
norayryes17:18
norayrwith exact request17:18
norayr"http://xdxf.revdanica.com/down2/index.php?down_format=StarDict"17:19
norayrwhich doesn't exist now.17:19
Wizzupnothing listens for it17:19
norayrit's in src/mstardict.cpp17:20
norayryou are free to replace the code.17:20
norayrto call the default browser17:20
norayror i can do that but i don't know how to call the default browesr.17:20
norayrand i'll use some sourceforge url probably.17:20
norayrbut the dictionaries as i understand must be manually downloaded and put to ~/MyDocs/mstardict17:21
freemangordonoh, great, I have mce logs from when it was buggy, now I only need to find them17:21
buZzioh, right, i wanted to setup a new mirror for those dicts that isnt poopslow17:26
freemangordonuvos__: look at this https://pastebin.com/8k558SEX17:27
freemangordonmaybe related to https://github.com/maemo-leste/mce/blob/master/src/modules/battery-upower.c#L25617:33
freemangordonhmm, no, that sets it to be active17:35
Wizzupaah ok, the vm needs more space17:37
WizzupI think this is the problem17:37
buZzWizzup: and maybe wipe some logs / setup logrotate?17:42
Wizzupthe problem is the qemu raw image grew too 300GB17:42
WizzupI'm fixing it now, the problem is not logrotate17:43
buZzholy17:43
Wizzupwe run jenkins on it17:43
Wizzupand for years we kept all the archives17:43
Wizzupit's not a surprise17:43
buZz:)17:43
Wizzupand there is no way to 'return' the bits of raw images17:43
buZzwe can move archives to archive.org ?17:43
WizzupI'd have to resort to filling in parts that the fs doesn't use to 0's etc17:43
Wizzupoh17:44
WizzupI meant artifacts17:44
Wizzupnot archives17:44
buZzwe can move whatever we dont need from years ago to archive.org ?17:44
buZz:D17:44
buZz:D:D17:44
freemangordonWizzup: you should be able to reclaim the free space back to host OS17:45
Wizzupfreemangordon: yes, but it's not triival17:46
freemangordonwell, at least vbox and vmware support that17:46
freemangordonI know17:46
dreamerlala, finally charge was full enough to boot this poor droid. now how do I update the apt keys again? :P17:46
Wizzupfreemangordon: https://unix.stackexchange.com/questions/448603/shrink-unused-space-in-raw-image17:46
Wizzupdreamer: just apt-get upgrade twice17:46
Wizzupwe worked around devuans problem17:47
dreamerbut the update fails17:47
dreamercertificate chain is expired17:47
Wizzupdreamer: yes, for devuan17:47
Wizzupnot for us17:47
Wizzupso just pull in the partial upgrade17:48
Wizzupand we will ship the new devuan key17:48
dreamerupgrade says there are 0 packages17:48
dreamermaybe my sources list is too old?17:48
Wizzupour own last key expiry problem is a long time ago I think17:48
freemangordonWizzup: is this key in -stable?17:49
freemangordondevuan one17:49
Wizzupyes17:50
freemangordonok17:50
WizzupI think..17:50
buZzdreamer: its ok, it will fail on devuan , not maemoleste17:50
buZzdreamer: and updating maemoleste should get you the newer devuan keys17:50
dreamerbuZz: no, it fails on everything17:50
buZzit shouldnt?17:51
Wizzupfreemangordon: I just imported it with reprepro17:51
buZzafaik maemo keys didnt change at all17:51
Wizzupdreamer: what's your droid 4 time set to?17:51
dreamerthere are 0 updates to install according to apt17:51
buZzeh?17:51
dreameroh wow, november 2021? o.O17:51
buZzlol17:51
buZzthat would prevent ssl from working :P17:51
dreamerI have for certain booted this only a few months ago17:52
dreamerlike ~317:52
buZzbut did you ntpsync ? :D17:52
dreamer(was a busy summer)17:52
dreamernot yet :)17:52
buZzhehe17:52
dreamerany suggested servers?17:53
buZzntp.bit.nl17:54
buZzwe run one at nurdspace too :P but its 'flok accurate' ;)17:55
dreamerer, `CLOCK: adj_systime: Invalid argument`17:57
dreameror, how the hell do I type a `:`?17:58
dreamerit gives me `>` instead ..17:58
dreamerok ssh17:59
buZzdreamer: press 'ok' then '.'18:00
buZzlike on n90018:00
dreamerso did a manual set of the date18:01
buZzalright, and time? :)18:01
dreamernow I just get python errors when I use ntpdate directly ..18:01
dreameryes18:01
dreamerdate+time18:01
buZzpython errors? i didnt know ntpdate was python18:01
buZzits not ..18:01
dreamerI dunno: `TypeError: 'gaierror' object is not subscriptable`18:02
dreamerfrome `/usr/bin/ntpdig`18:03
buZzgai = getaddrinfo18:03
dreameranyway, apt gets a tiny step closer18:03
buZzmaybe dns isnt working?18:03
dreamer152 packages can be upgraded. Run 'apt list --upgradable' to see them.18:03
buZzor you changed hostname on d4?18:03
dreamerI did not18:03
buZz¯\_(ツ)_/¯18:03
dreamerThe following packages have unmet dependencies: libegl1-sgx-omap4 : Conflicts: libegl1 (>= 1.3.0-1)18:03
freemangordondreamer: do apt-get dist-upgrdae18:03
freemangordon*dist-upgrade18:04
buZzyeah you're updating almost a full year of updates :P18:04
dreamerfreemangordon: thnx <318:04
dreamerfull year? that can't be. I ran this not too long ago and did updates then ..18:04
dreamerheuhm18:04
buZznov 2021? :D18:04
dreamerno that date isn't correct18:04
dreamerthat's not the last time I booted it18:04
buZzindeed ;)18:04
dreameras said, this was a couple months ago18:05
dreameranyway, churning away :)18:05
buZz\o18:05
* dreamer go make diner and see where this ends up later18:05
freemangordonuvos__: I think the issue is there https://github.com/maemo-leste/mce/blob/master/src/modules/inactivity.c#L30018:31
freemangordonwe see MCE_DISPLAY_ON in /build/mce-1.9.17+2m7/src/modules/display.c display_on_req_dbus_cb 446, which in turn calls   display_state_filter18:32
freemangordonhowever, noone sets inactivity to FALSE18:33
freemangordonalso, why is dbus call allowed to turn display on unconditionally?18:35
freemangordonhmm, it is the same on fremantle18:49
freemangordonbesides that it does not reset inactivity to false on OFF18:49
freemangordonok, I was able to repro: if you send display on request while it dims18:53
freemangordondbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_display_state_on18:53
uvosfreemangordon: ok ill fix it19:04
uvoscan you make a bug?19:04
uvoswhat is sending req_display_state_on btw19:04
uvosseams wierd that something would force mce to turn the display on on usb unplugging19:05
freemangordontrying to find who sends that19:06
uvosthat behavior should probubly be added to mce while reimplmenting the keep display on while charging thing19:06
uvosand removed where its now19:06
freemangordonthere is no such code in stock mce19:06
freemangordonI guess it is you that added it at some stage19:06
uvosno what code?19:06
freemangordonbut, that's not the point19:06
freemangordondisplay_state_filter19:07
freemangordonin inactivity19:07
uvosright yes i split the display module into several19:07
freemangordonstill, that's not important19:07
uvosno and i wasent asking that19:07
freemangordonI think there are no other issues, besides that there is some problem while it dims19:08
freemangordonalso, "stay lit while charging' works when started from ssh session19:08
freemangordonbut not when started as a service19:08
freemangordonat least this is waht I saw19:08
freemangordonbut I'll investigate later19:08
freemangordonafter I find who TF sends req_display_blanking_pause on unlock19:09
uvostklock prob19:09
uvosi dont see it19:09
uvos(and i dont run tklock)19:09
freemangordonwhy tklock shall send that to mce?19:09
uvosno idea19:09
freemangordonno way, afaik19:10
* freemangordon checks19:10
uvosim just checking whats different19:10
freemangordondo you know how to find pid from service id?19:10
uvosno19:10
sicelobuZz: re _avg, i think the kernel api says sysfs shall only contain what is reported by device/hardware ... not extrapolated data. so if cpcap has no concept of _avg, then it shouldn't exist in sysfs. at least that's how i understand it19:10
uvosthat is correct19:10
uvosaltho the cpcap modules allready violate that19:11
uvosin other places19:11
freemangordonmethod call time=1663607001.687722 sender=:1.32 -> destination=com.nokia.mce serial=173 path=/com/nokia/mce/request; interface=com.nokia.mce.request; member=req_display_blanking_pause19:11
freemangordonwho is :1.32?!?19:11
sicelobuZz: 14:53 * buZz waits for dpkg lock to release after connecting wifi -_- ... you *might* be able to disable it by telling ham to auto-check for new packages less regularly. https://wiki.maemo.org/Customizing_Maemo#Disabling_Auto_Updates_Check19:14
freemangordonugh19:15
freemangordonthis is hildon-desktop19:15
freemangordonWTF?19:15
uvosfreemangordon: line/file19:15
uvos?19:15
freemangordonsec19:16
sicelowhat are you chasing? display coming on?19:16
freemangordonBTW, FYI:19:16
freemangordondbus-send --system --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetConnectionUnixProcessID 'string::1.32'19:16
freemangordonthis is how we get PID from connection ID19:16
freemangordonhd_dbus_disable_display_blanking19:18
freemangordonsicelo: not only that19:19
freemangordonuvos:   hd_comp_mgr_check_do_not_disturb_flag()19:19
buZzsicelo: i think even the wattage is already extrapolated19:20
freemangordonsomeone sets  HD_ATOM_HILDON_DO_NOT_DISTURB19:20
buZztnx for maemo wiki link , this'll improve my live19:20
buZzwait, there's no disable? O_o19:21
buZzyeah ok 5 years should be fine, but -never- would be much nicer19:21
freemangordonok, have to cook dinner, ttyl19:22
uvosfreemangordon: hildon_gtk_window_set_do_not_disturb(GTK_WINDOW(vtklock->window), TRUE);19:22
uvosits tklock19:22
freemangordonwhy the hell it does this?19:23
uvosi have no idea19:23
freemangordonlemme check19:23
uvosbut this is also what breaks <30sec timeouts19:23
freemangordon< 60 I would say19:23
uvosbecasue req_display_blanking_pause is for at least 60 sec19:23
uvosright19:24
uvos6019:24
freemangordonok, but why it works on fremantle19:24
uvosit dosent19:24
uvosits broken on freemantle too19:24
uvostry 10s timeout19:24
freemangordonanyway, we find 2 issues19:24
freemangordonyes19:24
uvosand unlock via vtklock19:24
freemangordonit could be my REing19:24
freemangordonhave to check what stock code is doing19:24
uvosrught ill fix mce issue later19:25
uvosand buZz's mouse issue to19:25
freemangordongreat, thanks19:25
uvosthat one looks easy19:25
buZz<3 not my issue uvos , just confirmed and described it ;)19:25
freemangordonuvos: maybe there is issue in mce19:29
freemangordonI will check in fremantle mce how it decides to stop blank prevention19:30
dreamergenerating locales took a while so I went to do other things. now after the dist-upgrade I rebooted. now the wifi connection doesn't seem to work any more. cannot bring up the internet connection widget20:33
dreamers/widget/selector-thingy20:34
dreamerany changes in this in the last months?20:34
dreameractually, the keyboard also doesn't respond20:35
dreamerterminal closes after starting ..20:35
dreamerso. I guess I'll just have to reflash the damn thing ..20:35
Wizzupdreamer: sounds like a bad upgrade experience for sure20:49
dreamerWizzup: my role as "dumb user that upgrades once every couple months" pays off again ;)20:53
dreamer(in generally a pretty good metric for how stable an OS is for the general public, imo)20:54
* sicelo has burned image only once. everything else is just apt-get (dist-)upgrade20:55
freemangordonuvos: https://github.com/community-ssu/mce/blob/88a69e02c61e24aa272e1f63971e03424c051b09/modules/display.c#L136720:56
freemangordonthis is missing in the new module20:56
freemangordonyou shaved too much code20:59
freemangordonMCE_TRANSITION_SUBMODE is also nowhere to be found20:59
freemangordonwell, in tklock21:00
freemangordonhmm, my bad21:00
freemangordonscratch that21:01
freemangordonI think to extend   MCE_PREVENT_BLANK_REQ with an additional, optional, "enable" parameter21:19
freemangordonso h-d to be able to tell mce that it no longer needs blaanking prevention21:20
Wizzupdreamer: yeah we're still in alpha21:44
freemangordonuvos: what about this? https://pastebin.com/WWvLiqyj21:46
freemangordonh-d will require changes as well, but noit a biggie21:48
freemangordon*not21:48
freemangordonthat way setting DND on a window will enable blanking when the window is gone21:48
Wizzupsicelo: freemangordon: leste.maemo.org and phoenix.maemo.org should be back21:50
Wizzupit's on a different storage for now until I have more time to migrate it and also make the image smaller21:51
buZzboo, rockbox-as-a-SDL-application kinda requires gcc4.x for ARM :(21:52
freemangordonhttps://git.kernel.org/pub/scm/network/ofono/ofono.git/log/ :)21:57
Wizzupsaw the mails, nice21:58
freemangordonyeah21:58
freemangordonnice that they are not picky21:58
* sicelo impressed21:59
sicelothe commonly stated reason for migrating away from ofono to MM within mobile linux communities has been 'ofono development is slow and they do not accept contributions'22:01
dreamerWizzup: hmhm. will reflash when I have time :)22:01
uvosfreemangordon: the display module is nolonger involved in the blaning inhibit22:31
uvosi move that to its own module22:31
uvosfreemangordon: so your adding a new interface that allows you to remove the blaning pause?22:31
uvosok, by why dose tklock need to do this at all22:31
freemangordonyes22:31
uvosit gets its own submode in mce anyhow22:31
freemangordonit sets DND on tklock window22:31
uvosso mce could just do whatever beavior wise22:31
uvosno dnd needed22:31
uvosand infact it dose22:32
uvosi think the tklock module disables blanking anyhow while in vtklock22:32
freemangordonwell, it is not about tklock, but about hildon_gtk_window_set_do_not_disturb()22:32
uvossure, im just questioning why tklock needs to call this22:33
freemangordonevery application that calls this will break blanking period for 60 seconds22:33
freemangordonnot sure22:33
uvosyes i know22:33
uvosthe patch is fine22:33
freemangordonSo, my fix is in that regard22:33
freemangordonwe may remove hildon_gtk_window_set_do_not_disturb() from vtklock, but that's another story22:34
freemangordonok, so I'll push that to mce and will fix h-d to use the new interface22:34
freemangordonuvos; what will happen if some application requests MCE_DISPLAY_OFF while vtklock is active? maybe this is why they set DND22:36
freemangordonrealy hard to say what did they have in mind22:36
uvosmce should/could ignore it in tklock mode anyhow22:37
uvosdnd or no22:37
freemangordonyes, but does it ignore it now? maybe that pisece was/is missing so that's why they set DND22:37
uvosanyhow it was broken in fremantle so im not sure they had something sane in mind.22:37
freemangordon*piece22:37
freemangordoncould be22:37

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