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
malMister_Magister: does the device have sensors?07:55
T42<Mister_Magister> only like light sensor xd07:56
Mister_Magistertbh i'm not even sure it does have light sensor at this point07:56
sharks[m]If its anything like the Google home display thing it will07:58
Mister_Magisterah no it does have light sensor07:58
Mister_Magisterthats it07:59
malMister_Magister: how does it behave if you force orientation lock? the usual dconf location with something like08:07
mal[lipstick]08:07
malorientationLock='portrait'08:07
malor landscape08:07
Mister_Magisterthe problem is when apps state in allowed orientations only portrait08:07
malprobably landscape08:07
Mister_Magisterit flips then to portrait08:07
malhmm08:07
Mister_Magisteri could just use the patch to unlock all orientations but eh08:07
malthe other option is to make a fake sensor which only reports needed orientation08:08
Mister_Magisterbut then it would have same issue, when app wants portrait08:08
Mister_Magistereven claudine is out of ideas rn08:08
Mister_Magisteri think the patch is the only option :/08:08
Mister_MagisterI know we rotated kinzie in the past but that  was 18008:09
malI have hacked sensor matrices to make portrait be different than what is thinks08:09
Mister_Magisterbut it takes portrait from the screen no?08:09
Mister_Magistermal: even worse, despite camera gui being in correct orientation, the camera itself, is not!08:51
*** n2klb_ is now known as n2klb08:53
Mister_Magisterthose are the issue with forcing orientation to landscape09:00
Mister_Magistermal: this device has mute button which doubles as power button, we… uhh… don't have anything that's handle that right?09:18
malit sends only one event?09:25
Mister_Magisterye it essentially acts as power button but has led for mute status in it09:26
Mister_Magisteri don't think mce ever heard about such wizardry09:27
malso it reports power key in evdev_trace?09:27
Mister_Magisteryeap09:27
malhow would want it to behave?09:28
maland how does it behave in android?09:28
Mister_Magisterandroid also uses it as power button xd09:28
malany idea how it works in the original os it had?09:29
Mister_Magisternope, but i will ask09:29
Mister_Magistermal: 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 xd09:34
Mister_Magisterfascinating09:34
Mister_Magisterwait its both, the button IS mute button but the led is from the privacy thingy, what a weird device09:35
malis the behavior supposed to change how long you press it or what?09:56
Mister_Magisterno clue mate first thing i did was flash lineage09: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_Magistermal: 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 button11:04
Mister_Magisterand if you ask how do you toggle the screen, that's the best part, you don't, it's always on, on amazonian stock11:05
Mister_Magisterofc we don't have to follow any of that  really, but we could11:05
sharks[m]Wow, it actually physically disables the mic? I can't belive I'm saying this but well done Amazon11:06
Mister_Magister"On Amazon echo devices there is a hardware privacy switch that physically cuts the microphone's output." according to the dev11: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_Magisteroh it turns it on when you HOLD the mute button11:08
Mister_Magistersharks[m]: yeah its weird amazon stops themselvs from spying on you11:12
Mister_Magisterbut also putting so much privacy stuff means… that they do11:12
T42<Mister_Magister> @damnbruh2004 damn you now i have same issue, usb thinks its always connected always charing mode and extcon does not exist11:42
malis android usb thing reporting correct state?11:48
Mister_Magisterwhat do you mean by android usb thing11:48
Mister_Magisteridk how to check the android trackdr11:48
Mister_Magistertracking*11:48
Mister_Magister /sys/class/android_usb/android0?11:49
Mister_Magisterif yes then state just stays configured11: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 actively11:53
T42<Mister_Magister> naturally11:53
T42<damnbruh2004> Sarcasm of course. Solving those issues is a wizardry in and of itself11:54
Mister_Magistermal: 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 android12:35
Mister_Magistermal: 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 too13:46
Mister_Magistermal: 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/!