libera/#maemo-leste/ Thursday, 2025-05-29

freemangordonWizzup: cool :)09:56
freemangordonWizzup: with this https://git.maemo.org/leste-upstream-forks/voicecall/commit/46564af0cdb5b6de1305e678166397f8789b20ec , SIP calls N900<->VM seem to work every time09:57
freemangordonhowever, they don't on d4 and I suspect PA issue09:57
freemangordonut don;t really know how to debug09:58
freemangordon*but09:58
Wizzupfreemangordon: how do they not work on d4, this is vm to d4 and d4 doesn't work? or no audio?11:10
kivaInteresting they don't have any problem with N900 main on front camera: https://elinux.org/N90014:15
kivadoes them work with Leste?14:15
kivaI mean main and front camera.14:18
freemangordonWizzup: this is N900 <-> d4, audio most of the times does not work (and PA volume control does not show vcm streams)14:40
inkywow n900 camera has support in mainline? does it work? with which software?14:43
Wizzupkiva: inky: elinux.org is old and it's not up to date14:50
Wizzupfreemangordon: I've seen PA crashes on the d414:50
Wizzupthis might be what you're seeing14:50
Wizzupmaybe see if PA gets killed or something14:51
freemangordonhmm, ok14:54
Wizzuplet me find the error14:55
siceloi do keep elinux.org up to date :-)15:01
sicelokiva: 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 go15:02
Wizzupuser.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.15:03
Wizzupfreemangordon: I see this regularly ^15:03
Wizzupsicelo: okay, great, ty15:03
Wizzupfreemangordon: I tried to search pi source a bit but didn't get very far yet15:03
Wizzups/pi/pa/15:03
dsc_setting up pinephone with leste today15:24
dsc_how can I force orientation to portrait (for pinephone) - is there a command?16:18
dsc_it does not seem to adjust itself (the gyro is possibly disabled, idk)16:18
dsc_also; why is landscape 'slower' than portrait ?16:21
Wizzupyou need to upgrade for the sensor proxy to work16:27
Wizzuplandscape is slower because the opengl rotation fallback is software not gpu16:27
dsc_Wizzup: alright, why is opengl rotation software? :P16:30
dsc_maybe you have a link somewhere in hildon?16:30
Wizzupdsc_: that's in glamor (the 3d driver) not hildon16:41
Wizzupit's in mesa16:41
kivasicelo: 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.16:59
kivaalso QR-code or barcode reader would be nice use for N900 camera.17:06
kivadsc: 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?17:14
inky> how can I force orientation to portrait (for pinephone) - is there a command?17:15
inkyit does (well it did for me in chimaera), i think on daedalus too.17:15
inkyotherwise there is /usr/share/hildon-desktop/transisions.ini where you can whitelist apps that are allowed to be rotated.17:15
dsc_I upgraded leste and orientation started working :)17:15
dsc_but thanks17:15
dsc_and yeah, its slow17:16
inkyand there is kernel boot flag  fbcon=rotate:117:16
inkythat's for landspace actually.17:16
sicelokiva: front camera? ever tried it with Fremantle? it really wasn't that good, even for the low resolution17:17
gnarfacekiva: there was a BSP kernel v4.9 that supposedly supported "everything" but i'm not sure where to get it17:17
gnarface...4.9? 3.9? something old anyway17:17
gnarfacei thought it was linked from their wiki at some point but i'm having trouble finding it now17:18
kivasicelo: I took raw pictures with Fremantle ten years ago was that Bless900 that better camera app?17:19
siceloyou mean rear camera then17:21
kivasicelo: yes...front camera is just 640x480 and real quality is even lower.17:22
kivafront camera pictures looked like 320x240 or even lower.17:23
dsc_default conversations = https://plak.infrapuin.nl/selif/29hapend.mp418:06
dsc_QT_QUICK_BACKEND=software = https://plak.infrapuin.nl/selif/lgpbtspw.mp418:06
dsc_software rendering is more smooth :x18:10
siceloi think that's what arno  has talked about a number of times?18:17
dsc_likely. I think this may also be present on droid418:17
dsc_because the scrolling is also not super smooth there18:19
dsc_not slow by any means, but not smooth18:19
dsc_I assumed this was because of the droid4, but know I'm thinking maybe there is something wrong with the acceleration18:19
dsc_now*18:19
Wizzupit depends on the driver18:57
kivaPinephone users without keyboard might want arrow-up and enter into downbar of osso-xterm.19:00
arno11dsc_: something wrong with acceleration, yes, but not conversations specific: rather Qt5 is at fault19:30
dsc_with software rendering I get 130fps, with opengl 26fps19:34
dsc_for a simple Qt5 widgets + QML scene19:35
dsc_i will look with renderdoc19:35
arno11indeed...there is a problem lol19:35
arno11dsc_: btw on n900, using QT_QUICK_BACKEND=software is quite as slow as using hardware19:39
arno11*slow, specially to launch an app19:41
arno11btw 26 fps seems similar to n90019:43
arno11*with opengl19:46
dsc_arno11: how do you test?19:46
dsc_to see this fps19:46
arno11running hildon desktop with fps shown19:47
dsc_how do you show FPS?19:48
arno11don't remember the command, let me check19:50
dsc_nvm, I can find it19:51
arno11i still wonder what is qt5ct raster magic: 5-6 times faster to launch one or 10 qt apps. and no performance diff19:57
arno11anyway...19:57
dsc_how to calibrate battery on pinephone22:22
kivadsc: 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.22:45
dsc_kiva: it says calibration needed22:47
dsc_this solves itself via your steps?22:47
kivayes22:48
dsc_thx22:48
dsc_and display brightness, you know how to adjust that?22:48
kivago Settings, there is Display and there is brightness, it has little slow response and difference is small..maybe that can be fixed.22:51
Wizzupdsc_: on https://git.maemo.org/leste/bugtracker/issues/78522:51
Wizzupthe latest image does apt update / apt upgrade22:51
Wizzupso it will work out of the box on the next image22:51
dsc_Wizzup: thx22:53
arno11dsc_: for brightness you can directly use /sys/class/backlight/xxxxxxxxx/brightness22:54
Wizzupwell mcs should do that22:54
Wizzupmce22:54
dsc_ah, backlight, was grepping for 'brightness' ;-)22:55
kivaDesktop widget for brightness would be nice :)22:55
dsc_Settings->Display has a widget for brightness22:56
dsc_but does not work22:56
kivaIt works, but difference has smooth with delay and difference is small22:57
dsc_ah, yeah.. I see22:58
dsc_$ cat /sys/class/backlight/backlight/max_brightness22:58
dsc_312422:58
dsc_GUI widget is in increments of 20022:58
kivaIf some body can make darker step 1 it would be nice.22:59
kivaor even more steps.22:59
sicelodidn't know PP had the battery calibration issue23:02
dsc_sicelo: the GUI (navbar) just says "calibration needed" - dont know what it means :P23:03
kivaActually it does not have issue. Just use it empty and full and empty, after that it disappear.23:04
arno11kiva: yeah step 1 is definitely too high23:04
sicelodsc_: it means /sys/class/power_supply/<your_chip>/capacity == 0 or EINVAL23:04
kivaOr at least it have worked for me..it can come back if you take out battery and put another battery.23:05
dsc_sicelo: its 99, the GUI also shows 99%23:05
dsc_but it also says calibration needed23:06
kivabut disappear if you do empty, charge cycle.23:06
sicelodsc_: odd, kindly share the output of `upower -d` and also `cat /sys/class/power_supply/<your_fuel_gauge>/uevent`23:06
dsc_sicelo: https://plak.infrapuin.nl/selif/0yjg2p3u.txt23:07
siceloin your case seems to be the energy_* properties, although i'd have expected those to not matter if percentage is reported. will double-check23:09
siceloalthough it does sound weird/wrong to have 98% and at the same time have 0 as energy value :p23:09
dsc_its now 95%, battery drains pretty fast (if I were to believe these numbers)23:09
dsc_display brightness at 100% and on WIFI :p23:10
siceloyes, it does drain fast23:10
kivaIn my test lower audio volume matters too, but I am not sure.23:11
sicelodsc_: if you want, here's the fix, and you can submit MR,23:12
sicelohttps://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;23:12
sicelosorry, `  return private.data.energy_full && private.data.energy_now;23:12
sicelodamn, bad copypaste23:12
dsc_:D23:13
siceloreturn private.data.percentage || private.data.energy_now;23:16
dsc_excellent, thanks!23:17
sicelonot 100% sure how MR-ready that actually is, but it makes a lot of sense to me23:18
dsc_ill play around with it23:18
siceloshould 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 :-p23:19
sicelobut this whole battery stuff does involve a lot of compromise anyway23:19
dsc_https://git.maemo.org/leste/osso-applet-display/src/branch/maemo/daedalus/src/cpdisplay.c23:20
dsc_is this the widget for brightness?23:20
kivadsc: if you want play energy saving try disable last core: echo 0 > /sys/devices/system/cpu/cpu3/online23:21
kivahtop shows how many cores you have online.23:21
dsc_kiva: I changed screen brightness to 30% and it helped a lot23:22
dsc_im still at 92% since doing it23:22
dsc_kiva: echo 800 | sudo tee /sys/class/backlight/backlight/brightness23:24
dsc_this is 25%23:27
kivaI put 5 and even that is not too dark.23:30
kiva0 is too dark :)23:32
gnarfacethe pinephone batches don't all have the same screen model, so appropriate brightness settings are relative23:32
sicelodsc_: mce handles the brightness here, https://git.maemo.org/leste/mce/src/branch/master/src/modules/display.c23:33
dsc_kiva: yes, 5 is nice23:34
dsc_sicelo: mkay hmm23:35
dsc_there are 5 'buttons' @ GUI widget23:35
dsc_they increment with 20023:35
dsc_yet, the range is 0-320023:36
dsc_as per /sys/class/backlight/backlight/max_brightness23:36
sicelosounds like mce might need some improvements then :-)23:38
sicelosee src/modules/filter-brightness-*23:39
dsc_ah ok23:39
kiva14my 2 GB memory Pinephone model jumps 0 (backlite off) to 1 (bright enough in little light)..actually 3124 is max value.23:39
dsc_yes, I rounded to 3200 :P23:40
kiva14If ask me 5 steps should be 1,800,1600,2400,3124.23:42
dsc_yes but this mce stuff is a bit complicated23:42
dsc_not something I can hack23:42
dsc_quickly23:42
sicelodsc_: afaict, the brightness to set is calculated here, https://git.maemo.org/leste/mce/src/branch/master/src/modules/display.c#L24623:47
dsc_thx, ill put a breakpoint :)23:49
dsc_sicelo: btw, after this battery patch, it now shows 'no data'23:49
dsc_which is better I guess23:49
siceloyes, no data because the energy is used to calculate the capacity (mAh). in your case, for now you're reporting all zeros23:51
siceloonce a learning/calibration cycle has completed, you should see mAh instead23:52
dsc_alright :)23:52
dsc_another question23:53
dsc_https://git.maemo.org/leste/status-area-orientationlock-applet23:53
dsc_I installed this, where can I use it?23:53
siceloshould show up on the status menu. you use it to lock yourself to a specific orientation, instead of maemo deciding for you23:54
* sicelo doesn't use it23:54
dsc_the status menu23:55
dsc_oh, there we go23:55
dsc_:)23:55
dsc_I think we should install this by default23:55
* sicelo likes a not-busy status menu :-)23:57
dsc_fair23:57
dsc_but on pinephone, I want to avoid going into landscape because its slow23:57
siceloanyway i know many use it. i guess you can open an issue or MR and a decision can be taken23:57
kiva14screen brighness to status menu :)23:57
siceloah! makes sense @ slow landscape23:58
sicelokiva14: there's a widget for that as well23:58
sicelosimple-brightness or similar (again, i don't use it)23:58
kiva14good23:58

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