pabs3 has joined #maemo-leste
pabs3 has quit [Read error: Connection reset by peer]
pabs3 has joined #maemo-leste
retr0id has quit [Ping timeout: 272 seconds]
retr0id has joined #maemo-leste
pabs3 has quit [Ping timeout: 272 seconds]
pabs3 has joined #maemo-leste
xmn has quit [Ping timeout: 276 seconds]
xmn has joined #maemo-leste
Daanct12 has joined #maemo-leste
Anasko has joined #maemo-leste
vectis_ has joined #maemo-leste
xmn has quit [Ping timeout: 248 seconds]
joerg has quit [Ping timeout: 276 seconds]
joerg has joined #maemo-leste
System_Error has quit [Remote host closed the connection]
xmn has joined #maemo-leste
xmn has quit [Client Quit]
System_Error has joined #maemo-leste
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #maemo-leste
vectis_ has quit [Ping timeout: 260 seconds]
_fab has joined #maemo-leste
xinomilo has quit [Quit: Leaving]
xinomilo has joined #maemo-leste
mkfx has joined #maemo-leste
ceene has joined #maemo-leste
xmn has joined #maemo-leste
coffeecreature has quit [Remote host closed the connection]
coffeecreature has joined #maemo-leste
akossh has joined #maemo-leste
Livio has joined #maemo-leste
Twig has joined #maemo-leste
Anasko has quit [Remote host closed the connection]
Anasko has joined #maemo-leste
Anasko has quit [Remote host closed the connection]
Anasko has joined #maemo-leste
<freemangordon> Wizzup: cool :)
mkfx has left #maemo-leste [Error from remote client]
<freemangordon> Wizzup: with this https://git.maemo.org/leste-upstream-forks/voicecall/commit/46564af0cdb5b6de1305e678166397f8789b20ec , SIP calls N900<->VM seem to work every time
<freemangordon> however, they don't on d4 and I suspect PA issue
<freemangordon> ut don;t really know how to debug
<freemangordon> *but
apac has joined #maemo-leste
Livio has quit [Ping timeout: 264 seconds]
<Wizzup> freemangordon: how do they not work on d4, this is vm to d4 and d4 doesn't work? or no audio?
Livio has joined #maemo-leste
pere has quit [Ping timeout: 276 seconds]
Livio has quit [Ping timeout: 264 seconds]
leste has joined #maemo-leste
_fab has quit [Read error: Connection reset by peer]
_fab_ has joined #maemo-leste
Anasko has quit [Ping timeout: 252 seconds]
f_ is now known as f_|AWAY
f_|AWAY is now known as f_
pere has joined #maemo-leste
ungeskriptet has quit [Ping timeout: 248 seconds]
apac has quit [Quit: Konversation terminated!]
ungeskriptet has joined #maemo-leste
coffeecreature has left #maemo-leste [So long!]
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #maemo-leste
kiva has joined #maemo-leste
coffeecreature has joined #maemo-leste
<kiva> Interesting they don't have any problem with N900 main on front camera: https://elinux.org/N900
<kiva> does them work with Leste?
<kiva> I mean main and front camera.
coffeecreature has left #maemo-leste [So long!]
<freemangordon> Wizzup: this is N900 <-> d4, audio most of the times does not work (and PA volume control does not show vcm streams)
<inky> wow n900 camera has support in mainline? does it work? with which software?
<Wizzup> kiva: inky: elinux.org is old and it's not up to date
<Wizzup> freemangordon: I've seen PA crashes on the d4
<Wizzup> this might be what you're seeing
<Wizzup> maybe see if PA gets killed or something
<freemangordon> hmm, ok
<Wizzup> let me find the error
<sicelo> i do keep elinux.org up to date :-)
ceene has quit [Read error: No route to host]
<sicelo> kiva: inky: no one has played with it much. after all, that camera was quite bad even with Fremantle. but you can modify the dts and give it a go
<Wizzup> user.log.4.gz:2025-04-30T13:17:39.403881+02:00 localhost pulseaudio[13475]: [alsa-sink-40124000.mcbsp-cpcap-hifi cpcap-hifi-0] alsa-mixer.c: Assertion 'm' failed at ../src/modules/alsa/alsa-mixer.c:1479, function pa_alsa_path_select(). Aborting.
<Wizzup> freemangordon: I see this regularly ^
<Wizzup> sicelo: okay, great, ty
ceene has joined #maemo-leste
<Wizzup> freemangordon: I tried to search pi source a bit but didn't get very far yet
<Wizzup> s/pi/pa/
coffeecreature has joined #maemo-leste
arno11 has joined #maemo-leste
<dsc_> setting up pinephone with leste today
kiva has quit [Ping timeout: 240 seconds]
Daanct12 has quit [Quit: WeeChat 4.6.3]
<dsc_> how can I force orientation to portrait (for pinephone) - is there a command?
<dsc_> it does not seem to adjust itself (the gyro is possibly disabled, idk)
<dsc_> also; why is landscape 'slower' than portrait ?
<Wizzup> you need to upgrade for the sensor proxy to work
<Wizzup> landscape is slower because the opengl rotation fallback is software not gpu
narodnik has quit [Quit: WeeChat 4.6.3]
<dsc_> Wizzup: alright, why is opengl rotation software? :P
<dsc_> maybe you have a link somewhere in hildon?
narodnik2 has quit [Ping timeout: 276 seconds]
<Wizzup> dsc_: that's in glamor (the 3d driver) not hildon
<Wizzup> it's in mesa
arno11 has quit [Quit: Leaving]
kiva has joined #maemo-leste
kiva has quit [Client Quit]
kiva has joined #maemo-leste
<kiva> sicelo: To me would be enough if can take picture and send it with MMS at 640x480 resolution with Leste. Actually N900 camera lens is not bad, but sensor need somekind of whitebalance correction matrix, should calibrate with greycard, but that is only needed if you want 5MP pocket camera quality.
<kiva> also QR-code or barcode reader would be nice use for N900 camera.
<kiva> dsc: Pinephone has hardware accelerated rotate and zoom and 2 layers, but if I understand right it is feature of AllWinner, not Mali GPU part itself...I wonder is there enough documentation of that feature to make open source driver? Was there any closed source driver for any kernel version?
xinomilo has quit [Ping timeout: 252 seconds]
<inky> > how can I force orientation to portrait (for pinephone) - is there a command?
<inky> it does (well it did for me in chimaera), i think on daedalus too.
<inky> otherwise there is /usr/share/hildon-desktop/transisions.ini where you can whitelist apps that are allowed to be rotated.
<dsc_> I upgraded leste and orientation started working :)
<dsc_> but thanks
<dsc_> and yeah, its slow
<inky> and there is kernel boot flag fbcon=rotate:1
<inky> that's for landspace actually.
<sicelo> kiva: front camera? ever tried it with Fremantle? it really wasn't that good, even for the low resolution
<gnarface> kiva: there was a BSP kernel v4.9 that supposedly supported "everything" but i'm not sure where to get it
<gnarface> ...4.9? 3.9? something old anyway
<gnarface> i thought it was linked from their wiki at some point but i'm having trouble finding it now
<kiva> sicelo: I took raw pictures with Fremantle ten years ago was that Bless900 that better camera app?
<sicelo> you mean rear camera then
<kiva> sicelo: yes...front camera is just 640x480 and real quality is even lower.
<kiva> front camera pictures looked like 320x240 or even lower.
<dsc_> default conversations = https://plak.infrapuin.nl/selif/29hapend.mp4
<dsc_> QT_QUICK_BACKEND=software = https://plak.infrapuin.nl/selif/lgpbtspw.mp4
<dsc_> software rendering is more smooth :x
kiva has quit [Quit: Client closed]
<sicelo> i think that's what arno has talked about a number of times?
<dsc_> likely. I think this may also be present on droid4
<dsc_> because the scrolling is also not super smooth there
<dsc_> not slow by any means, but not smooth
<dsc_> I assumed this was because of the droid4, but know I'm thinking maybe there is something wrong with the acceleration
<dsc_> now*
vectis_ has joined #maemo-leste
kiva has joined #maemo-leste
kiva has quit [Ping timeout: 240 seconds]
kiva has joined #maemo-leste
apac has joined #maemo-leste
<Wizzup> it depends on the driver
<kiva> Pinephone users without keyboard might want arrow-up and enter into downbar of osso-xterm.
kiva has quit [Quit: Client closed]
arno11 has joined #maemo-leste
<arno11> dsc_: something wrong with acceleration, yes, but not conversations specific: rather Qt5 is at fault
<dsc_> with software rendering I get 130fps, with opengl 26fps
narodnik has joined #maemo-leste
<dsc_> for a simple Qt5 widgets + QML scene
<dsc_> i will look with renderdoc
<arno11> indeed...there is a problem lol
<arno11> dsc_: btw on n900, using QT_QUICK_BACKEND=software is quite as slow as using hardware
<arno11> *slow, specially to launch an app
<arno11> btw 26 fps seems similar to n900
<arno11> *with opengl
<dsc_> arno11: how do you test?
<dsc_> to see this fps
<arno11> running hildon desktop with fps shown
<dsc_> how do you show FPS?
<arno11> don't remember the command, let me check
Livio has joined #maemo-leste
<dsc_> nvm, I can find it
<arno11> i still wonder what is qt5ct raster magic: 5-6 times faster to launch one or 10 qt apps. and no performance diff
<arno11> anyway...
ceene has quit [Ping timeout: 248 seconds]
pere has quit [Ping timeout: 244 seconds]
Livio has quit [Ping timeout: 264 seconds]
Livio has joined #maemo-leste
narodnik2 has joined #maemo-leste
Twig has quit [Remote host closed the connection]
pere has joined #maemo-leste
System_Error has quit [Remote host closed the connection]
System_Error has joined #maemo-leste
_fab_ has quit [Quit: _fab_]
<dsc_> how to calibrate battery on pinephone
apac has quit [Quit: Konversation terminated!]
Anasko has joined #maemo-leste
kiva has joined #maemo-leste
Livio has quit [Ping timeout: 264 seconds]
<kiva> dsc: I calibrated battery running it empty and then full charing..there is problem that it try start up when you connect charger, but try shut down as fast you can.
<dsc_> kiva: it says calibration needed
<dsc_> this solves itself via your steps?
<kiva> yes
<dsc_> thx
<dsc_> and display brightness, you know how to adjust that?
<kiva> go Settings, there is Display and there is brightness, it has little slow response and difference is small..maybe that can be fixed.
<Wizzup> the latest image does apt update / apt upgrade
<Wizzup> so it will work out of the box on the next image
<dsc_> Wizzup: thx
<arno11> dsc_: for brightness you can directly use /sys/class/backlight/xxxxxxxxx/brightness
<Wizzup> well mcs should do that
<Wizzup> mce
<dsc_> ah, backlight, was grepping for 'brightness' ;-)
<kiva> Desktop widget for brightness would be nice :)
<dsc_> Settings->Display has a widget for brightness
<dsc_> but does not work
<kiva> It works, but difference has smooth with delay and difference is small
<dsc_> ah, yeah.. I see
<dsc_> $ cat /sys/class/backlight/backlight/max_brightness
<dsc_> 3124
<dsc_> GUI widget is in increments of 200
<kiva> If some body can make darker step 1 it would be nice.
<kiva> or even more steps.
<sicelo> didn't know PP had the battery calibration issue
<dsc_> sicelo: the GUI (navbar) just says "calibration needed" - dont know what it means :P
<kiva> Actually it does not have issue. Just use it empty and full and empty, after that it disappear.
<arno11> kiva: yeah step 1 is definitely too high
vectis_ has quit [Ping timeout: 268 seconds]
<sicelo> dsc_: it means /sys/class/power_supply/<your_chip>/capacity == 0 or EINVAL
<kiva> Or at least it have worked for me..it can come back if you take out battery and put another battery.
<dsc_> sicelo: its 99, the GUI also shows 99%
<dsc_> but it also says calibration needed
<kiva> but disappear if you do empty, charge cycle.
<sicelo> dsc_: odd, kindly share the output of `upower -d` and also `cat /sys/class/power_supply/<your_fuel_gauge>/uevent`
<sicelo> in your case seems to be the energy_* properties, although i'd have expected those to not matter if percentage is reported. will double-check
<sicelo> although it does sound weird/wrong to have 98% and at the same time have 0 as energy value :p
<dsc_> its now 95%, battery drains pretty fast (if I were to believe these numbers)
<dsc_> display brightness at 100% and on WIFI :p
<sicelo> yes, it does drain fast
<kiva> In my test lower audio volume matters too, but I am not sure.
<sicelo> dsc_: if you want, here's the fix, and you can submit MR,
<sicelo> https://git.maemo.org/leste/status-area-applet-battery/src/branch/master/batmon.c#L359 ... must be ` return private.data.energy_full && private.data.energy_now;
<sicelo> sorry, ` return private.data.energy_full && private.data.energy_now;
<sicelo> damn, bad copypaste
<dsc_> :D
<sicelo> return private.data.percentage || private.data.energy_now;
<dsc_> excellent, thanks!
<sicelo> not 100% sure how MR-ready that actually is, but it makes a lot of sense to me
<dsc_> ill play around with it
<sicelo> should work for sure. but i'm just not happy that it will treat energy_now == 0 && percentage == 0 as being un-calibrated, even when those values are correct :-p
<sicelo> but this whole battery stuff does involve a lot of compromise anyway
<dsc_> is this the widget for brightness?
<kiva> dsc: if you want play energy saving try disable last core: echo 0 > /sys/devices/system/cpu/cpu3/online
<kiva> htop shows how many cores you have online.
<dsc_> kiva: I changed screen brightness to 30% and it helped a lot
<dsc_> im still at 92% since doing it
<dsc_> kiva: echo 800 | sudo tee /sys/class/backlight/backlight/brightness
<dsc_> this is 25%
<kiva> I put 5 and even that is not too dark.
<kiva> 0 is too dark :)
<gnarface> the pinephone batches don't all have the same screen model, so appropriate brightness settings are relative
<sicelo> dsc_: mce handles the brightness here, https://git.maemo.org/leste/mce/src/branch/master/src/modules/display.c
<dsc_> kiva: yes, 5 is nice
<dsc_> sicelo: mkay hmm
<dsc_> there are 5 'buttons' @ GUI widget
<dsc_> they increment with 200
<dsc_> yet, the range is 0-3200
<dsc_> as per /sys/class/backlight/backlight/max_brightness
<sicelo> sounds like mce might need some improvements then :-)
<sicelo> see src/modules/filter-brightness-*
<dsc_> ah ok
kiva14 has joined #maemo-leste
<kiva14> my 2 GB memory Pinephone model jumps 0 (backlite off) to 1 (bright enough in little light)..actually 3124 is max value.
<dsc_> yes, I rounded to 3200 :P
<kiva14> If ask me 5 steps should be 1,800,1600,2400,3124.
<dsc_> yes but this mce stuff is a bit complicated
<dsc_> not something I can hack
<dsc_> quickly
kiva has quit [Ping timeout: 240 seconds]
<sicelo> dsc_: afaict, the brightness to set is calculated here, https://git.maemo.org/leste/mce/src/branch/master/src/modules/display.c#L246
<dsc_> thx, ill put a breakpoint :)
<dsc_> sicelo: btw, after this battery patch, it now shows 'no data'
<dsc_> which is better I guess
arno11 has quit [Quit: Leaving]
<sicelo> yes, no data because the energy is used to calculate the capacity (mAh). in your case, for now you're reporting all zeros
<sicelo> once a learning/calibration cycle has completed, you should see mAh instead
<dsc_> alright :)
<dsc_> another question
<dsc_> I installed this, where can I use it?
<sicelo> should show up on the status menu. you use it to lock yourself to a specific orientation, instead of maemo deciding for you
* sicelo doesn't use it
<dsc_> the status menu
<dsc_> oh, there we go
<dsc_> :)
<dsc_> I think we should install this by default
* sicelo likes a not-busy status menu :-)
<dsc_> fair
<dsc_> but on pinephone, I want to avoid going into landscape because its slow
<sicelo> anyway i know many use it. i guess you can open an issue or MR and a decision can be taken
<kiva14> screen brighness to status menu :)
<sicelo> ah! makes sense @ slow landscape
<sicelo> kiva14: there's a widget for that as well
<sicelo> simple-brightness or similar (again, i don't use it)
<kiva14> good
<sicelo> https://github.com/maemo-leste-extras/simple-brightness-applet ... just needs to be imported to daedalus. want to give that a go? :-)
<dsc_> I'd like to register Qt widgets in the status bar
<dsc_> that would be nice ;p
<sicelo> e.g. widget for what functionality?
<dsc_> oh, just for whatever custom thing I personally want to build (not for inclusion into maemo)
<dsc_> well, perhaps a weather status widget
<sicelo> although i think atm all widgets (status and desktop) are gtk
<kiva14> Is there any "hello world" programming tutorials for widgets?
<sicelo> there should be, on wiki.maemo.org
<kiva14> this is not related to widgets, but there is real "hello world" for Maemo 4.x: http://maemo.org/maemo_training_material/maemo4.x/html/maemo_Getting_Started_Chinook/Chapter_03_Testing_the_installation.html
<kiva14> It would be nice that have for Maemo Leste to lower starting to Leste programing.
<dsc_> I debugged mce, it actually ranges from 624 to 3124
<dsc_> but the fade is quite slow, so I assumed it was not working
<kiva14> fade is slow, because as you see in source it change with -1.
<dsc_> kiva14: ? :P
<kiva14> look under where was that something * something /100 (if I looked right when somebody put link about it.
<dsc_> new_brightness = 624 - 3124 (depending on what you clicked in the GUI)
<dsc_> which seems to be 10 seconds?
<dsc_> testing it now
<kiva14> line 249
<kiva14> I am not c++ programmer, but if I can read that code, that makes fadings from old value to new
<dsc_> looks like an early exit to not fade twice with the same value?
<kiva14> ah you are right
<kiva14> Pinephone might have hardware fading.
<kiva14> or maybe not..line 187 :  brightness_fade_steplength = 2;
<dsc_> step_time is the timeout for a callback (a function call) https://git.maemo.org/leste/mce/src/branch/master/src/modules/display.c#L156
<dsc_> so when our step_time is 10
<dsc_> and we have 4 steps to go from 1 to 4
<dsc_> it takes 40 seconds?
<dsc_> to fade
<dsc_> probably not
<dsc_> idk, im just looking how this works
<dsc_> well, 3 steps in that case
<dsc_> g_timeout_add(interval
<dsc_> "The interval given is in terms of monotonic time, not wall clock time. See g_get_monotonic_time()."
<dsc_> ??
<dsc_> thx glib
<sicelo> mce supports hardware fading only on the N900
<kiva14> actually that fading time is not problem, because if steps for Pinephone would be 1, 800, 1600, 2400 and 3124 then change is more visible.
<sicelo> scratch that ... this is not LED :-)
* sicelo should been long asleep anyway
<dsc_> yeah, it just writes to /sys/class/backlight/backlight/brightness
<dsc_> but it does so too slow
<Wizzup> yeah the steps seem to be the problem no?
<dsc_> yes
<kiva14> no if write to sys/class/ 3124 and then 1 it change instantly.
<dsc_> I have step_time "1" now, its faster, but I want to understand what it is :D
<dsc_> its the interval to g_timeout_add
<dsc_> but I dont think its milliseconds
<dsc_> anyway
<sicelo> another solution would be to define the steps in an mce key, since, after all, there may be devices where the linearity (or visibility) of the change cannot be expressed in an easy formula (e.g. 20%, as we seem to have it)
<dsc_> yeah
<sicelo> timeout_add is ms
<kiva14> if ask me Pinephone does not have linear brigness value.
<dsc_> ok ye
<sicelo> linear wasn't the correct word actually, but my English fails me :-)
<kiva14> :)
<dsc_> with step_time=1, from step 1 (brightness 624) it executed that callback 1251 times, and 624+(1251*2) = 3126
<dsc_> (from step 1 to full brightness)
<dsc_> and thats correct because
<dsc_> static gint brightness_fade_steplength = 2;
<dsc_> k
<Wizzup> sicelo: too bad mainline doesn't offer another more simple interface
<dsc_> ahh ok, so the step length should be dynamic/related to the overall size
<dsc_> then we'll fix it, regardless of step_time
<dsc_> because I dont like firing a function every 1ms
<Wizzup> it's non-linear
<dsc_> but like sicelo said, maybe better to hardcode some stuff
<kiva14> But anyway we (who we?) should only change step1 value from 624 to 1...get full brightness control. Value one is enough bright.
<dsc_> yeah but going from 624 to 3126 is not linear, im just talking about fixing the duration bug
<dsc_> i mean
<dsc_> ok this is becoming chaotic
<dsc_> but what I mean is, going from 624 to 3126 is linear
<Wizzup> has anyone tried using brightnessctl?
<Wizzup> brightnessctl s 40% (or whatever) seems to do the right thing
<sicelo> on maemo? no. i use it on my laptop
<Wizzup> it's available in daedalus
<Wizzup> could we just call it for 20/40/60/80/100% ? :D
<dsc_> easy fix is making step length take into account the overall size of the total length
<sicelo> i am not fully sure yet what's the problem with what we already have btw, haha. we calculate the values wrong? or the issue is the fading?
<kiva14> but 1/40/60/80/100 would be better.
<Wizzup> dsc_: that doesn't work with non-linear doesn't it?
<dsc_> Wizzup: there is a callback (function call) which increments a number to a target value, the bigger the number, the longer it takes to get there (because the increments are static (2))
<sicelo> kiva14: it's not so simple. some devices may have a very big difference in brightness for that 40% :-)
<dsc_> I can make it call the function more often (decrease step_time) but this is a hack
<Wizzup> ok yeah whatever the smooth thing is should just never run for more than a second
<sicelo> e.g. Droid 4 max_brightness is 7 :-)
<dsc_> so the easy fix is to make the increments related to how big the change is
<Wizzup> to me the bigger problem seems mce not supporting non-linear backlights
<kiva14> sicelo: conditional compile for Pinephone? Or 1/25/50/75/100? or more steps?
<kiva14> If ask me more steps.
<sicelo> kiva14: that's why i think easiest/safest 'cheat' is a key in mce. it can be per device (leste-config-<device>).
<dsc_> do you have a droid, i'd like to see max_brightness there
<sicelo> it's 7 :-)
<dsc_> I'm guessing its not a high number
<dsc_> right, thats why it goes fast there xD
<kiva14> sicelo: it would be good. And more steps ;)
<sicelo> i totally agree that the increment shouldn't be static ... it should be derived from the whole range
<sicelo> that way if the range is large, some values are skipped
<dsc_> right
<dsc_> ill change it
<kiva14> So if add one step to UI then Droid would have all values (I assume that 0 is off), one step more would be good also for Pinephone 1/20/40/60/80/100
<kiva14> that was in persent, not real values.
kiva14 has quit [Quit: Client closed]
<dsc_> if the increments are 2, and max brightness is 7 on droid, was it ever fully 100% :P
<dsc_> depends on the starting point I guess