libera/#maemo-leste/ Tuesday, 2023-05-23

dsc_does anyone know how to fullscreen a QtWidgets app01:00
dsc_with computer codez01:00
dsc_(with Qt code)01:00
dsc_QMainWindow::showFullScreen exists but I doubt hildon listens to it01:01
dsc_(have not tried it yet)01:01
dsc_ah, that seems to work fine. nice.01:05
freemangordonWizzup: because you offered help with spqrql :) https://pastebin.com/2c19Yq8V07:50
freemangordoncan this be done any shorter?07:50
freemangordonthis query get all album names, plus count and total length of songs in each album07:51
freemangordon*gets07:51
Wizzupfreemangordon: let me get a coffee and check10:28
Wizzupfreemangordon: this already seems pretty good to me10:28
freemangordonWizzup: it is good, but I shall replace  tracker_metadata_get_unique_values_with_aggregates_async by creating sparql query from unique keys and aggregate functions (SUM/COUNT)11:32
freemangordonso the above query is not usable :(11:32
freemangordonthe  'query' that produces the same results in fremantle is tracker-unique Audio:Album -c Audio:Album -u Audio:Duration11:33
siceloWizzup, freemangordon : if any of you have an extra cycle ... https://gitlab.freedesktop.org/sicelo/upower/-/tree/caplevel?ref_type=heads12:09
siceloplease help me here - i am not (yet) sure how to make backend->priv and daemon->priv available in the up_device_supply_battery_refresh function12:10
siceloalso, i don't see who/what calls up_device_supply_battery_refresh, but more especially, how arguments are supplied to it12:11
freemangordonyou shall not make ->priv available to any other class but the one that defines it12:15
freemangordonthat's why it is called 'private' :)12:15
sicelo:-)12:16
freemangordoncreate appropriate  functions instead, that manipulate private members12:16
freemangordonbut keep in mind this mean API change ;)12:16
siceloso from daemon, i want to know what action and low_percentage are, and from backend, i need to access config12:16
freemangordon*means12:17
freemangordonsorry, don;t have time now to look at12:17
* sicelo really hopes to avoid anything related to API changes ... i would like to see this merged with the least friction12:18
Wizzupdid you check out spinals upower work? maybe he did similar things12:19
siceloyes, i know it. his work is a massive change though, and would be a bit harder (for) me to convince upower people to merge it12:20
sicelohere i'm just involving capacity_level, without any other adjustments ... i'm trying to solve https://gitlab.freedesktop.org/upower/upower/-/issues/21812:21
sicelowith hardcoded action/low_percentage, it works fine, at least on my N900 and it would work for uncalibrated Droid 4 too12:23
* sicelo doesn't know C .. that's the bigger problem :-p12:24
sicelobut i think i understand what fmg is saying. will see about writing some 'getter' function in daemon* and backend*12:30
sicelosolved for backend ... there's already a function for that, up_config_new()12:50
sicelooddly, the whole thing built without errors now, after only fixing backend->priv->config12:51
BoshtannikHi. I look for the way to start my SD card under qemu to do some compilation of python library15:07
BoshtannikWas this already done by someone?15:08
boshtanniktest that i have connected successfully15:34
freemangordonwhy not use VM image?15:34
freemangordonboshtannik: ^^^15:34
boshtanniki want to compile python kivy module on my PC, and then unplug the sd card, and use it on my n90015:35
sicelocross-compile :-)15:35
freemangordonwhy not compile no n900?15:35
boshtannikafter long time hangs down.15:36
freemangordondo you have swap enabled?15:36
boshtannikif i kill Xorg, to let memory to be at least 70+ mb, it will least a bit longer.15:36
boshtannikno swap enabled.15:36
freemangordonwell...15:36
freemangordonenable some 1G swap15:36
freemangordonor emmc swap that's already there15:36
boshtanniki'am afraid to burn down my mem card. I'am from ukraine, and here no much opportunity for me to buy new one.15:37
freemangordonhow is it different if it is N900 or in PC?15:37
freemangordon*if it is in15:38
boshtanniki believe, i shall be able to unlock more ram, or cpu speed? No?15:38
freemangordonsure, but from 'burning sd card' POV, I see no difference15:38
boshtannikin case of using qemu, i assume not using swap from sd card, but ram memory of my pc instead.15:39
freemangordonalso, if compiling a single python lib burns you sd card, you;re better without it15:39
freemangordonthat's why I said emmc swap, the one that's used by fremantle15:39
boshtannikfrequent writings to flash card, burns mem card down. It has write resource.15:40
freemangordonI know15:40
boshtannikI was able to burn down mem cards in weeks, while using swap, with high frequence write onto it, during working with embedded devices.15:40
freemangordonbut, I am using swap on uSD card here for the last... how many? 5? years15:40
boshtannikdid you limit frequency of it's usage?15:41
freemangordonno15:41
boshtannik(i'am not sure in quality of my mem card)15:41
freemangordonmy n900 with fremantle (which is my primary device) uses swap on uSD card15:41
* freemangordon checks what are file dates on that card15:41
boshtannikhmmm15:42
boshtannikjust one more time got `cc: fatal error: Killed signal terminated program cc115:43
boshtannik`15:43
freemangordonstill, a single lib compilation should not bring any sd card down15:43
freemangordoncheck dmesg15:43
freemangordonOOM kill, most-probably15:43
boshtannikis there no possibility easily to launch OS from my SD card on Intel PC?15:43
freemangordonno15:43
freemangordonyou better cross-compile, as sicelo said15:43
boshtannik'check dmesg' - ok15:44
freemangordonalso, you can enable swap only temporarily (for the time it is needed)15:44
boshtannikbetter to use file, or whole partition?15:44
freemangordonstill, I don't think n900 with leste without swap can be used for anything but to test that it boots :)15:44
freemangordonyou already have swap partition on emmc15:45
freemangordonit should be /dev/mmcblk1p315:45
boshtannikdon't have it15:45
freemangordoncheck with (s)fdisk -l15:45
boshtannikok15:46
freemangordonyou should see "786432   82  Linux swap / Solaris" or somesuch15:46
boshtannikO_O15:47
boshtannikwhere did it come from?15:47
boshtanniki see15:47
boshtanniki saw guide to launch it on. I will look for it in the net15:48
freemangordonsorry, I have only fremantle n900 ATM, can;t check on leste15:48
freemangordonwell, it is basically "sudo swapon /dev/$whatever"15:49
freemangordonwhere $whatever is the swap partition15:49
boshtanniki would like to make it up to 2g15:49
freemangordonyou can;t15:49
boshtannikok(15:50
freemangordonthis is on internal n900 memory15:50
freemangordonwhich is already partitioned for fremantle15:50
freemangordonwell, you *can* re-partition, but you will break fremantle15:50
boshtannikon my pc, i have 8 cores, 32 gb ram, i guessed, i could compile anything in glimpse.15:50
boshtannikohhh. I see15:50
boshtanniki'am not using it at all15:51
freemangordoncross-compile is not that easy15:51
boshtanniki just wanted to practice to write some gui applications with python + kivy.15:51
boshtannik```freemangordoncross-compile is not that easy``` - I know15:51
boshtannikton of dependencies..15:51
freemangordonit really does not worth the effort for a single lib15:52
freemangordon:nod:15:52
boshtannikthat's why i was wondering, if i just could start OS from SD under emulated system15:52
freemangordonwe don;t have ARM qemu image15:52
freemangordonwell...15:53
freemangordonthere is qemu-n90015:53
freemangordonbut I am not sure it will boot to shell15:53
freemangordonand still - does not worth the effort15:53
boshtanniki have built it from source from qemu documentation guide15:53
freemangordonit is a fork that's not maintained15:54
freemangordonalso, why not develop under VM?15:54
boshtannikarchitecture?...15:54
freemangordonx86-6415:54
boshtannikkivy require window provider, which shall be got from: X11, or egl, or pygame, or whatever it has..15:55
boshtannikor SDL215:55
boshtannikthere is need to build sdl2 deps from source. and it does hangs during build sdl2-hid lib15:55
freemangordonumm... I am not sure I understand the issue15:56
freemangordonit is leste VM15:56
freemangordonwhich boots to leste15:56
boshtannikpython -> kivy library. It is for drawing guid - pretty well. To draw window it needs window provider, as dependency.15:56
freemangordonleste runs x1115:57
boshtannikOk. then i will need to port it to my n900 somehow, to enjoy, that i could write it to n90015:57
boshtannikhmmm...15:57
boshtannikx11?15:57
freemangordonwhat to port if it is pythion?15:57
freemangordon*python15:57
boshtannikit's python libreary, that depends on binaries15:57
boshtannikcompiled binaries15:57
freemangordonand those are not in debian?15:58
boshtanniknow, i'am in the wondering if i could run under x11 window provider.15:58
freemangordonsorry, I am missing the point15:58
freemangordonleste runs hildon-desktop (WN) which runs in x1115:58
freemangordon*WM15:58
freemangordonleste is based on devuan chimaera, which is debian stable without systemd15:59
boshtannikmore than half year ago, i did not succeed to run my written program in leste, due to the some errors, i do not remember.15:59
freemangordonyou have debian repositories enabled by default, so you can install whatever is tehre15:59
freemangordonwell, things changed a lot since then15:59
freemangordonwe were on oldstable, now we are on stable16:00
freemangordonso, if that library is in debian repos, there is no need for you to compile anything16:00
boshtanniki glanced that it begun eat much more ram, but got better in some way. I can not tell what's changed, but i feel it more solid.16:00
freemangordonhttps://packages.debian.org/search?keywords=python-kivy16:01
boshtannikso i will try to install prebuilt python package.16:01
freemangordonsudo apt install python-kivy should work16:01
boshtannikok, will do just now.16:02
freemangordonif you dist-upgraded to chimaera ofc16:02
freemangordonor if you use recent enough image16:02
boshtanniki flashed latest n900 image onto my sd card few days ago16:02
freemangordonthen it should be chimaera16:02
freemangordon(debian stable)16:03
boshtanniki will write gui for fm transmitter- if it will work16:03
freemangordoniirc module is not enabled in the kernel, there is an issue for that16:04
freemangordonbut it is kind of low prio16:04
boshtannikit would be nice, i think, if nokia would pick up forked jolla company, in order to continue it's work on good phones.16:05
boshtannikor, at least would enable bootloader to let install other os's16:06
boshtannikby the way' Got for some reason ``` python-kivy : Depends: python-docutils but it is not installable16:07
boshtannik               Depends: python-pygments but it is not installable16:07
boshtannik```16:07
boshtannikwhen write python, what does it assums, use python2 or python3?16:07
freemangordonhmm, hard to say :)16:08
freemangordonWizzup: ^^^16:08
freemangordonI think python216:08
boshtannikregular call python (assume /usr/bin/pyhon) - gets python 2.716:09
freemangordonhmm I guess it should be python3-kivy16:10
boshtanniknow i guess it too16:11
freemangordonyep, "sudo apt install python3-kivy" works in the VM16:11
boshtannikis it workable to run simple hello world kivy app?16:12
freemangordonno idea?16:12
freemangordonwhere it is?16:12
freemangordonpython-kivy-examples?16:12
boshtanniki will find some.16:12
freemangordondon;t16:13
freemangordonsec16:13
freemangordonboshtannik: https://pastebin.com/1zBPU4P916:14
freemangordonI installed only python3-kivy and python-kivy-examples16:15
boshtannikit shall be enough16:15
freemangordonno idea if it will work on n900 though16:15
boshtannikeven with no examples installed16:15
boshtannikignored.16:15
boshtanniksdl2 ignored.16:16
freemangordonnot really16:16
freemangordon        ] Backend used <sdl2>16:16
boshtannikthere are some env variables to say to kivy what window provider to use16:16
boshtannikOhhh16:16
boshtanniki see16:16
freemangordonstill, that example runs. wanna screenshot?16:16
boshtannikoutput seems fine!16:17
freemangordonsure16:17
boshtannikwould be great16:17
freemangordonmaybe install python3-kivy and python-kivy-examples on n900 and try to start some example there16:17
freemangordonthough I still recommend using VM for application development16:18
boshtannikpython-kivy-examples - i assume will pull python-kivy which is python2.16:18
freemangordonno idea what it will pull16:18
boshtannikI'am glad being using that method too.16:19
freemangordonI installed python3-kivy and python-kivy-examples, in that order16:19
boshtannikok. will install examples too16:19
boshtannikblk1p3 for swap?16:21
boshtanniknever mind16:21
freemangordoncan't check now16:22
boshtannikyes, i have checked16:22
boshtannikit is16:22
boshtannikjust forgot where to search from16:22
boshtannikabout transmitter: it was on the main page ` FM Transmitter Yes Install v4l-utils, then enable chip and set frequency using: v4l2-ctl -d /dev/radio0 -c mute=0,tune_power_level=120 -f <freq>`16:24
freemangordonright, but int the recent kernels we kinda forgot to enable the driver in kernel config :)16:25
freemangordonsicelo: that is still the case, right? ^^^16:26
siceloplease ask uvos__16:26
boshtannikahh. Got it. No, Transmitter is that's not so much important, but would be better to have it.16:27
freemangordonboshtannik: also, there is fmtxd, I am not sure a standalone application is a good idea16:27
boshtanniki just love having fun in the public transport, launching some porn sounds, and seing passengers being angry.16:27
freemangordonsee https://github.com/community-ssu/fmtx-middleware16:28
freemangordonheh16:28
freemangordonand https://github.com/community-ssu/maemo-statusmenu-fmtx16:28
freemangordonwe have to port that to leste16:28
boshtannikToo much work is done.16:29
boshtannikThis project just has to get it's own hardware!16:29
freemangordonI would prefer to see more hardware supported by upstream kernel16:30
freemangordonthat would automagically (more or less) mean - more devices supported by leste16:30
boshtannikwith much possible interfaces included. IrDa, Bluetooth, Fm, Lora, 433Mhz, etc..16:30
boshtannikjust to let it to be raw, and let it to be done by community, as nokia did16:31
maxwelldpmos folks upstream drivers so leste gradually benefits from this.16:31
boshtannikto be written as modules16:31
freemangordonmaxwelld: :nod:16:31
boshtanniki have this funny error16:31
boshtannikPlease follow the installation instructions and make sure to compile Kivy16:32
boshtannikin other words, it's like said to me GFYS16:32
maxwelldboshtannik, pine64 tried that all... it's pretty hard and it's another world and work at all.16:32
maxwelldleste supports pinephone.16:32
boshtannikand it does have hardware keyboard?16:33
freemangordonyes16:33
boshtannikO_o16:33
freemangordonwell, as an attachment16:33
boshtannikahhh16:33
freemangordonnot built-in16:33
boshtanniktrash16:33
freemangordonno idea, I don;t hav eone16:34
freemangordonanyway, /me is afk16:34
freemangordonbbl16:34
boshtanniki would love to purchase at least gpd pocket few years ago, but it was not in my country16:34
boshtannikbye16:34
boshtannikhow can i check, that sdl2 is using in my n900? or might be used?16:47
sicelorephrase question17:23
dsc_if an app is using sdl2 -> check via the dynamic linker `ldd`17:24
dsc_if sdl2 is installed -> check the package(s)17:24
aczidsomething like this right: dpkg -S libsdl217:28
sicelo -l17:32
boshtannikThanks.17:44
boshtanniki have run vds of leste. On first boot the popup appeared with hints about lock code, swap, etcc. And here is no way to close it.17:45
siceloclick the X on top right17:49
boshtannikno x at top right17:50
boshtannikthis wellcome screen is so wellcome, that it has no X button to close it. But i can scroll over it17:51
boshtannikand scroll it back17:51
boshtannikDid someone tried to run doom3 on n900 leste?17:58
dsc_boshtannik: probably a bit too heavy for n900 ;)18:00
boshtanniksomeone did on previous maemo version18:00
dsc_https://talk.maemo.org/showthread.php?t=8029418:01
boshtanniki saw screenshow somewhen on the internet, can no longer find it18:10
boshtannikhttps://omcfadde.blogspot.com/2012/05/doom-3-for-nokia-n900.html18:12
boshtannikhttps://3.bp.blogspot.com/-Ks6AzIkHg1c/T6xEPGfub4I/AAAAAAAAAXs/mqcN2Ch8qDc/s1600/20120510_232726.jpg18:13
boshtannikI have started leste in VM. How can i connect it to the internet?18:20
dsc_are you using QEMU?18:21
boshtannikI tried18:45
boshtannikNow it is under virtualbox18:45
Wizzupit should have ethernet already18:50
Wizzupbut you can install the libicd-network-dummy to trick maemo into tihnking it has internet18:50
boshtannikthanks. But i need internet. LL try reboot18:54
boshtannikit helped19:00
siceloWizzup: do you have Librem5 devkit btw?21:33
boshtannikNo21:45
boshtannikCompilation of python-kivy dependencies on my n900 jst failed21:46
boshtannikit was last for about 4+ h21:46
boshtannikis there any other way to compile directly onto sd card under qemu?21:47
boshtannikvery frustrating21:48
Wizzupsicelo: no22:11
sicelosurr22:33
sicelosure22:33

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