T42_ | <Tailsthefoz> @NotKit lmk if there's anything else I should try | 01:50 |
---|---|---|
T42_ | <Tailsthefoz> guess not | 11:09 |
T42_ | <Tailsthefoz> might just do the HADK method | 11:17 |
T42_ | <Tailsthefoz> or buy a snapdragon phone | 11:35 |
T42_ | <Tailsthefoz> I'll try HADK first | 11:36 |
T42_ | <NotKit> debug why HWC is failing (re @Tailsthefoz: @NotKit lmk if there...) | 11:36 |
T42_ | <NotKit> start with tes_hwcomposer code maybe | 11:37 |
T42_ | <Tailsthefoz> how | 11:37 |
T42_ | <NotKit> start with test_hwcomposer code maybe (edited) | 11:37 |
T42_ | <Tailsthefoz> oh alright, I don't have a compilation environment for ARM64 sailfish though | 11:37 |
T42_ | <NotKit> https://docs.sailfishos.org/Tools/Platform_SDK/Installation/ | 11:38 |
T42_ | <Tailsthefoz> oh alright cool | 11:38 |
mal | was the reason for the error 13 figured out? | 11:41 |
mal | which would suggest permission issue | 11:41 |
mal | which soc is that device using, wondering which devices needed tls-padding | 11:45 |
mal | @NotKit ^ | 11:45 |
mal | what is this in log: file offset for the library "/vendor/lib64/hw/gralloc.default.so" >= file size: 0 >= 0 | 11:47 |
mal | is it finding some incorrect file | 11:47 |
T42_ | <NotKit> that's fine if /dev/null is mounted over that file (re @SailfishFreenodeIRCBridgeBot: <mal>what is this in...) | 11:53 |
T42_ | <NotKit> gralloc.default.so is not supposed to be used | 11:53 |
T42_ | <NotKit> I guess newer libhybris with your patch avoids the need for that hack | 11:54 |
mal | why is something trying to use that gralloc? why else would it complain about it | 11:55 |
T42_ | <NotKit> maybe older libhybris? | 12:04 |
mal | @Tailsthefoz can you check which libhybris version you are building | 12:17 |
T42_ | <Tailsthefoz> ok in a moment (re @SailfishFreenodeIRCBridgeBot: <mal>@Tailsthefoz ca...) | 12:28 |
T42_ | <Tailsthefoz> I'm using the libhybris packaged with the vidofnir rootfs | 12:28 |
T42_ | <Tailsthefoz> tensor g1, aka exynos 2100 (re @SailfishFreenodeIRCBridgeBot: <mal>which soc is th...) | 12:31 |
T42_ | <Tailsthefoz> it is, yes (re @NotKit: that's fine if /dev/...) | 12:33 |
T42_ | <Tailsthefoz> although I'm fairly sure it's not supposed to be | 12:33 |
T42_ | <Tailsthefoz> because it isn't on droidian | 12:33 |
T42_ | <Tailsthefoz> mal, libhybris is | 12:38 |
T42_ | <Tailsthefoz> ``` | 12:38 |
T42_ | <Tailsthefoz> libhybris-0.0.5.48+tls.workaround.20230808184907.3.g3635b59-1.9.1.jolla.aarch64``` | 12:38 |
T42_ | <NotKit> you can install a newer one from OBS if you can set up the network via USB | 12:38 |
T42_ | <NotKit> you can install a newer one from OBS if you can set up the network via USB or Wi-Fi (edited) | 12:38 |
T42_ | <Tailsthefoz> I have sftp, so I can just send the RPM over | 12:38 |
T42_ | <Tailsthefoz> what's the URL | 12:38 |
T42_ | <Tailsthefoz> it's the latest on the repo as far as I can tell (re @NotKit: you can install a ne...) | 12:42 |
T42_ | <Tailsthefoz> do I compile it from here? https://github.com/mer-hybris/libhybris/tree/master | 12:47 |
T42_ | <NotKit> https://build.sailfishos.org/package/show/home:TheKit:branches:nemo:devel:hw:halium:12/libhybris will see if it builds here | 12:48 |
T42_ | <Tailsthefoz> oh alright | 12:48 |
T42_ | <NotKit> but at the same time, I don't think that gralloc message matters much | 12:49 |
T42_ | <Tailsthefoz> maybe | 12:50 |
T42_ | <NotKit> maybe try attaching strace to hwcomposer service to see if there is any hint why it fails | 12:50 |
T42_ | <Tailsthefoz> wtf | 12:50 |
T42_ | <Tailsthefoz> I just rebooted | 12:50 |
T42_ | <Tailsthefoz> and I have UI | 12:50 |
T42_ | <Tailsthefoz> ??? | 12:50 |
T42_ | <NotKit> cool :) | 12:50 |
T42_ | <Tailsthefoz> I didn't even do anything lmao | 12:50 |
T42_ | <NotKit> maybe you masked community encryption wizard? | 12:50 |
T42_ | <Tailsthefoz> I didn't | 12:50 |
T42_ | <Tailsthefoz> I see the encryption wizard | 12:50 |
T42_ | <NotKit> then I guess it is some kind of race condition, maybe UI is attempting to start too early (before vendor service is properly initialized) | 12:51 |
T42_ | <Tailsthefoz> maybe? | 12:51 |
T42_ | <Tailsthefoz> ok but new problem | 12:51 |
T42_ | <Tailsthefoz> as soon as I wake it up, it goes back to sleep | 12:51 |
T42_ | <Tailsthefoz> touch doesn't work but I know how to fix that | 12:51 |
T42_ | <NotKit> that sounds like mce issue, but you can use mcetool to prevent blanking for now, like `mcetool -k unlocked` (re @Tailsthefoz: as soon as I wake it...) | 12:52 |
T42_ | <Tailsthefoz> after doing that it still does it | 12:53 |
T42_ | <Tailsthefoz> as soon as I wake it up it just dims the screen to black | 12:53 |
T42_ | <NotKit> check brightness state too | 12:54 |
T42_ | <Tailsthefoz> and now it isn't waking back up hu | 12:54 |
T42_ | <Tailsthefoz> and now it isn't waking back up huh (edited) | 12:54 |
T42_ | <Tailsthefoz> how do I do that (re @NotKit: check brightness sta...) | 12:55 |
T42_ | <NotKit> via mcetool and manually in sysfs | 12:56 |
T42_ | <Tailsthefoz> which command in mcetool | 12:57 |
T42_ | <Tailsthefoz> https://pastebin.com/dzS4SaDX | 12:57 |
T42_ | <NotKit> just run mcetool, it will display brightness on ~10th line of output (re @Tailsthefoz: which command in mce...) | 12:59 |
T42_ | <Tailsthefoz> oh alright | 12:59 |
T42_ | <Tailsthefoz> ``` | 12:59 |
T42_ | <Tailsthefoz> Brightness: 100 (1-100)``` | 12:59 |
T42_ | <NotKit> and check /sys/class/backlight/panel0-backlight/brightness | 13:00 |
T42_ | <Tailsthefoz> 0 | 13:00 |
T42_ | <NotKit> then probably it's writing to a wrong file or similar, try setting in sysfs manually | 13:00 |
T42_ | <Tailsthefoz> just echo? | 13:00 |
T42_ | <NotKit> yes | 13:00 |
T42_ | <Tailsthefoz> it set it but nothing happene | 13:01 |
T42_ | <Tailsthefoz> and now it's changing alot | 13:01 |
T42_ | <Tailsthefoz> and it's at 0 again | 13:02 |
T42_ | <Tailsthefoz> I think it is writing it properly | 13:02 |
T42_ | <Tailsthefoz> bl_power is 0 | 13:02 |
T42_ | <Tailsthefoz> if I echo 1 to that nothing happens | 13:04 |
T42_ | <Tailsthefoz> state says | 13:04 |
T42_ | <Tailsthefoz> ``` | 13:04 |
T42_ | <Tailsthefoz> On: 1440x3120@60``` | 13:04 |
T42_ | <Tailsthefoz> ooh I see why | 13:09 |
T42_ | <Tailsthefoz> it's on | 13:09 |
T42_ | <Tailsthefoz> but u | 13:09 |
T42_ | <Tailsthefoz> logcat spam | 13:09 |
T42_ | <Tailsthefoz> ``` | 13:09 |
T42_ | <Tailsthefoz> nt(x:0, y:0, w:0, h:0), block(x:0, y:0, w:0, h:0) | 13:09 |
T42_ | <Tailsthefoz> 09-07 19:33:19.690 54 54 E display : presentDisplay:: fail to deliver win_config (-22) | 13:09 |
T42_ | <Tailsthefoz> 09-07 19:33:19.690 0 6461 W HwcComposer: command 0x2010000 generated error 4``` | 13:09 |
T42_ | <Tailsthefoz> ``` | 13:09 |
T42_ | <Tailsthefoz> 09-07 19:33:19.689 54 54 W display : configureOverlay:: ExynosCompositionInfo(1) has invalid data, handle(0x0) | 13:09 |
T42_ | <Tailsthefoz> 09-07 19:33:19.689 54 54 E display : [PrimaryDisplay] WIN_CONFIG error: has no buffer window``` | 13:09 |
T42_ | <Tailsthefoz> why does it break after a couple of minutes | 13:10 |
T42_ | <Tailsthefoz> isn't -22 EINVAL | 13:11 |
T42_ | <Tailsthefoz> og yeah | 13:11 |
T42_ | <Tailsthefoz> ``` | 13:11 |
T42_ | <Tailsthefoz> 09-07 19:35:48.209 54 54 D display : Invalid WIN_CONFIG | 13:11 |
T42_ | <Tailsthefoz> 09-07 19:35:48.211 54 89 W ComposerResources: invalid cache 0 slot 0 | 13:11 |
T42_ | <Tailsthefoz> 09-07 19:35:48.211 54 89 W display : configureOverlay:: ExynosCompositionInfo(1) has invalid data, handle(0x0) | 13:11 |
T42_ | <Tailsthefoz> 09-07 19:35:48.211 54 89 D display : Invalid WIN_CONFIG``` | 13:11 |
mal | maybe you are missing the hwc restart configs | 13:13 |
T42_ | <Tailsthefoz> what is that | 13:13 |
T42_ | <Tailsthefoz> this? https://github.com/mer-hybris/droid-hal-configs/commit/336c1b14cc20187a7e9ba368f20161030e326ec9 | 13:14 |
T42_ | <Tailsthefoz> I'll try it? | 13:15 |
T42_ | <Tailsthefoz> should I? | 13:17 |
mal | that requires quite new mce | 13:17 |
mal | not the one which is in 4.5.0 by default | 13:17 |
T42_ | <Tailsthefoz> ok what shpuld | 13:17 |
T42_ | <Tailsthefoz> ok what shoud (edited) | 13:17 |
T42_ | <Tailsthefoz> ok what should i do then (edited) | 13:17 |
mal | something like the opposite of this https://github.com/mer-hybris/droid-config-sony-lena/commit/4bdd7fdc5451218673e858f1b97d5c0423fb0c3b | 13:19 |
mal | forgot that mce compositor config thing added in that is the one which needs new mce | 13:19 |
mal | the files removed in that were the old way | 13:20 |
T42_ | <Tailsthefoz> wdym by opposite | 13:23 |
T42_ | <Tailsthefoz> oh I see | 13:25 |
T42_ | <Tailsthefoz> alright well that's gonna be annoying | 14:04 |
mal | other option is to build and install newer mce and use the simple config | 14:05 |
T42_ | <Tailsthefoz> ok I attempted to make all of those configs, hopefully it works | 14:14 |
T42_ | <Tailsthefoz> what | 14:22 |
T42_ | <Tailsthefoz> ``` | 14:22 |
T42_ | <Tailsthefoz> Sep 07 20:41:47 PhoneX23 stop[9424]: Unable to stop service 'vendor.hwcomposer-2 | 14:22 |
T42_ | <Tailsthefoz> -3'``` | 14:22 |
T42_ | <Tailsthefoz> I literally checked every file in the filesystem | 14:22 |
T42_ | <Tailsthefoz> pretty much | 14:22 |
T42_ | <Tailsthefoz> not quite though | 14:22 |
T42_ | <Tailsthefoz> ok found it | 14:22 |
T42_ | <Tailsthefoz> omg it's because the vidofnir adaptation has that line lol | 14:23 |
T42_ | <Tailsthefoz> alright now it should work maybe | 14:24 |
T42_ | <Tailsthefoz> ah I found the issue | 14:33 |
T42_ | <Tailsthefoz> ``` | 14:33 |
T42_ | <Tailsthefoz> [root@PhoneX23 ~]# cat /usr/lib/systemd/system/sailfish-device-encryption-commun | 14:33 |
T42_ | <Tailsthefoz> ity-wizard.service.d/20-wait-hwc.conf | 14:34 |
T42_ | <Tailsthefoz> [Service] | 14:34 |
T42_ | <Tailsthefoz> ExecStartPre=/usr/bin/droid/wait_for_hwcomposer.sh | 14:34 |
T42_ | <Tailsthefoz> [root@PhoneX23 ~]# cat /usr/bin/droid/wait_for_hwcomposer.sh | 14:34 |
T42_ | <Tailsthefoz> #!/bin/sh | 14:34 |
T42_ | <Tailsthefoz> while [ "$(binder-list -d /dev/hwbinder |grep android.hardware.graphics.composer@2.3::IComposer/default)" == "" ]; do | 14:34 |
T42_ | <Tailsthefoz> echo "Waiting for hwc" | 14:34 |
T42_ | <Tailsthefoz> sleep 1 | 14:34 |
T42_ | <Tailsthefoz> done | 14:34 |
T42_ | <Tailsthefoz> | 14:34 |
T42_ | <Tailsthefoz> exit 0``` | 14:34 |
T42_ | <Tailsthefoz> lol, my device is 2.4 | 14:34 |
T42_ | <Tailsthefoz> no nvm | 14:35 |
T42_ | <Tailsthefoz> that still exists in binder-list | 14:35 |
T42_ | <Tailsthefoz> ok so it seems to break when I load the remaining kernel modules, it might be the proximity sensor | 14:42 |
T42_ | <Tailsthefoz> another thing, I can't get it to show UI everytime | 14:43 |
T42_ | <Tailsthefoz> sometimes it does but sometimes it doesn't | 14:43 |
T42_ | <Tailsthefoz> ok I stopped this service: ``` | 15:35 |
T42_ | <Tailsthefoz> wlan-module-load``` | 15:35 |
T42_ | <Tailsthefoz> and GUI popped up lol | 15:35 |
T42_ | <Tailsthefoz> touch works | 15:35 |
T42_ | <Tailsthefoz> oh no it panicked | 15:37 |
T42_ | <Tailsthefoz> why | 15:37 |
T42_ | <Tailsthefoz> oh I see why | 15:42 |
T42_ | <Tailsthefoz> @NotKit https://pastebin.com/BbKM6e47 | 15:57 |
T42_ | <Tailsthefoz> so it doesn't like that being /dev/null | 15:58 |
T42_ | <Tailsthefoz> it still happens even if I don't mount /dev/null to it | 16:03 |
T42_ | <Tailsthefoz> ``` | 16:04 |
T42_ | <Tailsthefoz> 09-07 22:26:55.210 0 8782 E mali : ==>[INIT] (booster-silica-) CDBG: In file: vendor/arm/mali/valhall/cdbg/src/mali_cdbg_env.c line: 722 cdbgp_populate_from_system_environment | 16:04 |
T42_ | <Tailsthefoz> 09-07 22:26:55.210 0 8782 E mali : Initialization of a handle to the system environment failed (3)``` | 16:04 |
T42_ | <Tailsthefoz> that's permission denied | 16:05 |
T42_ | <Tailsthefoz> but to what file | 16:05 |
T42_ | <Tailsthefoz> that's not the cause of the panic though | 16:16 |
T42_ | <Tailsthefoz> ok so masking mce makes it not panic | 19:13 |
T42_ | <Tailsthefoz> and GUI shows, while rebooting for some reason | 19:13 |
T42_ | <Tailsthefoz> but only while rebooting | 19:14 |
T42_ | <NotKit> lipstick won't display without mce | 19:16 |
T42_ | <Tailsthefoz> yeah I noticed | 19:19 |
T42_ | <Tailsthefoz> apparently it's caused by voicecall-ui for some reason | 19:24 |
T42_ | <Tailsthefoz> ``` | 19:25 |
T42_ | <Tailsthefoz> [ 130.777702][ T8837] dbg_snapshot_do_dpm_policy: KP: Oops: Fatal exception: comm:voicecall-ui PC:gpu_dvfs_kctx_init+0x48/0x1bc [mali_kbase] LR:gpu_dvfs_kctx_init+0x48/0x1bc [mali_kbase]``` | 19:25 |
T42_ | <Tailsthefoz> ah it's probably this same issue (re @unknown: @elros34 It does not...) | 19:31 |
T42_ | <Tailsthefoz> I'll try that patch | 19:32 |
T42_ | <Tailsthefoz> it did absolutely nothing lol | 19:54 |
T42_ | <Tailsthefoz> @NotKit I got lipstick somehow | 20:38 |
T42_ | <Tailsthefoz> I was just kinda spamming random commands | 20:39 |
T42_ | <Tailsthefoz> but there's nothing on screen other than background | 20:39 |
T42_ | <Tailsthefoz> anyone ever encountered this before? (re @Tailsthefoz: [ 130.777702][ T883...) | 21:06 |
T42_ | <Tailsthefoz> it seems to have something to do with process ID | 21:14 |
T42_ | <Tailsthefoz> at least looking in my reverse engineering tool | 21:14 |
T42_ | <Tailsthefoz> but then this literally says it has a PID ``` | 21:16 |
T42_ | <Tailsthefoz> CPU: 6 PID: 8969 Comm: voicecall-ui Tainted: G W O``` | 21:16 |
T42_ | <Tailsthefoz> it's a different process that causes it everytime too | 21:19 |
*** tohaturok is now known as Guest8502 | 21:35 | |
*** tohaturok_ is now known as tohaturok | 21:35 | |
T42_ | <Tailsthefoz> ``` | 21:45 |
T42_ | <Tailsthefoz> /* Get UID from task_struct */ | 21:45 |
T42_ | <Tailsthefoz> task = get_pid_task(find_get_pid(kctx->kprcs->tgid), PIDTYPE_TGID); | 21:45 |
T42_ | <Tailsthefoz> uid = task->cred->uid;``` | 21:45 |
T42_ | <Tailsthefoz> it's this line here | 21:45 |
T42_ | <Tailsthefoz> (the second one) | 21:45 |
tohaturok | How to rebuild droid-hal? I just rerun command make -j$(nproc --all) hybris-hal droidmedia, but got ERROR: pdx224 does not have mountpoint fixup data - see Sailfish OS HADK for details on how to fix this. https://paste.opensuse.org/pastes/c2abb037b6a7 | 21:45 |
tohaturok | but I have fixup data for mountpoint for my device | 21:46 |
T42_ | <Tailsthefoz> I could implement a fix I guess | 21:50 |
T42_ | <Tailsthefoz> I could make it like | 21:50 |
T42_ | <Tailsthefoz> ``` | 21:51 |
T42_ | <Tailsthefoz> if(task->cred == NULL) {return 0;}``` | 21:51 |
T42_ | <Tailsthefoz> because after all the function isn't crucial, it's purpose is to monitor a task's GPU usage per UID | 21:52 |
T42_ | <Tailsthefoz> oh | 21:52 |
T42_ | <Tailsthefoz> oh that must be the issue | 21:52 |
T42_ | <Tailsthefoz> no wait nvm | 21:52 |
T42_ | <Tailsthefoz> i'll implement a patch and see what happens | 21:53 |
T42_ | <Tailsthefoz> ``` | 21:56 |
T42_ | <Tailsthefoz> if(task == NULL) { | 21:56 |
T42_ | <Tailsthefoz> return 0; | 21:56 |
T42_ | <Tailsthefoz> } | 21:56 |
T42_ | <Tailsthefoz> if(task->cred == NULL) { | 21:56 |
T42_ | <Tailsthefoz> return 0; | 21:56 |
T42_ | <Tailsthefoz> } | 21:56 |
T42_ | <Tailsthefoz> ``` | 21:56 |
T42_ | <Tailsthefoz> that should work | 21:56 |
mal | tohaturok: are you sure you have the fixup data, check the hybris/hybris-boot/fixup-mountpoints file in your build env | 21:57 |
tohaturok | mal: sorry, my bad. I've checked out wrong branch | 21:58 |
tohaturok | I built hybris-hal successfully, but I see the error in console: cpio: : No such file or directory. Log: https://paste.opensuse.org/pastes/17554c51a08f Is it ok? | 22:00 |
tohaturok | P.S. cpio is installed | 22:03 |
T42_ | <Tailsthefoz> no instead of doing that, I should figure out why the kernel can't get the task (re @Tailsthefoz: i'll implement a pat...) | 22:09 |
T42_ | <Tailsthefoz> hm ok so you can completely disable all of that in the kernel, aka I don't think the function has to run at all | 22:14 |
T42_ | <Tailsthefoz> so I'm going to try to make it immediately RET and see what happens | 22:14 |
T42_ | <elros34> tohaturok: what hybris branch do you use for android repo? | 22:19 |
tohaturok | elros34: sony-aosp-13 | 22:43 |
T42_ | <elros34> hybris-sony-aosp-13? same for hybris-patchs? It's strange that you have this cpio error which is old issue for different branch | 22:44 |
T42_ | <Tailsthefoz> ugh but it's so difficult to compile a kernel module lol (re @Tailsthefoz: so I'm going to try ...) | 23:36 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!