libera/#maemo-leste/ Friday, 2022-02-11

rafael2kuvos: sphone now shows me: Unable to transmit dial number via ofono07:38
rafael2ksphone: comm-ofono: Dialing number: +7909627455707:39
rafael2ksphone: comm-ofono: Error: GDBus.Error:org.ofono.Error.InProgress: Operation already in progress07:39
rafael2kbut it does not seem related to sphone now... something wrong with telephony stuff07:42
rafael2krestarted the modem - all goodd07:51
rafael2kaudio routing is working!07:51
rafael2kalso:07:54
rafael2ksphone: playback-gstreamer: /usr/share/sounds/Nokia_tune.aac is not a valid file07:54
rafael2kthe phone does not ring07:54
rafael2kapart of that, all good, sphone is pretty useful! tks!!07:55
rafael2kbtw, I get this when restarting the modem: [50811.084706] udevd[9376]: failed to execute '/lib/udev/gpsd.hotplug' '/lib/udev/gpsd.hotplug': No such file or directory08:13
rafael2kbtw, lets please pack: https://github.com/rafael2k/firmware-pine64-ov564008:16
rafael2kfor pinephone camera support08:16
rafael2kjust a couple of v4l controls are missing from kernel drivers to have libcamera working08:47
rafael2kwhen I have time I'll implement them in the drivers08:47
Wizzuprafael2k: do you want the firmware to be a specific package or merged in with bt or something08:49
rafael2krafael2k: specific package08:52
rafael2kjust like in all the other distros08:52
rafael2kimho08:52
rafael2kWizzup:08:52
rafael2kfor the record, these are the v4l missing controls for ov5640: 0x009e0902 and 0x009e090108:57
rafael2kand for gc2145: 0x009e0902, 0x009f0902 and 0x009e090108:57
rafael2kneed to grep the headers to get their proper name08:57
rafael2kwith these we can have libcamera up and running08:58
rafael2kfor both front and back cameras in the pp08:59
rafael2k(and all the goodies of having a gstreamer source element)08:59
Wizzupok09:07
rafael2kindeed, today I manage to take the first picture in Maemo09:07
rafael2kwith both front and back cameras09:07
rafael2kbut using MegaPixels09:07
rafael2k*my first pictures in maemo with the pp09:08
rafael2k: )09:08
Wizzupcool!09:08
rafael2kMegapixels implementation is clean C code, I like, but is a bit too hardcoded for pinephone devices afaiu09:09
rafael2kand gtk4 too... does not compile in current Maemo09:10
Wizzupdo we need to support gtk4 at this point?09:10
rafael2kno no, I like the libcamera way... I'm using Megapixels just before we have maemo's camera-ui forward ported09:11
Wizzupok, no strong opinion on what our camera uit looks like imho, but check09:12
rafael2kme neither... but in case we need gtk4, would it be bad to add its package in the repo?09:13
rafael2kas a stop-gap for people who wants to take pictures right now09:13
rafael2k(before a maemonized camera-ui with libcamera get in place)09:13
Wizzupprobably quite some work to make it build and all integrated09:14
Wizzupbut yes, possible I suppose09:14
Wizzupand it'd lack any theming09:14
rafael2ktoo much work I think... this will come when maemo moves to chimaera...09:16
rafael2kI think I'll just strip the gtk4 parts of MegaPixels and make a cmd line UI for it09:17
rafael2k: )09:17
Wizzupok09:18
bencohisn't there a libcamera commandline client of some sort already?09:20
rafael2kyes09:20
rafael2kbut kernel drivers still misses some v4l controls09:20
rafael2kneed to spend some time, it not quite ready as I thought09:21
humpelstilzchen[what is missing?09:21
rafael2k<rafael2k> for the record, these are the v4l missing controls for ov5640: 0x009e0902 and 0x009e090109:21
rafael2k<rafael2k> and for gc2145: 0x009e0902, 0x009f0902 and 0x009e090109:21
rafael2ksome patches flying around here: https://github.com/kbingham/libcamera/issues/2809:22
rafael2kbencoh: not only a cmd line, but also a qt interface and gstreamer plugins  : )09:24
rafael2kholy shit09:28
rafael2kmy keyboard started working again09:28
humpelstilzchen[gut got the smoke back into?09:29
rafael2kthe only different is the kernel with new patches supporting it09:30
rafael2kbut I did not connect it to the socket yet09:30
rafael2knot pressed its button09:30
humpelstilzchen[I wouldn't, also better check the battery09:33
humpelstilzchen[Probably best is also to isolate the power line09:34
rafael2kmay be just use it as keyboard and forget about the battery... the smoke some days ago cant be something good09:36
rafael2kgood idea09:36
rafael2k[   11.446414] kb151 2-0015: Charger read failed - MCU returned 0xff09:41
rafael2kafter pressing the kbd button, I get: [ 1030.912480] kb151 2-0015: Charger is initialized09:45
rafael2kand I see in maemo the battery charging09:45
rafael2khum09:45
bencohuhuh09:46
bencohsounds reliable :*09:46
rafael2k:P09:46
humpelstilzchen[uh wow, I wonder what burned then09:47
humpelstilzchen[> [   11.446414] kb151 2-0015: Charger read failed - MCU returned 0xff09:50
humpelstilzchen[Afaik thats normal09:50
humpelstilzchen[the button is to wake the IC up09:50
rafael2kright, just realized that09:50
humpelstilzchen[in fact, I could just reproduce that on a non-smoking device09:50
rafael2kindeed, I can read voltages now, status and so on at /sys/class/power_supply/ip5xxx-charger/*09:50
rafael2kI'm just not very excited of connecting it to a socket09:51
humpelstilzchen[oh, so we have a kernel driver now, nice09:51
rafael2k: )09:52
bencohcould be a faulty cable (a short resulting in plastic smoking from overheat)10:10
rafael2kbencoh: indeed!10:13
Wizzupoh I need to build kernel for stable10:26
Wizzup(pine)10:26
Wizzupstarted it10:29
Wizzuprafael2k: so your keyboard works again?10:29
rafael2kWizzup: YES!10:58
rafael2k: ))10:58
uvosrafael2k: we dont ship any ringtones atm11:18
uvosrafael2k: you have to set some file you proivde yourself as a ringtone11:18
uvosrafael2k: in settings->profiles11:18
Wizzupshould we just package/import the nokia ringtones?11:49
uvosusing the nokia tune is asking for someone to check if they have rights to this11:49
uvossince its so well known11:49
Wizzupwell, we do11:50
Wizzupbut we can ask maemo orga as well11:51
Wizzupthey had a meeting last night so we might be able to ask them some of these questions11:51
uvosprobubly not worth it over a tune we dont want to use anyhow11:51
uvos(we want our won idenity)11:51
uvos*own identity11:51
Wizzupmhm11:52
uvosbut we should package some ringtones12:05
uvosthe model 500 sample from sphone is fine12:06
uvosbut we need a sms/notification ring tone12:06
uvosi had to delete the sphone one as we dident have rights to it (it was a recording of the ringer of a samsung feature phone)12:06
uvosthen in addition we can package the android ringtones, as they have clear licences (apache), obv they arnt usefull as defaults.12:08
Wizzuprafael2k: ok, kernel is in stable13:31
Wizzupuvos: right13:31
Wizzupfreemangordon: building your him changes for stable16:22
rafael2kWizzup: yay!17:02
rafael2krafael2k: so why sphone try to play a ringtone which is not package?17:03
rafael2kit is nice for nostalgia reasons17:05
rafael2klets pack all the tones17:05
rafael2kdo we have a package somewhere?17:05
rafael2kalso for camera-ui, there are lots of hardcoded paths for the tones, which can just be considered public domain, as small sound notes can't be propriety of anybody17:06
rafael2kI doubt any big tech would bother for a corner case use like ours, it is not even worth the salary of the lawyers17:07
Wizzupcamera-ui is foss?17:11
rafael2kyes17:13
Wizzupcheck, I didn't even look :)17:13
rafael2kThis program is free software; you can redistribute....17:14
rafael2khttps://github.com/community-ssu/camera-ui17:14
rafael2kbtw, this qt webbrowser is wonderful17:15
rafael2kthe only only my daugher can watch youtube without hassle17:15
rafael2kbut the vkb keeps showing up...17:15
Wizzuphm, maybe check with uvos on that one17:19
rafael2kwill connect my bt mouse in the pp17:20
rafael2kthe battery still did not end!17:20
rafael2k: ))17:20
Wizzupglad to hear it works17:20
rafael2klets see... I had not connected it to the psu yet17:21
rafael2kstill afraid17:21
Wizzupyeah..17:21
rafael2khttps://www.abradig.org.br/maemo-crazyness/video1.mp417:44
rafael2kmy first youtube video in the pp17:44
rafael2kfinally working on realtime and in sync with qt web browser17:44
rafael2khttps://www.abradig.org.br/maemo-crazyness/image1.jpeg17:44
rafael2khttps://www.abradig.org.br/maemo-crazyness/image2.jpeg17:44
rafael2ka couple of other pics17:44
rafael2kqt webbrowser playing 15min of video already in youtube, flawless17:45
rafael2kpavucontrol crashes X when clicking ramdonly17:45
rafael2k:/17:45
rafael2k<- I'm happy finally with my new Jornada 710 / N900 - like subnotebook!17:46
rafael2ktablet pc, whatever we call, with the bonus of 4G17:47
rafael2k: )17:47
Wizzupnice @ video screenshot17:49
rafael2kmy daughter complaining the video was too loud... eheheheh18:01
freemangordon:)18:01
freemangordonWizzup: great18:01
freemangordonso, what is the PP state now in regards to repos - do we have everyhting needed?18:02
uvosmce and ke-recv assume that the "slide" is "closed" when no keyboard slide key exists is attached18:08
uvosthere is currently no provision for a device with a keyboard that cant be retracted18:08
uvosso yeah the vkb shows because it thinks its needed18:08
uvosbtw hardware accleration in qwebengine is currently broken on pp for no reason18:10
rafael2kcan we hardcode this if the pp is with the keyboard attached (checking for hardware kbd is easy)?18:10
uvosit hardcodes xcb and wl as the only platform plugins where it tries to use accelrataion18:10
rafael2kbut video plays nicelly, much smother than in ff or chromium18:11
freemangordonuvos: hmm, maemo is xcb based18:11
uvossure, but not hardcode, mce needs assume extended if input devices covering all qwerty keycodes are present but not a slide switch18:12
rafael2kright18:12
uvosbut someone told me that the pp hwkbd dosent remove itself in evdev18:12
uvoswhen its removed18:12
uvosthat needs to befixed18:12
uvosfreemangordon: but its not the platform plugin XCB18:12
uvosit checks for the plugin called xcb specifcily18:12
rafael2kit does18:13
uvoswe need to complain to upstream, its stupid18:13
rafael2kbut I can double check this18:13
rafael2kuvos: but you can not remove the keyboard with the phone on anyway... so this is a no-issue18:14
freemangordonok, seems I am stupid too. WTF I have to do do get some sound out of my PP?!?18:15
uvosfreemangordon: update? rafael2k broke it for a while18:15
rafael2kfreemangordon: pactl set-default-sink 118:15
freemangordonjust did that18:15
freemangordonah18:15
rafael2kset-default-sink 118:16
rafael2kto /etc/pulse/default.pa18:16
freemangordonyeah, that fixed it18:17
uvosso .. why is that not in leste config18:17
rafael2kalso add:18:18
rafael2kload-module module-switch-on-port-available18:18
uvosright thats also needed for mapphones18:19
uvos(all devices really)18:19
freemangordonwe have some .d directories, can we use those?18:19
rafael2kthat is the issue...18:19
freemangordonWTYM?18:19
rafael2kno .d18:20
rafael2knot that me and Wizzup knows at least18:20
rafael2k:P18:20
freemangordonwell, I see client.d and daemon.d, what are those for?18:20
uvosdaemon.conf18:21
uvosthis is different than default.d18:21
freemangordondefault.d is not processed?18:21
uvosthe problem here (i think) is that we are running it system wide18:21
uvosfreemangordon: afaik no18:22
uvoswe should not be running it system wide18:22
uvosmainly18:22
uvosi gues we can work around this18:25
uvosusing deamon.d18:25
uvoswith default-script-file= drective18:25
uvosand mapphone.pa pinephone.pa etc18:25
Wizzupfreemangordon: uvos: this does not work18:25
uvosok18:25
uvoswhy not?18:25
WizzupI chased this down, these are different args18:26
Wizzupwe load system.pa18:26
Wizzupand we can include more files from there18:26
Wizzupe.g.18:26
Wizzup### Allow including a system.pa.d directory, which if present, can be used18:26
Wizzup### for additional configuration snippets.18:26
Wizzup.nofail18:26
Wizzup.include /etc/pulse/system.pa.d18:26
Wizzupbut this file (system.pa) is owned  by pulse, not us18:26
Wizzupand it doesn't include the include statement (doh)18:26
Wizzupdaemon.conf and clinent.conf afaik don't work for includes18:26
uvossure18:26
Wizzuphm, I suppose a default script file might work18:27
uvosbut default-script-file= pointing to a different file should work no18:27
freemangordonI got lost18:27
Wizzupuvos: not really different from diverting the whole system.pa but yeah18:27
uvosand then every device can have thair own18:27
uvoswell it needs no files we dont own18:27
freemangordonuvos: no, we rather have a default that has .include18:27
uvosbecasue we can add a deamon.d file18:27
uvosfreemangordon: cant do it without forking the package18:27
uvosi dont want to fork the package18:27
freemangordonwhy not?18:27
Wizzupwe can divert files18:27
Wizzup(from pulse)18:28
uvosits work18:28
Wizzupbut also we can include files from pulse18:28
freemangordonok, wait, whoi starts pulse?18:28
freemangordon*who18:28
Wizzupinit script18:28
uvosthis is bad too18:28
freemangordonwhich is provided by whom?18:28
uvoswe should have it dbus activated18:28
uvosus18:28
uvosbut thats not relevant18:28
Wizzupno no no, it runs in system mode18:28
freemangordonwhat it the issue then?18:28
uvosWizzup: sure but thats _bad_18:28
freemangordonplease, lemme explain18:28
WizzupI suppose we can set it in the init script18:28
freemangordonif init script is provided by us, we can pass different default.pa in cmd line. this default.pa will be provided by us18:29
freemangordonand will include .include statement to use .d directory18:29
uvossure thats no different than setting default.pa in deamon.d18:29
freemangordonand we put devices specific stuff in that .d directory18:29
uvos(the path to default.pa)18:30
freemangordonok18:30
freemangordonsom I don;t really understand the issue is OOB setup allows us to use different default.pa18:30
freemangordon*if OOB18:30
uvosexcept the init script method is more messy, since you have to have all the default.pas called the same18:31
uvoswith the deamon.d method you can give descriptive names18:31
freemangordonuvos: do we need to change from system mode to use daemon.d?18:31
uvosno18:31
uvosbut it confers other beneifts18:31
uvosits not relevant in this case18:31
freemangordonok, I am lost again :)18:32
freemangordondo we have an issue or not?18:32
uvosno probubly18:32
freemangordongood18:32
uvosthe deamon.d method just has to be tried18:32
freemangordonWizzup said it does not work18:33
uvosno that was something else18:33
freemangordonah, ok18:33
freemangordonWizzup: daemon.d or daemon.conf.d?18:33
freemangordonoops18:34
freemangordonuvos: ^^^18:34
uvosman pulse-daemon.conf:18:34
uvos /etc/pulse/daemon.conf.d/*.conf18:34
uvosPATHS:18:34
uvosdefault-script-file=18:35
uvosThe default configuration script file to load. Specify an empty string for not loading a default script file. The default behaviour is to load ~/.config/pulse/default.pa18:35
freemangordonyeah18:35
uvosno so no problem18:35
uvosjust have /etc/pulse/daemon.conf.d/mapphone.conf point to /etc/pulse/mapphone.pa18:36
uvosetc18:36
freemangordonuvos: hmm, "This startup script is used only if PulseAudio is started per-user"18:36
freemangordondefault.pa that is18:36
freemangordonso, it seems we use system.pa as Wizzup said18:36
uvosfreemangordon: sure but how i read this just changes the default18:37
uvosfreemangordon: not the baviro of the config option if set18:37
uvos*behavior18:37
freemangordonlemme check something18:37
uvosalso the man file is wrong18:38
uvossince i changed default.pa and it changed behavior18:38
uvos(and we are running system mode)18:38
freemangordonI get the comment from the script itsewlf18:38
uvosok main file explains the same thing18:39
uvos*man18:39
freemangordonI still think it is more clear to have our own system.leste.pa that incluides original system.pa and .includes system.pa.d18:42
uvosi dissagree, but i mean its not a big deal either way18:42
freemangordonuvos: that way we don;t need to fork18:43
uvosi know18:43
uvosbut i would like to avoid having random packages divert files of others18:43
freemangordonme too18:43
freemangordonthat's why my proposal18:43
freemangordonit is us that provide the init script18:43
uvosoh you want to use the init scipt18:43
freemangordonyes18:43
uvoseither variant is fine18:44
uvoswith me18:44
Wizzupuvos freemangordon can you test if this daemon.d thing works18:44
freemangordonsure, what you want me to do?18:45
freemangordoncreate daemon.d directlry or what?18:45
uvosdaemon.conf.d18:45
freemangordonit is already there18:45
freemangordonand we have 89-pinephone.conf.leste in it18:46
freemangordonand 89-pinephone.conf18:46
freemangordondo you want me to create some .pa file in it?18:46
freemangordonah, I think I get it, lemme try18:48
freemangordongetting there :) :18:55
freemangordonpulsecore/cli-command.c:2041:pa_cli_command_execute_line_stateful:stat('default.pa'): No such file or directory18:55
freemangordonyep, seems to work18:56
freemangordonlemme reboot to be sure18:57
freemangordonYAY! charging sound on startup18:59
freemangordonroot@devuan-pinephone:/etc/pulse/daemon.conf.d# cat 00-leste.conf19:00
freemangordondefault-script-file=/etc/pulse/leste.pa19:00
freemangordonroot@devuan-pinephone:/etc/pulse# cat leste.pa19:00
freemangordon.include /etc/pulse/default.pa19:00
freemangordon.nofail19:00
freemangordon.include /etc/pulse/leste.pa.d19:00
freemangordonroot@devuan-pinephone:/etc/pulse/leste.pa.d# cat 00-default.pa19:01
freemangordonset-default-sink 119:01
freemangordonload-module module-switch-on-port-available19:01
freemangordonuvos: Wizzup: ^^^19:01
Wizzupthat sounds good19:01
WizzupI had some trouble with the include calls earlier when I tried it, so please check if it works on d4 or so as well19:01
freemangordonat least on PP this seems to give sound on reboot19:01
Wizzupwell if you test on pp this is ok19:02
Wizzupok19:02
WizzupI need to go afk for a while19:02
freemangordonand this is stock PP, I have modified nothing19:02
freemangordonme too19:02
Wizzupok19:02
freemangordonbrb, dinner19:02
uvosthat sounds good19:04
uvosbut lets have a  00-default.pa  with just "load-module module-switch-on-port-available"19:04
uvosin leste-config-common19:04
uvossince all devices need that19:04
uvosand then 20-pinephone.pa with set-default-sink 119:04
freemangordonyeah, sure, this was just a POC19:05
uvosright19:05

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