You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to build this ROM on my own.
Everything is working fine as long as the HTC M7 is not going to suspend. So if it is connected to a PC via USB or if it is used as a Wifi hotspot this ROM works fine. However, as soon as the HTC goes to suspend (deep sleep), this build will reboot.
I tried to debug the error. These are the last lines of proc/last_kmsg:
[ 241.705017] PM: suspend entry 2022-04-19 13:48:53.513601771 UTC
[ 241.705017] PM: Syncing filesystems ... done.
[ 241.729675] PM: Preparing system for mem sleep
[ 241.730651] Freezing user space processes ...
[ 241.731658] [NFC] pn544_dev_read wait_event_interruptible breaked ret=-512
[ 241.731781] [COMP][AKM8963_NST] AKECS_GetOpenStatus
[ 241.733581] (elapsed 0.002 seconds) done.
[ 241.733581] Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done.
[ 241.735839] PM: Entering mem sleep
[ 241.735870] Suspending console(s) (use no_console_suspend to debug)
This isn't very informative so I set no_console_suspend to debug with:
echo N | tee /sys/module/printk/parameters/console_suspend
After unplugging the USB cable again and waiting for the HTC M7 to suspend and restart, this is the proc/last_kmsg
It tries to go to suspend twice. I cannot see a clear error except msm_mpm_irqs_detectable: cannot monitor irq=261 (null).
How would you debug this @TARKZiM ?
I would be happy to dive deeper to get this device working.
The text was updated successfully, but these errors were encountered:
I observed something interesting:
I rooted the devices with Magisk and installed Kernel Adiutor. If I disable all cores excepts the first one, the M7 won't reboot, when going to suspend. Any hints to resolve this issue will be appreciated.
I finally found the error. mpdecision could not start correctly, due to sepolicy.
I tried to start mpdecision manually with start mpdecision and the dmesg output was the following:
init: Control message: Could not ctl.start for 'mpdecision' from pid: 2741 (start mpdecision): File /system/bin/mpdecision (labeled "u:object_r:system_file:s0") has incorrect label or no domain transition from u:r:init:s0 to another SELinux domain defined. Have you configured your service correctly? https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials
I set selinux to permissive and now it isn't rebooting anymore. @TARKZiM do you know how to set the sepolicy correctly?
I tried to build this ROM on my own.
Everything is working fine as long as the HTC M7 is not going to suspend. So if it is connected to a PC via USB or if it is used as a Wifi hotspot this ROM works fine. However, as soon as the HTC goes to suspend (deep sleep), this build will reboot.
I tried to debug the error. These are the last lines of
proc/last_kmsg
:This isn't very informative so I set
no_console_suspend
to debug with:After unplugging the USB cable again and waiting for the HTC M7 to suspend and restart, this is the
proc/last_kmsg
It tries to go to suspend twice. I cannot see a clear error except
msm_mpm_irqs_detectable: cannot monitor irq=261 (null)
.How would you debug this @TARKZiM ?
I would be happy to dive deeper to get this device working.
The text was updated successfully, but these errors were encountered: