| 18 Nov 2024 |
atemu12 | But I think we already do that | 05:17:39 |
atemu12 | We have custom apps, webviews and such | 05:18:16 |
| 19 Nov 2024 |
oak 🏳️🌈♥️ | I now upgraded my phone to have LineageOS 20.0 and made yet-an-other PR https://github.com/nix-community/robotnix/pull/258
Phone seems to be running fine on LineageOS 20, the only noticeable difference is that now instead of 10 seconds the phone boot seems to take around 1 minute | 05:31:25 |
oak 🏳️🌈♥️ | I added instantnoodlep to the supported devices because in the other PR it was commented it would bring more comfort :) | 05:31:58 |
atemu12 | Cool, thanks :) | 05:32:19 |
oak 🏳️🌈♥️ | I don't know how the boot time could be improved, maybe it didn't apply the usual optimizations it does when doing OTA update (which take long time). Maybe doing first OTA update fixes it | 05:34:17 |
atemu12 | Well, try a reboot and see whether it's still as bad | 05:34:38 |
oak 🏳️🌈♥️ | Already tried couple of times | 05:34:55 |
atemu12 | And it's reproducible? | 05:35:04 |
atemu12 | Hm | 05:35:09 |
oak 🏳️🌈♥️ | Yeah on LineageOS 19.1 the squid logo ball was only going over the line for like 3-5 times usually, now it takes 20 bounces | 05:35:51 |
atemu12 | You could have a look at logcat and perhaps get a glance of what's taking so long | 05:36:05 |
atemu12 | There isn't anything as nice as systemd-analyze on Android though that I know of | 05:36:26 |
atemu12 | FWIW it's not taking that long on my device | 05:36:40 |
atemu12 | Have you added a bunch of files to userdata in the process of updating by chance? e.g. to create a backup? | 05:37:23 |
atemu12 | I once had super long boot times and it was caused bu Android running some SElinux re-labelling or some shit | 05:37:59 |
atemu12 | And that scales poorly with the amount of files you have | 05:38:19 |
oak 🏳️🌈♥️ | It looks like it is waiting forever for some sensor and then it timeouts and boots finally | 05:38:42 |
atemu12 | Huh | 05:38:53 |
atemu12 | I wonder if that's an upstream LOS bug | 05:38:58 |
oak 🏳️🌈♥️ | 11-19 07:39:20.502 995 995 I sensors-hal: wait_for_mandatory_sensors:507, some mandatory sensors not available yet, will wait for 23 seconds... | 05:40:09 |
oak 🏳️🌈♥️ | It waits until it goes to 0 seconds and then gives up I guess | 05:40:26 |
atemu12 | I hate this kind of error message with a passion | 05:40:58 |
atemu12 | "some" | 05:41:02 |
atemu12 | Gee thanks | 05:41:08 |
atemu12 | And it's like in the best position to tell you because the function logging this error likely has all the devices it's waiting on readily available. | 05:41:41 |
oak 🏳️🌈♥️ | There is sensors list file needs to be updated otherwise it will delay boot for 30 seconds in /vendor/persist/sensors/sensors_list.txt | 05:43:34 |
oak 🏳️🌈♥️ | It actually gives useful error message in the end: ``` 11-19 07:44:52.903 992 992 E sensors-hal: wait_for_mandatory_sensors:531, some mandatory sensors not available even after 30 seconds, giving up. 11-19 07:44:52.903 992 992 E sensors-hal: wait_for_mandatory_sensors:533, 3 missing sensor(s) 11-19 07:44:52.903 992 992 E sensors-hal: wait_for_mandatory_sensors:536, mag 11-19 07:44:52.903 992 992 E sensors-hal: wait_for_mandatory_sensors:536, mag_cal 11-19 07:44:52.903 992 992 E sensors-hal: wait_for_mandatory_sensors:536, rotv
| 05:45:29 |
oak 🏳️🌈♥️ | * It actually gives useful error message in the end: ```
11-19 07:44:52.903 992 992 E sensors-hal: wait_for_mandatory_sensors:531, some mandatory sensors not available even after 30 seconds, giving up.
11-19 07:44:52.903 992 992 E sensors-hal: wait_for_mandatory_sensors:533, 3 missing sensor(s)
11-19 07:44:52.903 992 992 E sensors-hal: wait_for_mandatory_sensors:536, mag
11-19 07:44:52.903 992 992 E sensors-hal: wait_for_mandatory_sensors:536, mag_cal
11-19 07:44:52.903 992 992 E sensors-hal: wait_for_mandatory_sensors:536, rotv | 05:45:42 |
oak 🏳️🌈♥️ | * It actually gives useful error message in the end:
11-19 07:44:52.903 992 992 E sensors-hal: wait_for_mandatory_sensors:531, some mandatory sensors not available even after 30 seconds, giving up.
11-19 07:44:52.903 992 992 E sensors-hal: wait_for_mandatory_sensors:533, 3 missing sensor(s)
11-19 07:44:52.903 992 992 E sensors-hal: wait_for_mandatory_sensors:536, mag
11-19 07:44:52.903 992 992 E sensors-hal: wait_for_mandatory_sensors:536, mag_cal
11-19 07:44:52.903 992 992 E sensors-hal: wait_for_mandatory_sensors:536, rotv | 05:45:48 |