libera/#maemo-leste/ Wednesday, 2022-06-01

missMyN900Wizzup, sixwheeledbeast: https://paste.debian.net/1242621/ on PP running the 05/29 image (no apps open, charging)00:02
missMyN900I have installed the WiFi switch applet this time too, so I will trying that. At least that should work.00:05
missMyN900norayr: never mind, I see it is already available!00:06
missMyN900going devel now00:09
missMyN900status menu volume applet has been installed automatically00:33
missMyN900going to test it00:33
missMyN900doesn't work00:35
missMyN900updated sinks.ini; will try again00:38
missMyN900the stock minimal brightness on the Pinephone is way too high. After some trial and error I finally managed to lower the brightness with redshift (which I use on my computers to reduce blue light in the evening)06:25
missMyN900I mean the brightness with status area applet, of course06:26
missMyN900smplayer froze multiple times for some reason during opus playback06:28
missMyN900(with mplayer as backend)06:28
missMyN900using mplayer from the terminal app I did not experience this problem with the Opus files06:28
missMyN900I think I also experienced some general Hildon/X freezes06:29
missMyN900the audio experience still stucks on the PP06:30
missMyN900status area volume applet still does not work06:31
missMyN900with devel enabled (after rebooting)06:31
missMyN900and updating sinks.ini (after rebooting, again)06:31
missMyN900pavucontrol-qt is useless because you can't scroll to access the lower output sink, which happens to be the relevant one...06:31
missMyN900only pavucontrol (GTK3) works06:32
missMyN900however, I discovered that it is also not a good idea to leave pavucontrol running because it causes high CPU usage06:32
missMyN900the application itself uses 22% but pulseaudio usage for some reason jumps from 8 to 20% as well06:33
missMyN900and Xorg also uses a lot of CPU when pavucontrol is running06:33
missMyN900hmm06:35
missMyN900according to pactl info: Default Sink: alsa_output.0.HiFi__hw_PinePhone_0__sink06:35
missMyN900looks like it was not a good idea to change sinks.ini06:35
missMyN900and this is with a fresh install (05-29 image with devel enabled)06:36
Wizzup23:57 < missMyN900> norayr: I have an excellent porting suggestion for you: desktop command execution widget!10:02
Wizzupdidn't sicelo do thta?10:02
WizzupmissMyN900: that's a lot of interrupts10:03
_uvos_intterupts whilest on ac power dosent tell us mutch15:18
_uvos_some drivers ajust behavior15:18
_uvos_crust allows suspend & reaction to modem, not the same kind of pm as omap afaik15:19
_uvos_that widget is in the repo allready15:19
_uvos_try QT_SCALE_FACTOR=1.5 pavucontrol-qt -platform xcb -style fusion15:19
Wizzupright, omap pm is different15:20
_uvos_i gues you could try implementing some kind of ip push notifications on the crust uc15:22
_uvos_to further paper over the pm gap on pp15:23
humpelstilzchen[iirc wifi can not wakeup the PP from crust. Only the modem, rtc and a few others15:24
_uvos_that (or mp3 decoding) would also be really neet on omap4's cortex m4 cpus15:24
_uvos_which you can use for anything15:24
_uvos_humpelsilzchen: ok not sure what crust has access to in hw15:25
_uvos_on omap4 the equivalent can access any bus iirc15:25
_uvos_and could directly talk to the wifi chip15:26
_uvos_this would involve the linux driver somehow handing hw resources over to the uc firmware.. diffiult15:27
_uvos_but possible15:27
Wizzupare there hidden services for devuan repos?15:42
Wizzupi.e. like https://onion.debian.org/15:42
Wizzupah they do15:45
Wizzupok, I'm able to update using only tor for devuan and maemo repos15:47
bencohnice15:49
bencoh:)15:49
missMyN900alright, so looks like I finally got the status menu volume applet to work20:56
missMyN900changed the sink to the "default sink" in the pactl info output20:56
missMyN900and rebooted and now I can see the slider in pavucontrol responding to the slider in the status area20:56
missMyN900but the sink suggested in that GH issue with "platform-sound" definitely does not work20:57
missMyN900maybe it worked on older images or maybe it does on older (distro edition?) 2/16 GB PPs but it certainly doesn't with my setup20:57
missMyN900_uvos_: I doubt crust depends on the modem. Remember, the A64 is a tablet SoC (that is also used in SBCs such as the Pine A64 and laptops such as the original Pinebook)20:59
missMyN900the majority of A64 devices does not have the Quectel/Qualcomm modem21:00
missMyN900the same applies for the other SoCs supported by Crust, which are settop box SoCs that are used in SBCs (except for A83T)21:01
humpelstilzchen[missMyN900: (slider) cool, what exactly did you write in the file and maybe you should add that to the ticket21:03
missMyN900humpelstilzchen[: [9:35:34 pm] <missMyN900> according to pactl info: Default Sink: alsa_output.0.HiFi__hw_PinePhone_0__sink21:03
missMyN900I put that sink in sinks.ini21:03
missMyN900I did not have time to test it yesterday, so I just powered off the PP for the night21:04
missMyN900and booted it up today and now it seems to be working21:04
missMyN900still need to test with (s)mplayer though21:04
WizzupmissMyN900: check @ getting it to work21:25
WizzupmissMyN900: I think crust depends on the modem to wake it up is the point21:25
missMyN900it is working with mplayer!21:27
missMyN900this is a big improvement21:28
missMyN900Wizzup: most A64 devices do not even have a modem. Crust runs on the Allwinner AR100 (an OpenRISC microcontroller) of the Allwinner SoC.21:32
missMyN900"Similarly, Crust is the lowest-level firmware component that runs on $FRUIT (Banana, Orange, Lichee) Pi single-board computers and other Allwinner-based devices, such as the Pine64 Pinebook and PinePhone."21:33
missMyN900"Note that Crust only provides the mechanism for deep sleep. It does not dictate any system sleep policy. Specifically, Crust does not decide when to go to sleep; the Linux kernel or userspace does that. And with one exception (listening for IR remote control key presses), Crust does not decide when to wake the system up, either; the hardware, as programmed by Linux, does that. Crust is designed to be a mostly-invisible21:34
missMyN900implementation detail of the Linux power management interface."21:34
humpelstilzchen[check /sys/class/wakeup21:34
humpelstilzchen[there are a lot wakeup sources21:34
missMyN900humpelstilzchen[: ok but my point is crust does not depend on the modem. And I don't think that ML should rely on the modem since it would be nice if the pm transferred to the Pinetab, which does not have a modem21:37
missMyN900furthermore, it would be nice if the pm still worked properly with the modem kill switch enabled (or the modem otherwise turned off) on the PP21:38
humpelstilzchen[missMyN900: if in doubt just use the rtc to wakeup21:38
missMyN900humpelstilzchen[: are you saying there is a manual way I can put it into deep sleep?21:39
humpelstilzchen[you might want to keep the modem wakeup source enabled for e.g. wakeup when there is a call.21:40
humpelstilzchen[missMyN900: manual way see https://wiki.pine64.org/wiki/Crust21:40
missMyN900it uses systemd though :/21:41
missMyN900oh there is non-systemd option21:41
missMyN900so basically I can just experiment with this?21:42
humpelstilzchen[sure21:43
missMyN900interesting :)21:43
missMyN900I am also interested in the unofficial modem "firmware"21:43
missMyN900it can lower the Quectel A7 frequency to 100 MHz from 800/400 MHz21:44
humpelstilzchen[missMyN900: you can also spy on e.g. sxmo how they are using it: https://git.sr.ht/~mil/sxmo-utils/tree/d2d06ef65ac63af41516d334cd8a5446a0f20cc3/item/programs/sxmo_screenlock.c21:44
missMyN900so they are doing all this stuff from userspace?21:44
missMyN900I thought I would have to become a kernel hacker to do this myself21:44
humpelstilzchen[the kernel part is mostly done it seems21:45
humpelstilzchen[firmware: You are talking about https://github.com/Biktorgj/pinephone_modem_sdk I guess.21:46
WizzupmissMyN900: the point is that crust without any way to wake it up on action doesn't help21:46
missMyN900yes21:46
missMyN900is there a way to use the power button to wake it up?21:47
humpelstilzchen[I can't say anything about it, since I don't have a sim in the PP, but I've installed the open firmware. GPS still works21:47
humpelstilzchen[power button is already active wakeup source21:47
missMyN900so it is already going to deep sleep?21:47
missMyN900when the screen is locked?21:47
missMyN900battery life does not seem to reflect that...21:47
humpelstilzchen[no, leste does not do that yet. You still need to manually start the crust sleep21:48
humpelstilzchen[but you can that with the simple echo mem > /sys/power/state21:48
missMyN900oh but I can just put it in suspend and it will already automatically wake up when pressing the power button?21:49
siceloYes21:50
missMyN900why didn't anyone tell me this before? :D21:50
missMyN900it is working!21:51
missMyN900I did it over ssh and then the command appears to "hang" (since it has already gone into deep sleep)21:51
missMyN900and when I press the power button the command "returns"21:51
humpelstilzchen[wakeup crashes my pp from time to time. Had no chance to debug that yet. Also I still have not soldered myself a pp debug cable yet21:53
humpelstilzchen[also you might want to disable some wakeup sources in /sys/class/wakeup/ or the PP will just randomly wakeup21:54
missMyN900the entire device or just X/Hildon?21:54
humpelstilzchen[?21:55
missMyN900can you still access it over SSH?21:55
missMyN900when that crash occurs?21:55
humpelstilzchen[no network, no x, nothing.21:55
missMyN900so kernel panic?21:56
humpelstilzchen[I guess so21:56
missMyN900maybe you could add some logging code that executes on wakeup?21:57
humpelstilzchen[the notification led is white, everything else is dark. The only thing I can do is long press the power button until it turns off21:57
missMyN900hmm noti LED is always white when it turns off21:57
missMyN900it always takes a little while for the LED to turn off21:57
humpelstilzchen[does not help since a flush is needed to write the disk. I will solder myself a serial debug cable one day21:58
missMyN900hopefully it will get fixed upstream21:58
missMyN900there may be people experimenting with this with SBCs (such as Pine A64)21:59
missMyN900if anyone wants to get a quick list of the PP wakeup sources, this is the easy way to get it: "cat /sys/class/wakeup/*/name"22:06
missMyN900humpelstilzchen[: one question that I have been wanting to ask (somewhere) but forgot to is, does the alternative modem firmware work with ofono too?22:46

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