dsc_ | does anyone know how to fullscreen a QtWidgets app | 01:00 |
---|---|---|
dsc_ | with computer codez | 01:00 |
dsc_ | (with Qt code) | 01:00 |
dsc_ | QMainWindow::showFullScreen exists but I doubt hildon listens to it | 01:01 |
dsc_ | (have not tried it yet) | 01:01 |
dsc_ | ah, that seems to work fine. nice. | 01:05 |
freemangordon | Wizzup: because you offered help with spqrql :) https://pastebin.com/2c19Yq8V | 07:50 |
freemangordon | can this be done any shorter? | 07:50 |
freemangordon | this query get all album names, plus count and total length of songs in each album | 07:51 |
freemangordon | *gets | 07:51 |
Wizzup | freemangordon: let me get a coffee and check | 10:28 |
Wizzup | freemangordon: this already seems pretty good to me | 10:28 |
freemangordon | Wizzup: 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 |
freemangordon | so the above query is not usable :( | 11:32 |
freemangordon | the 'query' that produces the same results in fremantle is tracker-unique Audio:Album -c Audio:Album -u Audio:Duration | 11:33 |
sicelo | Wizzup, freemangordon : if any of you have an extra cycle ... https://gitlab.freedesktop.org/sicelo/upower/-/tree/caplevel?ref_type=heads | 12:09 |
sicelo | please help me here - i am not (yet) sure how to make backend->priv and daemon->priv available in the up_device_supply_battery_refresh function | 12:10 |
sicelo | also, i don't see who/what calls up_device_supply_battery_refresh, but more especially, how arguments are supplied to it | 12:11 |
freemangordon | you shall not make ->priv available to any other class but the one that defines it | 12:15 |
freemangordon | that's why it is called 'private' :) | 12:15 |
sicelo | :-) | 12:16 |
freemangordon | create appropriate functions instead, that manipulate private members | 12:16 |
freemangordon | but keep in mind this mean API change ;) | 12:16 |
sicelo | so from daemon, i want to know what action and low_percentage are, and from backend, i need to access config | 12:16 |
freemangordon | *means | 12:17 |
freemangordon | sorry, don;t have time now to look at | 12:17 |
* sicelo really hopes to avoid anything related to API changes ... i would like to see this merged with the least friction | 12:18 | |
Wizzup | did you check out spinals upower work? maybe he did similar things | 12:19 |
sicelo | yes, i know it. his work is a massive change though, and would be a bit harder (for) me to convince upower people to merge it | 12:20 |
sicelo | here i'm just involving capacity_level, without any other adjustments ... i'm trying to solve https://gitlab.freedesktop.org/upower/upower/-/issues/218 | 12:21 |
sicelo | with hardcoded action/low_percentage, it works fine, at least on my N900 and it would work for uncalibrated Droid 4 too | 12:23 |
* sicelo doesn't know C .. that's the bigger problem :-p | 12:24 | |
sicelo | but i think i understand what fmg is saying. will see about writing some 'getter' function in daemon* and backend* | 12:30 |
sicelo | solved for backend ... there's already a function for that, up_config_new() | 12:50 |
sicelo | oddly, the whole thing built without errors now, after only fixing backend->priv->config | 12:51 |
Boshtannik | Hi. I look for the way to start my SD card under qemu to do some compilation of python library | 15:07 |
Boshtannik | Was this already done by someone? | 15:08 |
boshtannik | test that i have connected successfully | 15:34 |
freemangordon | why not use VM image? | 15:34 |
freemangordon | boshtannik: ^^^ | 15:34 |
boshtannik | i want to compile python kivy module on my PC, and then unplug the sd card, and use it on my n900 | 15:35 |
sicelo | cross-compile :-) | 15:35 |
freemangordon | why not compile no n900? | 15:35 |
boshtannik | after long time hangs down. | 15:36 |
freemangordon | do you have swap enabled? | 15:36 |
boshtannik | if i kill Xorg, to let memory to be at least 70+ mb, it will least a bit longer. | 15:36 |
boshtannik | no swap enabled. | 15:36 |
freemangordon | well... | 15:36 |
freemangordon | enable some 1G swap | 15:36 |
freemangordon | or emmc swap that's already there | 15:36 |
boshtannik | i'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 |
freemangordon | how is it different if it is N900 or in PC? | 15:37 |
freemangordon | *if it is in | 15:38 |
boshtannik | i believe, i shall be able to unlock more ram, or cpu speed? No? | 15:38 |
freemangordon | sure, but from 'burning sd card' POV, I see no difference | 15:38 |
boshtannik | in case of using qemu, i assume not using swap from sd card, but ram memory of my pc instead. | 15:39 |
freemangordon | also, if compiling a single python lib burns you sd card, you;re better without it | 15:39 |
freemangordon | that's why I said emmc swap, the one that's used by fremantle | 15:39 |
boshtannik | frequent writings to flash card, burns mem card down. It has write resource. | 15:40 |
freemangordon | I know | 15:40 |
boshtannik | I 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 |
freemangordon | but, I am using swap on uSD card here for the last... how many? 5? years | 15:40 |
boshtannik | did you limit frequency of it's usage? | 15:41 |
freemangordon | no | 15:41 |
boshtannik | (i'am not sure in quality of my mem card) | 15:41 |
freemangordon | my n900 with fremantle (which is my primary device) uses swap on uSD card | 15:41 |
* freemangordon checks what are file dates on that card | 15:41 | |
boshtannik | hmmm | 15:42 |
boshtannik | just one more time got `cc: fatal error: Killed signal terminated program cc1 | 15:43 |
boshtannik | ` | 15:43 |
freemangordon | still, a single lib compilation should not bring any sd card down | 15:43 |
freemangordon | check dmesg | 15:43 |
freemangordon | OOM kill, most-probably | 15:43 |
boshtannik | is there no possibility easily to launch OS from my SD card on Intel PC? | 15:43 |
freemangordon | no | 15:43 |
freemangordon | you better cross-compile, as sicelo said | 15:43 |
boshtannik | 'check dmesg' - ok | 15:44 |
freemangordon | also, you can enable swap only temporarily (for the time it is needed) | 15:44 |
boshtannik | better to use file, or whole partition? | 15:44 |
freemangordon | still, I don't think n900 with leste without swap can be used for anything but to test that it boots :) | 15:44 |
freemangordon | you already have swap partition on emmc | 15:45 |
freemangordon | it should be /dev/mmcblk1p3 | 15:45 |
boshtannik | don't have it | 15:45 |
freemangordon | check with (s)fdisk -l | 15:45 |
boshtannik | ok | 15:46 |
freemangordon | you should see "786432 82 Linux swap / Solaris" or somesuch | 15:46 |
boshtannik | O_O | 15:47 |
boshtannik | where did it come from? | 15:47 |
boshtannik | i see | 15:47 |
boshtannik | i saw guide to launch it on. I will look for it in the net | 15:48 |
freemangordon | sorry, I have only fremantle n900 ATM, can;t check on leste | 15:48 |
freemangordon | well, it is basically "sudo swapon /dev/$whatever" | 15:49 |
freemangordon | where $whatever is the swap partition | 15:49 |
boshtannik | i would like to make it up to 2g | 15:49 |
freemangordon | you can;t | 15:49 |
boshtannik | ok( | 15:50 |
freemangordon | this is on internal n900 memory | 15:50 |
freemangordon | which is already partitioned for fremantle | 15:50 |
freemangordon | well, you *can* re-partition, but you will break fremantle | 15:50 |
boshtannik | on my pc, i have 8 cores, 32 gb ram, i guessed, i could compile anything in glimpse. | 15:50 |
boshtannik | ohhh. I see | 15:50 |
boshtannik | i'am not using it at all | 15:51 |
freemangordon | cross-compile is not that easy | 15:51 |
boshtannik | i just wanted to practice to write some gui applications with python + kivy. | 15:51 |
boshtannik | ```freemangordoncross-compile is not that easy``` - I know | 15:51 |
boshtannik | ton of dependencies.. | 15:51 |
freemangordon | it really does not worth the effort for a single lib | 15:52 |
freemangordon | :nod: | 15:52 |
boshtannik | that's why i was wondering, if i just could start OS from SD under emulated system | 15:52 |
freemangordon | we don;t have ARM qemu image | 15:52 |
freemangordon | well... | 15:53 |
freemangordon | there is qemu-n900 | 15:53 |
freemangordon | but I am not sure it will boot to shell | 15:53 |
freemangordon | and still - does not worth the effort | 15:53 |
boshtannik | i have built it from source from qemu documentation guide | 15:53 |
freemangordon | it is a fork that's not maintained | 15:54 |
freemangordon | also, why not develop under VM? | 15:54 |
boshtannik | architecture?... | 15:54 |
freemangordon | x86-64 | 15:54 |
boshtannik | kivy require window provider, which shall be got from: X11, or egl, or pygame, or whatever it has.. | 15:55 |
boshtannik | or SDL2 | 15:55 |
boshtannik | there is need to build sdl2 deps from source. and it does hangs during build sdl2-hid lib | 15:55 |
freemangordon | umm... I am not sure I understand the issue | 15:56 |
freemangordon | it is leste VM | 15:56 |
freemangordon | which boots to leste | 15:56 |
boshtannik | python -> kivy library. It is for drawing guid - pretty well. To draw window it needs window provider, as dependency. | 15:56 |
freemangordon | leste runs x11 | 15:57 |
boshtannik | Ok. then i will need to port it to my n900 somehow, to enjoy, that i could write it to n900 | 15:57 |
boshtannik | hmmm... | 15:57 |
boshtannik | x11? | 15:57 |
freemangordon | what to port if it is pythion? | 15:57 |
freemangordon | *python | 15:57 |
boshtannik | it's python libreary, that depends on binaries | 15:57 |
boshtannik | compiled binaries | 15:57 |
freemangordon | and those are not in debian? | 15:58 |
boshtannik | now, i'am in the wondering if i could run under x11 window provider. | 15:58 |
freemangordon | sorry, I am missing the point | 15:58 |
freemangordon | leste runs hildon-desktop (WN) which runs in x11 | 15:58 |
freemangordon | *WM | 15:58 |
freemangordon | leste is based on devuan chimaera, which is debian stable without systemd | 15:59 |
boshtannik | more 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 |
freemangordon | you have debian repositories enabled by default, so you can install whatever is tehre | 15:59 |
freemangordon | well, things changed a lot since then | 15:59 |
freemangordon | we were on oldstable, now we are on stable | 16:00 |
freemangordon | so, if that library is in debian repos, there is no need for you to compile anything | 16:00 |
boshtannik | i 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 |
freemangordon | https://packages.debian.org/search?keywords=python-kivy | 16:01 |
boshtannik | so i will try to install prebuilt python package. | 16:01 |
freemangordon | sudo apt install python-kivy should work | 16:01 |
boshtannik | ok, will do just now. | 16:02 |
freemangordon | if you dist-upgraded to chimaera ofc | 16:02 |
freemangordon | or if you use recent enough image | 16:02 |
boshtannik | i flashed latest n900 image onto my sd card few days ago | 16:02 |
freemangordon | then it should be chimaera | 16:02 |
freemangordon | (debian stable) | 16:03 |
boshtannik | i will write gui for fm transmitter- if it will work | 16:03 |
freemangordon | iirc module is not enabled in the kernel, there is an issue for that | 16:04 |
freemangordon | but it is kind of low prio | 16:04 |
boshtannik | it 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 |
boshtannik | or, at least would enable bootloader to let install other os's | 16:06 |
boshtannik | by the way' Got for some reason ``` python-kivy : Depends: python-docutils but it is not installable | 16:07 |
boshtannik | Depends: python-pygments but it is not installable | 16:07 |
boshtannik | ``` | 16:07 |
boshtannik | when write python, what does it assums, use python2 or python3? | 16:07 |
freemangordon | hmm, hard to say :) | 16:08 |
freemangordon | Wizzup: ^^^ | 16:08 |
freemangordon | I think python2 | 16:08 |
boshtannik | regular call python (assume /usr/bin/pyhon) - gets python 2.7 | 16:09 |
freemangordon | hmm I guess it should be python3-kivy | 16:10 |
boshtannik | now i guess it too | 16:11 |
freemangordon | yep, "sudo apt install python3-kivy" works in the VM | 16:11 |
boshtannik | is it workable to run simple hello world kivy app? | 16:12 |
freemangordon | no idea? | 16:12 |
freemangordon | where it is? | 16:12 |
freemangordon | python-kivy-examples? | 16:12 |
boshtannik | i will find some. | 16:12 |
freemangordon | don;t | 16:13 |
freemangordon | sec | 16:13 |
freemangordon | boshtannik: https://pastebin.com/1zBPU4P9 | 16:14 |
freemangordon | I installed only python3-kivy and python-kivy-examples | 16:15 |
boshtannik | it shall be enough | 16:15 |
freemangordon | no idea if it will work on n900 though | 16:15 |
boshtannik | even with no examples installed | 16:15 |
boshtannik | ignored. | 16:15 |
boshtannik | sdl2 ignored. | 16:16 |
freemangordon | not really | 16:16 |
freemangordon | ] Backend used <sdl2> | 16:16 |
boshtannik | there are some env variables to say to kivy what window provider to use | 16:16 |
boshtannik | Ohhh | 16:16 |
boshtannik | i see | 16:16 |
freemangordon | still, that example runs. wanna screenshot? | 16:16 |
boshtannik | output seems fine! | 16:17 |
freemangordon | sure | 16:17 |
boshtannik | would be great | 16:17 |
freemangordon | maybe install python3-kivy and python-kivy-examples on n900 and try to start some example there | 16:17 |
freemangordon | though I still recommend using VM for application development | 16:18 |
boshtannik | python-kivy-examples - i assume will pull python-kivy which is python2. | 16:18 |
freemangordon | no idea what it will pull | 16:18 |
boshtannik | I'am glad being using that method too. | 16:19 |
freemangordon | I installed python3-kivy and python-kivy-examples, in that order | 16:19 |
boshtannik | ok. will install examples too | 16:19 |
boshtannik | blk1p3 for swap? | 16:21 |
boshtannik | never mind | 16:21 |
freemangordon | can't check now | 16:22 |
boshtannik | yes, i have checked | 16:22 |
boshtannik | it is | 16:22 |
boshtannik | just forgot where to search from | 16:22 |
boshtannik | about 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 |
freemangordon | right, but int the recent kernels we kinda forgot to enable the driver in kernel config :) | 16:25 |
freemangordon | sicelo: that is still the case, right? ^^^ | 16:26 |
sicelo | please ask uvos__ | 16:26 |
boshtannik | ahh. Got it. No, Transmitter is that's not so much important, but would be better to have it. | 16:27 |
freemangordon | boshtannik: also, there is fmtxd, I am not sure a standalone application is a good idea | 16:27 |
boshtannik | i just love having fun in the public transport, launching some porn sounds, and seing passengers being angry. | 16:27 |
freemangordon | see https://github.com/community-ssu/fmtx-middleware | 16:28 |
freemangordon | heh | 16:28 |
freemangordon | and https://github.com/community-ssu/maemo-statusmenu-fmtx | 16:28 |
freemangordon | we have to port that to leste | 16:28 |
boshtannik | Too much work is done. | 16:29 |
boshtannik | This project just has to get it's own hardware! | 16:29 |
freemangordon | I would prefer to see more hardware supported by upstream kernel | 16:30 |
freemangordon | that would automagically (more or less) mean - more devices supported by leste | 16:30 |
boshtannik | with much possible interfaces included. IrDa, Bluetooth, Fm, Lora, 433Mhz, etc.. | 16:30 |
boshtannik | just to let it to be raw, and let it to be done by community, as nokia did | 16:31 |
maxwelld | pmos folks upstream drivers so leste gradually benefits from this. | 16:31 |
boshtannik | to be written as modules | 16:31 |
freemangordon | maxwelld: :nod: | 16:31 |
boshtannik | i have this funny error | 16:31 |
boshtannik | Please follow the installation instructions and make sure to compile Kivy | 16:32 |
boshtannik | in other words, it's like said to me GFYS | 16:32 |
maxwelld | boshtannik, pine64 tried that all... it's pretty hard and it's another world and work at all. | 16:32 |
maxwelld | leste supports pinephone. | 16:32 |
boshtannik | and it does have hardware keyboard? | 16:33 |
freemangordon | yes | 16:33 |
boshtannik | O_o | 16:33 |
freemangordon | well, as an attachment | 16:33 |
boshtannik | ahhh | 16:33 |
freemangordon | not built-in | 16:33 |
boshtannik | trash | 16:33 |
freemangordon | no idea, I don;t hav eone | 16:34 |
freemangordon | anyway, /me is afk | 16:34 |
freemangordon | bbl | 16:34 |
boshtannik | i would love to purchase at least gpd pocket few years ago, but it was not in my country | 16:34 |
boshtannik | bye | 16:34 |
boshtannik | how can i check, that sdl2 is using in my n900? or might be used? | 16:47 |
sicelo | rephrase question | 17: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 |
aczid | something like this right: dpkg -S libsdl2 | 17:28 |
sicelo | -l | 17:32 |
boshtannik | Thanks. | 17:44 |
boshtannik | i 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 |
sicelo | click the X on top right | 17:49 |
boshtannik | no x at top right | 17:50 |
boshtannik | this wellcome screen is so wellcome, that it has no X button to close it. But i can scroll over it | 17:51 |
boshtannik | and scroll it back | 17:51 |
boshtannik | Did someone tried to run doom3 on n900 leste? | 17:58 |
dsc_ | boshtannik: probably a bit too heavy for n900 ;) | 18:00 |
boshtannik | someone did on previous maemo version | 18:00 |
dsc_ | https://talk.maemo.org/showthread.php?t=80294 | 18:01 |
boshtannik | i saw screenshow somewhen on the internet, can no longer find it | 18:10 |
boshtannik | https://omcfadde.blogspot.com/2012/05/doom-3-for-nokia-n900.html | 18:12 |
boshtannik | https://3.bp.blogspot.com/-Ks6AzIkHg1c/T6xEPGfub4I/AAAAAAAAAXs/mqcN2Ch8qDc/s1600/20120510_232726.jpg | 18:13 |
boshtannik | I have started leste in VM. How can i connect it to the internet? | 18:20 |
dsc_ | are you using QEMU? | 18:21 |
boshtannik | I tried | 18:45 |
boshtannik | Now it is under virtualbox | 18:45 |
Wizzup | it should have ethernet already | 18:50 |
Wizzup | but you can install the libicd-network-dummy to trick maemo into tihnking it has internet | 18:50 |
boshtannik | thanks. But i need internet. LL try reboot | 18:54 |
boshtannik | it helped | 19:00 |
sicelo | Wizzup: do you have Librem5 devkit btw? | 21:33 |
boshtannik | No | 21:45 |
boshtannik | Compilation of python-kivy dependencies on my n900 jst failed | 21:46 |
boshtannik | it was last for about 4+ h | 21:46 |
boshtannik | is there any other way to compile directly onto sd card under qemu? | 21:47 |
boshtannik | very frustrating | 21:48 |
Wizzup | sicelo: no | 22:11 |
sicelo | surr | 22:33 |
sicelo | sure | 22:33 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!