| Mister_Magister | hmmm systemd segfaults on start | 00:42 |
|---|---|---|
| T42 | <damnbruh2004> can you guys provide hints on debugging usb? i am booting into ui and cable detection is working, but i cannot get ssh over usb. also in logs i see the keystore service failing | 02:32 |
| Mister_Magister | okay so first: charging and usb detection are two separate things. Does it just say "charging" or does it say "turning on developer mode" | 02:35 |
| T42 | <Mister_Magister> @b100dian thanks for this! https://raw.githubusercontent.com/sailfishos-on-sake/hybris-patches/refs/heads/hybris-18.1/system/core/0051-linkerconfig-switch-no-updatable-apex.patch | 02:40 |
| T42 | <damnbruh2004> On the srttings page it says developer mode in use. usb_moded_util -q is developer_mode | 02:41 |
| T42 | <Mister_Magister> thats good that means usb-moded detects usb just fine | 02:42 |
| T42 | <Mister_Magister> do other usb modes work? | 02:42 |
| T42 | <damnbruh2004> mtp is listed as available but when enabled nothing happens | 02:42 |
| T42 | <damnbruh2004> Also the settings page does not seem to detect the cable being re connected | 02:43 |
| T42 | <Mister_Magister> so it doesn't detect disconnection or… walk me through it | 02:43 |
| *** n2klb_ is now known as n2klb | 02:45 | |
| T42 | <damnbruh2004> Suppose on the settings page I changed default usb mode from developer mode to mtp and the cable is currently connected. It says "developer mode in use, reconnect for chabges to rake affect". When i dosconnect the cable nothing changes on the settings page. When i connect it back, nothing chabges as well. However in journalctl i see kernel usb and android work detecting the cable being connected and disconnected | 02:46 |
| T42 | <Mister_Magister> what happens when you boot without usb connected? | 02:46 |
| T42 | <damnbruh2004> let's see | 02:46 |
| T42 | <Mister_Magister> is it permanently stuck detecting usb as connected? | 02:47 |
| T42 | <damnbruh2004> Looks like it | 02:47 |
| T42 | <Mister_Magister> so then usb-moded doesn't detect usb correctly | 02:48 |
| T42 | <Mister_Magister> in /etc/usb-moded/99-usb-moded-config.ini can you fliip android_tracking to 0 and extcon to 1 | 02:48 |
| T42 | <damnbruh2004> When booted without the cable connected, it says charging only mode in use on the settings page. So yeah, it is always detected as connected | 02:50 |
| T42 | <damnbruh2004> Will edit the config now | 02:50 |
| T42 | <damnbruh2004> @Mister_Magister i don't have this file present | 02:53 |
| T42 | <Mister_Magister> uhhh | 02:53 |
| T42 | <Mister_Magister> that's kinda expected | 02:53 |
| T42 | <Mister_Magister> lemme grab device that doesn't have usb-moded customized | 02:53 |
| T42 | <damnbruh2004> I assumed it should be, since you said to flip the value | 02:54 |
| T42 | <Mister_Magister> well first do you have /sys/class/extcon/ directory | 02:54 |
| T42 | <Mister_Magister> and what device is taht | 02:54 |
| T42 | <damnbruh2004> I do not have sys class extcon. The device is fortuna3g samsung galaxy grand prime | 02:55 |
| T42 | <Mister_Magister> wait for real? dang | 02:56 |
| T42 | <Mister_Magister> ls /sys/class/extcon/ nada? | 02:56 |
| T42 | <Mister_Magister> not that i think you lying to me :D | 02:56 |
| mal | does the device have rndis0 or usb0 ? | 02:57 |
| T42 | <Mister_Magister> oh here comes the guru to save the day | 02:57 |
| T42 | <damnbruh2004> @Mister_Magister wdym by nada? | 02:57 |
| T42 | <Mister_Magister> nothing nothing | 02:57 |
| T42 | <Mister_Magister> listen to mal | 02:57 |
| T42 | <Mister_Magister> nada means nothing | 02:58 |
| mal | so on device check ifconfig output to see which name the interface has | 02:58 |
| T42 | <damnbruh2004> mal: in early init i can telnet with usb0, in booted system, when booted with usb connected i see the rndis adapter | 02:59 |
| T42 | <damnbruh2004> oh, on device. Alright | 02:59 |
| T42 | <damnbruh2004> ifconfig only has loopback with usb disconnected or when hot-plugged | 03:00 |
| T42 | <Mister_Magister> can you like https://paste.opensuse.org/ output of "ip a" | 03:01 |
| T42 | <Mister_Magister> on the device ofc | 03:03 |
| T42 | <damnbruh2004> mal: when booting with uab connected, ifconfig shows an rndis0 device | 03:03 |
| T42 | <Mister_Magister> and if you boot with usb connected does usb networking work? | 03:04 |
| T42 | <Mister_Magister> does it show up as rndis device on host | 03:04 |
| T42 | <damnbruh2004> It does show up. Though here come the wsl complications | 03:05 |
| T42 | <Mister_Magister> can you ping it? 192.168.2.15? | 03:05 |
| T42 | <damnbruh2004> Total packet loss | 03:06 |
| mal | do you have your config repo on github? | 03:06 |
| T42 | <Mister_Magister> sorry mal i'm probably just getting in the way xd | 03:06 |
| mal | check "ifconfig -a" if just ifconfig is not showing | 03:07 |
| mal | other option is incorrect udc being used | 03:07 |
| mal | on device what do you see under /sys/class/udc/ ? | 03:09 |
| Mister_Magister | so i'm here debugging device, getting closer TURNS OUT ANDROID IS 32BIT AAAAA | 03:09 |
| Mister_Magister | I don't remember how do you do the 32 on 64 bs again | 03:10 |
| Mister_Magister | do you jsut do act as if it is 32bit and thats it | 03:10 |
| mal | you mean 64-bit kernel but 32-bit userspace? | 03:10 |
| Mister_Magister | yes | 03:11 |
| Mister_Magister | anything special for that or do i just act as if its 32bit | 03:11 |
| mal | then just set correct PORT_ARCH and make sure you don't have droid_target_aarch64 in droid-hal spec | 03:11 |
| Mister_Magister | gotcha thanks | 03:12 |
| mal | remember to cleanup middleware source folders for any old build artifacts before trying to build those as 32-bit | 03:12 |
| Mister_Magister | oki thanks dad | 03:12 |
| mal | and remember that for libhybris it's the submodule you need to cleanup | 03:12 |
| Mister_Magister | okay | 03:12 |
| Mister_Magister | So basically i jsut pretend it's 32bit os | 03:15 |
| Mister_Magister | device i mean | 03:15 |
| T42 | <damnbruh2004> As someone who's through switching their port arch mid build, i ended up doing a full clean build, because there were too many things here and there | 03:15 |
| T42 | <damnbruh2004> Magister if you have a 64bit soc, but the anddoid base is 32 bit, then just set port arch as 32 bit and build from there | 03:16 |
| T42 | <Mister_Magister> yeah so like i said basically pretend its 32bit device | 03:17 |
| T42 | <damnbruh2004> mal: my device repos are here https://github.com/fortuna-for-smoothie/local_manifests/tree/hybris-18.1 | 03:19 |
| T42 | <Mister_Magister> smoothie is kidna nice codename damn you scamsung | 03:20 |
| T42 | <Mister_Magister> wait | 03:20 |
| T42 | <Mister_Magister> thats not the codename | 03:20 |
| T42 | <damnbruh2004> yup | 03:20 |
| T42 | <Mister_Magister> it's fortuna | 03:20 |
| T42 | <damnbruh2004> i have lineage repos under this org too | 03:20 |
| T42 | <Mister_Magister> i'm half awake | 03:20 |
| T42 | <Mister_Magister> another 8916 dang | 03:21 |
| T42 | <Mister_Magister> why are you porting 8916 in 2026 xd you know what? who am i to talk | 03:21 |
| T42 | <damnbruh2004> well it's the only device i have to spare and i wanna learn the porting game | 03:22 |
| T42 | <Mister_Magister> gotcha | 03:22 |
| T42 | <damnbruh2004> perhaps the performance in the system ui is good ;) | 03:22 |
| T42 | <Mister_Magister> my g2 is 8916 | 03:23 |
| T42 | <Mister_Magister> well g2lte to be exact | 03:23 |
| T42 | <Mister_Magister> the oldest sfos port currently supported. as long as you don't start the browser its fine | 03:23 |
| T42 | <damnbruh2004> lol | 03:23 |
| T42 | <Mister_Magister> maybe this will be useful to ya https://github.com/VerdandiTeam/droid-config-thea/ | 03:24 |
| T42 | <Mister_Magister> oh wait its not 8916 snapdragon made a mess | 03:25 |
| T42 | <Mister_Magister> it's MSM8926 which is MSM8226 but with 4G | 03:25 |
| T42 | <Mister_Magister> and its sometimes displayed as 410 which it is not | 03:25 |
| T42 | <Mister_Magister> but i'll be curious if you'll have the adreno 305 bug on 306 | 03:26 |
| T42 | <Mister_Magister> if browser doesn't look right, yell at me | 03:26 |
| mal | I have msm8226 device also, I did some mainline stuff for it | 03:27 |
| Mister_Magister | which one is it | 03:27 |
| Mister_Magister | mal: i did memeline for msm8974 snap 801 but you already know that | 03:27 |
| Mister_Magister | the amazon device is mediatek | 03:27 |
| Mister_Magister | my first mediatek wow | 03:28 |
| T42 | <damnbruh2004> @Mister_Magister i checked the browser on 5.1.0.11 it loads the about page just fine | 03:28 |
| Mister_Magister | nono on 5.1 its fine, on 5.2 its different story | 03:28 |
| T42 | <damnbruh2004> can't load anything online for now as i dont have any way to reach the internet | 03:28 |
| Mister_Magister | on 5.2 mister abr forced running the browser on gpu or some stuff and it breaks | 03:29 |
| mal | Mister_Magister: I should try again my fp2 which is msm8974, it's quite far already | 03:29 |
| T42 | <damnbruh2004> oh okay. i'll work on 5.2 after i get the essentials working | 03:29 |
| T42 | <damnbruh2004> @Mister_Magister can you link configs for your moto g2 since it's also msm8916? | 03:29 |
| Mister_Magister | mal: if you would verify theeeeeeee iommu series that'd be nice | 03:29 |
| mal | @damnbruh2004 did you check the udc things | 03:29 |
| Mister_Magister | cause other guy said it causes trustzone to reset the device on fp2 | 03:30 |
| T42 | <damnbruh2004> on it | 03:30 |
| Mister_Magister | which doesn't happen on my device | 03:30 |
| mal | ok, need to check when I have time | 03:30 |
| Mister_Magister | @damnbruh2004 g2 is msm8926 | 03:30 |
| Mister_Magister | that was my mistake | 03:30 |
| mal | need to get the sailfish releases for fairphones done | 03:30 |
| Mister_Magister | for 8916 i had g3 port https://github.com/VerdandiTeam/droid-config-osprey/ but that won't help you much | 03:30 |
| T42 | <damnbruh2004> mal: when booted with usb connected i have /sys/class/udc/msm_hsusb | 03:33 |
| T42 | <damnbruh2004> that's the only thing in this dir | 03:34 |
| mal | you had working telnet in init? | 03:34 |
| T42 | <damnbruh2004> yes | 03:34 |
| mal | and "ifconfig -a" is not showing any usb or rndis on device when cable is connected? | 03:35 |
| T42 | <damnbruh2004> ifconfig shows an rndis0 device. i can send the full output if it'll help | 03:35 |
| T42 | <damnbruh2004> also if i mask usb-moded in early init and then continue, telnet is not retained | 03:36 |
| mal | any android side usb processes running? | 03:37 |
| T42 | <damnbruh2004> usbnet, usb_notify, usb_bam_wq, /usr/sbin/usb-moded ..., | 03:41 |
| T42 | <damnbruh2004> {usb@1.0-service} /vendor/bin/hw/android.hardware.usb@1.0-service.basic | 03:41 |
| mal | wait, noticed one issue | 03:42 |
| mal | https://github.com/mer-hybris/hadk-faq#hybris-17-1 the last part, you are missing similar line in your droid-config spec, you should have in there: %define android_version_major 11 | 03:43 |
| mal | how did you manage to get it running without selinux changes? | 03:43 |
| T42 | <damnbruh2004> i did much selinux changes. kernel defconfig enables permissive selinux and services are loaded with selinux stubs | 03:44 |
| mal | also, the dhd patch https://github.com/fortuna-for-smoothie/fortuna3g-patches/blob/master/rpm/dhd/0001-dhd-Remove-files-shipped-in-device-config-and-missin.patch is terrible, we can't have zygote running | 03:45 |
| mal | the zygote files you removed are quite critical | 03:45 |
| T42 | <damnbruh2004> well they are not generated when i build the android part | 03:46 |
| mal | which is very odd | 03:46 |
| T42 | <damnbruh2004> perhaps | 03:46 |
| mal | but anyway the missing android version define from droid-config spec causes some unwanted services to be running some of which conflict with usb | 03:48 |
| mal | so add the missing define to droid-config spec and then "build_packages.sh -c", if you can somehow copy the file to device and install there then you can test how it helps | 03:48 |
| mal | without needing to build new image for testing the change | 03:49 |
| mal | do you have wlan working? or sd card? | 03:49 |
| T42 | <damnbruh2004> i've broken my sd card just yesterday... | 03:51 |
| T42 | <damnbruh2004> a new image it is | 03:51 |
| mal | just to be sure, where in droid-config spec did you add the line? | 03:52 |
| mal | you need to add it before the include lines at the end | 03:53 |
| T42 | <damnbruh2004> i did put it before the include lines, yes | 04:03 |
| T42 | <damnbruh2004> right after the community adaptation define | 04:04 |
| Mister_Magister | mal: this amazonian device has camera cover slider thingy that also has wired switch to it and it reports as KEYBOARD_GPIO_PRIVACY, do you think i can wire it up like jp26's privacy switch? xdddd | 05:01 |
| Mister_Magister | would be hilarious | 05:01 |
| mal | possibly | 05:03 |
| Mister_Magister | heuhue okay | 05:03 |
| Mister_Magister | why are you not asleep btw | 05:04 |
| Mister_Magister | no sleep for the wicked | 05:04 |
| mal | but it seems the code is at the moment not very well configurable, I was planning to use it on fp6 also, so I will fix it at some point | 05:09 |
| Mister_Magister | would simply be hilarious xd 2019 device with 2015 soc | 05:09 |
| Mister_Magister | idk maybe we find different things hilarious | 05:11 |
| Mister_Magister | sfos on amazon echo is hilarious already | 05:11 |
| Mister_Magister | ooh wait the package is aarch64 only how sad | 05:12 |
| Mister_Magister | no privacy switch for me | 05:12 |
| mal | it should be available for all archs but no point in testing right now until I make it configurable | 05:18 |
| Mister_Magister | yeah | 05:22 |
| Mister_Magister | mal: can i somehow make the ui landscape by default without weird screen rotating? wait weren't there quirk for this | 05:36 |
| Mister_Magister | becuase there's no orientation sensor and its not landscape | 05:36 |
| Mister_Magister | nevermind there was quirk for this | 05:37 |
| Mister_Magister | HYBRIS_HAL_TRANSFORM_ROT= | 05:37 |
| Mister_Magister | does'nt seem to be working xd | 05:39 |
| Mister_Magister | first device where pixel ratio 1.0 actually looks… okay | 05:40 |
| Mister_Magister | it's tad big but it's okay | 05:41 |
| Mister_Magister | wait i'll have to go below 1.0, ohno | 05:41 |
| T42 | <damnbruh2004> mal: with android version defined ssh works now! | 05:42 |
| T42 | <damnbruh2004> although disconnecting the cable is still not reflected on the settings page | 05:43 |
| Mister_Magister | so as i suspected the usb detection is broken | 05:46 |
| Mister_Magister | and if you don't have extcon… good luck | 05:47 |
| Mister_Magister | maybe some module fails to load, or some serivce fails to run | 05:47 |
| T42 | <damnbruh2004> probably. i noticed some files missing related to usb on droid-hal-init | 05:47 |
| Mister_Magister | what a weird issue… i'm giving it good wifi password but it says wrong wifi password, never had that | 06:01 |
| Mister_Magister | man rotating the screen aint easy | 07:18 |
| mal | Mister_Magister: does the device have sensors? | 07:55 |
| T42 | <Mister_Magister> only like light sensor xd | 07:56 |
| Mister_Magister | tbh i'm not even sure it does have light sensor at this point | 07:56 |
| sharks[m] | If its anything like the Google home display thing it will | 07:58 |
| Mister_Magister | ah no it does have light sensor | 07:58 |
| Mister_Magister | thats it | 07:59 |
| mal | Mister_Magister: how does it behave if you force orientation lock? the usual dconf location with something like | 08:07 |
| mal | [lipstick] | 08:07 |
| mal | orientationLock='portrait' | 08:07 |
| mal | or landscape | 08:07 |
| Mister_Magister | the problem is when apps state in allowed orientations only portrait | 08:07 |
| mal | probably landscape | 08:07 |
| Mister_Magister | it flips then to portrait | 08:07 |
| mal | hmm | 08:07 |
| Mister_Magister | i could just use the patch to unlock all orientations but eh | 08:07 |
| mal | the other option is to make a fake sensor which only reports needed orientation | 08:08 |
| Mister_Magister | but then it would have same issue, when app wants portrait | 08:08 |
| Mister_Magister | even claudine is out of ideas rn | 08:08 |
| Mister_Magister | i think the patch is the only option :/ | 08:08 |
| Mister_Magister | I know we rotated kinzie in the past but that was 180 | 08:09 |
| mal | I have hacked sensor matrices to make portrait be different than what is thinks | 08:09 |
| Mister_Magister | but it takes portrait from the screen no? | 08:09 |
| Mister_Magister | mal: even worse, despite camera gui being in correct orientation, the camera itself, is not! | 08:51 |
| *** n2klb_ is now known as n2klb | 08:53 | |
| Mister_Magister | those are the issue with forcing orientation to landscape | 09:00 |
| Mister_Magister | mal: this device has mute button which doubles as power button, we… uhh… don't have anything that's handle that right? | 09:18 |
| mal | it sends only one event? | 09:25 |
| Mister_Magister | ye it essentially acts as power button but has led for mute status in it | 09:26 |
| Mister_Magister | i don't think mce ever heard about such wizardry | 09:27 |
| mal | so it reports power key in evdev_trace? | 09:27 |
| Mister_Magister | yeap | 09:27 |
| mal | how would want it to behave? | 09:28 |
| mal | and how does it behave in android? | 09:28 |
| Mister_Magister | android also uses it as power button xd | 09:28 |
| mal | any idea how it works in the original os it had? | 09:29 |
| Mister_Magister | nope, but i will ask | 09:29 |
| Mister_Magister | mal: turns out they lied to me and it's not mute at all it's privacy thingy, when when its turned on it kills microphones and camera, the jp26's privacy switch works even better now xd | 09:34 |
| Mister_Magister | fascinating | 09:34 |
| Mister_Magister | wait its both, the button IS mute button but the led is from the privacy thingy, what a weird device | 09:35 |
| mal | is the behavior supposed to change how long you press it or what? | 09:56 |
| Mister_Magister | no clue mate first thing i did was flash lineage | 09:57 |
| T42 | <b100dian> It's @elros34 's patch. Not sure, isn't there something equivalent in hybris-patches nowadays? (re @Mister_Magister: @b100dian thanks for...) | 10:33 |
| T42 | <Mister_Magister> there isn't (re @b100dian: It's @elros34 's pat...) | 10:33 |
| Mister_Magister | mal: so uhh the mute button does echo 1 > /sys/devices/platform/amazon-gating/enable which toggles "privacy mode" where it disables microphones (physically) and camera. The camera slider apparently only disables camera and leaves mics alive. Thats why the privacy thing LED is in the "power" button. the power button is happening when you hold the mute button | 11:04 |
| Mister_Magister | and if you ask how do you toggle the screen, that's the best part, you don't, it's always on, on amazonian stock | 11:05 |
| Mister_Magister | ofc we don't have to follow any of that really, but we could | 11:05 |
| sharks[m] | Wow, it actually physically disables the mic? I can't belive I'm saying this but well done Amazon | 11:06 |
| Mister_Magister | "On Amazon echo devices there is a hardware privacy switch that physically cuts the microphone's output." according to the dev | 11:07 |
| sharks[m] | If you switch the privacy switch to disable the mic on a Google one and say "Hey Google", it replies with "you turned the microphone off" | 11:07 |
| Mister_Magister | oh it turns it on when you HOLD the mute button | 11:08 |
| Mister_Magister | sharks[m]: yeah its weird amazon stops themselvs from spying on you | 11:12 |
| Mister_Magister | but also putting so much privacy stuff means… that they do | 11:12 |
| T42 | <Mister_Magister> @damnbruh2004 damn you now i have same issue, usb thinks its always connected always charing mode and extcon does not exist | 11:42 |
| mal | is android usb thing reporting correct state? | 11:48 |
| Mister_Magister | what do you mean by android usb thing | 11:48 |
| Mister_Magister | idk how to check the android trackdr | 11:48 |
| Mister_Magister | tracking* | 11:48 |
| Mister_Magister | /sys/class/android_usb/android0? | 11:49 |
| Mister_Magister | if yes then state just stays configured | 11:49 |
| T42 | <damnbruh2004> @Mister_Magister beware: every issue i encounter during this port will be learned in depth and then telepathically projected to whoever writes in this group most actively | 11:53 |
| T42 | <Mister_Magister> naturally | 11:53 |
| T42 | <damnbruh2004> Sarcasm of course. Solving those issues is a wizardry in and of itself | 11:54 |
| Mister_Magister | mal: so because there's no battery android guys made the charger report always charging so usb reports always connected… mmmmmmmmmmmmwonderful i wonder how usb is detected on android | 12:35 |
| Mister_Magister | mal: there is no usb detection whatsoever, we'd just have to make usb-moded cope with it but on the other hand masking usb-moded sounds like solution too | 13:46 |
| Mister_Magister | mal: do you have a link/example for building and including system image? i could gain 1.7GB of storage or more (this device has 4GB userdata) | 14:00 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!