Oksanaa has quit [Read error: Connection reset by peer]
Oksanaa has joined #maemo-leste
joerg has quit [Read error: Connection reset by peer]
joerg has joined #maemo-leste
Pali has quit [Ping timeout: 250 seconds]
System_Error has joined #maemo-leste
System_Error has quit [Ping timeout: 276 seconds]
rafael2k has quit [Ping timeout: 240 seconds]
joerg has quit [Ping timeout: 256 seconds]
macros_ has joined #maemo-leste
macros__ has quit [Ping timeout: 240 seconds]
joerg has joined #maemo-leste
mardy has joined #maemo-leste
<freemangordon> uvos: Care to share how you made that work and eventually do a PR?
<freemangordon> because in leste d4 images (at least) there is no sound in FF
pere has quit [Ping timeout: 268 seconds]
Twig has joined #maemo-leste
akossh has joined #maemo-leste
pere has joined #maemo-leste
Pali has joined #maemo-leste
Oksanaa has quit [Ping timeout: 256 seconds]
rafael2k has joined #maemo-leste
avoidr has quit [Ping timeout: 240 seconds]
avoidr has joined #maemo-leste
avoidr has quit [Ping timeout: 240 seconds]
avoidr has joined #maemo-leste
uvos has joined #maemo-leste
<uvos> freemangordon: i dident do anything, this has allways worked for me. it also works on a d4 i qute recently installed and upgraded to devel (last weeks image i think)
<uvos> so its a very recent problem or confined to stable
<Wizzup> freemangordon: ok I think I hit the display not turning on problem
<Wizzup> what did you want me to do again?
<Wizzup> wait it turned on now...
<Wizzup> tmlind: uvos: so I'm having to offline/online my modem a lot to get my pending messages flushes out, weird
<uvos> Wizzup: i havent used the modem in a while
<uvos> Wizzup: so maybe this is a new issue
<uvos> or i just dident notice, what are the symptoms?
<uvos> are they not sent or sent more than once?
<Wizzup> they are not sent and just in pending messages
<uvos> hmm
<Wizzup> I sent like a bunch with telepathy-ring and they weren't delivered for a day or two
<uvos> that worked for sure realiably ~1 month ago when i was useing sms often
<Wizzup> ok
<uvos> i think i saw it double send a couple of times
<uvos> or maybe sphone was buggy dunno
<Wizzup> I mean if ofono misses a confirmation of sending (could be some kicks again) then that is possible
<uvos> might be related to wether the carrier dose dlr
xmn has quit [Ping timeout: 250 seconds]
<Wizzup> rigt
<rafael2k> I did not see any sms problems
Daanct12 has joined #maemo-leste
<Wizzup> rafael2k: pinephone is different from d4 :)
Danct12 has quit [Ping timeout: 240 seconds]
pere has quit [Ping timeout: 256 seconds]
Daaanct12 has joined #maemo-leste
Daanct12 has quit [Ping timeout: 256 seconds]
<uvos> freemangordon: so the mce power key issue is fixed, as far as possible
<uvos> there are actually lots of issues, all of witch can be repoduced on fremantle
<uvos> you just have to be a bit quicker, as mentioned
<uvos> anyhow mce now uses kernel event times intstead of its own timers
<uvos> this fixes single presses being reigsterd as long, doubles as singles etc due to mce stalling
Daaanct12 is now known as Danct12
<uvos> it also checks if those times straddle a mode change to avoid applying the event to the wrong mode because it changed in between it happening and the mode changing
<uvos> however not all problems are fixable and the mce/systemui architecture of global state loosly synced between deamons is fundamentally flawed
<freemangordon> uvos: great, thanks, will test as soon as I can
<freemangordon> yeah, I know
<uvos> single presses can still be registerd wrongly as long in extream circumstances
<freemangordon> mhm
<uvos> and mce will discard events now that straddle a mode change
<uvos> so because it cant apply them correctly
<uvos> this causes events to be missed sometimes
<uvos> ie opening the power menu right after exiting tklock
<uvos> may fail
<uvos> theres nothing that can be done about this
<freemangordon> that's not really I big issue
<freemangordon> we can;t (or rather should not) queue events, IIUC
<freemangordon> lemme upgrade and test
<uvos> freemangordon: still building
<freemangordon> ok
<uvos> just finished
<uvos> for amd64
<uvos> so wait a bit
<freemangordon> yeah
<freemangordon> hmm, neither hildon-status-menu nor hildon-home register new applets :(
<Wizzup> freemangordon: if you pkill it works I guess?
<freemangordon> maybe this has something to do with multi-arch
<freemangordon> yeah, but it should not be needed
<freemangordon> lemme check what's goign on
rafael2k has quit [Ping timeout: 256 seconds]
<Wizzup> freemangordon: so I think I see X being stuck in drm ioctls again
<Wizzup> what did you want me to check?
<freemangordon> if all the fences are signalled
<Wizzup> so /sys/kernel/debug/dma_buf
<freemangordon> yes
<Wizzup> hmm now it works again, but it took forever to unlock
<Wizzup> and touchscreen still doesn't react
<uvos> Wizzup: i think i see this in charge-mode
<uvos> Wizzup: btw
<uvos> Wizzup: if you run charge-mode for a long time
<Wizzup> freemangordon: btw you mean /sys/kernel/debug/dma_buf/bufinfo right
<uvos> Wizzup: since switching to drm it somtiems hangs
<freemangordon> Wizzup: yes
<freemangordon> maybe pastebin it
<freemangordon> but not it works again, it makes no sense
<freemangordon> *now
<freemangordon> still, lets see
<Wizzup> freemangordon: https://wizzup.org/bufinfo.txt
_inky has quit [Ping timeout: 250 seconds]
<Wizzup> 1004 fds open btw
<Wizzup> 965 of them are dmabuf
<uvos> now that dose seam excessive
<freemangordon> mhm
pere has joined #maemo-leste
<freemangordon> maybe it leaks
<freemangordon> I will have a look at this
<freemangordon> lemme first see why plugins are not being registered (should be trivial)
<Wizzup> maybe the huge amount of bufs causes the slowness/problems
<freemangordon> oh, I may look int https://github.com/maemo-leste/hildon-status-menu/pull/3while at it :)
<freemangordon> Wizzup: sure
<Wizzup> sounds good
<Wizzup> uptime is ~2 days
<Wizzup> it looks like one or two fd's are leaked every time I unlock the device maybe
<Wizzup> will try to find some pattern
<freemangordon> hmm:
<freemangordon> /usr/lib/aarch64-linux-gnu/hildon-desktop/personal-ip-address.so
<uvos> id like to also recommend making tklock the singlepress action on devices with just a power button and no lock slider. The doublepress is really janky beacuse it cuases the singlepress action to be executed first and then also the double press action so the power menu shows for a while and then the device turns off.
<uvos> this is impossible to fix
<uvos> as the timout is really long (1s)
<uvos> so singlepress latecy is way to long if you wait and see if its a double press or not
<Wizzup> we can change this in leste-config right?
<uvos> sure but then you double press is hard
<uvos> wich is also bad for a action that is really the most common thing you do with the button
<uvos> (ie lock the device)
<freemangordon> somehot this works fine on fremantle
<uvos> nope
<uvos> you can see i happen there too
<uvos> *it
<freemangordon> yes, I am using that hundreds of times every day
inky has joined #maemo-leste
huckg has joined #maemo-leste
<uvos> i can make it happen no problem
<Wizzup> on boot:
<Wizzup> 184
<Wizzup> $ sudo ls -lsh /proc/3385/fd | grep dmabuf | wc -l
<freemangordon> my only phone is n900 with fremantle
<Wizzup> on fremantle it also shows power menu first
<Wizzup> and then locks
<freemangordon> not here
<uvos> if you doubless slowly
<Wizzup> weird, does for me, maybe you're faster :)
<uvos> otherwise n900 is just to slow
<uvos> to show the menu
<uvos> but it dose the action
<freemangordon> yeah, if you double-press slowly
<uvos> well thats just because n900 is to slow to show the menu quickly ;)
<freemangordon> but you double=press normally, there is no power menu
<Wizzup> no the menu shows for me almost always on fremantle
<Wizzup> (I am slow I guess)
<uvos> mce still raises the menu immidatly
<uvos> if it pops up before the device locks is just a race
<Wizzup> at any rate we can decide to change that in leste-config for some devices I think
<Wizzup> freemangordon: so on the d4 I cannot lock it with double press without the menu showing at all
_inky has joined #maemo-leste
<freemangordon> I don;t think we shall do that, we'd rather fix mce to not show power menu instantly
<Wizzup> which I think is what he is saying
<freemangordon> sure
<uvos> freemangordon: its not possible
<uvos> freemangordon: without lots of latceny
<Wizzup> in any case I think we'll discuss somewhere else if single press should be lock or no
<Wizzup> or not*
<Wizzup> I think I would prefer single press to lock, and long press to show power menu
<freemangordon> no, please
<uvos> i also prefer this (on devices without lock slider)
<freemangordon> lets keep defaults as in fremantle and make cpl applet to set this
inky_ has quit [Ping timeout: 256 seconds]
<Wizzup> we can also just make it a wiki entry, it's trivial to change anyway
<freemangordon> well, having UI to change is user friendly, no? :)
<Wizzup> yeah, I would like to port over this cssu thing
<uvos> pls no
<Wizzup> do you know what I mean? the one that allowed to change a whole bunch
<uvos> lets not have random stuff change mce.ini
<Wizzup> uvos: I am not sure if you know what I refer to :)
<uvos> if you want to change this in ui you have to port the vars to rtconf
<freemangordon> Wizzup: I think we'd rather reimplement it, IIRC CSSU one was buggy as hell
<uvos> Wizzup: well the only way to change it in mce atm is to change its config file
<freemangordon> uvos: so?
<uvos> Wizzup: we _dont_ want random stuff changing mces config file
humpelstilzchen[ has joined #maemo-leste
<uvos> Wizzup: it has rtconf for that
<Wizzup> sure, but a ui can use rtconf :)
<uvos> right but porting it i mean
<uvos> with the pls no
<uvos> since it dosent
<Wizzup> uvos: is there also PowerKeyMediumAction ?
<uvos> no
<uvos> the medium time is used only in actdead
<Wizzup> too bad
<Wizzup> ok
<freemangordon> yeah. And iirc it was buggy :)
<freemangordon> se we'd better reimplement
<freemangordon> but nit now ;)
<freemangordon> *not
<freemangordon> anyway, I am on applets not showing now
<Wizzup> mhm
<Wizzup> so you can't swap short and long without the long being useless if you set long to menu
_inky has quit [Read error: Connection reset by peer]
<Wizzup> err
<Wizzup> sorry
<Wizzup> not long, but short and double
<uvos> ?
<Wizzup> [PowerKey]
<Wizzup> PowerKeyDoubleAction=menu
<Wizzup> PowerKeyShortAction=tklock
<Wizzup> I did this as a test
<Wizzup> and I cannot get the menu to show
<uvos> right
<uvos> because short triggers
<Wizzup> right
<uvos> and then the deivice is locked
<uvos> i use:
<uvos> PowerKeyShortAction=tklock
<uvos> PowerKeyLongAction=menu
<uvos> PowerKeyDoubleAction=poweroff
<uvos> and PowerKeyDoubleDelay=150
<Wizzup> right
<Wizzup> I won't do that now as a test because that will mess me up badly wrt my muscle memory
<uvos> and PowerKeyLongDelay=2000
<sicelo> freemangordon: what about personal-ip-address widget?
<freemangordon> nothing about it in particular
<freemangordon> it is that h-h ignores it after installation
<freemangordon> there is a bug in libhildon1
<freemangordon> oops
<freemangordon> in libhildondesktop-1
<sicelo> https://bugs.maemo.org/show_bug.cgi?id=9370 ... i think it all comes from there
<freemangordon> mhm
<freemangordon> I am on it
<sicelo> great :-)
<freemangordon> will let you know when I fix that to test and eventually close the issue, ok?
<freemangordon> *issues
<sicelo> cool, thanks. indeed the bmo bug suggested libhildondesktop too
_inky has joined #maemo-leste
xmn has joined #maemo-leste
uvos has quit [Ping timeout: 240 seconds]
inky has quit [Remote host closed the connection]
inky_ has joined #maemo-leste
<humpelstilzchen[> Hi, anyone here has the hardware-keyboard working on pinephone?
<humpelstilzchen[> Anything special to conside?
<humpelstilzchen[> s/conside/consider/
<Wizzup> we have a kernel where it is supposed to work but we didn't push it to stable yet
<humpelstilzchen[> ok, do you have the kernel git/branch for me please?
<Wizzup> you can add the beowulf-devel repo and apt dist-upgrade
<Wizzup> find the line with 'deb https://maedevu.maemo.org/leste beowulf ...' in /etc/apt/sources.list
<Wizzup> and copy it and change beowulf to beowulf-devel
<Wizzup> (so you have both)
<humpelstilzchen[> aah, so its already build, thx
inky_ has quit [Remote host closed the connection]
<Wizzup> humpelstilzchen[: please let me know if it works for you
<Wizzup> you can be the first to confirm that it works :)
uvos has joined #maemo-leste
<humpelstilzchen[> Wizzup: most keys seem to work, have not tested all the special fn-something combos yet
<freemangordon> sicelo: hmm, I wonder if that has ever worked
<freemangordon> (first h-h applet that is)
<Wizzup> humpelstilzchen[: we will need to make a xkb map for it, if it doesn't exist already
<Wizzup> humpelstilzchen[: including maps for our fn key and others
<Wizzup> humpelstilzchen[: but that means the kernel side works for you, that's great!
<freemangordon> oh, I see
<Wizzup> humpelstilzchen[: btw you should also get better 2d/3d on pp with that upgrade, we're working on moving that to stable to
<Wizzup> s/to/too/
<humpelstilzchen[> only updated the kernel so far, I still get artifacts, maybe I should try the new mesa packages then
<Wizzup> try 'apt dist-upgrade'
<Wizzup> there will be -some- artifacts still, but should be less
<humpelstilzchen[> hmm, dist-upgrade wants to remove hildon-desktop-rotation-support, something seems to collide
<Wizzup> humpelstilzchen[: that is fine if it wants to remove that
<Wizzup> freemangordon: you tested this one right? https://maedevu.maemo.org/images-devel/pinephone/20220119/ (maybe compare md5sum?)
<freemangordon> lemme check
<humpelstilzchen[> ok
<Wizzup> freemangordon: I was going to poke enunes :)
<freemangordon> Wizzup: 6f5027e1c8483342483db4a206ade1d3 maemo-leste-1.0-arm64-pinephone-20220119.img.xz
<Wizzup> humpelstilzchen[: yeah the support will still be there
<Wizzup> freemangordon: $ md5sum maemo-leste-1.0-arm64-pinephone-20220119.img.xz
<Wizzup> 6f5027e1c8483342483db4a206ade1d3 maemo-leste-1.0-arm64-pinephone-20220119.img.xz
<Wizzup> freemangordon: so looks like I can poke enunes
<freemangordon> mhm
<humpelstilzchen[> on upgrade: Call to flock failed: Resource temporarily unavailable - invoke-rc.d: initscript hildon-desktop, action "restart" failed
<humpelstilzchen[> gonne uncomment that part in postinst and do a manual reboot
<Wizzup> humpelstilzchen[: full disk?
<Wizzup> humpelstilzchen[: run /etc/expandcard.sh
<Wizzup> humpelstilzchen[: probably don't need to uncomment it in postinst, better to finish the upgrade first
<humpelstilzchen[> not full according to df
<Wizzup> ok
<Wizzup> did the upgrade complete otherwise?
<Wizzup> (also yeah hildon-desktop restart should be a no-op fwiw)
<humpelstilzchen[> now its completed
<Wizzup> (reboot is a good idea fwiw)
<tmlind> hmm the images directories for the 16th are empty?
<Wizzup> let me check, maybe somethin failed
<Wizzup> let me just rerun em
<Wizzup> tmlind: yeah
<Wizzup> rsync: write failed on "/home/amprolla/images/droid4/20220116/maemo-leste-1.0-armhf-droid4-20220116.img.xz": No space left on device (28)
<Wizzup> we really should just host it somewhere else
<tmlind> ok
<Wizzup> in 1-2 hours there will be a new one
<Wizzup> but we didn't change anything in stable so you can just take the previous one and upgrade to -devel
<humpelstilzchen[> cool now I have a welcome screen with ssh credentials - that might help a lot for future users :)
<Wizzup> humpelstilzchen[: yeah, it is :)
<Wizzup> uvos: ^^ :)
<tmlind> Wizzup: ok thanks i'll try again a bit later then
<freemangordon> sicelo: actually, you should not have "add widget" button enabled, as when you install new h-h applet, it should be placed automatically on the desktop ;)
<freemangordon> and this is what is broken :)
<freemangordon> well, *was* broken
<freemangordon> after the fix there remains a minor issue in h-h that even after you uninstall an applet, it is still selectable in the menu
<freemangordon> but I guess we can live with that
<lel> freemangordon closed an issue: https://github.com/maemo-leste/bugtracker/issues/459 (hildon-home doesn't show the "Add widget" button upon installation of the first widget)
<Wizzup> humpelstilzchen[: btw if you're up for helping with the keyboard layout, lmk, I ordered a keyboard but it will take a few weeks before I get it
<humpelstilzchen[> Wizzup: thanks for your help. I will probably come back for you. But first I'm going to get some "feeling" for the keyboard and fine some replacement programs for the ones I'm missing from the n900
<Wizzup> ok
<Wizzup> which programs are you missing?
<humpelstilzchen[> I don't have the full list yet. There was easylist, which was a todo/shopping list. Maybe the sources are still in the internet and can be compiled. A weather and calendar widget would also be nice, does that currently exist?
<humpelstilzchen[> And is there a recommended browser?
<uvos> qtwebbrowser works well ootb, or firefox works very well but needs hwkbd and some envvars about:config entrys
<uvos> calendar widget exits and works fine bte
<uvos> no weather
_inky has quit [Ping timeout: 256 seconds]
inky has joined #maemo-leste
_inky has joined #maemo-leste
huckg has quit [Ping timeout: 256 seconds]
<uvos> freemangordon: so did the mce race fix solve your issues?
<freemangordon> uvos: at least on PP it looks to behave fine
<freemangordon> have guests so didn't have time to play on d4
<freemangordon> will report as soon as I test it
<freemangordon> uvos: RE firefox - do we have those settings documented somewhere?
mepy has quit [Remote host closed the connection]
mepy has joined #maemo-leste
<freemangordon> uvos: why it takes so long for mce to lock screen on d4? on PP it happens in an instant.
<lel> freemangordon closed an issue: https://github.com/maemo-leste/bugtracker/issues/368 (hildon-desktop - needs a restart to pickup new desktop widgets)
Oksanaa has joined #maemo-leste
<sicelo> freemangordon: ty @fix. i haven't tested it yet, but nice finding. i'm not sure i fully like widget auto-placement in desktop, but i definitely prefer it over having to kill hd/hh or reboot :-)
<freemangordon> sicelo: this it how it was designed to be. and honestly, it kind of makes sense
<freemangordon> imagine if you are not familiar with maemo
<freemangordon> you would expect to see what you have just installed somewhere
<sicelo> right, :-)
<uvos> freemangordon: so quirks-mapphone is pretty slow (it waits for the modem and kernel several times) also d4 has a lot of input devices, it waits for x for eatch one
<freemangordon> uvos: can;t we reorder?
<freemangordon> as it takes nearly 2 seconds
<uvos> no
<uvos> reording is an ordeal if you want tklock to work
<uvos> otherwise yeah my setup is reorderd for performance
<freemangordon> we cannot turn display off first? why is that?
<uvos> and its very fast
<uvos> because its determined by the module loading order
<freemangordon> uvos: sorry, I don;t get that
<uvos> the module loading order is however also subject to lots of subtle bugs
<uvos> in the old modules
<uvos> so mce uses data pipes
<freemangordon> so, "turn off" callbacks are called in module load order?
<uvos> yes
<uvos> so every module registers its callbacks
<uvos> and they are called in the order they are registerd
<uvos> most callbacks are regsiterd at load time ofc
<uvos> changing the order breaks the legacy/fremantle modules
<uvos> because they use global state
<uvos> so the callbacks that modify global state break later callbacks
<freemangordon> well, we can implement priority, no?
<uvos> you could but you would have to untange a huge mess
<freemangordon> or, have a separate module for turning the display off that's loaded first
<uvos> a better way is to reimplement the mess
<uvos> (wich i have done for myself)
<uvos> and make stuff async
<uvos> lots of stuf could be async
<freemangordon> uvos: no matter what, the same legacy module on fremantle turns display off on an instant
<freemangordon> *modules
<uvos> freemangordon: sure they dident run into the issues as mutch, mce as just a lot more to do on d4
<uvos> also the problem is that its dose just ipc
<uvos> and the ipc its doing is stalling it wating for other processies
<freemangordon> well, no matter the reason, this is not really user friendly
<freemangordon> I know you don;t use double-press, but that's no reason to not implement it right
<uvos> wdym
<uvos> i fixed double press
<uvos> otherwise make stuff async
<freemangordon> sorry, was it broken?
<uvos> yes it was
<uvos> (also on fremantle)
<uvos> anyhow make mce more async so it dosent wait for other processies all the time
<uvos> is the fix
<uvos> ofc thats lots of work
<uvos> also figure out why dpms is so damn sloww
<uvos> thats just a ddx thing
<freemangordon> I don;t know what you mean by "broken", but on fremantle double-press locks the device instantly
<freemangordon> on d4 it takes 2 seconds
<freemangordon> yeah, dpms
<freemangordon> we may have kernel issue there
<freemangordon> I think it is related with vblank patch
<freemangordon> I will do some experimenting with that reverted
<freemangordon> but, if on d4 we wait modem and whatnot to be turned off before even trying to turn off the display, then I would say we have a bad design
<uvos> yes
<uvos> this is the design of mce
<uvos> it dose suff in serial and order cant be controlled
<freemangordon> we shall implement some control then
<freemangordon> as I said - priority
<freemangordon> no need to do it asunc
<freemangordon> *async
<uvos> async is mutch better
<uvos> really
<uvos> and there are easy wins here
<freemangordon> as I can imagine this will be a huge task
<uvos> no
<uvos> there are some self contained easy wins here
<uvos> priority ordering is a huge task
<freemangordon> uvos: the easiest way is with priorities
<uvos> to make it not mess with the global state problem
<uvos> no
<uvos> its gona be pretty insane
<uvos> trust me
<freemangordon> see, it is not that I didn;t work on mce code
<uvos> at this point i have rewritten all modules
<freemangordon> it is just that it was some time ago
<uvos> (that i use)
<freemangordon> uvos: ok, but having such a big delay for such a simple task like turning the display off which was not there initially means that something is not quite right
<uvos> yes and i told you whats not quite right
<uvos> it waits on ipc in cases it dosent really have to
<freemangordon> and I think it makes sense to try to fix that without having to reengineer the whole codebase from scratch
<freemangordon> going async will brign other problems I would like to avoid
<uvos> no it wont
<uvos> i know lots of places where it would not
<freemangordon> you need to syncronize at some point
<freemangordon> *synchronize
<freemangordon> otherwise you will never have deterministic behaviour. anyway, lets not go into that
<uvos> there are places where this is really easy
<freemangordon> if you don;t want to look at it, fine
<freemangordon> I will
<uvos> please dont, reording is not a good solution to the problem really
<freemangordon> as I said - not reordering, but priorities
<uvos> that is effectively reodring the callbacks
<uvos> sure you can fake it being fast by turning off the backlight
<uvos> but it will still be dreadfully slow
<freemangordon> which will be enigh
<uvos> making it annoying to the user
<freemangordon> *enougj
<uvos> no
<uvos> not really
<freemangordon> why?
<freemangordon> 1. Turn backlight off, 2. disable TS
<uvos> you cant fake it tunring on, thats really slow to, tunring it off and on again (wich happens by accident often) will be really slow
<freemangordon> those are enough for te user to see that somethiong actually happens
<uvos> and mce will discard power buttion presses in the mean time etc
<uvos> the state changes around dim mode will be terrible
<freemangordon> because now you double-press, but nothing happens
<uvos> (as they are now)
<uvos> its just not a good solution
<freemangordon> dim?
<uvos> dim mode
<freemangordon> why dim, you wont lock
<freemangordon> *want
<uvos> no
<uvos> so if the device dims
<freemangordon> yes, you want lock on double-press
<uvos> it takes forever form mce to undim
<uvos> this isent about that
<uvos> im talking about problems reodring the callbacks dosent solve
<freemangordon> ah, yeah, why it takes ages to dim? do we do SW dim?
<uvos> hmm ages to dim?
<uvos> it takes ages for mce to realise its goten an event
<freemangordon> well, undimming
<uvos> and then undim
<freemangordon> ah
<freemangordon> why is that?
<uvos> it waits for xinput
<uvos> is the main problem i think
<uvos> but haven profiled that
<freemangordon> hmm
<uvos> and yes we use sw to drive the backlight fade
<uvos> (as did fremantle)
<freemangordon> does not makes sense, as h-d registers touches instantly
<uvos> right so dose mce
<uvos> but
<uvos> there are several problems here
<freemangordon> and why it needs 2 seconds to realize it has to undim?
<uvos> it dosent
<freemangordon> here it does
<uvos> it needs a long time to undim
<freemangordon> yeah, why?
<uvos> (it also has a 1 sec timeout that migght be in the way)
<uvos> again xinput
<uvos> it reanbles xes input devices
<uvos> so for ts events
<uvos> it also works like this
<freemangordon> those are disabled on dim?
<uvos> yes for one click mode
<freemangordon> wait
<freemangordon> there is event eater in tklock for that
<freemangordon> there is absolutely no need to disable anything at that point
<uvos> right but mce implements this again (allways has, on fremantle it disables the devices in kernel)
<uvos> tklock is totaly redundant
<freemangordon> no
<freemangordon> no
<uvos> yes
<uvos> yes
<uvos> anyhow back to ts events
<freemangordon> no, you are doing broken redesign here
<uvos> theres another problem
<uvos> no
<freemangordon> yes, listen:
<uvos> anyhow back to ts events: it works like this
<uvos> it listens for ts events
<uvos> when it gets one
<freemangordon> on dim, screen is dimmed and event eater in tklock is armed
<uvos> i know
<freemangordon> it "eats" the first input event (no matter TS or another)
<uvos> i know
<freemangordon> and then you just undim
<uvos> i also know
<freemangordon> no need to disable anytthing
<uvos> right but mce disables other input devces in this mode
<uvos> in kernel on fremantle
<freemangordon> your private no-tklock use-case is not reason for mce to disable anything
<uvos> i dident add this
<freemangordon> please show me the code
<freemangordon> in 'stock' mce
<uvos> back to mce input: so when it gets a ts event there is a 1 sec timeout where it ignores ts events
<uvos> so sometimes when it enters dim mode
<freemangordon> mce?
<uvos> yes
<uvos> i cant switch out for 1 second no mater what
<freemangordon> there is no such timeout in fremantle mce
<uvos> this again was implemented in fremantle
<uvos> yes there is
<freemangordon> and that's for sure
<uvos> yes there is
<uvos> and they added this
* freemangordon tries
<uvos> because otherwise mce uses huge amount of cpu time
<uvos> because of the event rate of the ts
<uvos> also ofc this is only happens if you touch right before it enter the mode
<uvos> so its not that relevant
<uvos> i was just mentioning this bug/race that exists that can extend the time by 1 sec sometimes
<freemangordon> on d4 it is way worse
<freemangordon> and just tried on fremantle:
<freemangordon> dimmig happesn in .5s or something
<freemangordon> and I clicked immediately after the dim
<freemangordon> instant undim
<freemangordon> did that several times
<freemangordon> consistent behaviour
<uvos> idk how easy this race is to trigger in real life
<freemangordon> do you want me to capture a video?
<uvos> i just know it exists in the code
<uvos> no
<uvos> i know its slow
<freemangordon> on fremantle?
<uvos> yes
<freemangordon> it is not
<uvos> on d4 i mean
<freemangordon> it happens in an instant
<freemangordon> ah
<uvos> yes
<freemangordon> yeah, on d4 it is slow
<freemangordon> but, it is not on PP
<freemangordon> and I think it is not on n900
<uvos> right d4 mce dose quite a bit more stuff
<freemangordon> right
mardy has quit [Quit: WeeChat 2.8]
<uvos> im sure
<uvos> if you go and unload lots of modules it will be fine
<freemangordon> and that is what I am saying - this "other' stuff shall be done after the prymary stuff
<freemangordon> *primary
<uvos> not possible/ usefull in many cases
<freemangordon> also, why do you need to do anything on dim?
<uvos> i have not profiled this
<uvos> so i dont know
<uvos> its not that mutch really
<freemangordon> uvos: right, maybe we shall see what happens there
<freemangordon> no, it is really ~ 2 seconds
<freemangordon> which it too much
<freemangordon> half a second would be acceptable
<freemangordon> 2 seconds is not
<freemangordon> thats really a broken UX
<uvos> its like 0.5s here
<uvos> but yeah i use different modules
<freemangordon> but yeah, we need to profile
<freemangordon> uvos: :nod:
<freemangordon> I guess this makes all the difference
<freemangordon> I use stock setup
<freemangordon> and yes, as Wizzup said, on d4 power menu always pops on double-press
<freemangordon> not on PP
<uvos> this is just a race
<uvos> that exists on all devices
<uvos> if dpms is slow
<uvos> it will show
<freemangordon> mhm
<uvos> ie if the device is slow to turn off the display
<uvos> it will show
<freemangordon> agree
<uvos> its also a race with your finger
<uvos> since doublepres is 1 sec
<uvos> so you can press 1 sec press
<uvos> that will make it happen on any device
<freemangordon> see, I know how this works :)
<freemangordon> and I know it is wacy
<freemangordon> *racy
<uvos> right an i think is pretty terrible
<uvos> honeslty i would scrap doublpress for this reason
<uvos> since it cant be fixed
<uvos> and its janky
<freemangordon> but, this shows only on d4
<uvos> no it dosent
<uvos> i shows only on d4 if you doublepres really fast
<uvos> it happens on fremantle n900 for me to 100% of the time
<freemangordon> uvos: only on d4 it takes 2seconds to power-off the screen
<uvos> i gues my finger isent as fast
<freemangordon> it is not about power menu showing
<freemangordon> it is about taking 2 seconds to turn the display off
<freemangordon> on PP and on fremantle the instant right after second press the display is off
<uvos> btw double press to off is the slowes method possible
<uvos> since it
<freemangordon> on d4 it takes 2 seconds after the second press to turn the display off
<freemangordon> this is what I am talking about
<uvos> ie it waits for mce to idle
<uvos> i had to do that
<uvos> for the global state to be correct
<uvos> when it enters lock
inky has quit [Ping timeout: 256 seconds]
<uvos> otherwise the powermenu mode breaks tklock
<freemangordon> ok, have to see how it is done on fremant;e
<uvos> its perfomed in a timer
<freemangordon> uvos: also, for sure double-press is registered correctly
<freemangordon> because what happens is:
<freemangordon> on the first press, power menu gets shown
<freemangordon> on the second press it gets hidden
<freemangordon> then you wait 2 seconds
<freemangordon> and display turns off
<uvos> not really
<freemangordon> do you want me to take a video?
<uvos> yes i know what happens
<uvos> so no
<uvos> but your desciption is wrong
<uvos> the second press dosent hid the menu
<freemangordon> no, it is not
<uvos> the mode change dose
<freemangordon> this is what happens here from the user POV
<uvos> the mode change closes the window, this happens to happen way before dpms compleats
<freemangordon> what do you mean "mode change"?
<freemangordon> mode change to "tklock" I guess
<uvos> global mode
<freemangordon> but, this mode change happens because of the second press, no?
<uvos> maybe
<uvos> depends on what you have there
<uvos> also depends on global state
<freemangordon> nothing else but the second press can make power menu be hidden
<freemangordon> so, it gets registered correctly
<freemangordon> and then it takes 2 seconds here for display being turned off
<freemangordon> uvos: sec, have to answer to enunes
uvos has quit [Quit: Konversation terminated!]
<Wizzup> freemangordon: fwiw I believe the answer to his question is that it doesn't
<Wizzup> checking
<freemangordon> yes, it doesn;t
<Wizzup> ok
<freemangordon> but I have to register to answer :)
<Wizzup> I'll let you answer
<Wizzup> check
<Wizzup> maybe also point him at being able to use apt get source or just link to the repo https://github.com/maemo-leste-upstream-forks/clutter-0.8
<freemangordon> ugh, I don;t remember the password, will reconnect
freemangordon has quit [Quit: Leaving.]
freemangordon has joined #maemo-leste
uvos has joined #maemo-leste
<uvos> freemangordon: btw go into 70-droid4.init and remvoe quirks-mapphone
<uvos> makes a large difference
<uvos> suggesting that indeed about 0.3s or so is wating for the modem
<uvos> thats not really mutch of a problem
<uvos> we can async that
<uvos> it dosent need to be synced with anything
<freemangordon> uvos: ok, will do, but not now as we are in some discussion on #lima re PP
<uvos> iio-accelerometer;iio-als;;iio-proximity makes a difference
<uvos> not very supprising
Twig has quit [Ping timeout: 240 seconds]
<uvos> thats up to 3 dbus round trips
<uvos> to unbind the sensors
<uvos> again this is device specific module
<uvos> also easy to async
<freemangordon> uvos: and I guess those can be disabled after screen is turned off
<uvos> no dosent reall matter when the sensors are unbound realtive to other stuff
<uvos> async is better
<freemangordon> ok, but you'll have to implement some kind of semaphore there
<uvos> sure dbus makes this easy
<uvos> use the async calls
<freemangordon> and I am afraid this will make it even more complicated and error prone
<uvos> if you end up having to rebind the sensors beofre it returns
<uvos> just block then
<uvos> not really
<freemangordon> ok
<freemangordon> I still think there should be an easier way to fix that
<uvos> not really dbus round trips have bad latency
<uvos> thats just how it is
<uvos> also modem is slow
<uvos> thats also unfixable
<freemangordon> yeah
<freemangordon> btw, why do we touch modem on lock?
<uvos> we have to stop its rssi reporting
<uvos> otherwise it wont sleep
<freemangordon> ah, wait, you are talking about dbus because we are using iio-senors?
<uvos> yesh
<freemangordon> ahaaa
<uvos> we have to takl to ii-sensors over dbus
<freemangordon> I see now what do you mean by async
<uvos> to tell it we dont need trhe sensors
<freemangordon> well, yeah, thats fine
<freemangordon> async dbus calls is just right
<freemangordon> as soon as you keep the local state consistent
<freemangordon> yeah, right. we have a deal on that :)
<freemangordon> sure you can issue async dbus call and queue enabling if it needs to be enalbed before you have disable call result
<uvos> yes exactl
<uvos> y
<freemangordon> correct
<uvos> there are lots of place like that in mce
<uvos> *places
<freemangordon> it took me a while until I understand what do you mean by "async" :)
<freemangordon> but yes, I agree this will help a lot
<freemangordon> do you want me to help with the implementation?
<uvos> if you like
<uvos> but its not mutch work really
<uvos> this code block is slow
<uvos> open() is slow here
<uvos> and so is the write
<freemangordon> hmm, but why do you use open() etc? IIRC mce wa using gio for async file operations
<freemangordon> GIOChannel etc
<uvos> sometimes yeah
<uvos> it also uses open etc often
<freemangordon> I guess I can rewrite this to use giochannel
<uvos> this module is also kinda throwaway since its a collection of hacks really
<uvos> you have to close the fd btw
<uvos> otherwise modem dosent sleep
<uvos> so i dont se how gio can do better
<uvos> wrt open
<freemangordon> because we can open async
<freemangordon> and write on it being opened
<uvos> sure ok
<freemangordon> no need to block in display_state_trigger
<freemangordon> and we can always cancel pending async calls
<freemangordon> uvos: ok, so I'll take on that one
<freemangordon> please have a look at iio modules, ok?
<uvos> sure
<uvos> the other thing tahts slow is dpms
<uvos> and on enable tklock
<uvos> xset dpms force on and off takes about a second by itself here
<uvos> so thats half the problem right there already
<freemangordon> right
<freemangordon> but lets first pick the low-hanging fruits
<freemangordon> ok, going to have some sleep, night!
<Wizzup> parazyd: I made backups of the droid4 images over 2021 on my own machine because amprolla ran out of space again, where should I copy them to
uvos has quit [Ping timeout: 240 seconds]
akossh has quit [Quit: Leaving.]