libera/#maemo-leste/ Monday, 2024-01-22

humanbetaI tested Motorola Altrix Lapdock with Pinephone Keyboard..it works..have to push two times button of PP Keyboard and write: xrandr --output HDMI-1 --mode 1366x76811:14
humanbetaneeds quite many adapters to get connected.11:18
humanbetabrightness controls and volume controls (inverted) works.11:35
Wizzupcool11:35
Wizzuparno11: cmt_pulse starting later, is that because otherwise pulse is not ready yet, or?11:37
arno11Wizzup: hi, nope cmt_pulse works fine excepting the alerting tone11:49
humanbetahere is command needed to touchpad scrolling screen to see all pixels from right side of PP with Motorola Altrix: xrandr --fb 1440x768 --output HDMI-1 --mode 1366x768 --panning 1440x011:57
arno11Wizzup: starting cmt_pulse a bit later makes things working fine (like starting cmt_pulse from the user session)11:58
humanbeta*Motorola Altrix Lapdock11:59
arno11now we just need to find a clean way to set RT prio for PA and sphone (cmt_pulse doesn't need any particular prio now)12:00
Wizzuparno11: what I mean is that it doesn't work when started earlier?12:03
Wizzuparno11: also, does sphone really need RT? not just PA?12:03
uvos__sphone in a call dose exactly nothing, it sits in select12:06
Wizzupyeah12:06
uvos__rt prevent sphone from being swapped out12:06
uvos__swapped out sphone might be a problem when a call comes in12:06
uvos__and when you want to stop a call in extream circumstances12:06
uvos__but this is better solved by a cgroup12:07
uvos__that mlocks12:07
arno11Wizzup: as i said it works fine if it starts earlier12:08
Wizzuparno11: ah ok, because your last commit makes it start later12:10
arno11yes ofc, to make the alerting tone working again12:11
Wizzupuvos__: I see12:11
Wizzuparno11: ok12:11
arno11for sphone, i really don't know12:11
Wizzupit might be the swap thing12:11
arno11yes indeed12:12
uvos__Wizzup: oh btw, your sphone.ini.d file for sphone12:15
uvos__i dont like that i lacks a number prefix, sphone sorts the files based natsort haveing a name like 50-* makes it obvious what overrides what12:16
Wizzupok, easy fix12:16
uvos__yeah just mentioning12:16
Wizzupre droid312:18
WizzupI don't know what to do next other than analyse the regs and make an empty dts, but I will probably go back to tp first since I feel I'm not effective in this area12:19
uvos__Wizzup: ok12:20
uvos__ill diff the cpcap regs soon12:21
uvos__looking for sutch issues is never very effective12:21
uvos__lots of blind poking around with a stick12:22
uvos__i want jtag :(12:22
Wizzupyeah, but I also forgot what we did like in 2020 or 2021 wrt sgx so that doesn't help either :p12:22
Wizzupok @ regs, I will keep the devices close by so I can do/run other stuff as needed12:23
arno11Wizzup: ah, looking @my notes, sphone rt prio was a workaround when N900 was using 24bpp...because most of the time sphone window was too slow to appear during an incoming call.12:30
arno11now it seems fine with stock freq and 16bpp (and no sphone rt prio)12:31
arno11so we just need to focus on PA12:33
arno11btw giving high rt prio to PA makes yt-dlp working amazingly well to stream videos on n90012:36
arno11the trick is to get the real google video link through yt-dlp with --get-url option (it takes around 20sec) and then start the stream from smplayer.12:39
arno11it works with live streaming as well (if 240-360p is available ofc)12:40
Wizzupwe shouldn't need too many of these rt tricks, maybe we should figure out what it really does for you12:41
arno11there is just one trick now: PA12:43
arno11and that's not really a trick with a low power device imo12:44
WizzupI understand, we need to up PA scheulding prio12:46
Wizzupoh, ok, I misread what you wrote earlier12:47
arno11:) no probs12:47
Wizzupdoesn't pa have a realtime flag/option?12:47
Wizzuprealtime-scheduling in daemon.conf?12:47
Wizzupor, how do you set ti?12:47
Wizzupit*12:48
arno11the rt flag in daemon.conf doesn't work12:48
arno11only chrt works without rt kernel iirc12:49
Wizzupok12:49
arno11bbl13:02
uvos__cgroups would work13:25
uvos__idk how to manage cgroups without the advantage of systemd however13:25
Wizzupopenrc can do cgroups for sure13:25
uvos__a rt and a mlock cgroup would be great13:25
Wizzuphttps://wiki.gentoo.org/wiki/OpenRC/CGroups13:26
uvos__Wizzup: sure but openrc dosent start processies in user contexts13:26
uvos__Wizzup: systemd-user is another full systemd for eatch session that allows one to do these kinds of things properly13:26
Wizzupisn't pa still started through /etc/init.d ?13:26
uvos__pa sure13:26
uvos__but the stuff we want to mlock no13:26
uvos__actually pa no13:27
uvos__we switched to session pa a while back13:27
Wizzupit looks like with cgclassify one can move processes to a cgroup13:28
Wizzupor through procfs or so13:28
uvos__i gues we have to add this to dsme, which itself is really just a hack around not having a real session level init itself anyhow13:28
Wizzupmore than anything it just predates a lot of this stuff :)13:29
uvos__but then it wont work for dbus activation13:29
uvos__hmm13:29
freemangordondsme already moves processes it starts to elogind session if one exists (and is defined through env var)13:34
freemangordonmoving process to elogind session is basically assigning it to a cgroup13:34
freemangordonso at least XSession dsme started processes already belong to /sys/fs/cgroup/elogind/c1/13:35
freemangordonuvos__: but, my cgroups-fu is not good enough so I have no idea what will happen if we create subdir of c1 dir with mlock and whatever cgroups settings we want for some pids13:36
uvos__freemangordon: thatl work but not for processies dsme dosent start directly like dbus activates ones13:37
Wizzupfrom a practical pov, do we need to mlock some of the dbus activated ones?13:38
freemangordondo we care? I mean - do you have a particular process in mind that woudl suffer from that issue?13:38
freemangordonWizzup: exactly13:38
freemangordonuvos__: we can always pre-start dbus process13:39
freemangordonif we want it mlocked or something13:39
freemangordonuvos__: on fremantle, those thing are done by ohm13:40
freemangordonso, we can choose to have ohm in leste as well13:40
uvos__i gues, but n900 would probubly be thankfull if not everyhing where started on boot directly since it gets hit pretty roughly on boot13:40
freemangordonright, but thats another story, like, we shall reconsider what needs to be started in xsession.d and what in xsession.post13:41
freemangordonassigning pids to cgroup is orthogonal to that, no?13:42
freemangordonalso, I think elogind supports some kind of "process started" agent13:42
freemangordonso we may hook on that13:43
uvos__no idea, maybe13:44
freemangordonstill, what will happen if we move a pid from c1 to a subdir, do you know?13:44
freemangordonor, it has to be in both dirs?13:44
freemangordonI don;t really have details on how cgroups work in that regard13:45
uvos__im pretty fuzzy on this since systemd deals with the details with this on other systems13:46
uvos__but i seam to remember the hierachy gettig removed in cgroups213:46
uvos__so that may be legacy in the first place13:46
uvos__but i would have to look it up13:47
freemangordonplease do what you have some spare time13:47
freemangordon*when you*13:47
freemangordonas without those details we won;t be able to fix it properly13:47
freemangordonI'll experiment a bit on leste as well in the meanwhile13:48
uvos__check13:48
freemangordonhmm, we cannot mlock through cgroups13:57
freemangordonwe can only set swappiness to 013:57
freemangordonI have to check what ohm does on fremantle14:00
uvos__cgroups has unevictable which is mlock14:22
uvos__besides some difference in behavirou around non-anynomes mmaps14:23
diejusetesting testing17:30
Wizzupworks17:49
diejuseperfect. It illll17:54
diejuseFrom Maemo Leste, proot, Z Flip5, Pidgin app17:55
diejuseand okuda theme hehe17:58
arno11diejuse: Leste proot on Z Flip5 ? amazing !!!17:59
diejuseyes!18:00
freemangordonvideo or didn't happen :p18:01
bencohusing halium ?18:04
diejuseI will make and upload a video when all problems are solved. osso apps not working for example18:04
bencohwhich makes me think ... maybe I should try using proot for the crossbuilder instead of lxc18:05
bencohit might be simpler for everyone18:05
freemangordonI guess maemo-launcher is not started18:05
bencohdiejuse: how does the graphic stack work with proot on android?18:06
diejusei am shopping. latter I will tell18:07
bencoh:)18:07
diejusebencoh When I chrooted Maemo with my Unihertz Titan smartphone I used XSDL Xserver app as X Window System / X11 server for Android. Now I am using Termux-X11 which works better. It is more efficient and uses less battery.22:19
diejusebattery power22:19
diejuse96freemangordon The problem is "/etc/init.d/dbus start". I get  "[FAIL] dbus is not running ... failed!".  And errors like "Failed to connect to socket /tmp-dbus-xxxxxxx: No such file or directory" from hildon-home, hildon-desktop and hildon-input-method22:26
diejuse96But that happens on my Z Flip5 (Android 14) and Surface Duo (Android 12) but not on older phones like Blackberry Key 1 (Android 7) and ZTE Axon M (Android 7). Apparently the higher the version of Android, the more secure it is and the more difficult it is to root and mount directories such as /proc and /sys.22:29
diejuse96The fact is that on the most modern mobile phones I cannot see the time in the status bar, nor open other apps such as X terminal, Setting, Clock, PDF reader, App manager. But I can use LXTerminal, Abiword, Thunar... The main screen backgrounds and window management work well.22:33
freemangordondiejuse96: without session bus...22:46
freemangordonwhy would dbus not start?22:47
diejuse96I'm investigating but I don't know. It throws an error message: "/etc/init.d/dbus: 50: [: -lt: unexpected operator" and then "[ok] Starting system message bus: dbus" but it is not real because with "/etc/init .d/dbus status" get FAIL.22:53
freemangordonah, startup script fails22:58
freemangordonhmm, /etc/init.d/dbus is not provided by us, it is dbus package that provides it, afaik22:59
freemangordonyeah, that's upstream provided22:59
freemangordonseems shell interpreter is buggy or something23:00
diejuse96In any case, I modified the shebang of the script to bash and adapted line 50, ensuring that there were no errors. But it still doesn't work. Therefore I think the script is not the problem. As I said before, on my older phones with Android 7 there is no problem with the script.23:00
freemangordondif you try to run dbus by hane, to see if it starts?23:00
freemangordon*hand23:01
freemangordonI mean dbus the binary23:01
diejuse96The truth is that I don't know what the problem is. Well, in summary, I think the problem is proot with Android 14 is more difficult for security reasons than with Android 7.23:01
freemangordonI see23:01
freemangordonwell, I can;t help here, my android knowledge is close to zero23:02
diejuse96What is your daily use smartphone? I'm curious,23:08
Wizzupnokia n900 ;)23:08
diejuseThe best. It is the phone that I remember best and that is why I try to emulate its system on modern cell phones. Unfortunately the battery had a very short life.23:14
diejuse*has23:15
diejuseWhat steps do I do for vertical rotation?23:19
Wizzupdiejuse: xrandr might be enough23:43
Wizzupbut there is also a dbus message to change rotation23:43
Wizzupor a signal, rather23:44
diejuseI understand. Is it possible to open an application like osso-xterm without using dbus, how can I do it with xfce4-terminal?23:45
WizzupI am not sure if I fully understand the question23:46
diejuseI mean that, using Maemo proot on modern Android smartphones, I can open Debian applications but not Maemo's own applications such as osso-xterm, Settings, Clock, PDF Reader...23:48
diejuseThe reason is that with Maemo's own applications I get the error "Could not connect to System D-Bus. Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory". I don't have that error when I open Debian applications.23:49
Wizzupright, mameo-launcher might not be running23:50
Wizzupor at least applications can't talk to it over dbus23:50
Wizzupthat is definitely worth fixing23:50

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