libera/#maemo-leste/ Friday, 2023-05-19

tmlinddsc_: hehe looking at the comments from norayr, maybe name it omgweather :)05:43
jk_000hello! 0/ thanx for the amazing work on maemo leste and mobile linux!!10:48
jk_000GNU+Linux ^^10:48
jk_000has anyone tried a mouse on maemo-leste? I did on a droid4 and the movement is vey lagy hehe how could this be synchronized10:49
Wizzuphow laggy is the movement?10:55
Wizzupjk_000: is it a bluetooth mouse, or cable?11:04
freemangordondoes anybody here know SPARQL?11:50
Wizzupno, but I can help figure out how to write queries if you want11:52
WizzupI doesn't seem too hard from https://en.wikipedia.org/wiki/SPARQL11:53
freemangordonactually there seems to be SQL interface, but I am not sure it works properly11:53
freemangordonuser@devuan:~/git/mafw-tracker-source$ tracker sql -q 'SELECT * FROM "nmm:Video"'11:54
freemangordon--------------------------------------------------11:54
freemangordonResults:11:54
freemangordon100019 | (null) | (null) | (null) | (null) | (null) | (null) | (null) | (null) | (null) | (null) | (null) | (null) | (null) | (null) | (null) | (null) | (null) | (null) | (null) | (null) | (null) | (null) | (null) | (null) | (null) | (null)11:54
Wizzupwhere does the tracker db come from?11:58
freemangordonI started tracker-miner-fs11:58
Wizzupas user I suppose?11:59
freemangordonyes11:59
freemangordonI am still unable to find the structure of the DB though11:59
freemangordonlike, what are the names of all those columns11:59
WizzupI'm installing it now12:00
Wizzup$ tracker status12:03
WizzupCurrently indexed: 432 files, 64 folders12:03
Wizzupok, I have something now12:03
freemangordonmhm12:03
freemangordonmake sure to have some video file, somewhere12:03
Wizzupor audio?12:04
freemangordonyeah12:04
Wizzupbtw, do you know what the backing db is?12:04
freemangordonI think it is sqlite12:04
Wizzup'tracker search -f' lists files12:04
Wizzupfreemangordon: ok, then we can figure it out12:04
freemangordonyeah12:04
freemangordon~/./cache/tracker12:05
Wizzupjust a sec12:06
freemangordonthis:12:09
freemangordonuser@devuan:~/.cache/tracker$ tracker sql -q 'SELECT `nmm:videoAlbum` FROM "nmm:Video"'12:09
freemangordon--------------------------------------------------12:09
freemangordonResults:12:09
freemangordon(null)12:09
Wizzupback12:12
freemangordonso, weh have SQL12:12
freemangordonnow we need to match old tracker lib to sql queries12:13
Wizzupthe database schema is huge12:13
freemangordonmhm12:13
freemangordonsee https://gnome.pages.gitlab.gnome.org/tracker/docs/developer/nfo-ontology.html12:13
freemangordonmaybe it ise better to use SPARQL though12:14
freemangordonotherwise we'll have to learn all the schema12:14
WizzupI had the tracker index my mpd music directory and it sees the files but doesn't think it is music12:16
freemangordonhow do you know?12:17
Wizzuptracker search --music namehere12:17
freemangordonwhat is name?12:17
Wizzupthe name of the band12:17
Wizzupit shows with tracker search -f namehere12:17
freemangordonlike, how does it know the names12:17
freemangordonah12:17
Wizzupfrom the file name and flac metadata I suppose12:17
Wizzupif it is any clever at all12:17
Wizzuphttps://bpa.st/IWRUQ12:18
Wizzuptracker extract on a file path also looks interesting12:19
freemangordon'maemo:relevance' = '1000000.0'12:19
freemangordon:D12:19
Wizzupyeah I saw that12:19
Wizzupdon't know how it got there12:19
freemangordonseems there are some remnants12:19
Wizzupsicelo: you asked about ui-fonts, it's installed on my device12:25
Wizzuphttps://maedevu.maemo.org/pkgweb/search?q=ui-fonts12:25
Wizzupit's also in chimaera12:25
Wizzupfreemangordon: if you have some examples of sql from fremantle I can try to port them12:33
Wizzupit does look like sparql will be easier to use than sql12:33
freemangordonmhm12:33
Wizzupmost of the (null)s in the columns are not relevant for us, it looks like the db is kind of made to be used from sparql12:34
Wizzuplike you can get a list of all the 'songs' but then you just get ids of the songs, so you still need to join it to other things based on the type12:34
freemangordonexactly12:34
freemangordonalso, see https://github.com/maemo-leste/mafw-tracker-source/blob/master/libmafw-tracker-source/definitions.h#L15312:34
freemangordonseems mafw is already using some rdf queries12:35
freemangordonnot sure current tracker supports that though12:35
maxwelldfreemangordon, there is very rare issue with kbd input on gtk. very rare. sometimes i type armenian, then go back to the program (any) and i see only commas are printed, and instead of other keys - whitespaces. then i do the same again, and no whitespaces - everything is correct.12:36
freemangordonmaxwelld: maybe open an issue, with a steps to repro12:37
maxwelldyeah, just very hard to repro. i don't understand when it happens.12:39
maxwelldit happens in rare situations. one of 20 maybe.12:39
freemangordonstill12:39
maxwelldokay!12:39
freemangordonWizzup: https://gnome.pages.gitlab.gnome.org/tracker/docs/developer/slo-ontology.html :)12:39
Wizzupfreemangordon: hm?12:40
freemangordonsee the page title12:40
Wizzupah12:40
Wizzupheh12:40
freemangordonwe also have "Maemo Feeds Ontology (MFO)"12:40
Wizzupyeah so RDF I don't think will work anymore12:41
Wizzupbut I think with their examples we can pretty easily port12:41
Wizzuphttps://wiki.gnome.org/Projects/Tracker/Documentation/Examples/SPARQL/Music12:41
Wizzuppretty much everything is covered there it looks like12:41
freemangordonwe have to find replacement for  tracker_metadata_get_unique_values_with_aggregates_async12:42
Wizzuphm12:42
Wizzupwhat does this even do?12:43
freemangordonmaybe tracker_sparql_connection_query_async12:43
freemangordonno idea what it does, but looks like it executes RDF query12:43
freemangordontracker_metadata_get_unique_values_with_aggregates_async seems to do dbus call12:44
freemangordonWizzup: see in tests12:45
Wizzupok13:25
jk_000Wizzup: sorry for the late replay. it is a cable mouse13:37
jk_000... would bluetooth mouse be faster? o.O13:38
Wizzupjk_000: no, it wouldn't13:41
Wizzuphow slow is slow?13:42
uvos__mouse is really slow on d413:48
uvos__you can see this with ts too but it also occures with a mouse13:48
uvos__problem dosent exist on wayland13:49
uvos__so its some x issue, maybe how the cursor is drawn, i dont think the cursor uses hwaccel/tiler to render the sprite on omapddx13:50
uvos__so x is presumably drawing it in software13:50
uvos__this has allways been the case13:52
WizzupI see13:55
dsc_tmlind: have never used omweather, this weather application is just something I made up, from scratch14:29
dsc_i did borrow the icons from omweather ;))14:29
dsc_(the weather icons)14:29
jk_000Wizzup: if I move the mouse slowly, the pointer comes along ok. if I move the mouse fast, like in circles, then it can lag many turns. the more turns I do the more turns that stay clot in the pipiline hehe I don't have a mouse now, but if I do 5 quick circles, at least two happen after I let go of the mouse15:01
Wizzupunderstood, sounds like what uvos__ describes15:02
jk_000usb keyboard typing is at normal speed... this is so close to convergence!!! :D and from a droid4 from 2012 !!15:03
jk_000oh! so there is a leste-wayland coming?! :D15:04
dsc_`apt install -y systemd`15:05
Wizzupjk_000: not for years I think @ wayland15:06
Wizzupbut we can fix the X cursor15:06
jk_000hehe :P15:06
jk_000nice! the mouse+keybord+HDMI make the droid4 very, very special!15:07
dsc_jk_000: its like a small pocket PC :)15:08
jk_000dcs_: and born in 2012!15:09
jk_000... is there a way to turn off the wlan-athena on the droid 4? would that save battery-life?15:11
siceloi guess `ip link set wlan0 down && modprobe -r wl1273` is as aggressive as it gets. anyway, wlan chip is well-behaved wrt. power savings15:15
jk_000sicelo: I see, so it stops scanning if the device is idle?15:22
siceloyes it won't scan if it's down and has no driver (at least shouldn't) :-D15:37
jk_000hehe yeah, that is after the modprobe -r, but w/o it?15:38
jk_000if the host device is powered on, there is this urban knowledge that the wlan-anthenas zap battery searching for possible connections15:39
siceloi don't have my d4 around ... so maybe test for yourself and report back to us? :15:40
dsc_https://cdn.kroket.io/~sander/vid/2362362352.mp415:49
jk_000I'll ceck, but ... how do I measure how much energy the wlan-chip uses? with powertop?15:52
jk_000would maemo-leste work on a standard pc with devuan? w/o qemu, directly on the hardware?15:54
Wizzupit could probably, might not be a great experience15:59
buZzjk_000: measure all current with wifi on, measure all current with wifi off? :D16:20
buZzWizzup: it -is- something i'd like to try out for a while, find some touchscreen laptop/tablet/computer and run leste as a desktop experience16:21
Wizzupjust keep in mind you have to physically press your PCs power button to have the screen unlock ;)16:22
buZzhahaha, yes :D16:22
uvos__dsc_: really awsome, im looking forward to having a proper weather app16:37
uvos__Wizzup: buZz: jk_000: i added support to mce for changeing the "power button" to anything quite a while back16:37
uvos__so you can just bind it to f12 or something16:37
uvos__its in mce.ii16:38
buZzooo nice, in mce.ini?16:38
uvos__yes16:38
buZzright, cool16:38
buZzi wonder if we might need some more indepth articles on wiki about all those subsystems16:38
dsc_uvos__: :)16:41
jk_000this all sounds great to me!! ^__^17:00
jk_000I guess I'd just have to add the leste-repositories to my devuan machine and install hildon?17:01
jk_000then pray17:02
buZzpray a lot17:06
buZz:D17:06
buZzjk_000: but yeah, that should/could be a route17:06
buZzthere's also something on https://leste.maemo.org/Virtual_Machine17:06
buZzabout converting to raw for real hw17:07
jk_000buZz: nice, I'll have a look17:07
Wizzupthere is a bit more to it than adding the repos, but not much17:08
Wizzup(I think)17:08
jk_000I'll see if work+family life gives me some time to test that :)18:17
Wizzup:)19:54
freemangordonWizzup: I can;t grok that spqrql :(20:04
freemangordonhow to get a property of an object?20:05
freemangordonlike:20:05
freemangordonuser@devuan:~/git/mafw-tracker-source$ tracker sparql -q "SELECT ?pl {?pl a nmm:Playlist}"20:05
freemangordonResults:20:05
freemangordon  urn:uuid:7f9775c0-32bb-4188-8a25-654a066371d420:05
freemangordonok, how to get 'nie:url' of that playlist?20:06
freemangordonoh20:07
freemangordontracker sparql -q "SELECT ?pl ?url {?pl a nmm:Playlist ;nie:url ?url.}"20:07

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