[Xperia Z Android Development] airlessproject:
Guys as I've already said, I'm little to none into RR's changes and what improvements/declines they bring, mainly because I'm just building from their sources and not much more.

However, what I can be held responsible for after build 04/25 is kernel, and I'm currently standing behind every change that happens in that department.

As far as I can see in what's been changed there in last few builds, neither USB OTG nor Screen casting have stopped working because any of those changes, but also I can't test and maybe solve this myself because I don't have any devices that support either of these technologies.

You can ask about these issues at official RR sites, they could more know about them.

I have not had a single SOD in a long time.

Anyway, I'll need more information on what exactly happened when those kmsgs were created.

For example, here:

[ 514.519683] mipi_dsi_panel mipi_dsi_panel.0: panel_off: DISPLAY_OFF sent
[ 539.496948] set_usb_max_current: setting current max to 900
[ 566.645874] set_usb_max_current: setting current max to 1500
[ 652.749237] clearpad clearpad: synaptics_clearpad_set_power: state=running
[ 652.760284] clearpad clearpad: power ON
[ 652.768493] mdp4_overlay_mdp_perf_upd mdp clk is changed [1] from 0 to 266667000
[ 653.055084] mipi_dsi_panel mipi_dsi_panel.0: panel_display_on: DISPLAY_ON sent
[ 654.378997] check_recover_vbus_collapse: VBUS input current limiting to 1300 mA. Retry set 1500 mA
[ 667.178955] check_recover_vbus_collapse: VBUS input current limiting to 1100 mA. Retry set 1500 mA
[ 667.779205] check_recover_vbus_collapse: VBUS input current limiting to 900 mA. Retry set 1500 mA
[ 697.799499] check_recover_vbus_collapse: VBUS input current still limiting to 900 mA. Retry set 1500 mA
[ 697.899536] check_recover_vbus_collapse: VBUS input current limit successfully recovered to 1500 mA
[ 706.302185] set_usb_max_current: setting current max to 900
[ 706.319885] check_recover_vbus_collapse: VBUS input current limiting to 500 mA. Retry set 900 mA
[ 706.409332] check_recover_vbus_collapse: VBUS input current limit successfully recovered to 900 mA
[ 706.579956] init: untracked pid 7218 exited with status 88
[ 706.807281] init: untracked pid 7220 exited with status 0
[ 709.699981] audit: audit_lost=336 audit_rate_limit=20 audit_backlog_limit=64
[ 709.706359] audit: rate limit exceeded
[ 726.492218] msm_otg msm_otg: USB exited from low power mode
[ 726.498535] msm_otg msm_otg: b_idle work, inputs=0x00000001
[ 726.503417] msm_otg msm_otg: Avail curr from USB = 0
[ 726.508209] USB fast charging is OFF.
[ 726.512298] msm_otg msm_otg: phy_reset: success
[ 726.620574] msm_otg msm_otg: USB in low power mode
[ 726.721954] ACDB=> get_hw_delay: Path = 0 samplerate = 48000 usec = 0 status 0
[ 726.728424] afe_callback: cmd = 0x100dc returned error = 0x3
[ 726.733917] afe_send_hw_delay: config cmd failed
[ 730.652008] SLIM_CL: skip reconfig sequence
[ 747.361968] binder: 824:1683 transaction failed 29189, size 136-0
[ 748.130279] init: untracked pid 4669 killed by signal 9
[ 810.809753] binder: undelivered transaction 237286
[ 810.819885] binder: undelivered transaction 237284
[ 810.823791] binder: undelivered transaction 237285
[ 810.831390] binder: 301:512 transaction failed 29189, size 68-0
[ 811.062408] alarm_release: clear alarm, pending 0
[ 817.701324] set_usb_max_current: setting current max to 1500
[ 824.753387] set_usb_max_current: setting current max to 1500
[ 830.662017] binder: 3928:3983 transaction failed 29189, size 68-0
[ 835.822937] set_usb_max_current: setting current max to 1500
[ 855.855194] set_usb_max_current: setting current max to 1500
[ 880.892303] set_usb_max_current: setting current max to 1500
[ 915.937622] set_usb_max_current: setting current max to 1500
[ 923.082916] binder: 2068:2246 transaction failed 29189, size 200-0
[ 928.562774] binder: 2184:2218 transaction failed 29189, size 284-8
[ 928.568969] binder: 2184:2239 transaction failed 29189, size 248-0
[ 929.888031] binder: 2184:2291 transaction failed 29189, size 64-0
[ 932.979339] binder: 1967:2702 transaction failed 29189, size 200-0
[ 995.988586] set_usb_max_current: setting current max to 1500
[ 998.557800] binder: 3729:3789 transaction failed 29189, size 80-0
[ 998.563964] binder: 3729:3790 transaction failed 29189, size 372-0
[ 1059.725891] resout_irq_handler PMIC Initiated shutdown
[ 1059.730194] PMIC Initiated shutdown cpu_power_off cpu=0
[ 1059.731201] PMIC Initiated shutdown cpu_power_off cpu=2
[ 1059.731292] PMIC Initiated shutdown cpu_power_off cpu=1
[ 1059.731384] PMIC Initiated shutdown cpu_power_off cpu=3
[ 1059.751159] Powering off the SoC
[ 1059.755279] Calling scm to disable arbiter
[ 1059.758697] SCM returned even when asked to busy loop rc=-4
[ 1059.764068] waiting on pmic to shut msm down

No errors detected

display is turned off [ 514.519683], then it's turned back on after 2 minutes [ 653.055084], and then lot of stuff (mostly related to usb/charging) happens for 6 minutes, when a restart/shutdown occurs. Did the sleep of death last 6 minutes or was the screen on at the time of shutdown, and what happened in that 6 minutes?

Here

[ 429.106353] mipi_dsi_panel mipi_dsi_panel.0: panel_off: DISPLAY_OFF sent
[ 430.237762] PM: Syncing filesystems ... done.
[ 433.561737] set_usb_max_current: setting current max to 900
[ 437.599639] set_usb_max_current: setting current max to 900
[ 444.670684] set_usb_max_current: setting current max to 1500
[ 452.752014] set_usb_max_current: setting current max to 1500
[ 464.861572] set_usb_max_current: setting current max to 1500
[ 484.905151] set_usb_max_current: setting current max to 1500
[ 491.303192] resout_irq_handler PMIC Initiated shutdown
[ 491.307464] PMIC Initiated shutdown cpu_power_off cpu=0
[ 491.308380] PMIC Initiated shutdown cpu_power_off cpu=1
[ 491.317871] Powering off the SoC
[ 491.322265] Calling scm to disable arbiter
[ 491.325500] SCM returned even when asked to busy loop rc=-4
[ 4ЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄЄ
0 Corrected bytes, 82 unrecoverable blocks

we have some activity (again related to usb/charging) after display is off until a shutdown is initiated, this time lasting 1 minute.

On another note: we'll soon have official LP rolling out for Z. This means we'll finally get the new blobs, which are expected to make many things much better for all custom roms. Also we'll get new kernel sources, most of whose changes will be merged into custom kernels, which should improve some things too.

But, it also means custom roms will lose some users to stock and its derivatives, which is expected because stock is much more stable and less buggy, but as for myself, I'll go on using and building RR and a custom kernel for our device afterwards.

Also, a new build is on the way, it will probably be out soon, and no later than when RR updates to 5.4.5 and/or LP 5.1.1_r2.