libera/#maemo-leste/ Saturday, 2024-08-24

uvosWizzup: lel died00:15
uvosWizzup: But what if the contact is renamed? @name from db00:16
uvosi gues the issue you take with sphone looking up the contacts is that it can be a bit slow00:17
uvosideal solution for that would be for sphone to show the list with the db name right away and then update it as the lookups come in.00:17
uvossicelo: :\00:18
inky> At last I found reason for unexpected power-offs with Pinephone Keyboard, reason is simple phone side battery can go empty in whole day use, although connected with charger.00:45
inkyi had to fix hw of pinephone.00:45
inkyshorten the diod.00:45
Wizzupuvos: then the remote_name will be updated, like on maemo00:45
inkyhere https://xnux.eu/pinephone-keyboard/faq.html00:50
inkysection:00:50
inkyKeyboard battery is charging slowly or not at all00:50
inkysomewhere was a tutorial with photos.00:50
uvosWizzup: dosent happen atm00:50
uvosalso not sure how you invision that working00:51
inkyhttps://forum.pine64.org/showthread.php?tid=16979&pid=111414#pid111414#ts00:52
uvossince eds is a shared database any random application can decide to edit. So the only way i see this working is if eds gets a plugin to edit rtcom-el's database00:52
inkyoh kiva is not here.00:52
doc|homeis there a way to reset the lock screen on an n900? For the life of me I can't remember the code05:42
WizzupI think there is some rescue image to reset it, you could probably also remove the xsession that waits for the lock code from leste and then try to recover from there05:45
docWizzup: is this it by any chance: https://github.com/quitesimpleorg/N900_RescueOS ?05:58
Wizzupthat could be, sorry, I don't know05:59
docok, thanks05:59
WizzupI think one of them came wiht john, I am not sure06:00
WizzupI think this was brought up in the last month or so here06:00
inkyin n900 repos there is jack the ripper, software that will find/brutforre key for you.11:30
inkyif you have ssh to device you can find the code if a second.11:30
inkyi once forgot it and recovered that way.11:31
sicelouvos: why :-/12:30
uvossicelo: n900 dtmf bitrot12:42
uvosWizzup: irc log/lel is still broken12:42
sicelook. thought it was in connection with the sphone feature request to show call direction in the log12:57
sicelothe dtmf issue .12:58
uvossicelo: no i think thats a good idea12:58
uvosi just have to think about how to do it12:58
uvosin portrait there is little space12:58
siceloi could look into n900 dtmf issue someday (but list of things i want/wish to do is growing)12:59
sicelouvos: yes i noticed @ portrait. if push comes to shove, just a thin column, that fits a small emoji (or icon) ⬆️⬇️ would already make a big difference13:01
arno11sicelo: uvos: dtmf still works on n900 :)14:44
arno11able to control my voice mail14:44
arno11(i made a mistake with busctl when i previously tested dtmf...)14:46
arno11so 'busctl call org.ofono /n900_2 org.ofono.VoiceCallManager SendTones s 3' works for example14:49
arno11there is no audible sound generated in speaker, but the command is well recognised by my voice mail14:53
arno11the problem with n900 is that the keypad is not visible in sphone in landscape.14:59
arno11but i found a solution last year iirc, i have to check15:01
uvosarno11: sphone only shows the keypad in call when the backend supports dtmf15:08
uvoscurrently no sphone backend besides the dummy commtest backend supports dtmf15:08
arno11ok15:09
siceloarno11: yay!!!!15:54
sicelo@ dtmf still  working, that is. i think n900 side - fremantle had something like tonegend or similar. fmg will know best what's what15:54
arno11ok, thx again for the busctl command15:56
sicelo:-)15:58
* sicelo realized he does miss the fremantle feature of vol-keys changing direction according to orientation ... or must blame muscle memory (even though using android for years as well)16:30
arno11vol-keys changing direction works with audacious btw, not with orientation but when you close the keyboard. it is like a 'walkman mode'16:35
sicelooh, interesting. it's their builtin feature?16:38
arno11yes (with screen off btw)16:54
Wizzup12:58 < uvos> in portrait there is little space17:22
Wizzupmaybe look at fremantle17:22
Wizzupthey have a dialer, and then in call, you can get a dialog17:22
uvos?17:23
uvosyou mean for dtmf?17:23
Wizzupyes, for buttons17:23
uvosthats how android and sphone works17:23
uvosallready17:23
uvosthis was about adding more info to recents17:23
Wizzupk17:23
uvossicelo: the vol keys do change direction according to orientation17:25
uvosi gues you turned it off17:26
uvossince i did add a option for this in the volume applets ini17:26
uvosbut its on by default17:26
uvosand i just confirmed it dose still work absolutly fine17:30
uvos(when you turn it on)17:30
uvosi think we should turn it off by default, since this feature is bad for muscle memory even if you can get used to it and its pretty broken (also on freemantle) since it sometimes works but sometimes doset17:31
uvossince its related to h-ds rotation, but some apps rotate themselves (like esp egregious  tklock but also plenty of others)17:33
uvosand in those apps you end up in portrait but with the volume buttons not swapped17:33
uvosand in apps where the volume buttons do something other than volume, its up to those apps to swap the direction, which generally they do not17:34
uvosall in all this makes which of the volume buttons being + at any given moment to be essentaly random17:34
uvosand then you have the issue that when the display  is off, you need to remember what oritentation the device was in when you turned the display off to figure out what the volume buttons will do17:37
uvosover all this feature is just broken and terrible ux in general.17:37
uvosearly versions of android also had this feature btw, with simmilar problems - they eventually gave up on it with imo good reason17:40
kivaWizzup: screen brightness control in settings works with PP, but change is smooth and takes some seconds.17:54
Wizzupare you on -devel17:57
kivano I am on stable17:58
Wizzupok, maybe that is the difference17:59
kivainky: that diode remove for from Pinephone Keyboard to get faster charge between batterys is little bit risky, because I think that remove over voltage protection.18:03
kivaMy temporary solution is check charge of both batterys with command: grep -E 'CAPACITY|STATUS' /sys/class/power_supply/*/uevent"18:08
kivawithout that "-char in end :)18:08
sicelokiva: so the keyboard's battery does show up in /sys/class/power_supply/  ?18:11
kivayes18:11
kivathat command shows like this: /sys/class/power_supply/axp20x-battery/uevent:POWER_SUPPLY_STATUS=Charging18:13
kiva"/sys/class/power_supply/axp20x-battery/uevent:POWER_SUPPLY_CAPACITY=5418:14
kiva"/sys/class/power_supply/ip5xxx-battery/uevent:POWER_SUPPLY_STATUS=Full18:14
kiva"/sys/class/power_supply/ip5xxx-battery/uevent:POWER_SUPPLY_CAPACITY=100"18:14
sicelocool. if you don't mind, paste output of `upower -d` on some pastebin.18:15
kivahere you are: https://pastebin.com/FdGEhFVr18:23
kivaand sudden power off comes when axp20x (phone side battery) gets 0 and maemo battery indicator near clock says full.18:28
kivaI just measured that charger draws 5.7 W when Keyboard side battery is full and phone side not...could that be near charging power between batterys?18:30
buZzin power_supply/* somewhere you can find how hard its charging too18:32
buZzi made https://space.nurdspace.nl/~buzz/maemo/batmon.py which isnt very finished18:32
buZzbut can show how much power goes into device or battery18:32
buZzhttps://space.nurdspace.nl/~buzz/maemo/2023-01-13-044313_960x540_scrot.png  <- green is 'total coming in from USB' , but the purple part is 'gets removed to operate the phone'18:33
buZzthe red is 'discharging from battery18:33
buZz'18:33
buZzthe darkgreen in background is battery voltage18:33
buZzalso, i made this on droid4 , you might need to edit some things for pp or n900, but not a lot18:34
kiva"/sys/class/power_supply/axp20x-battery/uevent:POWER_SUPPLY_VOLTAGE_NOW=3811000"18:37
kiva"/sys/class/power_supply/axp20x-battery/uevent:POWER_SUPPLY_CURRENT_NOW=81000"18:37
sicelokiva: the battery icon uses upower, hence the request for `upower -d`18:38
kivaand it shows full right now18:40
WizzupbuZz: does that use upower?18:40
Wizzupah, no18:41
buZzit parses the /sys/class files18:42
buZzalso, there's still a weird bug that makes it use a lot of cpu all the time, while not doing anything18:42
buZzi must misunderstand the QT event loop :P but this was my first qt python thingy18:43
buZzthe high cpu isnt really noticable though, i mean, on droid4 i barely notice it from other applications18:43
sicelokiva: thanks for that output. i guess battery_ip5xxx is keyboard's charger? needs fixing since it currently shows up as a battery, not charger/line-power18:50
kivaI think battery_ip5xxx is battery of keyboard.18:52
kivaand charger is Device: /org/freedesktop/UPower/devices/line_power_ip5xxx_boost18:55
sicelosorry, i meant evices/battery_ip5xxx_usb native-path:18:56
siceloip5xxx-usb in sysfs ... that sounds like a charger to me18:57
kivagrep -E '=' /sys/class/power_supply/ip5xxx-usb/uevent19:04
kivaPOWER_SUPPLY_NAME=ip5xxx-usb19:04
kivaPOWER_SUPPLY_TYPE=USB19:04
kivaPOWER_SUPPLY_PRESENT=119:04
kivaif I take charger out from keyboardside USB port PRESENT=019:05
siceloexactly :-)19:06
siceloso yeah, that driver is reporting it as battery, not charger. it's fixable - n900 had same. or someone already fixed it upstream by now19:08
siceloi don't like that 153% in DisplayDevice ...19:09
kivabut Maemo does not show that like PostmarketOS do (or did, I have not used it at all anymore)19:10
kivaMaemo shows keyboard side battery near clock, not phone battery itself, so that is reason why it can go 0 without warnings.19:13
buZzmight just need some method added to show two batteries19:17
kivaif keyboard side battery is empty and you restart then Maemo shows phone side battery.19:17
kivabuZz: tha would be best.19:17
buZzright? there is plenty of space for another percentage i think19:17
buZzkiva: maybe someone can point you to where in our sourcecode that stuff exists, or you can find it yourself19:18
buZzimprove it, send a patch :)19:18
kivasorry I cannot C++ that much, I am old school basic+assembler guy.19:19
sicelohttps://github.com/maemo-leste/status-area-applet-battery19:20
siceloit currently takes first battery reported by upower. we could make it parse all of them19:21
kivawould it help also Droid4 users that have Lapdock connected?19:27
sicelono19:30
sicelohttps://github.com/maemo-leste/status-area-applet-battery19:30
sicelothe lapdock just acts like a power bank19:31
siceloafaik19:31
WizzupI think it's exposed as a second battery at least19:31
Wizzupoh lapdock, sorry19:32
Wizzupgot I'm hazy today19:32
Wizzupgod*19:32
buZzsicelo: quite sure thats what kiva wants :) (to see all batteries)19:41
buZzno idea if we support any other device where >1 battery exists19:41
sicelokiva: is last comment in https://github.com/maemo-leste/bugtracker/issues/726 actually true for ppkb? i.e. when ppkb has > 0%, internal battery is guaranteed to also report > 0%, or at least be in charging state19:41
buZzmaybe some x86 laptops i guess19:41
sicelobuZz: yes i understand. i've brought up this topic here before (leading up to that issue 726). at the time, i was fixing the battery reporting wrt N900, which also has two batteries according to kernel (we have two fuel gauges for the same battery)19:44
buZzooo that makes that all a bit more difficult19:46
buZzare the two gauges even in agreement on n900? :D19:47
kivasicelo: at least it does no power off before internal battery goes 0%19:48
sicelobuZz: yes, although each provides slightly different properties. e.g. rx51-battery reports charge design full, while bq27200 doesn't (it can't).19:50
kivabuzz: it would it be cool splitted hardware battery, N900 always on, only change half of battery ;)19:50
sicelokiva: ok. maybe someday i can work on my #2 idea from that issue. not anytime soon though19:51
kivathat sounds good.19:54
sicelobut i think i have some basic clue how to at least start. i think a major issue would be - how to know which icon is for which battery :-P19:54
buZzkiva: you can subscribe to that github issue to get email notified when stuff happens ;)19:55
buZzsicelo: maybe some simple gravicon alike setup? just turn whatever device name into some basic image19:56
kivasicelo: if there is two icons, order would be always same?20:00
siceloupower asks udev for devices in power supply ... no idea if they're reported in any special order20:04
kivahow abou color number 8 first bits based to device name ascii-number.20:06
kivaassuming that display uses at least 16-bit colors.20:09
kivabtw..old Apple Powerbook G3 had possibility for two batterys, if take CD-ROM drive out...but Debian had drop support for 32-bit PowerPC..so no Leste for that :(20:18
kivasicelo: actually it is easy know which icon is for which battery, phone side battery always charging and keyboard side battery always discharging when PPK is without charger.20:54
sicelothe applet needs to be generic :-)20:57
kivathen something color difference based to device name.21:11
buZzgravitar, thats the algorithm i ment for 'colored shape from namestring'21:38
sicelolink?21:54
buZzit seems closed https://docs.gravatar.com/api/avatars/hash/22:04
buZzah https://www.libravatar.org/22:05
buZzmaybe something like https://robohash.org/  https://github.com/e1ven/Robohash would be more fun ;)22:07
buZzalso handy for the addressbook :P22:07
arno11Wizzup: i fixed the sound remixing issue on n900 locally: it was not possible to take/make a call (properly) while playing music or something else playing any sound23:01
arno11remixing is deactivated by default in daemon.conf23:01
inkykiva, are you still here? there is a debian fork for ppc32. and gentoo. i can find you link to ppc32 unofficial debian.23:10

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