Saturday, 2026-11-21

Mister_Magisterhmmm systemd segfaults on start00: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 failing02:32
Mister_Magisterokay 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.patch02:40
T42<damnbruh2004> On the srttings page it says developer mode in use. usb_moded_util  -q is developer_mode02:41
T42<Mister_Magister> thats good that means usb-moded detects usb just fine02:42
T42<Mister_Magister> do other usb modes work?02:42
T42<damnbruh2004> mtp is listed as available but when enabled nothing happens02:42
T42<damnbruh2004> Also the settings page does not seem to detect the cable being re connected02:43
T42<Mister_Magister> so it doesn't detect disconnection or… walk me through it02:43
*** n2klb_ is now known as n2klb02: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 disconnected02:46
T42<Mister_Magister> what happens when you boot without usb connected?02:46
T42<damnbruh2004> let's see02:46
T42<Mister_Magister> is it permanently stuck detecting usb as connected?02:47
T42<damnbruh2004> Looks like it02:47
T42<Mister_Magister> so then usb-moded doesn't detect usb correctly02:48
T42<Mister_Magister> in /etc/usb-moded/99-usb-moded-config.ini can you fliip android_tracking to 0 and extcon to 102: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 connected02:50
T42<damnbruh2004> Will edit the config now02:50
T42<damnbruh2004> @Mister_Magister i don't have this file present02:53
T42<Mister_Magister> uhhh02:53
T42<Mister_Magister> that's kinda expected02:53
T42<Mister_Magister> lemme grab device that doesn't have usb-moded customized02:53
T42<damnbruh2004> I assumed it should be, since you said to flip the value02:54
T42<Mister_Magister> well first do you have /sys/class/extcon/ directory02:54
T42<Mister_Magister> and what device is taht02:54
T42<damnbruh2004> I do not have sys class extcon. The device is fortuna3g samsung galaxy grand prime02:55
T42<Mister_Magister> wait for real? dang02:56
T42<Mister_Magister> ls /sys/class/extcon/ nada?02:56
T42<Mister_Magister> not that i think you lying to me :D02:56
maldoes the device have rndis0 or usb0 ?02:57
T42<Mister_Magister> oh here comes the guru to save the day02:57
T42<damnbruh2004> @Mister_Magister wdym by nada?02:57
T42<Mister_Magister> nothing nothing02:57
T42<Mister_Magister> listen to mal02:57
T42<Mister_Magister> nada means nothing02:58
malso on device check ifconfig output to see which name the interface has02:58
T42<damnbruh2004> mal: in early init i can telnet with usb0, in booted system, when booted with usb connected i see the rndis adapter02:59
T42<damnbruh2004> oh, on device. Alright02:59
T42<damnbruh2004> ifconfig only has loopback with usb disconnected or when hot-plugged03:00
T42<Mister_Magister> can you like https://paste.opensuse.org/ output of "ip a"03:01
T42<Mister_Magister> on the device ofc03:03
T42<damnbruh2004> mal: when booting with uab connected, ifconfig shows an rndis0 device03: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 host03:04
T42<damnbruh2004> It does show up. Though here come the wsl complications03:05
T42<Mister_Magister> can you ping it? 192.168.2.15?03:05
T42<damnbruh2004> Total packet loss03:06
maldo you have your config repo on github?03:06
T42<Mister_Magister> sorry mal i'm probably just getting in the way xd03:06
malcheck "ifconfig -a" if just ifconfig is not showing03:07
malother option is incorrect udc being used03:07
malon device what do you see under /sys/class/udc/ ?03:09
Mister_Magisterso i'm here debugging device, getting closer TURNS OUT ANDROID IS 32BIT AAAAA03:09
Mister_MagisterI don't remember how do you do the 32 on 64 bs again03:10
Mister_Magisterdo you jsut do act as if it is 32bit and thats it03:10
malyou mean 64-bit kernel but 32-bit userspace?03:10
Mister_Magisteryes03:11
Mister_Magisteranything special for that or do i just act as if its 32bit03:11
malthen just set correct PORT_ARCH and make sure you don't have droid_target_aarch64 in droid-hal spec03:11
Mister_Magistergotcha thanks03:12
malremember to cleanup middleware source folders for any old build artifacts before trying to build those as 32-bit03:12
Mister_Magisteroki thanks dad03:12
maland remember that for libhybris it's the submodule you need to cleanup03:12
Mister_Magisterokay03:12
Mister_MagisterSo basically i jsut pretend it's 32bit os03:15
Mister_Magisterdevice i mean03: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 there03: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 there03:16
T42<Mister_Magister> yeah so like i said basically pretend its 32bit device03:17
T42<damnbruh2004> mal: my device repos are here https://github.com/fortuna-for-smoothie/local_manifests/tree/hybris-18.103:19
T42<Mister_Magister> smoothie is kidna nice codename damn you scamsung03:20
T42<Mister_Magister> wait03:20
T42<Mister_Magister> thats not the codename03:20
T42<damnbruh2004> yup03:20
T42<Mister_Magister> it's fortuna03:20
T42<damnbruh2004> i have lineage repos under this org too03:20
T42<Mister_Magister> i'm half awake03:20
T42<Mister_Magister> another 8916 dang03:21
T42<Mister_Magister> why are you porting 8916 in 2026 xd you know what? who am i to talk03:21
T42<damnbruh2004> well it's the only device i have to spare and i wanna learn the porting game03:22
T42<Mister_Magister> gotcha03:22
T42<damnbruh2004> perhaps the performance in the system ui is good ;)03:22
T42<Mister_Magister> my g2 is 891603:23
T42<Mister_Magister> well g2lte to be exact03:23
T42<Mister_Magister> the oldest sfos port currently supported. as long as you don't start the browser its fine03:23
T42<damnbruh2004> lol03: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 mess03:25
T42<Mister_Magister> it's MSM8926 which is MSM8226 but with 4G03:25
T42<Mister_Magister> and its sometimes displayed as 410 which it is not03:25
T42<Mister_Magister> but i'll be curious if you'll have the adreno 305 bug on 30603:26
T42<Mister_Magister> if browser doesn't look right, yell at me03:26
malI have msm8226 device also, I did some mainline stuff for it03:27
Mister_Magisterwhich one is it03:27
Mister_Magistermal: i did memeline for msm8974 snap 801 but you already know that03:27
Mister_Magisterthe amazon device is mediatek03:27
Mister_Magistermy first mediatek wow03:28
T42<damnbruh2004> @Mister_Magister i checked the browser on 5.1.0.11 it loads the about page just fine03:28
Mister_Magisternono on 5.1 its fine, on 5.2 its different story03:28
T42<damnbruh2004> can't load anything online for now as i dont have any way to reach the internet03:28
Mister_Magisteron 5.2 mister abr forced running the browser on gpu or some stuff and it breaks03:29
malMister_Magister: I should try again my fp2 which is msm8974, it's quite far already03:29
T42<damnbruh2004> oh okay. i'll work on 5.2 after i get the essentials working03:29
T42<damnbruh2004> @Mister_Magister can you link configs for your moto g2 since it's also msm8916?03:29
Mister_Magistermal: if you would verify theeeeeeee iommu series that'd be nice03:29
mal@damnbruh2004 did you check the udc things03:29
Mister_Magistercause other guy said it causes trustzone to reset the device on fp203:30
T42<damnbruh2004> on it03:30
Mister_Magisterwhich doesn't happen on my device03:30
malok, need to check when I have time03:30
Mister_Magister@damnbruh2004 g2 is msm892603:30
Mister_Magisterthat was my mistake03:30
malneed to get the sailfish releases for fairphones done03:30
Mister_Magisterfor 8916 i had g3 port https://github.com/VerdandiTeam/droid-config-osprey/ but that won't help you much03:30
T42<damnbruh2004> mal: when booted with usb connected i have /sys/class/udc/msm_hsusb03:33
T42<damnbruh2004> that's the only thing in this dir03:34
malyou had working telnet in init?03:34
T42<damnbruh2004> yes03:34
maland "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 help03:35
T42<damnbruh2004> also if i mask usb-moded in early init and then continue, telnet is not retained03:36
malany 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.basic03:41
malwait, noticed one issue03:42
malhttps://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 1103:43
malhow 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 stubs03:44
malalso, 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 running03:45
malthe zygote files you removed are quite critical03:45
T42<damnbruh2004> well they are not generated when i build the android part03:46
malwhich is very odd03:46
T42<damnbruh2004> perhaps03:46
malbut anyway the missing android version define from droid-config spec causes some unwanted services to be running some of which conflict with usb03:48
malso 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 helps03:48
malwithout needing to build new image for testing the change03:49
maldo 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 is03:51
maljust to be sure, where in droid-config spec did you add the line?03:52
malyou need to add it before the include lines at the end03:53
T42<damnbruh2004> i did put it before the include lines, yes04:03
T42<damnbruh2004> right after the community adaptation define04:04
Mister_Magistermal: 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? xdddd05:01
Mister_Magisterwould be hilarious05:01
malpossibly05:03
Mister_Magisterheuhue okay05:03
Mister_Magisterwhy are you not asleep btw05:04
Mister_Magisterno sleep for the wicked05:04
malbut 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 point05:09
Mister_Magisterwould simply be hilarious xd 2019 device with 2015 soc05:09
Mister_Magisteridk maybe we find different things hilarious05:11
Mister_Magistersfos on amazon echo is hilarious already05:11
Mister_Magisterooh wait the package is aarch64 only how sad05:12
Mister_Magisterno privacy switch for me05:12
malit should be available for all archs but no point in testing right now until I make it configurable05:18
Mister_Magisteryeah05:22
Mister_Magistermal: can i somehow make the ui landscape by default without weird screen rotating? wait weren't there quirk for this05:36
Mister_Magisterbecuase there's no orientation sensor and its not landscape05:36
Mister_Magisternevermind there was quirk for this05:37
Mister_MagisterHYBRIS_HAL_TRANSFORM_ROT=05:37
Mister_Magisterdoes'nt seem to be working xd05:39
Mister_Magisterfirst device where pixel ratio 1.0 actually looks… okay05:40
Mister_Magisterit's tad big but it's okay05:41
Mister_Magisterwait i'll have to go below 1.0, ohno05: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 page05:43
Mister_Magisterso as i suspected the usb detection is broken05:46
Mister_Magisterand if you don't have extcon… good luck05:47
Mister_Magistermaybe some module fails to load, or some serivce fails to run05:47
T42<damnbruh2004> probably. i noticed some files missing related to usb on droid-hal-init05:47
Mister_Magisterwhat a weird issue… i'm giving it good wifi password but it says wrong wifi password, never had that06:01
Mister_Magisterman rotating the screen aint easy07:18

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