antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
antranigv has joined #maemo-leste
maxwelld has quit [Ping timeout: 240 seconds]
antranigv has quit [Ping timeout: 268 seconds]
antranigv has joined #maemo-leste
maxwelld has joined #maemo-leste
xmn has quit [Ping timeout: 240 seconds]
norly has quit [Quit: Leaving.]
norly has joined #maemo-leste
joerg has quit [Ping timeout: 240 seconds]
joerg has joined #maemo-leste
elastic_dog is now known as Guest9547
elastic_1 has joined #maemo-leste
Guest9547 has quit [Killed (lead.libera.chat (Nickname regained by services))]
elastic_1 is now known as elastic_dog
Twig has joined #maemo-leste
<freemangordon> Wizzup: because you offered help with spqrql :) https://pastebin.com/2c19Yq8V
<freemangordon> can this be done any shorter?
<freemangordon> this query get all album names, plus count and total length of songs in each album
<freemangordon> *gets
ceene has joined #maemo-leste
fab_ has quit [Quit: fab_]
Twig has quit [Remote host closed the connection]
fab_ has joined #maemo-leste
pere has quit [Ping timeout: 240 seconds]
moparisthebest has quit [Ping timeout: 246 seconds]
juiceme_ has quit [Read error: Connection reset by peer]
juiceme has joined #maemo-leste
moparisthebest has joined #maemo-leste
pere has joined #maemo-leste
<Wizzup> freemangordon: let me get a coffee and check
<Wizzup> freemangordon: this already seems pretty good to me
xmn has joined #maemo-leste
<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)
<freemangordon> so the above query is not usable :(
<freemangordon> the 'query' that produces the same results in fremantle is tracker-unique Audio:Album -c Audio:Album -u Audio:Duration
<sicelo> Wizzup, freemangordon : if any of you have an extra cycle ... https://gitlab.freedesktop.org/sicelo/upower/-/tree/caplevel?ref_type=heads
<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
<sicelo> also, i don't see who/what calls up_device_supply_battery_refresh, but more especially, how arguments are supplied to it
<freemangordon> you shall not make ->priv available to any other class but the one that defines it
<freemangordon> that's why it is called 'private' :)
<sicelo> :-)
<freemangordon> create appropriate functions instead, that manipulate private members
<freemangordon> but keep in mind this mean API change ;)
<sicelo> so from daemon, i want to know what action and low_percentage are, and from backend, i need to access config
<freemangordon> *means
<freemangordon> sorry, don;t have time now to look at
* sicelo really hopes to avoid anything related to API changes ... i would like to see this merged with the least friction
<Wizzup> did you check out spinals upower work? maybe he did similar things
<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
<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
<sicelo> with hardcoded action/low_percentage, it works fine, at least on my N900 and it would work for uncalibrated Droid 4 too
* sicelo doesn't know C .. that's the bigger problem :-p
<sicelo> but i think i understand what fmg is saying. will see about writing some 'getter' function in daemon* and backend*
asriel has quit [Quit: Don't drink the water. They put something in it to make you forget.]
asriel has joined #maemo-leste
fab_ has quit [Remote host closed the connection]
<sicelo> solved for backend ... there's already a function for that, up_config_new()
<sicelo> oddly, the whole thing built without errors now, after only fixing backend->priv->config
Danct12 has quit [Remote host closed the connection]
Danct12 has joined #maemo-leste
fab_ has joined #maemo-leste
fab_ has quit [Remote host closed the connection]
fab_ has joined #maemo-leste
fab_ has quit [Remote host closed the connection]
fab_ has joined #maemo-leste
Boshtannik has joined #maemo-leste
<Boshtannik> Hi. I look for the way to start my SD card under qemu to do some compilation of python library
<Boshtannik> Was this already done by someone?
Boshtannik has quit [Ping timeout: 248 seconds]
fab_ has quit [Quit: fab_]
fab_ has joined #maemo-leste
jack_ has joined #maemo-leste
jack_ is now known as boshtannik
boshtannik has quit [Client Quit]
boshtannik has joined #maemo-leste
<boshtannik> test that i have connected successfully
<freemangordon> why not use VM image?
<freemangordon> boshtannik: ^^^
<boshtannik> i want to compile python kivy module on my PC, and then unplug the sd card, and use it on my n900
<sicelo> cross-compile :-)
<freemangordon> why not compile no n900?
<boshtannik> after long time hangs down.
<freemangordon> do you have swap enabled?
<boshtannik> if i kill Xorg, to let memory to be at least 70+ mb, it will least a bit longer.
<boshtannik> no swap enabled.
<freemangordon> well...
<freemangordon> enable some 1G swap
<freemangordon> or emmc swap that's already there
<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.
<freemangordon> how is it different if it is N900 or in PC?
<freemangordon> *if it is in
<boshtannik> i believe, i shall be able to unlock more ram, or cpu speed? No?
<freemangordon> sure, but from 'burning sd card' POV, I see no difference
<boshtannik> in case of using qemu, i assume not using swap from sd card, but ram memory of my pc instead.
<freemangordon> also, if compiling a single python lib burns you sd card, you;re better without it
<freemangordon> that's why I said emmc swap, the one that's used by fremantle
<boshtannik> frequent writings to flash card, burns mem card down. It has write resource.
<freemangordon> I know
<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.
<freemangordon> but, I am using swap on uSD card here for the last... how many? 5? years
<boshtannik> did you limit frequency of it's usage?
<freemangordon> no
<boshtannik> (i'am not sure in quality of my mem card)
<freemangordon> my n900 with fremantle (which is my primary device) uses swap on uSD card
* freemangordon checks what are file dates on that card
<boshtannik> hmmm
<boshtannik> just one more time got `cc: fatal error: Killed signal terminated program cc1
<boshtannik> `
<freemangordon> still, a single lib compilation should not bring any sd card down
<freemangordon> check dmesg
<freemangordon> OOM kill, most-probably
<boshtannik> is there no possibility easily to launch OS from my SD card on Intel PC?
<freemangordon> no
<freemangordon> you better cross-compile, as sicelo said
<boshtannik> 'check dmesg' - ok
<freemangordon> also, you can enable swap only temporarily (for the time it is needed)
<boshtannik> better to use file, or whole partition?
<freemangordon> still, I don't think n900 with leste without swap can be used for anything but to test that it boots :)
<freemangordon> you already have swap partition on emmc
<freemangordon> it should be /dev/mmcblk1p3
<boshtannik> don't have it
<freemangordon> check with (s)fdisk -l
<boshtannik> ok
<freemangordon> you should see "786432 82 Linux swap / Solaris" or somesuch
fab_ has quit [Quit: fab_]
<boshtannik> O_O
<boshtannik> where did it come from?
<boshtannik> i see
<boshtannik> i saw guide to launch it on. I will look for it in the net
<freemangordon> sorry, I have only fremantle n900 ATM, can;t check on leste
<freemangordon> well, it is basically "sudo swapon /dev/$whatever"
<freemangordon> where $whatever is the swap partition
<boshtannik> i would like to make it up to 2g
<freemangordon> you can;t
<boshtannik> ok(
<freemangordon> this is on internal n900 memory
<freemangordon> which is already partitioned for fremantle
<freemangordon> well, you *can* re-partition, but you will break fremantle
<boshtannik> on my pc, i have 8 cores, 32 gb ram, i guessed, i could compile anything in glimpse.
<boshtannik> ohhh. I see
<boshtannik> i'am not using it at all
<freemangordon> cross-compile is not that easy
<boshtannik> i just wanted to practice to write some gui applications with python + kivy.
<boshtannik> ```freemangordoncross-compile is not that easy``` - I know
<boshtannik> ton of dependencies..
<freemangordon> it really does not worth the effort for a single lib
<freemangordon> :nod:
<boshtannik> that's why i was wondering, if i just could start OS from SD under emulated system
<freemangordon> we don;t have ARM qemu image
<freemangordon> well...
<freemangordon> there is qemu-n900
<freemangordon> but I am not sure it will boot to shell
<freemangordon> and still - does not worth the effort
<boshtannik> i have built it from source from qemu documentation guide
<freemangordon> it is a fork that's not maintained
<freemangordon> also, why not develop under VM?
<boshtannik> architecture?...
<freemangordon> x86-64
<boshtannik> kivy require window provider, which shall be got from: X11, or egl, or pygame, or whatever it has..
<boshtannik> or SDL2
<boshtannik> there is need to build sdl2 deps from source. and it does hangs during build sdl2-hid lib
<freemangordon> umm... I am not sure I understand the issue
<freemangordon> it is leste VM
<freemangordon> which boots to leste
<boshtannik> python -> kivy library. It is for drawing guid - pretty well. To draw window it needs window provider, as dependency.
<freemangordon> leste runs x11
<boshtannik> Ok. then i will need to port it to my n900 somehow, to enjoy, that i could write it to n900
<boshtannik> hmmm...
<boshtannik> x11?
<freemangordon> what to port if it is pythion?
<freemangordon> *python
<boshtannik> it's python libreary, that depends on binaries
<boshtannik> compiled binaries
<freemangordon> and those are not in debian?
<boshtannik> now, i'am in the wondering if i could run under x11 window provider.
<freemangordon> sorry, I am missing the point
<freemangordon> leste runs hildon-desktop (WN) which runs in x11
<freemangordon> *WM
<freemangordon> leste is based on devuan chimaera, which is debian stable without systemd
<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.
<freemangordon> you have debian repositories enabled by default, so you can install whatever is tehre
<freemangordon> well, things changed a lot since then
<freemangordon> we were on oldstable, now we are on stable
<freemangordon> so, if that library is in debian repos, there is no need for you to compile anything
<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.
<boshtannik> so i will try to install prebuilt python package.
<freemangordon> sudo apt install python-kivy should work
<boshtannik> ok, will do just now.
<freemangordon> if you dist-upgraded to chimaera ofc
<freemangordon> or if you use recent enough image
<boshtannik> i flashed latest n900 image onto my sd card few days ago
<freemangordon> then it should be chimaera
<freemangordon> (debian stable)
<boshtannik> i will write gui for fm transmitter- if it will work
<freemangordon> iirc module is not enabled in the kernel, there is an issue for that
<freemangordon> but it is kind of low prio
<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.
<boshtannik> or, at least would enable bootloader to let install other os's
<boshtannik> by the way' Got for some reason ``` python-kivy : Depends: python-docutils but it is not installable
<boshtannik> Depends: python-pygments but it is not installable
<boshtannik> ```
<boshtannik> when write python, what does it assums, use python2 or python3?
<freemangordon> hmm, hard to say :)
<freemangordon> Wizzup: ^^^
<freemangordon> I think python2
<boshtannik> regular call python (assume /usr/bin/pyhon) - gets python 2.7
<freemangordon> hmm I guess it should be python3-kivy
<boshtannik> now i guess it too
<freemangordon> yep, "sudo apt install python3-kivy" works in the VM
<boshtannik> is it workable to run simple hello world kivy app?
<freemangordon> no idea?
<freemangordon> where it is?
<freemangordon> python-kivy-examples?
<boshtannik> i will find some.
<freemangordon> don;t
<freemangordon> sec
<freemangordon> boshtannik: https://pastebin.com/1zBPU4P9
<freemangordon> I installed only python3-kivy and python-kivy-examples
<boshtannik> it shall be enough
<freemangordon> no idea if it will work on n900 though
<boshtannik> even with no examples installed
<boshtannik> ignored.
<boshtannik> sdl2 ignored.
<freemangordon> not really
<freemangordon> ] Backend used <sdl2>
<boshtannik> there are some env variables to say to kivy what window provider to use
<boshtannik> Ohhh
<boshtannik> i see
<freemangordon> still, that example runs. wanna screenshot?
<boshtannik> output seems fine!
<freemangordon> sure
<boshtannik> would be great
<freemangordon> maybe install python3-kivy and python-kivy-examples on n900 and try to start some example there
<freemangordon> though I still recommend using VM for application development
<boshtannik> python-kivy-examples - i assume will pull python-kivy which is python2.
<freemangordon> no idea what it will pull
<boshtannik> I'am glad being using that method too.
<freemangordon> I installed python3-kivy and python-kivy-examples, in that order
<boshtannik> ok. will install examples too
<boshtannik> blk1p3 for swap?
ceene has quit [Ping timeout: 264 seconds]
<boshtannik> never mind
<freemangordon> can't check now
<boshtannik> yes, i have checked
<boshtannik> it is
<boshtannik> just forgot where to search from
<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>`
<freemangordon> right, but int the recent kernels we kinda forgot to enable the driver in kernel config :)
<freemangordon> sicelo: that is still the case, right? ^^^
<sicelo> please ask uvos__
<boshtannik> ahh. Got it. No, Transmitter is that's not so much important, but would be better to have it.
<freemangordon> boshtannik: also, there is fmtxd, I am not sure a standalone application is a good idea
<boshtannik> i just love having fun in the public transport, launching some porn sounds, and seing passengers being angry.
<freemangordon> heh
<freemangordon> we have to port that to leste
<boshtannik> Too much work is done.
<boshtannik> This project just has to get it's own hardware!
<freemangordon> I would prefer to see more hardware supported by upstream kernel
<freemangordon> that would automagically (more or less) mean - more devices supported by leste
<boshtannik> with much possible interfaces included. IrDa, Bluetooth, Fm, Lora, 433Mhz, etc..
<boshtannik> just to let it to be raw, and let it to be done by community, as nokia did
<maxwelld> pmos folks upstream drivers so leste gradually benefits from this.
<boshtannik> to be written as modules
<freemangordon> maxwelld: :nod:
<boshtannik> i have this funny error
<boshtannik> Please follow the installation instructions and make sure to compile Kivy
<boshtannik> in other words, it's like said to me GFYS
<maxwelld> boshtannik, pine64 tried that all... it's pretty hard and it's another world and work at all.
<maxwelld> leste supports pinephone.
<boshtannik> and it does have hardware keyboard?
<freemangordon> yes
<boshtannik> O_o
<freemangordon> well, as an attachment
<boshtannik> ahhh
<freemangordon> not built-in
<boshtannik> trash
<freemangordon> no idea, I don;t hav eone
<freemangordon> anyway, /me is afk
<freemangordon> bbl
<boshtannik> i would love to purchase at least gpd pocket few years ago, but it was not in my country
<boshtannik> bye
<boshtannik> how can i check, that sdl2 is using in my n900? or might be used?
hexagonwin has quit []
hexagonwin has joined #maemo-leste
pere has quit [Ping timeout: 256 seconds]
dza has quit [Quit: Ping timeout (120 seconds)]
dza has joined #maemo-leste
<sicelo> rephrase question
<dsc_> if an app is using sdl2 -> check via the dynamic linker `ldd`
<dsc_> if sdl2 is installed -> check the package(s)
<aczid> something like this right: dpkg -S libsdl2
<sicelo> -l
<boshtannik> Thanks.
<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.
<sicelo> click the X on top right
<boshtannik> no x at top right
<boshtannik> this wellcome screen is so wellcome, that it has no X button to close it. But i can scroll over it
<boshtannik> and scroll it back
<boshtannik> Did someone tried to run doom3 on n900 leste?
<dsc_> boshtannik: probably a bit too heavy for n900 ;)
<boshtannik> someone did on previous maemo version
pere has joined #maemo-leste
<boshtannik> i saw screenshow somewhen on the internet, can no longer find it
uvos__ has quit [Ping timeout: 240 seconds]
fab_ has joined #maemo-leste
<boshtannik> I have started leste in VM. How can i connect it to the internet?
<dsc_> are you using QEMU?
uvos__ has joined #maemo-leste
<boshtannik> I tried
<boshtannik> Now it is under virtualbox
<Wizzup> it should have ethernet already
<Wizzup> but you can install the libicd-network-dummy to trick maemo into tihnking it has internet
fab_ has quit [Ping timeout: 268 seconds]
<boshtannik> thanks. But i need internet. LL try reboot
<boshtannik> it helped
Twig has joined #maemo-leste
ceene has joined #maemo-leste
akossh has joined #maemo-leste
arno11 has joined #maemo-leste
arno11 has left #maemo-leste [#maemo-leste]
fab_ has joined #maemo-leste
ceene has quit [Ping timeout: 240 seconds]
Twig has quit [Remote host closed the connection]
arno11 has joined #maemo-leste
<sicelo> Wizzup: do you have Librem5 devkit btw?
<boshtannik> No
<boshtannik> Compilation of python-kivy dependencies on my n900 jst failed
<boshtannik> it was last for about 4+ h
<boshtannik> is there any other way to compile directly onto sd card under qemu?
<boshtannik> very frustrating
elastic_1 has joined #maemo-leste
elastic_dog has quit [Killed (calcium.libera.chat (Nickname regained by services))]
elastic_1 is now known as elastic_dog
<Wizzup> sicelo: no
<sicelo> surr
<sicelo> sure
fab_ has quit [Quit: fab_]
boshtannik has quit [Quit: boshtannik]
arno11 has left #maemo-leste [#maemo-leste]
elastic_dog has quit [Read error: Connection reset by peer]
elastic_dog has joined #maemo-leste
akossh has quit [Quit: Leaving.]
uvos__ has quit [Ping timeout: 240 seconds]