libera/#maemo-leste/ Tuesday, 2024-12-17

siceloadd it.08:28
Wizzupyeah11:20
sicelobtw how to passthrough a modem into qemu? last night i wanted to use my laptop's modem in leste vm11:56
siceloi added `-device usb-ehci,id=ehci  -device usb-host,id=modem0,vendorid=0x0bdb,productid=0x193e` in my qemu command line, but that didn't seem to have any effect11:57
Wizzupwhat I do:12:10
Wizzuphttps://pastebin.com/raw/6QY57HxV12:10
WizzupI think that should be it12:11
Wizzupyou might awnt either ehci.0 or usb-bus.0 depending on the speed12:11
sicelono luck.12:15
sicelowonder what's wrong :-/12:15
Wizzupmaybe modemmanager grabs the modem on your host12:15
Wizzupyou should see usb resets in dmesg by qemu12:16
Wizzupalso some modems change usb ids once they are in modem mode12:16
Wizzuphttps://www.aptly.info/ this seems nice, nicer than reprepro12:17
Wizzupmaybe we can use it at some point12:17
siceloModemManager is disabled, and nothing happens on dmesg12:17
Wizzupare you sure you got the right usb ids?12:18
siceloyeah :-)12:19
sicelo$  lsusb | grep Ericsson12:19
siceloBus 003 Device 005: ID 0bdb:193e Ericsson Business Mobile Networks BV N5321 gw12:19
WizzupI don't know if the id= matters, but try what I did in my paste for the id ust in case12:19
Wizzupyou can also start qemu with monitor mode (as in my paste) and then manually add usb devices and see if that does anything different12:20
sicelomaybe the vm's kernel doesn't support my modem12:25
siceloat least qemu itself appears to see the modem, https://paste.debian.net/1340239/12:26
WizzupYou should see it in lsusb regardless12:37
siceloreally weird. it's a built in modem12:46
siceloanyway, will look at it some other time12:54
Wizzupsicelo: maybe it's already bound to some kernel driver13:27
Wizzupyou might have to rmmod those13:27
sicelothat might be it indeed. will do13:42
mkfhello there.18:07
freemangordonhi18:09
mkfi've got a n900! :D18:10
mkfsadly it's locked.18:10
mkfwhat can i do for it?18:11
freemangordonbetter ask on #maemo18:12
mkfah.18:12
mkfhanks18:12
dsc__vkb progress https://plak.infrapuin.nl/selif/tdhuoq5x.mp418:13
freemangordondsc__: :)18:13
freemangordonnice18:13
sicelonice. that's in a Qt application?18:14
dsc__cheated a bit, I'm not "properly" communicating yet, needs some more work etc ;p18:14
dsc__yes18:14
dsc__via a Qt input module (plugin)18:14
dsc__https://github.com/kroketio/qt5-platform-him (heavy WIP)18:15
inky> vkb progress https://plak.infrapuin.nl/selif/tdhuoq5x.mp418:17
inkywhat are you trying to accomplish?18:17
freemangordoninky: hmm?18:17
freemangordonvkb in qt18:17
inkyany qt?18:17
inkynon patched?18:18
freemangordonwhat is 'patched qt'?18:18
inkyi thought maemo uses own forks of gtk2, gtk3 and qt for him to work.18:18
inkyno qt?18:18
freemangordonqt is not forked18:18
inkyoh18:18
freemangordonit has maemo platform plugin18:19
freemangordongtk3 is not forked as well18:19
inkywhat did you do with gtk3?18:19
freemangordonrephrase, I don't understand the question18:20
inkyand if qt has platform plugin, what dsc is trying to improve?18:20
inkyi remember you was working on gtk3 and18:20
freemangordonwe don;t have qt plugin for maemo vkb18:20
inkysince that vkb works in dino let's say.18:20
freemangordonthis is what dsc__ is doing18:20
freemangordonI made gtk3 input method plugin18:21
freemangordonwell, ported gtk2 one18:21
freemangordonbut that does not mean qt applications have vkb because gtk3 ones have18:21
dsc__<inky> and if qt has platform plugin, what dsc is trying to improve? <== platform plugin != input handling module, there are different types of plugins for Qt, they are under "/usr/lib/x86_64-linux-gnu/qt5/plugins", O18:22
freemangordon:nod:18:22
dsc__I'm working on a "platforminputcontext" for qt5, which works with hildon/him for its vkb18:22
freemangordonther is also maemo5 style plugin18:22
inkyokay i didn't know vkb doesnt work with qt.18:22
dsc__freemangordon: indeed18:22
freemangordoninky: it does not18:23
inkyi probably forgot since for months i use only my friend's coolkbd, which is abre to enter characters  everywhere.18:23
freemangordonmaybe we shall ask your friend to work on HIM vkb and make it working everywhere :)18:24
dsc__yes please :)18:25
arno11dsc__: nice @vkb :)18:51
inky> maybe we shall ask your friend to work on HIM vkb and make it working everywhere :)19:06
inkyhe won't. he likes to write own things. but19:06
inky* i can package coolkbd and write  a wiki page on how to use it.19:06
inky* i can port all vkb language configurations to coolkbd19:07
inkyor19:07
inky* i know what did he do. i can work with someone who understands vkb and i think if they eliminate that window which opens to write to buffer, and catch what vkb buttons show, then there's a function in xorg which adds that button to the current layout. and it can be used.19:08
Wizzupmkf: if you get stuck on unlocking or #maemo is not response, do ask again here and we can try to help19:17
Wizzups/response/responsive/19:17
tmlindfreemangordon: starting uart gsm mode from the phy driver makes sense to me, but not so sure about the audio driver accessing /dev/gsmtty instances though..19:25
freemangordontmlind: yeah, for 2 days I am thinking of it, not a good idea19:28
freemangordonserdev_ngsm seems the proper way, but with doing dlci links serdev too19:29
freemangordonnot sure how easy would be to achieve that19:29
freemangordonarno11: do we have caltool installed on leste n900?19:30
tmlindfreemangordon: yup dlci links serdev too would be ideal19:34
freemangordonyeah, buty I am not sure when (and if) I will have time and will to do it19:34
freemangordon*but19:34
freemangordongiven that so far motmdm is the only user19:35
arno11freemangordon: @caltool, apparently not19:36
freemangordondevlocktool?19:36
freemangordonarno11: ^^^19:36
freemangordonI have it in the VM19:37
freemangordonon d4 too19:37
arno11i have libdevlock-bin19:37
arno11i don t have devlocktool19:39
freemangordonit is in libdevlock-bin19:40
freemangordontmlind: not sure what to do :(19:41
freemangordonsicelo: tmlind said you mentioned some usermode daemon to control audio instead of alsa, could you elaborate?19:42
arno11freemangordon: ah ok19:43
freemangordontmlind: so, do you know - in order dlci link to become serdev device, shall I create uart device for each link? or, tty device is enough?19:46
freemangordonif latter, then creating new tty driver is the proper way, or?19:47
sicelofreemangordon: tmlind: i don't think it's useful/related to the d4 issue(s). although i don't fully remember what it was, i guess it was either callaudiod or wys, or even eg25-manager.20:06
tmlindfreemangordon: each dlci is really packet data at that point.. a tty should not be needed20:14
freemangordonso just register serdev? but then, how would it appear in /dev?20:15
tmlindthere is no /dev entry, it's all kernel except for the ones that need a tty and a /dev entry for userspace access20:15
freemangordonsorry for maybe stupid questions, but I am not really into guts of uart/tty/serial bus20:16
freemangordonso, you say we shall not expose any dlci to userland?20:16
tmlindthere is a mask in the dts files with the ngsm patches for the dlci that get the /dev entry created20:17
freemangordonI mean - volume control dlci stays in kernel (so no /dev), but what about the others?20:17
freemangordonyes, I saw that20:17
tmlindwell gnss allows writes over the /dev/gnss so no dlci needed there either20:17
freemangordonbut, if I am to implement each dlci as serdev, wouldn;t we want unused (by kernel) links to be userspace exposed?20:18
tmlindthe unused ones could have n_gsm created /dev/gsmtty20:18
tmlindno, serdev is for kernel drivers20:18
freemangordonah, I see now20:18
tmlindthen the protocol layer whatever bluetooth/gnss/audio exposes stuff to userspace20:19
freemangordonok20:19
freemangordongot it20:19
freemangordonso, do you have a link to the latest serdev_ngsm version on lore, I want to see the commets/requirements20:20
tmlindi guess rather the kernel device framework like bluetooth/gnss/audio (instead of protocol layer..)20:20
freemangordonyeah, got it20:20
tmlindjust search for gsm serdev in lore and they should all come up20:20
freemangordonor, what is the lates version setn?20:20
freemangordonok20:20
tmlindso maybe the only thing that is really needed is.. make the child device read/write use serdev20:21
tmlindinstead of the custom read/write functions20:21
freemangordonok, will have a look during the holidays20:21
tmlindok20:21
tmlindfreemangordon: i think serdev gsm may need to just call serdev_controller_add() for each dlci?20:23
tmlindand i guess serdev_device_add()20:24
freemangordonok, will have a look at how it's done for normal serdev devices, thanks for the hint20:25
tmlindfreemangordon: hmm i guess ideally one serdev controller (which we might already have) that calls serdev_device_add() for each dlci? this just based on memory though..20:36
freemangordonok, lemme have a look20:41
freemangordonserdev_tty_port_register already calls   serdev_controller_alloc20:43
freemangordonoh, wait, that's not a new code20:44
freemangordontmlind: do I get it right, that gnss shall be changed to serdev_device_driver from platform_driver?20:47
freemangordonthe same for motmdmd audio20:47
freemangordon*motmdm20:47
arno11sicelo: i got image generation working on n900 :P22:44
arno11what is working atm: chat, vision, img generation, audio, model and api key selection, saving-loading chat, temperature, uploading files22:56
arno11using libcurl22:58
Wizzupcool :)23:21
arno11:) the ui is quite fast btw but i need to clean up lot of things before sharing23:29

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