Livio has quit [Ping timeout: 265 seconds]
elastic_dog has quit [Ping timeout: 248 seconds]
elastic_dog has joined #maemo-leste
Daanct12 has joined #maemo-leste
Daanct12 has quit [Remote host closed the connection]
Daanct12 has joined #maemo-leste
joerg is now known as DocScrutinizer
DocScrutinizer is now known as joerg
Daanct12 has quit [Remote host closed the connection]
joerg has quit [Ping timeout: 265 seconds]
joerg has joined #maemo-leste
macros_ has quit [Ping timeout: 264 seconds]
macros_ has joined #maemo-leste
Twig has joined #maemo-leste
mardy has joined #maemo-leste
rafael2k has joined #maemo-leste
rafael2k_ has joined #maemo-leste
rafael2k has quit [Ping timeout: 244 seconds]
xmn has quit [Quit: ZZZzzz…]
rafael2k_ is now known as rafael2k
uvos has joined #maemo-leste
ceene has joined #maemo-leste
dev has left #maemo-leste [Disconnected: Replaced by new connection]
dev has joined #maemo-leste
Pali has joined #maemo-leste
dev has left #maemo-leste [Disconnected: Replaced by new connection]
dev has joined #maemo-leste
pere has quit [Ping timeout: 244 seconds]
Pali has quit [Ping timeout: 250 seconds]
dev has left #maemo-leste [Disconnected: closed]
dev has joined #maemo-leste
pere has joined #maemo-leste
Livio has joined #maemo-leste
Livio has quit [Changing host]
Livio has joined #maemo-leste
dev has left #maemo-leste [Disconnected: Replaced by new connection]
dev has joined #maemo-leste
dev has left #maemo-leste [#maemo-leste]
dev has joined #maemo-leste
<freemangordon> tmlind: please, give me some hint where and what to look for, this drives me nuts every time I reboot/poweroff the device (d4): https://pastebin.com/aMwWGfzG
Livio has quit [Quit: leaving]
<uvos> this also bugs me to high heven, and if you try and debug it, it goes away ususaly
<uvos> (seams timeing sensitve + only happens if you disable debug output via uart)
<freemangordon> here it happens every time I reboot or poweroff
<uvos> right
<uvos> but if you enable more kernel debug options it goes away
<freemangordon> ah
<uvos> and if you dont suspend the console
<freemangordon> well, I guess printk() to the rescue
<uvos> (ie keep loging to uart it also gos away)
<freemangordon> sure it is PM enabled
<uvos> i think its directly related to kernel consoles usage of the uart device
<uvos> but idk really
<freemangordon> me neither
<freemangordon> I can try and put some printks around that function
<freemangordon> later on
<rafael2k> hi all
<rafael2k> I made a PR for the pine64 kernel, in order to address Wizzup issue with lost usbnet...
Livio has joined #maemo-leste
Livio has quit [Changing host]
Livio has joined #maemo-leste
pere has quit [Ping timeout: 244 seconds]
<Wizzup> rafael2k: thanks
<rafael2k> Wizzup: do you have a ETA to build this?
<rafael2k> I will bypass this and already make the PR for 5.15.68 soon
<Wizzup> did you update the pr, or is it the same from 2-3 days ago?
<rafael2k> I will start compiling 5.15.68 now
<Wizzup> ah ok
<Wizzup> 7 days ago even :)
<rafael2k> In a couple of days I should have 5.15.68 tested and ready
<Wizzup> ok, will merge momentarily, do I need to re-tag
<rafael2k> no
<rafael2k> same source
<rafael2k> I mean, dunno what you mean by re-tag, but it applies to the same kernel source as previous kernel
<Wizzup> building
<rafael2k> : )
<rafael2k> as it was a trivial change, I did not build myself
<rafael2k> so there is a change I did some mistake and build crashes applying the patches
<rafael2k> *chance
<rafael2k> for 5.15.68 I'm building and testing, as it is a kernel version bump... better make sure
<rafael2k> I plan also to roll out soon a new patchset for the cameras, but I prefer to do it after we have the new kernel tested, usbnet fixed, and may be the high iowait freemangordon is experiencing fixed too
<Wizzup> ok
ceene has quit [Ping timeout: 265 seconds]
alex1216 has joined #maemo-leste
pere has joined #maemo-leste
<rafael2k> Wizzup, compiling 5.15.68 here... I think the PR will fail, sorry - confirm to me it fails, I do another PR
<Wizzup> ok
<Wizzup> I will be afk for a few hours soon
Livio has quit [Ping timeout: 264 seconds]
<rafael2k> editing patches by hand never works, as next patches get "fuzz" and build fail... aaarrrgggg
<rafael2k> ok, thanks
<rafael2k> I will fix
<rafael2k> and do another PR
xmn has joined #maemo-leste
ceene has joined #maemo-leste
<sicelo> rafael2k: any special reason why it's 5.15 and not some other version?
<freemangordon> rafael2k: you can just do quilt refresh, and fuzz will be fixed
<freemangordon> uvos: I am confused: https://pastebin.com/7JhQryxD
<freemangordon> why display is off?
<freemangordon> exactly 20 seconds after I press power button while in charge mode
<freemangordon> I put traces in display_blank/display_dim from display.c
<freemangordon> the are not called
<freemangordon> is it possible that Xorg turns the screen off?
<rafael2k> PP kernel bump to 5.15.68 ^
<freemangordon> hmm, lemme reinstall mce, that can;t be tru
<freemangordon> *true
dev has left #maemo-leste [Disconnected: Replaced by new connection]
<rafael2k> sicelo: yes, cause 5.15 is LTS, and Mobian does a good job maintaining the PP patchset
dev has joined #maemo-leste
<rafael2k> freemangordon: I kind of know it... but my lazyness is way to big
<rafael2k> fixed by hand the fuzziness
<freemangordon> :D
<rafael2k> :P
<freemangordon> I see
dev has left #maemo-leste [#maemo-leste]
dev has joined #maemo-leste
<rafael2k> Wizzup: need to sync branch mobian-5.15 to HEAD
<rafael2k> branch mobian-5.15, or tag mobian/5.15.68+sunxi64-1
<rafael2k> I also mirrored it here, just in case: https://github.com/rafael2k/sunxi64-linux/tree/mobian-5.15
<freemangordon> uvos: who turns off the display while in charge mode?
ceene has quit [Remote host closed the connection]
<freemangordon> yep, ok, it seems this is dpms that behaves
alex1216 has quit [Quit: WeeChat 2.3]
rafael2k has quit [Ping timeout: 264 seconds]
<uvos> freemangordon: chargemode itself
<uvos> but also nothing
<uvos> beacuse sdls drm backend dosent blank (i think its just not implemented for this backend but i dident check, may also be bug)
<uvos> anyhow i intend to just implement charging sdl to drm blank itself
<uvos> as a stopgap it just turns off the backlight atm, so that the display is still on "behind" that is a known problem
<uvos> thats me expieramenting with the interface
<uvos> i just have to copy that code over to charging_sdl and integrate it
uvos has quit [Remote host closed the connection]
uvos has joined #maemo-leste
uvos has quit [Remote host closed the connection]
uvos has joined #maemo-leste
<freemangordon> uvos: right. ok, I have to cook some dinner first and then will put some traces in x11 module
<freemangordon> maybe it shall turn the display on on startup
<uvos> im pretty sure mce turns the display on when it runs
<uvos> very sure, i remember implementing it
<freemangordon> ok, will see
Livio has joined #maemo-leste
Livio has quit [Changing host]
Livio has joined #maemo-leste
Pali has joined #maemo-leste
Bratch is now known as l_bratch
<freemangordon> uvos: right, but it seems x11 module is loaded too late
<freemangordon> Sep 22 18:02:37 localhost mce[2726]: display: Sending display status: on
<freemangordon> Sep 22 18:02:37 localhost mce[2726]: Loading module: x11-ctrl from /usr/lib/mce/modules
<freemangordon> lemme load x11 before display to see if it will fix it
dev has left #maemo-leste [Disconnected: Replaced by new connection]
<freemangordon> nope, does not make any difference
dev has joined #maemo-leste
<uvos> there is no way xorg starts with dpms off
<freemangordon> I wonder where this 20 seconds timeout comes from
Livio has quit [Ping timeout: 265 seconds]
dev has left #maemo-leste [Disconnected: closed]
Livio has joined #maemo-leste
Livio has joined #maemo-leste
Livio has quit [Changing host]
dev has joined #maemo-leste
<uvos> freemangordon: btw i havent had time to look at it really
<uvos> but another thing i thought of wrt mce is:
<uvos> so mce seams pretty wedged/busy by dbus requests
<uvos> all of the timers in mce are inherently racy
<uvos> if they expire before mce gets around to canceling them, simply because its to busy before they expire
<uvos> they will take effect even when they where supposed to be canceled a long time ago
<uvos> this is a big general problem in mce because it uses a lot of timers
Livio has quit [Ping timeout: 265 seconds]
dev has left #maemo-leste [Disconnected: Replaced by new connection]
dev has joined #maemo-leste
<norayr> my droid4 is not good... it shuts down very very often.
<norayr> and it started since i started using the lapdock. i wonder what could i damage.
<norayr> that's not software, it also shuts down while loading android.
<norayr> and i blacklisted back the modules.
dev has left #maemo-leste [Disconnected: closed]
dev has joined #maemo-leste
<norayr> and i don't have a feeling that the contact of the battery is bad.
<norayr> i have a feeling it is good. :/
<freemangordon> uvos: we can overcome this by using g_timeout_add_full() and setting high enough priority
<freemangordon> but I dont; thing this is our issue
<uvos> freemangordon: no that would not help
<uvos> the problem is that external triggers cancle timers
<uvos> these events get queued, when the system is busy they dont get executed untill the timer expires and its event gets queued
<uvos> now the timer expirey event is in the que, and the timer itself being canceled by the event ahead of it is immaterial
<uvos> it will execute either way
<uvos> this has caused _alot_ off issues in the past i have had to fix
<uvos> norayr: :(
<uvos> norayr: is there a reson in the logs for the power off maybe?
joerg has quit [Quit: this shouldn't have happened... ever]
joerg has joined #maemo-leste
akossh has joined #maemo-leste
<norayr> hmmm... i was seeing some strang things in dmesg
<norayr> but it is like hardware thing, it shuts down when it is in the hand.
<norayr> but i think it is not shutting down when it is on the table. no it is shutting down.
<norayr> yes it is shutting down on the table.
<norayr> i'll change the battery and will see :/
<norayr> where do you buy batteries?
Livio has joined #maemo-leste
Livio has joined #maemo-leste
Livio has quit [Changing host]
mardy has quit [Quit: WeeChat 3.5]
Livio has quit [Ping timeout: 264 seconds]
<uvos> norayr: where do you live?
<uvos> i can just send you one to test
<uvos> i have plenty old old ones that work but are a bit weak
<uvos> so giveing one away that i know works fine is no issue
<freemangordon> uvos: why queues are not being executed?
<freemangordon> isn't it under our control to prioritize them?
<uvos> its just the ususal g_main_loop, mce dosent prioritize anything so it just processes events in the order it gets them
<uvos> mce is quite slow, because of all the sync io
<freemangordon> but datapipes are not events
<uvos> so it gets overloaded fairly easily
<uvos> i know
<freemangordon> and mainloop events can bi given priorities
<uvos> but everything external goes though events
<freemangordon> that's what I am saying
<uvos> sure but due to the datapipes
<uvos> its pretty spagetty how someting ends up somehwere when processing an event
<freemangordon> ah, yeah
<freemangordon> but I think we have deterministic behaviour otherwise
<freemangordon> albeit complicated
<uvos> well no
<freemangordon> ah, so you mean that we have timer expiry event in the queue and we trying to cancel it is a noop?
<uvos> lets say we get 20 dbus events that ask for the display state (you know totaly inventing something here that dosent occure in the logs ever)
<freemangordon> ok
<uvos> then mce ends up with a in a huge mess of events, that then trigger a huge mess of dataippes
<uvos> this stalls mce for several s maybe
<freemangordon> really?
<uvos> i dont know in this specific case
<freemangordon> hmm, but whay so low performance?
<uvos> but yes it has in other cases
<uvos> it waits _alot_ for other stuff though sync io
<freemangordon> hmm...
<uvos> its also pretty slow for idk why reasons
<uvos> like its to slow to process the d4 ts in real time
<uvos> nokia made it throw away all touch screen events for 1 s after it gets one
<uvos> thats extramly nessecary
<uvos> i removed that once
<uvos> it gets wedged for seconds after a swipe on d5
<uvos> *4
<uvos> just processing input events
<freemangordon> I see
<freemangordon> ok, will have a look at that, this sounds really strange
<freemangordon> shouldn;t be that slow
<freemangordon> if it is, then we have some design issue
<freemangordon> which we shall fix by changing the design if needed
<uvos> anyhow, if this is the issue idk
<uvos> its just been the issue in the past
<freemangordon> but, I don;t think this is the reason for blanking startup issue
Twiggy has joined #maemo-leste
<freemangordon> have some other things to do atm, will put more traces later on
<freemangordon> I plan to start 1s timer that reads brightness
<freemangordon> to see after what event in log it gets 0
Twig has quit [Ping timeout: 268 seconds]
Twiggy has quit [Ping timeout: 264 seconds]
xmn has quit [Quit: ZZZzzz…]
norayr has left #maemo-leste [Error from remote client]
<freemangordon> uvos: it is display_unblank() that blanks it :)
<freemangordon> first time it is called with cached_brightness=7 and set_brightness=0
<freemangordon> and that in turn dims the display
<freemangordon> ugh, no
<freemangordon> it is not that
Livio has joined #maemo-leste
Livio has joined #maemo-leste
Livio has quit [Changing host]
<uvos> yeah i know
<uvos> the value is a percentage
<freemangordon> that's calculated as 0 when new_brightness is 5
<uvos> the valiue gets filtered to a real value later
<uvos> no
<uvos> so the way this works is that it should be a percentage here
<freemangordon> set_brightness is set to 0, so display_unblank() sets brightness to 0
<uvos> and theres a table
<uvos> that converts it later
<freemangordon> I put traces, lemme show it to you
<uvos> in the same pipe
<freemangordon> later on it calls update_brightness_fade(0)
<freemangordon> see https://pastebin.com/VbQHcVnx
<freemangordon> search for display_brightness_trigger 5
<uvos> so
<uvos> what are you printing there?
<freemangordon> where?
<uvos> display_brightness_trigger 5
<uvos> the 5
<freemangordon> 5 is data
<freemangordon> new_brightness
<freemangordon> and few lines below I print re-calculated new_brightness
<freemangordon> lemme pastebin the code
<uvos> so something is setting it in pannel units
<uvos> instead of percentage
<freemangordon> agree
<uvos> this guy is reponsable for filtering the percentage to pannel units, ususally
<freemangordon> maybe it is not loaded
<uvos> could be yeah
<uvos> it might be loaded to late
<freemangordon> it shoudl be clear in the logs
<freemangordon> Sep 22 23:39:00 localhost mce[2731]: Loading module: filter-brightness-als-iio from /usr/lib/mce/modules
<freemangordon> when it is already too late
<uvos> just shove it earlier then
<freemangordon> lemme put display at the end :)
<uvos> and see if it goes away
<freemangordon> mhm
<uvos> i would avoid moving display
<freemangordon> I already did, because it was loaded before x11, so it was never setting dpms on
norayr has joined #maemo-leste
<uvos> that should not matter
<uvos> xorg iself sets dpms on on boot
<uvos> moving display causes some artifacts wrt tklock
<freemangordon> yes, but you have code that is never going to be executed
<freemangordon> so, it should be before tklock?
<uvos> at least yeah
<uvos> there are other interactions too
<freemangordon> ok, will put it like that
<freemangordon> hmm
<freemangordon> ok
<uvos> also moving the oder in general is a bad idea xD
<uvos> there be drangons there
<freemangordon> what about inactivity?
<uvos> what about it?
<freemangordon> it should be beore display too, right>
<freemangordon> ?
<freemangordon> and inhinit as well
<freemangordon> *inhibit
<uvos> when inhibit comes is pretty irrelivant
<uvos> inactivitiy should stay in the same relation
<uvos> about the code in x11
<uvos> its only about setting dpms on if mce crashes
<uvos> or is restarted while x11 is running
<uvos> on boot mce starts before x11 anyhow
<freemangordon> I agree, but it still will not be executed
<uvos> so it wont do anything
<uvos> it will print extra warning even
<uvos> ok
<uvos> sure
<freemangordon> I already moved and it started to behave correctly
<freemangordon> like, if you restart mce screen gets unlocked
<freemangordon> and unblanked
<uvos> pretty sure that worked before
<uvos> but maybe it broke at some point..
Livio has quit [Ping timeout: 246 seconds]
<freemangordon> so I think display shall be the last of x11, startup, als, inactivity, inhibit
<freemangordon> otherwise we risk those modules to start too late and to miss event
<uvos> sure
<freemangordon> ok, will reorder
<uvos> but chainging the order at all risks unforseen consequences
<uvos> so test very thoughly
<freemangordon> well, that is what -devel is for :)
<freemangordon> sure
<uvos> also note that 10-maemo.ini or whatever overrides mce.ini
<uvos> modules wise
<freemangordon> this is what I am changing
<uvos> ok
<uvos> also change mce.ini too ofc
<freemangordon> hmm, ok
<uvos> mce installs 10-maemo.ini
<freemangordon> won't be able to test
<uvos> only if systemui is available
<freemangordon> yeaaah, that's way better :)
<freemangordon> uvos: yes, this fixes it
<uvos> ok
<norayr> uvos, the battery? i changed the battery and put it to charge, meanwhile while charging it rebooted. without even touching it.
<norayr> armenia, but i get everything via mail forwarders in usa, britain, germany.
<norayr> i'll try to use it after it charges a little bit.
<norayr> i blacklisted everyhhing back so i don't understand what is happening? i also don't remember dropping droid.
<norayr> i only remember it started as i started ho put it in to the lapdock. but back then i thought it is because i whitelisted drivers.
<uvos> hmm wierd
<norayr> i'll take a look at the logs, and i have dmesg with some strange, maybe irrelevant errocs.
<uvos> do you have ramoops?
<norayr> no didn't notice it in dmesg. i was afraid that ds ram but it happens just when droid tries to boot even, at the stage of kexecboot screen
<norayr> or when android boots.
<uvos> no i mean ramoops is a storage where linux writes dmesg too on crash
<norayr> i thought it is an error in dmesg, related to ram
<freemangordon> uvos: do you want PR or shall I push to master directly?
<uvos> freemangordon: push
<norayr> where is that storage?
<freemangordon> ok
<uvos> but note that i added a fix just now
<freemangordon> yep, pulled
<uvos> norayr: /var/log/pstore/
* norayr checking
<freemangordon> uvos: pushed
<freemangordon> shall I make a release?
<uvos> if you like, but i hope to fix the other issue tomorrow
<uvos> but taging 2 releases isent a big deal either
<freemangordon> ok, no hurry, I have the fix locally
<norayr> i see these things in ramoops:(i also saw it in dmesg)
<norayr> omap-mcbsp 40124000.mcbsp: CLKS: could not clk_get() prcm_fck
<norayr> i have those right now too:
<norayr> [Fri Sep 23 01:22:32 2022] omap-mcbsp 40124000.mcbsp: CLKS: could not clk_get() prcm_fck
<norayr> not sure it is relevant.
<uvos> thats normal
<norayr> last things in the ramoops are
<norayr> printk: console [ttyS2] disabled
<norayr> sysrq: Changing Loglevel
<norayr> sysrq: Loglevel set to 0
<uvos> right you have to stop it from disabeling logging
<uvos> and retest
<norayr> when i was unscrewing the battery, the contact was okay.
<norayr> so i don't understand.
<norayr> but now it seems it would already crash several times in my hands.
<norayr> i ran pidgin, i played nebulous.
<uvos> the contacts being at fault is fairly unlikey
<norayr> so i guess it works now.
<uvos> if it crashes while undistrubed
<norayr> but i need to learn this ramoops
<norayr> and also maybe i will be able to use it on droid3
<uvos> dosent work on d4
<uvos> er d3
<norayr> oh
<uvos> the ramoops is mapped to a region thats beyond the d3s memory
<norayr> eh.
<uvos> easy fix realy, but no one is working on the d3 atm
<norayr> it would halt for 15 times already, my droid, and it didn't yet.
<norayr> i think maybe it's not contacts, it's the battery.
<norayr> but can battery be in the state where it drops the voltage suddenly even when seemingly well charged?
<norayr> i don't know.
<uvos> sure
<norayr> ok looks like it works. i'll update on what is going on.
<uvos> its internal resistance can be to high
<uvos> d4 reacts by crashing to that
<uvos> so that would track
<norayr> the battery was this 'x-longer', made in china, 1730 mah/6.4wh, and i put the same thing inside now.
<norayr> volts 3.7 vdc it says
<norayr> on the battery
<norayr> 'cameron sino' logo.
<norayr> could it be that lapdock affected the battery in some bad way?
<uvos> NO
<norayr> it doesn't crash now.
<norayr> such a relive.
<norayr> i just enjoy using it.
<sicelo> welcome to droid 4 :-p
* uvos cries in having broken 3 d4s
<sicelo> broken them how?
akossh has quit [Quit: Leaving.]
<uvos> 1. overvoltage, oops 2. display cable died from fatigue (this was my d4 from 2012 that i used as a main android device for 8 years), 3. display cable broke again (sand ingression this time)
<norayr> eh.
<uvos> mostly they are very sturdy i seams
<uvos> *it
<uvos> accidents aside
<norayr> i need to buy good batteries, but no idea how.
<uvos> i dont think you can buy any
<uvos> you can only make them
<uvos> ie adapt other cells
<norayr> omg
<norayr> Capacity of this battery is also 37% but i dont thik i ever used it.
<norayr> Btw writing from pidgin and maemo
<norayr> Charge is 63%, time to empty 2.4h
uvos has quit [Ping timeout: 252 seconds]
Pali has quit [Ping timeout: 264 seconds]