[Sony Cross-Device General] NamenIos:
The bug reporter has no newlines and is almost unreadable. Here is the bug report with newlines:

ROM: 10.5.A.0.230 rooted (ldo ;)) and eXistenZ v5 (10.4.1.B.0.101 based).
XZDR: 2.7.123 and beta versions back to 2.7.79 probably more/all

Expected behaviour: When you as a user are idle in TWRP the screen normally turns off to save battery.

What happens: The screen turns black but the backlight won't turn off. Possible cause: I am pretty sure it has to do with the differences of the backlight from XZ to XZL. The same happens when you use the chargemon binary (well chargemon.stock when XZDR is installed) of the Xperia Z on the Xperia ZL. When you power off the phone and connect it to a charger the backlight won't turn off.

Possible solution: Tracing back the differences of both devices. Finding the right command to turn off the backlight. /sys/class/leds/lcd-backlight/brightness seems to not work on stock rom (not in recovery!, tested it in rooted stock ROM with adb shell; su; echo ...). Some sysfs search revealed nothing interesting for me. Maybe sysfs entries help (these are made in TWRP!):

ls -l /sys/class/leds/
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
lrwxrwxrwx 1 root root 0 Jul 16 1970 lcd-backlight -> ../../devices/platform/msm_fb.524288/leds/lcd-backlight
lrwxrwxrwx 1 root root 0 Jul 16 1970 lm3533-blue -> ../../devices/i2c-0/0-0036/leds/lm3533-blue
lrwxrwxrwx 1 root root 0 Jul 16 1970 lm3533-green -> ../../devices/i2c-0/0-0036/leds/lm3533-green
lrwxrwxrwx 1 root root 0 Jul 16 1970 lm3533-lcd-bl-1 -> ../../devices/i2c-0/0-0036/leds/lm3533-lcd-bl-1
lrwxrwxrwx 1 root root 0 Jul 16 1970 lm3533-lcd-bl-2 -> ../../devices/i2c-0/0-0036/leds/lm3533-lcd-bl-2
lrwxrwxrwx 1 root root 0 Jul 16 1970 lm3533-red -> ../../devices/i2c-0/0-0036/leds/lm3533-red
lrwxrwxrwx 1 root root 0 Jul 16 1970 not-connected -> ../../devices/i2c-0/0-0036/leds/not-connected

ls -l /sys/class/leds/lcd-backlight/
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
-rw-r--r-- 1 root root 4096 Jan 2 12:02 brightness
lrwxrwxrwx 1 root root 0 Jul 16 1970 device -> ../../../msm_fb.524288
-rw-r--r-- 1 root root 4096 Jul 16 1970 max_brightness
drwxr-xr-x 2 root root 0 Jul 16 1970 power
lrwxrwxrwx 1 root root 0 Jul 16 1970 subsystem -> ../../../../../class/leds
-rw-r--r-- 1 root root 4096 Jul 16 1970 trigger
-rw-r--r-- 1 root root 4096 Jul 16 1970 uevent

ls -l /sys/class/leds/lcd-backlight/power/
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
-rw-r--r-- 1 root root 4096 Jul 16 1970 autosuspend_delay_ms
-rw-r--r-- 1 root root 4096 Jul 16 1970 control
-r--r--r-- 1 root root 4096 Jul 16 1970 runtime_active_time
-r--r--r-- 1 root root 4096 Jul 16 1970 runtime_status
-r--r--r-- 1 root root 4096 Jul 16 1970 runtime_suspended_time

Zeros (echo 0 > xy/brightness) in won't affect the backlight:
/sys/devices/i2c-0/0-0036/leds/lm3533-lcd-bl-1/brightness
/sys/devices/i2c-0/0-0036/leds/lm3533-lcd-bl-2/brightness
/sys/devices/platform/msm_fb.524288/leds/lcd-backlight/brightness

If you need some more infos shoot me a message.