| *** n2klb_ is now known as n2klb | 01:52 | |
| sharks__ | Hey @mal, can I bug you (or anyone else who might know) please about usb moded? See https://github.com/sharks-dev/sailfish-on-murray/issues/3 | 08:47 |
|---|---|---|
| sharks__ | it appears usb moded is looking for configfs at /config not /sys/kernel/config. Also my configfs folders are missing and need to be manually created each boot. Have I missed something? | 08:47 |
| sharks__ | Also, is there any difference between `zypper ref && zypper dup` vs `pkcon refresh && pkcon update`? | 08:49 |
| Mister_Magister | sharks__: zypper is preferred, pkcon is wrapper for zypper, but pkcon's update is more akin to zypper up | 08:49 |
| Mister_Magister | pkcon was meant to standardise interface between distros but it turned out to be just kinda trash and nobody adapted it xd | 08:50 |
| sharks__ | Thanks Mister_Magister. One of my users has against my advice performed the latter set of commands and their device now has mismatched kernel and modules versions (`uname -r` doesn't match `/lib/modues/*`) | 08:50 |
| Mister_Magister | nobody but sfos ofc | 08:50 |
| Mister_Magister | for pkcon i think there's dist-update or smth like that | 08:51 |
| sharks__ | Yeah, great. That explains it then, thanks | 08:52 |
| sharks__ | So modules were updated but kernel wasn't | 08:52 |
| Mister_Magister | i basically repeat "keep calm and zypper ref; zypper dup" so much so i want it on a tshirt xd | 08:53 |
| Mister_Magister | sharks__: i think it would be useful if you did zgrep -i config /proc/config.gz | 08:54 |
| sharks__ | Lol. Yeah I wish they had used Zypper like I said, now they're making my port look bad! | 08:54 |
| sharks_ | Apologies @Mister_Magister, I had to step out for a few minutes. I do not have `zgrep` on my system. Is `zcat | grep` the same thing? If so, the output requested is here --> https://paste.opensuse.org/pastes/15b5da7bdf5f | 09:12 |
| Mister_Magister | sorry try grepping for configfs but you dumped entire config so it works anyway so don't | 09:19 |
| Mister_Magister | configfs looks good | 09:19 |
| sharks_ | Heh, I thought grepping for "config" was a bit useless, that's okay. I thought configfs was good. | 09:20 |
| sharks_ | Out of curiosity, what kernel version does miami have? | 09:22 |
| Mister_Magister | 5.4 | 09:23 |
| sharks_ | Same as me. You did not have to do anything to make usb-moded work? I wonder what the difference is. | 09:25 |
| sharks_ | Do you have `/config/usb_gadget/` or `/sys/kernel/config/usb_gadget/`? | 09:26 |
| Mister_Magister | usb was pain but i don't remember similar issue | 09:35 |
| sharks_ | Okay, thanks for your help. I'll wait to see if mal or anyone else can suggest anything more | 09:40 |
| mal | https://github.com/mlehtima/droid-config-fp5/blob/master/sparse/etc/usb-moded/usb-moded-fp5.ini the gadget_base_directory | 11:39 |
| Mister_Magister | mal: but his directory doesn't exist, that's the issue | 11:42 |
| Mister_Magister | unless sharks_ you got some other directory in there | 11:42 |
| mal | so you change it | 11:42 |
| Mister_Magister | to another non-existent directory? i'm confused | 11:43 |
| Mister_Magister | I guess we need sharks_ to do ls /sys/kernel/config/usb_gadget/ | 11:44 |
| mal | where are the usb configs? | 11:44 |
| sharks_ | I have set gadget_base_directory to both /sys/kernel/config/usb_gadget/g1 and /config/usb_gadget/g1. It does not appear to make a difference so long as I have run `mount -t configfs none /config`, but if I have not, then usb_moded complains `CONFIGFS not detected` regardless of what `gadget_base_directory` is set to | 11:45 |
| mal | that is lvm based build? | 11:45 |
| sharks_ | `ls /sys/kernel/config/usb_gadget/` is empty after a reboot. If I manually create `mkdir /sys/kernel/config/usb_gadget/g1`, and `/config` exists and is mounted as configfs, then USB-moded gets a bit further but still complains about `config/c.1` missing, `strings/0x409` missing, etc... Manually creating these makes MTP work but not developer mode. | 11:46 |
| sharks_ | Yes, this is LVM based build | 11:46 |
| Mister_Magister | yeah so its what i understood it to be, there's no other directory to point it to xd | 11:47 |
| sharks_ | Correct, g1 doesn't exist on a fresh boot, and there is nothing else in `usb_gadget` | 11:47 |
| sharks_ | My current thought is to make some systemd service to make these directories before usb-moded starts, but I feel like I shouldn't have to do that? Maybe I should, I don't know. But it also still won't fix developer mode, I can't make that work yet at all | 11:48 |
| Mister_Magister | let me know if after you get the directory stuff to work, usb detection doesn't work xd | 11:52 |
| sharks_ | You mean "USB Charging" test in CSD tool? That's never worked! But I cannot see what effect it has on using the device. It still knows when it is plugged into a charger, I have used a USB mouse in the charger port successfully, and MTP works (after I've manually made all these directories I'm talking about) | 11:56 |
| Mister_Magister | no usb charging is no issue | 11:57 |
| Mister_Magister | usb detection can be | 11:57 |
| sharks_ | Forgive me, what do you mean exactly? Like detection of a USB thumb drive? I haven't tried that | 11:57 |
| Mister_Magister | that or plugging phone to computer | 11:57 |
| sharks_ | Hmm, in the testing I've done so far with MTP mode it has worked every time, but I'll keep you informed if that changes. | 11:58 |
| Mister_Magister | or in fact, usb-c alt mode for the 3.5mm adapter | 11:58 |
| Mister_Magister | if your phone doesn't have 3.5mm | 11:58 |
| sharks_ | Nah, Xperia has 3.5mm, that's one good thing about it! | 11:58 |
| Mister_Magister | wait so how did you get MTP mode if usb-moded doesn't work | 11:58 |
| sharks_ | I can get MTP mode if I manually mount configfs at `/config`, manually make `/config/usb_gadget/g1`, manually make `/config/usb_gadget/g1/config/c.1` manually make `/config/usb_gadget/g1/strings/0x409`, and restart usb-moded service | 12:00 |
| Mister_Magister | and it works if you repulg usb? | 12:00 |
| sharks_ | Yes, it's flawless until a reboot and all those directories disappear. I have used it for a day or so across many different computers now, and always MTP mode works as soon as you plug it in | 12:01 |
| Mister_Magister | dang lucky | 12:01 |
| Mister_Magister | you can always just make script that runs before usb-moded and does all that xd | 12:01 |
| sharks_ | Yes, that's my thinking, but I can't get developer mode working as well. Only MTP mode | 12:01 |
| Mister_Magister | ye well | 12:01 |
| Mister_Magister | that never works well | 12:02 |
| Mister_Magister | i can help you trying to switch it to ncm that might help make it work | 12:02 |
| Mister_Magister | but first i'd make usb-moded stable | 12:02 |
| sharks_ | Okay, well I'll write a script that makes all the directories manually, add that to sparse, get it running and confirmed working on device, and get back to you in about 21 hours if that suits. It's nearly bedtime in my part of the world. | 12:03 |
| sharks_ | Oh also - @Mister_Magister, just before I go, what does a guy have to do to get his port on your portslist? I have added .portslistinfo | 12:19 |
| Mister_Magister | that's it, it just gets scraped once per day, tho give me link to your droid-configs on obs | 12:20 |
| Mister_Magister | i'll verify | 12:20 |
| Mister_Magister | also that reminds me… | 12:21 |
| Mister_Magister | sharks_: like, if it's not there already you either don't have nemo:testing project or there's a bug in my software | 12:21 |
| sharks_ | https://build.sailfishos.org/package/show/nemo:testing:hw:sony:murray:5.1/droid-config-xqcc72 | 12:22 |
| sharks_ | I did see some discussion with rinigus maybe where the "5.1" subproject messed it up maybe | 12:22 |
| sharks_ | idk if you fixed that | 12:22 |
| sharks_ | (sorry for pinging) | 12:22 |
| Mister_Magister | sony murray is on the list, but the droid-config does not match droid-config-murray which would be standard way of naming it, thats why it didn't pick up the portslistinfo | 12:27 |
| Mister_Magister | I'll fix it, thakns | 12:27 |
| sharks_ | Ah, makes sense. No worries - also zambezi follows the same format, with droid-config-xqdc72 | 12:28 |
| Mister_Magister | i'll just fetch list of projects and go inside every project that starts with droid-config xd | 12:30 |
| sharks_ | That will do it! | 12:31 |
| Mister_Magister | thanks for adding the file | 12:32 |
| sharks_ | No problem! | 12:33 |
| sharks_ | I have added service to fix usb-moded for MTP, confirmed it works well now across reboots. https://github.com/sharks-dev/droid-config-pdx225/commit/911220f5d92316d47462fea94ae7a2108c0b62d0 | 12:34 |
| sharks_ | I am signing off for the night however. I'll catch up with you another time to ask about "ncm" | 12:35 |
| sharks_ | Thanks for your help! | 12:35 |
| Mister_Magister | as sharks is the first one i encourage everyone else to add the file too :3 Just add this (you can remove any line you don't wanna add) to your droid-configs https://github.com/VerdandiTeam/droid-config-pipa/blob/master/.portslistinfo | 13:15 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!