libera/#maemo-leste/ Sunday, 2025-01-12

* inky got mz617 in summer in hope to use it with maemo. it lives in a drawer waiting for better times.02:07
Wizzup~07:38
freemangordonhmm?07:38
Wizzupinky: OBlag :)07:38
Wizzupfreemangordon: lag07:39
Wizzuplol07:39
freemangordonheh07:39
Wizzupinky: soon enough07:39
WizzupI am using mz617 now with qalendar and apart from qalendar sometimes crashing it's quite nice!07:39
Wizzupfun to type notes and tasks using the vkb only in qt07:39
freemangordonWizzup: hmm, not sure what to do08:22
freemangordonseems xorg has issues with drm devices order08:22
Wizzupfreemangordon: this being multiple 'video cards' in drm or something?08:40
freemangordonyes09:14
freemangordonlike we have on omap09:14
freemangordonfor example modesetting will use card0 by default, despite it is for SGX09:15
freemangordonI am just moaning, not that we can do anything about that09:15
freemangordonI'll just fix omap driver to return false from Probe function if there is platform probe support in xorg09:16
freemangordonnot sure that's the proper way, but meh09:16
Wizzupfreemangordon: we might be able to set te card in xorg.conf11:22
Wizzupif they are predictable (usually no0t11:22
freemangordonWizzup: no, I just disable driver probe if platform probe is supported13:37
freemangordon(whatever those are :) )13:37
freemangordonWizzup: ok, got it working with daedalus Xorg, will take a rest and will push the changes14:15
freemangordonbtw, do we have fulscreen QT application to test with, if it still crashes SGX?14:15
Wizzupfreemangordon: I think we can add that to jib14:29
Wizzup(again)14:29
Wizzupfreemangordon: great!14:29
freemangordonWizzup: well, but I want to test before we put anythong in the repo14:32
freemangordon*anything14:32
freemangordonmaybe smplayer14:32
Wizzupmpv?14:32
Wizzupfreemangordon: ok, but nobody uses repo yet14:33
Wizzup:)14:33
Wizzupit is just us14:33
Wizzupand only you have a d4 img14:33
freemangordonok, if you can do it14:39
freemangordonfort jib that is14:39
freemangordon*for14:39
freemangordonanyway, bbl14:39
dsc_yes jib crashed previously14:46
dsc_@fullscreen14:46
Wizzupfreemangordon: sure, when you push the changes I will test :D14:48
arno11note that it is not affecting only qt apparently, pcsx rearmed crashes in fullscreen with opengles rendering too16:04
arno11works perfectly fine in window mode even with scale x216:05
freemangordonWizzup: BTW, we have to change xorg service because of the changed log fule location18:12
freemangordon*file18:12
freemangordonWizzup: ok, with xorg/ddx from repos d4 boots to h-d18:20
freemangordonhmm, and it crashed :(18:22
freemangordonhmm, maybe low battery18:23
freemangordonno, it really crashes18:26
freemangordonwhat the?18:26
freemangordonhmm, maybe mce shuts-down because battery is not calibarated18:36
freemangordonyeah, ok, does not reset with charger connected18:39
sicelo:-)18:40
sicelostock upower?18:40
freemangordonyes18:40
freemangordonhmm, wait18:41
freemangordonI remember we changed the config18:41
freemangordonsicelo: do you know where config is?18:41
sicelowhile you debug, i'm interested in your `/sys/class/power_supply/...battery/uevent`18:41
sicelofreemangordon: config for?18:41
freemangordonupower18:41
freemangordonor, was it for logind?18:42
sicelo /etc/UPower.conf ... but UPower doesn't really have much options there18:42
freemangordonsicelo: uevent is from 6.6, what do you expect to see?18:42
freemangordonLinux devuan-droid4 6.6.53 #1 SMP PREEMPT Sat Nov 30 17:40:52 UTC 2024 armv7l GNU/Linux18:43
sicelojust what an uncalibrated uevent looks like. want to keep it for my notes, and perhaps future upower work18:43
freemangordonah, ok18:43
freemangordonI guess I will have to stop upower, roght?18:43
siceloi can get it from my D4 as well though, later on18:43
freemangordonhmm, seems I cannot stop it18:44
freemangordonsicelo: https://pastebin.com/xzUSnxiJ18:45
freemangordoncharger/no charger18:45
freemangordonI wonder why upower ignores POWER_SUPPLY_CAPACITY_LEVEL=High18:45
sicelowhen upower decides that shutdown should happen, it sends a request to logind for that. so a quick hack would be to request a shutdown inhibit lock through logind18:45
freemangordonbut we alredy do18:45
freemangordon*already18:45
freemangordonor, I thought so18:45
sicelofreemangordon: they say CAPACITY_LEVEL only matters for peripherals (they're wrong, and wouldn't budge)18:46
freemangordonbbiab18:46
sicelobut, upower maintainership seems to have changed since then, so we could have a go at this conversation with them18:46
Wizzupwe shouldhave logind ignore all of this18:54
Wizzupthe key names changed perhaps18:55
freemangordonWizzup: seems not18:55
freemangordonbbl, dinner18:55
Wizzupthey changed on my gentoo laptop recently18:55
Wizzupttyl18:55
siceloi'm also not in a position to check atm, but under normal circumstances (upower aside), i think we do want logind to respond to shutdown requests. e.g. users should be able to `loginctl shutdown` (which is basically the same request upower makes). leste currently works fine with this18:58
sicelowhat i would need to confirm is - who actually makes the request to shut down the system (Leste) atm - is it MCE, after receiving appropriate signal from upower, or the shutdown request goes directly from upower to logind19:00
sicelomost stacks simply let logind (and upower) handle this stuff on their own. in our case, afaiui, we want mce to control system shutdown, etc., so it would seem mce needs to start holding inhibitor lock against shutdown operation19:05
sicelohttps://systemd.io/INHIBITOR_LOCKS/19:05
siceloi think mce qualifies for the 'blocking' lock type in that documentation19:08
freemangordonsicelo: mce asks dsme which asks logind :D19:08
freemangordonit is not that simple19:08
freemangordonit is not only mce that can request shutdwon19:08
freemangordon(iirc)19:08
sicelobesides the user, who else can request it?19:08
siceloanyhow, since upower 1.90.5 (https://gitlab.freedesktop.org/upower/upower/-/releases/v1.90.5), upower can be told to do nothing when it thinks shutdown is needed. maybe this would suit our needs19:14
siceloi use that config under pmos with an udev rule that initiates shutdown when kernel sends uevent to say CAPACITY_LEVEL = Low/Critical, thus completely bypassing upower for making shutdown decisions19:17
freemangordoncool19:18
freemangordonhmm19:18
freemangordonupower                                         0.99.20-219:18
freemangordonwon't fly19:19
freemangordonmaybe we shal jump to upstream upoerw anyways19:19
sicelowhat glib2 is in daedalus? this upower needs at least 2.6619:20
sicelohttps://gitlab.freedesktop.org/upower/upower/-/releases/v1.90.319:20
freemangordonlibglib2.0-0:armhf                             2.74.6-2+deb12u519:22
siceloseems like this would be best option then :-)19:22
freemangordonhmm, latest is Released: 2025-01-0919:22
freemangordonlemme pull it19:23
halftux_Wizzup: My rpi3 was broken got in early stage ovserial console PMIC: timeout reading reg 00 (error -1)19:25
freemangordonsicelo: ok, upstream upower is entangled with systemd :(19:31
freemangordonI wonder if we shouldn't move to systemd19:32
sicelono, you can run it just fine without systemd. just need the correct ./configure options19:34
freemangordonok, but won;t' do it now19:35
sicelohaven't compiled it in a while, but iirc something like `-D systemdunitdir=/no`19:35
siceloit19:35
siceloit's "-Dsystemdsystemunitdir=no"19:36
freemangordonok, lemme check19:37
freemangordonin the meanwhile chromium crashes :(19:40
freemangordonhttps://pastebin.com/Hr6A3Mrs19:40
freemangordonsicelo: ok, upgraded upower, lets see if system wil boot at all :)19:43
freemangordonok, still boots19:46
siceloso you'll need to mod /etc/UPower.conf as per https://gitlab.postmarketos.org/postmarketOS/pmaports/-/blob/5f059f959e53395c7c9f3d15e5caa98f8f8f56cc/device/community/device-nokia-n900/upower.conf#L84-L10419:49
freemangordonnot now19:49
freemangordon:)19:49
sicelothen upower will never try to shutdown the system. obviously, that needs the shutting down decision to move somewhere else. i went with udev, but we can do it in mce perhaps19:50
sicelosure, no rush :-)19:50
freemangordonugh, will have to build mesa on device :(20:48
siceloi wonder how long that'd take on N900 ... a week? :-D20:53
Wizzupfreemangordon: why not on the armhf vm?20:54
freemangordonI'll directly build in ci20:55
freemangordonthe bug is abvious20:55
freemangordon*obvious20:55
Wizzupok20:55
freemangordonWizzup: BTW, we will have to set DPI21:50
freemangordonRN everything is tiny on d4 :)21:50
Wizzupthat's new22:02
freemangordonI think we were doing something about DPI?22:03
Wizzupdon't remember, now in leste-config I don't think22:03
WizzupX just reads dpi from screen22:03
Wizzupleste-config-common/etc/profile.d/gtk-maemo.sh.leste:export GDK_DPI_SCALE=1.722:03
Wizzupthere is this but I think this is gtk322:03
Wizzupfreemangordon: should I build a new img, or do you want me to wait?22:07
freemangordonI think you can22:07
freemangordonugh:22:08
freemangordondimensions:    960x540 pixels (203x114 millimeters)22:08
freemangordonhmm, wait22:08
freemangordonwhat should be the dpi?22:09
freemangordondimensions:    960x540 pixels (254x142 millimeters)22:09
freemangordon254x142, eh?22:10
Wizzupthat is the screen size22:12
freemangordonthe real dpi is 270, IIUC22:12
freemangordonnot 9622:12
Wizzup270 sounds about right22:13
Wizzupon chimaera X says DPI set to (96, 96)22:14
Wizzupnothing in xrdb22:14
freemangordonyes, but here it seems dpi is taken into account22:15
Wizzupby who? gtk? h-d?22:16
freemangordonxorg22:17
freemangordon*everything* is tiny22:17
Wizzuplooks like xorg changes more than we think :)22:19
Wizzup254mm = 2.5cm - that seems wrong, no?22:19
Wizzupwait, 25cm22:19
Wizzupthat's also wron22:20
freemangordonyes, it is22:20
freemangordonbut that's reported by xdpyinfo22:20
Wizzupit this in dts?22:20
Wizzupis this*22:20
freemangordonthat means dpi 9622:20
freemangordonI think it is nowhere22:20
freemangordonand xorg assumes dpi of 96 by default22:21
freemangordonand then simply multiplies the resolution22:21
freemangordona wild guess22:21
Wizzupyou can set it with xrandr --dpi I think22:21
freemangordonno efffect22:21
Wizzupor when starting X, or in config, or setting in dts I guess22:21
freemangordonconfig?22:21
Wizzupxorg.conf22:23
freemangordonok, but how?22:23
freemangordonhmm22:25
WizzupBy default, Xorg always sets DPI to 96 since 2009-01-30. A change was made with version 21.1 to provide proper DPI auto-detection, but reverted.22:25
Wizzuphttps://wiki.archlinux.org/title/Xorg22:25
Wizzuphttps://wiki.archlinux.org/title/Xorg#Display_size_and_DPI22:25
Wizzupyou will have to restart programs after changing dpi with xrandr22:26
freemangordonok, lemme try22:26
Wizzupbut, with a monitor section you can set real display size22:26
Wizzupin xorg.conf.d22:26
freemangordondoes not help much22:27
freemangordononly fonts in launcher are increased22:28
freemangordonyeah, fonts are huge now22:28
Wizzupafter restarting X?22:28
freemangordonyes22:28
Wizzupwith monitor in xorg.conf.d?22:28
Wizzupwhat about xrdb -query | grep -i dpi22:28
freemangordonh-d icon sizes are the same22:28
Wizzuphttps://wiki.archlinux.org/title/Xorg#Manual_DPI_Setting_Caveat22:29
freemangordonI need microscope for chromium, no matter what I do :)22:30
freemangordonok, lemme compare with chimaera22:32
Wizzupwhat is it in daedalus?22:32
Wizzupwhat did you write in xorg.conf.d?22:32
freemangordonok, h-d is ok22:34
freemangordonh-d in daedalus and chimaera look the same22:34
freemangordonbut, chromium at least is tiny22:34
freemangordonGDK_DPI_SCALE seems to be ignored22:35
freemangordon--force-device-scale-factor works22:37
freemangordonWizzup: is it possible that I am just missing gtk3 themes?22:42
freemangordonok, the same issue in the VM22:44
freemangordonso not D4 related22:44
Wizzupwell is anything you are using gtk3?22:44
freemangordonchromium is22:45
freemangordonmore or less22:45
Wizzupok, so ignoring chromium, what else is22:45
freemangordonnothing I guess22:45
WizzupI'm still not clear what qrdb prints for you, or what xorg.conf.d you set22:45
Wizzupxrdb22:45
freemangordonbut, GDK_SCALE=2 works with chromium22:45
Wizzupwell, if it's just chromium, maybe we can live with that for today22:46
Wizzupleste-config-common/etc/profile.d/gtk-maemo.sh.leste:export GDK_DPI_SCALE=1.722:46
freemangordonxrdb -query22:46
freemangordon*customization:-color22:46
Wizzupis this not present for you?22:46
freemangordonit is22:46
freemangordonbut is ignored22:46
Wizzupok22:46
freemangordon GDK_SCALE works22:46
WizzupI see22:46
freemangordonhttps://bugs.kde.org/show_bug.cgi?id=38952322:47
Wizzupand this is X app,not some wayland stuff right?22:47
freemangordonyes22:47
Wizzupok22:48
freemangordonoh, wait22:48
freemangordonlemme test something22:48
Wizzupbut other than this, if I build an image now, will h-d and icons and osso-xterm look ok?22:48
freemangordonyes22:48
Wizzupok22:48
WizzupI will do that tomorrow then22:48
freemangordonok22:48
WizzupI got up at 4am so it's bed time for me :)22:48
freemangordonugh22:49
freemangordonnight!22:49

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