libera/#maemo-leste/ Thursday, 2024-12-12

tmlindfreemangordon: ok great if dtmf is there too, so really it's only the audio remaining then05:53
tmlindhmm so both CLVL and VTS are on n_gsm dlci 2, maybe there's some command similar to CLVL on the ttyUSB4?05:56
subbolloHi06:34
subbolloN900 gets stuck 2 minutes after hildon-desktop loads06:36
subbolloEven after setting the apt-worker interval to a crazy amount06:37
freemangordontmlind: even if there is, I can't find it :(06:50
subbolloIt maybe wifi related. When it succesfully connects to the internet it just works06:50
freemangordonsubbollo: do you have enough free space?06:51
freemangordontmlind: I see n_gsm in upstream, what does upstream lack in terms of motmdm?06:52
subbollofreemangordon: yes i do. The only thing that seems to fix it is if it finds a known wifi network and it has internet06:56
freemangordonweird. I am not aware of any wifi issue on n90006:57
freemangordonbut I am not using it either06:57
freemangordonlets wait for arno11 or sicelo, then may have ideas06:58
sicelothere's no wifi issue.07:05
sicelosubbollo: the device is just testing your patience :-)07:06
subbolloIt maybe wifi related. When it succesfully connects to the internet it just works07:09
subbollo[12:06:09 a.m.] <subbollo> Could it be that apt-worker waits for internet connection before even checking for the interval?Wiki warns about wating til second boot to connect to a network07:09
subbolloSry lmao07:10
sicelothe thing is ... n900 gets super slow when there's a lot happening simultaneously, such as at boot or when an internet connection is established07:11
siceloso just be patient07:12
subbolloBut ive waited for 20+ minutes when theres no known wifi around and it stays stuck. Not even the kb turns off when slid07:12
sicelothe lag at boot, just after desktop starts showing, is actually there even on Droid 4 ... even Librem507:13
subbolloOh yeah that reminds me07:13
freemangordonsicelo: not here (lag on d4)07:14
subbolloHow can i make a battery for the droid 407:14
* sicelo re-reads the problem statement07:14
freemangordonsubbollo: I think somebody made pictures, but not woken-up enough to remember who07:15
freemangordonWizzup: ^^^07:15
freemangordonsubbollo: in short - you need a new battery that's compatible with d4 battery07:16
freemangordonthen you dis-assemble the original battery, carefully remove the electronics from there and solder it to the cell of the new battery07:17
subbolloI found a lot of d4 batteries on aliexpress but idk if they are even real07:17
freemangordoneven if they are, they are so old that it makes no sense07:17
sicelofreemangordon: it's definitely there. boot device, and notice that you cannot launch application list very soon after the desktop is loaded. pressing the icon for it takes a little while to respond. it not a lot, but it's there.07:17
subbolloBut the problem is the flimsy connector that kept breaking07:17
subbolloNot the battery itself07:18
freemangordonsicelo: well, if you name half a second delay 'lag', then so be it :)07:18
siceloit's not there later on. only at boot07:19
freemangordonagain, that's not like device not responding for 2 minutes07:19
freemangordonmaybe depends on the speed of uSD07:20
sicelosubbollo: so, you say device is unresponsive until you have internet connection?07:20
subbolloThanks a lot. Please test the issue on the n900 if u can. Take ur n900 away from any wifi it knows and boot it07:20
subbollosicelo yes07:20
freemangordonsubbollo: did you do any 'improvements'?07:21
siceloactually most of the time I'm not connected to wifi while using N90007:21
subbolloYes i did both the .nomedia and check_interval set to max int value07:22
subbolloHold up lemme check again real quick brb07:22
freemangordontmlind: also, I was under the impression that n_gsm patches I made 2 years ago are already upstream :). Shall I send them?07:24
sicelosubbollo: maybe you should see what htop shows07:27
siceloi07:27
siceloI.e. without internet, I would expect htop to show you the hyperactive process that's looking for an internet connection07:28
freemangordontmlind: maybe re-send ngsm servdev patches, I can take over after initial comments if you don't have time07:36
arno11subbollo: interesting @wifi08:31
arno11with devel upgrade, hildon desktop is unresponsive for around a minute or so. but a lot more if the usdcard is slow08:34
arno11*on n90008:34
freemangordonuvos: do you know what AT$QCTER does?08:47
freemangordonit seems it switched the modem to some weird mode09:04
freemangordonbut I cannot get it out of there :)09:04
freemangordonmodem AT interface that is09:04
freemangordonI tried all baudrate etc combos, to no use09:05
arno11hmm, last n900 img is from sept and was half broken iirc09:18
arno11it could explain subbollo issues09:22
Wizzupfreemangordon: maybe some qc testing?09:45
freemangordonWizzup: can I reflash the modem?10:37
Wizzupprobably, but I don't know anything about this10:38
freemangordonalso, it is not that it does not respon to commands10:38
WizzupI have 3-4 more droid4s here at your immediate disposal if that helps unblock10:38
freemangordon*respond10:38
freemangordonbut in a weird way10:38
freemangordonits like the baudrate or line discipline is different than default10:38
freemangordonaccording to what I have found over the inet that command changes the baudrate only10:39
dsc_freemangordon: do you happen to know how vkeyboard gives the result to the application?10:50
dsc_on a conceptual level10:51
dsc_you type "AAAA" in vkb, close vkb, "AAAA" is inserted into the client through what mechanism?10:51
Wizzupmaybe HILDON_IM_INSERT_UTF8 or so?10:52
dsc_yes I saw that one, which is a x11 event, but I'm not receiving HILDON_IM_INSERT_UTF8 when monitoring for it10:52
Wizzup    if (event->xclient.message_type == ATOM(_HILDON_IM_INSERT_UTF8) &&10:54
Wizzup        event->xclient.format == HILDON_IM_INSERT_UTF8_FORMAT) {10:54
Wizzup        qHimDebug() << "HIM: x11FilterEvent( HILDON_IM_INSERT_UTF8_FORMAT )";10:54
Wizzupfrom qt-x11-maemo/src/gui/inputmethod/qhildoninputcontext_x11.cpp10:54
dsc_yes10:54
Wizzupso this is indeed not dbus as I said earlier, but it's all x11 client messages10:54
Wizzupin any case - that particular client message type is used to insert arbitrary strings10:54
dsc_its reasonable to expect such event when closing the keyboard but its not being emitted10:55
Wizzupbeing emitted by who/what?10:55
dsc_by him10:55
Wizzuphow do you close the keyboard?10:55
dsc_by clicking outside of the vkb10:56
Wizzupok, let me check if that is indeed how this ought to be done10:56
dsc_it works in the terminal +  vkb10:56
Wizzupok10:56
dsc_https://github.com/maemo-leste/hildon-input-method/blob/33cc6ec1cfe5a6a5c5c576edee586a5082befba4/src/hildon-im-ui.c#L211210:58
dsc_ill debug this10:58
dsc_or just the communication in general10:59
dsc_to see the happy flow10:59
dsc_happy path* ;p11:00
Wizzupok, I can try to do some write up of how I understood this to work back when, I can probably say that I know more about x11 client events than dbus, lol11:01
dsc_the plugin installs an input event handler globally11:03
dsc_then it interprets incoming xcb/x11 events11:04
dsc_and determines if they come from vkb or Qt11:04
Wizzupyes, that is correct, that is what I also did, iirc you need to tell h-i-m that you are a 'h-i-m capable' program11:06
dsc_if the vkb is active, it will eat up events11:06
Wizzupfor this you need to set certain X11 atoms11:06
dsc_right11:06
dsc_that might actually be my issue yeah11:07
Wizzupalthough I think if the vkb is raised, you might have already set it - unsure11:10
WizzupI think you're basically where I got stuck :D11:11
Wizzupbasically at the point where I got stuck*11:11
dsc_yeah I can raise it just fine11:12
dsc_altho manually11:12
dsc_not via focus11:12
dsc_still, regardless of focus I'm expecting some sort of result11:12
dsc_after dismissing the vkb11:12
Wizzupoh, okay, I see, how do you raise it manually?11:13
dsc_its just `sendHildonCommand(HILDON_IM_SHOW, w);`11:13
dsc_where w is QWidget*11:13
dsc_i dont understand that QWidget* part yet11:14
dsc_QLineEdit probably inherits from QWidget11:14
Wizzupcan you link to the code in question? or tell me where to look?11:14
dsc_yeahg sec11:14
dsc_Wizzup: https://github.com/kroketio/vkb/tree/master11:17
dsc_https://github.com/kroketio/vkb/blob/master/src/lib/qhildonplatforminputcontext.cpp#L5111:17
dsc_cmake -Bbuild .11:18
dsc_make -Cbuild -j411:18
dsc_./build/bin/hello11:18
dsc_this is never called: https://github.com/kroketio/vkb/blob/master/src/lib/qhildonplatforminputcontext.cpp#L34311:18
dsc_press the btn to open the keyboard :P11:19
dsc_https://plak.infrapuin.nl/selif/d6m4hj1g.txt11:22
dsc_probably missing a bunch of setup to massage vkb into working properly11:23
dsc_so basically you pass vkb a reference to the client?11:23
dsc_so it knows where to send events to?11:24
dsc_well, it already knows because we're receiving events11:24
Wizzupis this standalone program a copy of my qt5 wip?11:25
Wizzupjust for me to understand11:25
dsc_its a standalone program with parts from your WIP, but also parts from https://github.com/community-ssu/qt-x11-maemo/11:26
dsc_so its not a plugin, but it shouldnt matter I think11:27
dsc_because we're only testing communication right now11:27
dsc_the plugin is only so that its applied to any Qt program running system-wide11:30
Wizzupyes11:38
subbolloI just tested it and it really looks like it requires an internet connection in the first 1.5 minutes after hildon-desktop shows the background. I tested with a wifi with no internet and it gets indefinitely stuck too.14:31
subbolloNvm idk wtf goin on14:32
subbolloBut some aint right14:33
subbolloAnyway, the way i got to this stuckment is i installed some image that came with 6.1.x kernel. Then did a normal apt- get upgrade, then found out about the wiki and enabled -devel and did a dist-upgrade to get overclock, but somehow that didnt upgrade kernel so i ended up doing a apt-get upgrade again to fix overclock14:35
subbolloCould it alp be my dumb u1 sdcard?14:36
Wizzupsubbollo: what device, what image did you start with14:40
arno11Wizzup: last time i did a fresh install, upgrade to devel was 'broken' by gconf2 and dbus errors. reconfiguring them solved the upgrade but device was unstable with input methods not working and extrem slowness.14:44
arno11another guy reported the same symptoms on TMO14:44
WizzupI see, and what device is this? n900?14:45
Wizzupoh, sorry, diff. user I suspect14:45
arno11on n900 that is14:45
Wizzupyeah, for you I know :D14:46
arno11:) i mean the 2 other users are on n90014:46
arno11subbollo: i recommend you to wait a new img. overclock is cool, but better have a stable and smooth device before using it14:48
arno11i mean it is smooth enough with no overclock actually (when the install is ok ofc)14:50
freemangordonWizzup: re my modems(s)15:29
freemangordonthey behave very weird, it,s like 2 devices are connected in parallel or something15:29
subbolloN900 and i cant remember what image but it couldve been the april one cause i flashed it in june15:30
arno11ah ok. so what did you do exactly ? fresh install, no wifi on first boot, expand card, reboot, upgrade ? (you should directly dist-upgrade to devel btw)15:34
arno11and reboot before tweaking anything15:35
arno11ah and you should check if swap is activated btw15:37
subbolloYes fresh install and expand on first boot. Yes i did reboot and left it that way after finding out it was slow. And i just picked it up a couple days ago and started tweaking, and did the .nomedia and apt-worker check_interval fix. Then later on i upgraded kernel to 6.6 in order to get overclock to work, cause the boost file wouldnt appear on 6.1.15:43
subbolloI really noticed this problem after the dist-upgrade i did that didnt upgrade the kernel. Basically it was like this: flashed "april" image, expanded card, connected to wifi, installed emacs, left it that way for like 5 months, apt update then apt upgrade, some packages didnt configure well, did a dpkg --reconfigure -a, enabled -devel, dist-upgrade15:43
subbollothat didnt upgrade kernel, apt update and apt upgrade.15:43
Wizzupyeah, the dpkg configure problem with gconf is annoying15:43
Wizzupthis should not happen on later images at least15:43
subbolloIts either something wifi related at boot time, my u1 card that somehow gets it stuck forever or idk wtf goin on15:46
arno11Wizzup: it happened to me with the last img from sept iirc15:47
arno11subbollo: what kind of u1 btw ?15:48
subbolloThe adata 32gb pink and orange one15:48
arno11probably too slow unfortunately, specially when updating15:51
arno11but anyway that's not the main issue actually15:52
tmlindhmm so are the usb qmi kernel and ofono in some devel repo? i have deb https://maedevu.maemo.org/leste chimaera-devel main contrib non-free droid416:09
tmlindfreemangordon: did a reboot clear the modem? you can always reflash the modem if nothing else helps16:09
tmlindfreemangordon: feel free to take over the ngsm stuff16:12
subbolloHow can i get openmediaplayer to scan my music?18:14
Wizzupit think it should do that automatically, but it won't scan everything, just some directories18:15
subbolloWhat are those directories?18:21
subbolloDid the .nomedia thing prevents it from scanning?18:21
Wizzuplet me pull up gsettings and check18:26
Wizzup$ gsettings get org.freedesktop.Tracker.Miner.Files index-recursive-directories18:28
Wizzup['&DESKTOP', '&DOCUMENTS', '&MUSIC', '&PICTURES', '&VIDEOS']18:28
Wizzup$ gsettings get org.freedesktop.Tracker.Miner.Files index-single-directories18:28
Wizzup['$HOME', '&DOWNLOAD']18:28
Wizzupthose are XDG dirs18:28
Wizzupyou can add to this and it will get honoured18:28
sixwheeledbeastis tracker config extras package available in leste?18:53
freemangordontmlind: I reflashed it (I think so), didn't help20:44
freemangordonflash-droid-4-fw.sh, I think that's made by you20:45
freemangordontmlind: I think kernel/ofon are still not in ther repos20:46
freemangordonWizzup: ^^^20:46
freemangordonwill you build kernel20:47
freemangordontmlind: is doing 'fastboot flash radio radio.img' enough to flash the modem?20:49
freemangordonofono you should build from https://github.com/maemo-leste-upstream-forks/ofono/tree/upstream-wip20:54
Wizzupdid you flash radio.img?20:54
Wizzupor whatever it is20:55
freemangordonWizzup: yes, see 2 lines ^^^20:58
freemangordonactually I did flash-droid-4-fw.sh20:59
freemangordonpart of it is flashing radio.img20:59
freemangordonno use20:59
freemangordonseems some nvram is corrupted or dunno20:59
Wizzupoh, maybe dump nvram21:00
freemangordonhow?21:00
Wizzuphttps://github.com/tmlind/tcmdrw21:01
Wizzupmaybe compare21:01
Wizzupthat's all I know21:01
WizzupI wonder if radio is maybe wifi21:02
freemangordonhmm, dunno21:05
freemangordonI guess no, I think I saw some lte/gprs strings relatot to it21:05
freemangordon*related21:06
Wizzupok21:06
freemangordonwill try nvram thing21:06
Wizzuphere is how we use it https://leste.maemo.org/Motorola_Droid_Bionic#Unlocking_the_modem_for_usage_in_Europe21:06
Wizzupbut it can dump whole regions21:07
freemangordonit really looks like whole config is garbage21:08
freemangordonand it looks like it types commands to itself21:08
freemangordonit is really weird21:08
freemangordonas soon as I attach minicom and issue ATI, I get response to ATI, but then several more OK and ERROR messages21:09
freemangordonlike if it thinks its own response is commands from the user21:09
tmlindfreemangordon: yeah flashing radio.img should be enough21:30
tmlindmaybe you put it into some echo mode like dlci 7 is on ngsm?21:30
tmlindi think flashing radio.img just copies it to device, you need to let it reboot to flasher that runs the update-binary 3 1 radio.zip on the file extracted from the radio.img while modem is in uart mode21:35
tmlindif you do that from linux you need to restart the modem 2 or 3 times after flashing21:36
tmlindto boot modem into flash mode, you need to modprobe phy-mapphone-mdm6600 flash_mode=3 with the modem flash patch i posted several years ago, need to find it21:38
subbolloExcuse me but does the tracker follow sym links? I changed xdg_music_dir to point to a symlink and openmediaplayer still dont show none22:14
subbolloBro i cant even get irc think working on. Maybe i just need to stop and get an iphone22:26
gnarfacedoes it really not follow symlinks?22:30
gnarfaceyou sure you're not just missing some other XDG_* variable?22:30
gnarfacei'm not entirely clear on it, but i was under the impression that you usually have to set either XDG_RUNTIME_DIR or several others at once22:31
arno11subbollo: please wait for a new img. don't waste your time installing stuff on an half broken install22:51
arno11(specially if your device is slow)22:52

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