*** spiiroin_ is now known as spiiroin | 06:42 | |
piggz[m] | norayr: did you have any success | 09:03 |
---|---|---|
piggz | rinigus: ping | 09:03 |
norayr | piggz eh. | 15:03 |
norayr | is it correct that the service should work from the user's name? because on pmos the user's name is user, but i checked, the package is made for alpine, not for postmarketos. | 15:03 |
norayr | i used amazfish on pmos long ago. | 15:04 |
norayr | but now something seems broken. | 15:04 |
piggz[m] | norayr: yes, both parts, the daemon and ui should run as user, not root | 15:30 |
norayr | thank you. | 15:31 |
norayr | i just found my backup of home, and i found my old amazfish configs. | 15:31 |
norayr | i'll try to put that config file and see what will happen. | 15:31 |
norayr | doing that. | 15:31 |
norayr | the watch doesn't change its bluetooth addr after reset, right? | 15:43 |
norayr | because i have a feeling it changed. | 15:43 |
piggz | it does | 16:00 |
*** Ischwitch is now known as Ingvix | 17:20 | |
norayr | piggz, so i used the old file. but changed the bt mac addr in it. and my amazfish sees the watch. it sees the gps version, for example. it sees the serial. | 17:28 |
norayr | but in debug info, tests don't make the watch to receive anything. | 17:29 |
norayr | and i cannot download the data. | 17:29 |
norayr | i understand how hard is for you to be able to understand what is going on so remotely. | 17:29 |
norayr | also by not having such an os/device. | 17:29 |
norayr | when i enter data graphs, download data is not enabled, not active. | 17:30 |
norayr | but at least now bt is connected and the app thinks it is paired, because the config file says so. | 17:30 |
norayr | i guess the watch now doesn't know that it is paired. | 17:30 |
norayr | because last time it was paired with someone's android phone. and since that it did not receive a pairing suggestion. though the gnome settings bluetooth shows it connected. maybe i can unpair and pair it in gnome settings, it is safer. | 17:32 |
norayr | if i unpair it from watch, then why did i bring the old file from backup. | 17:32 |
norayr | my problem was that when i was pressing on amazfit bip, nothing was happening. | 17:32 |
norayr | i removed the divice in gonem settings. but then i click on it, and it is 'connected'. | 17:33 |
norayr | nothing happens on watch side. | 17:34 |
norayr | anyway it shows connected now. it suggests to disconnect. | 17:41 |
norayr | but data graphs - download data is not enabled. | 17:42 |
norayr | piggz, can you tell me if i should do a factory reset of the watch in order to force the app/daemon to pair to it? | 17:46 |
norayr | or the watch which is paired to some other phone still should be able to pair with this one. | 17:46 |
norayr | when i stop the daemon and start it myself in console, i only see 'starting', and then 'mpris: failed attempting to connect to dbus' and segmentation fault. but when it starts by itself, it starts well. | 17:48 |
piggz[m] | norayr: its a Bip right? i think it needs paired to get all info .. without proper pairing, it can see some info IIRC, probably why it shows gps/serial ... but it will probably also disconnect, becuase it has to via the pairing process with the app | 19:00 |
piggz[m] | can you get the daemon logs from journal or such on that OS? | 19:01 |
norayr | so the logs are in... do you write in systemd log? | 19:01 |
piggz[m] | well, they go to stdout, and systemd puts them in the journal on sailfish | 19:02 |
piggz[m] | journalctl | grep amaz does it here | 19:02 |
norayr | maybe that's why i cannot find the log. | 19:02 |
norayr | yes but on alpine/postmarketos there is no systemd. | 19:03 |
piggz[m] | are they in syslog? | 19:03 |
norayr | i'll see, i didn't find. | 19:03 |
piggz[m] | /var/log/messages ? | 19:03 |
norayr | i'll try | 19:03 |
norayr | in a couple of minutes | 19:03 |
norayr | i installed syslog-ng and it created /var/log/messages, but when the daemon/watch would write there? | 19:11 |
norayr | should i restart so that daemon also restarts? | 19:11 |
norayr | ok, installed rsyslog instead, rebooting. | 19:13 |
piggz[m] | norayr: what is in the .desktop file which launches the service? does it set any env vars? | 19:16 |
norayr | no. i'll show you in a minute. i checked. | 19:16 |
norayr | that's the desktop file: https://bpa.st/JCLPI | 19:22 |
piggz[m] | that doesnt launch the daemon though | 19:23 |
piggz[m] | can you list the package contents? | 19:24 |
norayr | this is it: https://bpa.st/TVC44 | 19:25 |
norayr | i also don't understand how the daemon starts. | 19:25 |
rinigus | piggz: pong | 19:28 |
piggz | rinigus: there was a question from poetaster about using webhooks on chum:testing | 19:28 |
rinigus | poetaster: as you could see, we are not very enthusiastic about it :) | 19:28 |
rinigus | ... after about a day or more of silence | 19:29 |
rinigus | I suspect that the problem will be submission to chum from chum:testing. there is a risk it will slip through. | 19:29 |
rinigus | poetaster: if you wish to use webhook for testing, you could do it in some private OBS repo. just set chum:testing as provider for libs, if needed | 19:30 |
rinigus | piggz: what do you think about poetaster's question? | 19:30 |
norayr | nothing in /var/log/messages, which appeared | 19:31 |
norayr | i see the list, i select bip | 19:31 |
norayr | it gets selected | 19:31 |
piggz | rinigus: at first i wasnt so against it ... but now you made me think, the service file would copy directly to chum | 19:31 |
norayr | once i remove the finger it gets unselected. | 19:31 |
rinigus | piggz: yes, so we will start rejecting requests from :testing . ideally, it is not needed | 19:32 |
norayr | can we force the daemon to write the log somewhere else? | 19:33 |
norayr | when i strace the daemon, and press, choose the bip watch, then unpress it | 19:34 |
norayr | nothing happens in strace of the daemon. | 19:34 |
piggz | norayr: well, ideally you could run it from a terminal ... but you say it crashes? | 19:34 |
norayr | strace of the daemon shows something that seems to be timer, it works by timer, and sleeps. | 19:34 |
norayr | yes it crashes. without any arguments? | 19:35 |
norayr | i have no idea how they run it | 19:35 |
norayr | in which file from the package content do you think i should look? | 19:35 |
norayr | ok i found | 19:35 |
piggz | whats usr/libexec/amazfish-launcher | 19:36 |
piggz | thats not mine :D | 19:36 |
norayr | it is started by /etc/xdg/autostart/amazfish.desktop which contains the call, | 19:36 |
piggz | why do packagers not upstream stuff | 19:36 |
norayr | Exec=/usr/libexec/amazfish-launcher | 19:36 |
norayr | and TryExec=/usr/bin/harbour-amazfishd | 19:36 |
piggz | whats that launcher? i shell script? | 19:37 |
piggz | s/a | 19:37 |
norayr | this is the launcher: https://bpa.st/NU6SM | 19:37 |
norayr | and this starts it: https://bpa.st/LQ5SY | 19:38 |
norayr | ok i killed the daemon | 19:39 |
norayr | let me try starting the script. | 19:39 |
norayr | but... i guess the daemon daemonizes itself? | 19:39 |
piggz | no | 19:39 |
piggz | it just runs as a normal process | 19:39 |
piggz | try running the script but without the exec call | 19:40 |
norayr | this is what happens when i run it from shell, and strace, this is how it crashes: https://bpa.st/BTZLG | 19:41 |
norayr | i cannot run and strace from user i believe, so i did as root. | 19:41 |
norayr | Mpris: Failed attempting to connect to DBus | 19:43 |
norayr | that's why it dies, i guess. | 19:43 |
norayr | but dbus is started. | 19:43 |
norayr | if i restart it, everything, the ui of the phone restarts. | 19:44 |
piggz[m] | 1/ you are trying to run as root, not user, and 2/ I suspect an XDG env var is not set, so it cant find the bus | 19:44 |
norayr | yes! probably! as user it also crashes. with failure to connect to dbus. | 19:45 |
norayr | probably when started from within the shell, the shell knows the XDG env vars. | 19:45 |
norayr | and when i connect via ssh, i don't know those | 19:45 |
piggz[m] | what is DBUS_SESSION_BUS_ADDRESS and XDG_RUNTIME_DIR | 19:46 |
norayr | aaaaa | 19:46 |
norayr | i started it in terminal, without ssh. | 19:46 |
piggz | thatll do it | 19:47 |
norayr | minute | 19:47 |
norayr | i exported the same vars from ssh, and now the daemon starts in ssh. and i can copy paste and send everything to you. | 19:50 |
norayr | so first of all, shell the bt be connected to watch or not? | 19:51 |
norayr | i believe now i removed the device from bt settings. | 19:51 |
norayr | yes, it is not set up. | 19:52 |
norayr | should i 'set up' it? in gnome settings. | 19:52 |
norayr | or i can pair in console. | 19:52 |
norayr | ok, the daemon log shows that it sees that the watch connected. | 19:52 |
norayr | when i connected it in gnome settings | 19:52 |
norayr | now when i press many times to the amazfit bip watch in the list of watches | 19:53 |
norayr | 2023-01-09 23:53:21.900 : virtual void HuamiDevice::onPropertiesChanged(QString, QVariantMap, QStringList) "org.bluez.Device1" QMap(("RSSI", QVariant(short, -60))) () | 19:53 |
norayr | these strings repeat themselves in the daemon log. | 19:54 |
norayr | not sure that it is triggered by the press. i don't press anymore, i think those are appearing | 19:54 |
norayr | https://bpa.st/IGMKS - this is the log so far. | 19:55 |
norayr | i see it is disconnected in bluetooth settings. | 19:57 |
norayr | connecting again | 19:57 |
norayr | i should not reset the watch right? | 20:01 |
norayr | to generate the new hardware address. i am afraid i won't be able to make it work if i reset it. | 20:01 |
norayr | it can connect to the app without being reset right? | 20:01 |
norayr | it seems it is not possible to work with reset watch. i need the android app to make it work again. | 20:16 |
piggz[m] | no | 20:20 |
piggz[m] | remove from gnome settings, and do everything from the app | 20:20 |
norayr | oh! | 20:20 |
norayr | so even with reset watch which 'open the app to pair' i can do that from the app? | 20:21 |
norayr | which shows | 20:21 |
piggz | should be able to on a bip yes | 20:21 |
piggz | pairing is quite well supported and simple on that device | 20:21 |
norayr | yay | 20:22 |
norayr | trying | 20:22 |
piggz | just to be sure, reset watch, delete pairingg from gnome, killa daemone and app | 20:22 |
piggz | start daemon, start app, try and scan/pair from app | 20:22 |
piggz | and send logs if it doesnt work | 20:22 |
piggz | you should get a tick/cross dialog on watch if its working | 20:22 |
norayr | shell i remove the config file? | 20:23 |
norayr | let me try from afresh | 20:23 |
piggz | shouldnt need to, but if you like | 20:23 |
piggz | ive done many pairings with an old device config there | 20:24 |
norayr | sooo, eventually, i cliced on amazfit bip, and it remains selected | 20:26 |
norayr | but now what? | 20:26 |
norayr | it is just selected | 20:26 |
norayr | inthe log i see 2023-01-10 00:27:08.035 : DeviceInterface::onRefreshTimer | 20:27 |
norayr | only that. | 20:27 |
piggz | hmmm, can you runthe UI from a terminal? ... if it doesnt change dialog after clicking the watch, i suspect there is a QML error being printed preventing loading the next page | 20:31 |
norayr | minute! | 20:31 |
norayr | component is not ready | 20:35 |
norayr | file /usr/lib/qt5/qml/org/kde/kirigami.2/PageRow,qml:916: Error while loading page: qrc:/qml/pages/PairPage.qml:2 module "org.kde.bluezqt" is not installed. | 20:35 |
norayr | so i need to find that package. | 20:35 |
norayr | now it wooorks. trying to pair | 20:40 |
norayr | i see the list of devices. | 20:40 |
norayr | i will report that to the maintainer. (though so far i only was able to find his name, not the email) | 20:41 |
piggz[m] | as i suspecte d:) | 20:41 |
norayr | i don't get this pairing request on the watch anyway, yet. maybe it'll be able to do so if i setup it with android. :/ | 20:43 |
norayr | qrc:/qml/components/platform/PagePL.qml:49: TypeError: Value is undefined and could not be converted to an object | 20:43 |
norayr | omg it worked! | 20:43 |
norayr | aaaaaaaaaaaa | 20:44 |
norayr | thaaank you Adam! | 20:44 |
piggz | no prob | 20:51 |
piggz[m] | norayr: you could also suggest to packager they could upstream scripts for others to use also | 21:30 |
norayr | i wrote him an email. | 21:41 |
norayr | what do you mean by upstreaming scripts? | 21:42 |
norayr | what was there, just that libexec script with two lines, right? | 21:42 |
norayr | ok, i'll add the email with the suggestion of upstreaming everything he finds useful. | 21:43 |
norayr | i hope my email will get read. | 21:43 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!