[Sony Cross-Device General] NamenIos:
Sweet, forcing the installation of the adb composite driver (device manager, right click device, update driver, browse files, let me pick, have disk) worked.

Ok I reset all recovery settings in PhilZ powered off, powered on again into recovery. Set Dim Screen to zero and display off to one minute. Still the backlight does not turn off.

PS C:\Users\xxx\adt-bundle-windows-x86_64-20130917\sdk\platform-tools> .\adb.exe shell

~ # PS C:\xxx\adt-bundle-windows-x86_64-20130917\sdk\platform-tools> .\adb.exe shell

~ # cat /sys/class/leds/lm3533-lcd-bl-1/brightness

cat /sys/class/leds/lm3533-lcd-bl-1/brightness

0

~ # cat /sys/class/leds/lm3533-lcd-bl-2/brightness

cat /sys/class/leds/lm3533-lcd-bl-2/brightness

0

~ # echo "0" > /sys/class/leds/lm3533-lcd-bl-1/brightness

echo "0" > /sys/class/leds/lm3533-lcd-bl-1/brightness screen gets dimmer by quite a bit probably half, makes sense

~ # echo "0" > /sys/class/leds/lm3533-lcd-bl-2/brightness

echo "0" > /sys/class/leds/lm3533-lcd-bl-2/brightness screen turns off

Well so probably the values are not set correctly. Fascinating. Kind of.

Hm I looked into the source and saw everything is written by fopen. At first I was courious of the return code of the echo > commands.

The reboots were result of my stupidity I think. The device obv reboots after waking and pressing the power button when the selection is over reboot device ... so much for that.

Set brightness in gui settings does not work. I thought that worked some time ago.

If nothing helps I guess I will try the arm gcc in my Kubuntu VM and make a small tool that tries to change the brightness the exact way PhilZ does.

Log snippets:

…
I:Build version: 6.08.9 - [COLOR="Red"]Xperia Z[/COLOR]
…
I:set_brightness was set to 195
I:set_brightness=195
E:Unable to create brightness sys file!
I:set_brightness was set to 230
I:set_brightness=230
E:Unable to create brightness sys file!
I:set_brightness was set to 10
I:set_brightness=10
E:Unable to create brightness sys file!
I:set_brightness was set to 45
I:set_brightness=45
E:Unable to create brightness sys file!
I:set_brightness was set to 80
I:set_brightness=80
E:Unable to create brightness sys file!
I:set_brightness was set to 115
I:set_brightness=115
E:Unable to create brightness sys file!
I:set_brightness was set to 150
I:set_brightness=150
E:Unable to create brightness sys file!
I:set_brightness was set to 185
I:set_brightness=185
E:Unable to create brightness sys file!
I:set_brightness was set to 220
I:set_brightness=220
E:Unable to create brightness sys file!
I:set_brightness was set to 255
I:set_brightness=255
E:Unable to create brightness sys file!
I:setting up /data/media(/0) for /sdcard.
I:using /data/media/0 for /sdcard
…

The Xperia Z at the start is ok I guess?

The set brightness was probably me changing the brightness in the gui to see if that works.

Ok addition. Right after starting:

~ # cat /sys/class/leds/lm3533-lcd-bl-1/brightness

cat /sys/class/leds/lm3533-lcd-bl-1/brightness

0

~ # cat /sys/class/leds/lm3533-lcd-bl-2/brightness

cat /sys/class/leds/lm3533-lcd-bl-2/brightness

0

Wtf?

The list of files:

~ # find /sys -iname "*bright*"
find /sys -iname "*bright*"
/sys/devices/i2c-0/0-0036/leds/lm3533-red/brightness
/sys/devices/i2c-0/0-0036/leds/lm3533-red/max_brightness
/sys/devices/i2c-0/0-0036/leds/not-connected/brightness
/sys/devices/i2c-0/0-0036/leds/not-connected/max_brightness
/sys/devices/i2c-0/0-0036/leds/lm3533-green/brightness
/sys/devices/i2c-0/0-0036/leds/lm3533-green/max_brightness
/sys/devices/i2c-0/0-0036/leds/lm3533-blue/brightness
/sys/devices/i2c-0/0-0036/leds/lm3533-blue/max_brightness
/sys/devices/i2c-0/0-0036/leds/lm3533-lcd-bl-1/brightness
/sys/devices/i2c-0/0-0036/leds/lm3533-lcd-bl-1/max_brightness
/sys/devices/i2c-0/0-0036/leds/lm3533-lcd-bl-2/brightness
/sys/devices/i2c-0/0-0036/leds/lm3533-lcd-bl-2/max_brightness
/sys/devices/platform/msm_fb.524288/leds/lcd-backlight/brightness
/sys/devices/platform/msm_fb.524288/leds/lcd-backlight/max_brightness
~ # ll /sys/class/leds/
ll /sys/class/leds/
/sbin/sh: ll: not found
~ # ls -l /sys/class/leds/
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 Aug 16 1970 lcd-backlight -> ../../devices/platform/msm_fb.524288/leds/lcd-backlight
lrwxrwxrwx 1 root root 0 Aug 16 1970 lm3533-blue -> ../../devices/i2c-0/0-0036/leds/lm3533-blue
lrwxrwxrwx 1 root root 0 Aug 16 1970 lm3533-green -> ../../devices/i2c-0/0-0036/leds/lm3533-green
lrwxrwxrwx 1 root root 0 Aug 16 1970 lm3533-lcd-bl-1 -> ../../devices/i2c-0/0-0036/leds/lm3533-lcd-bl-1
lrwxrwxrwx 1 root root 0 Aug 16 1970 lm3533-lcd-bl-2 -> ../../devices/i2c-0/0-0036/leds/lm3533-lcd-bl-2
lrwxrwxrwx 1 root root 0 Aug 16 1970 lm3533-red -> ../../devices/i2c-0/0-0036/leds/lm3533-red
lrwxrwxrwx 1 root root 0 Aug 16 1970 not-connected -> ../../devices/i2c-0/0-0036/leds/not-connected
~ # ls -l /sys/devices/platform/msm_fb.524288/leds/lcd-backlight/
ls -l /sys/devices/platform/msm_fb.524288/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 Aug 16 1970 brightness
lrwxrwxrwx 1 root root 0 Aug 16 1970 device -> ../../../msm_fb.524288
-rw-r--r-- 1 root root 4096 Aug 16 1970 max_brightness
drwxr-xr-x 2 root root 0 Aug 16 1970 power
lrwxrwxrwx 1 root root 0 Aug 16 1970 subsystem -> ../../../../../class/leds
-rw-r--r-- 1 root root 4096 Aug 16 1970 trigger
-rw-r--r-- 1 root root 4096 Aug 16 1970 uevent
~ # ls -l /sys/devices/i2c-0/0-0036/leds/lm3533-lcd-bl-1
ls -l /sys/devices/i2c-0/0-0036/leds/lm3533-lcd-bl-1
__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!
--w------- 1 root root 4096 Aug 16 1970 als_enable
--w------- 1 root root 4096 Aug 16 1970 als_on_suspend_enable
-rw-r--r-- 1 root root 4096 Aug 16 1970 brightness
lrwxrwxrwx 1 root root 0 Aug 16 1970 device -> ../../../0-0036
-rw------- 1 root root 4096 Aug 16 1970 fsc
-rw-r--r-- 1 root root 4096 Aug 16 1970 max_brightness
drwxr-xr-x 2 root root 0 Aug 16 1970 power
-rw------- 1 root root 4096 Aug 16 1970 pwm
lrwxrwxrwx 1 root root 0 Aug 16 1970 subsystem -> ../../../../../class/leds
-rw-r--r-- 1 root root 4096 Aug 16 1970 trigger
-rw-r--r-- 1 root root 4096 Aug 16 1970 uevent
~ # ls -l /sys/devices/i2c-0/0-0036/leds/lm3533-lcd-bl-2
ls -l /sys/devices/i2c-0/0-0036/leds/lm3533-lcd-bl-2
__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!
--w------- 1 root root 4096 Aug 16 1970 als_enable
--w------- 1 root root 4096 Aug 16 1970 als_on_suspend_enable
-rw-r--r-- 1 root root 4096 Aug 16 1970 brightness
lrwxrwxrwx 1 root root 0 Aug 16 1970 device -> ../../../0-0036
-rw------- 1 root root 4096 Aug 16 1970 fsc
-rw-r--r-- 1 root root 4096 Aug 16 1970 max_brightness
drwxr-xr-x 2 root root 0 Aug 16 1970 power
-rw------- 1 root root 4096 Aug 16 1970 pwm
lrwxrwxrwx 1 root root 0 Aug 16 1970 subsystem -> ../../../../../class/leds
-rw-r--r-- 1 root root 4096 Aug 16 1970 trigger
-rw-r--r-- 1 root root 4096 Aug 16 1970 uevent

Writing to /sys/devices/platform/msm_fb.524288/leds/lcd-backlight/brightness does nothing.

edit: Touch does nothing right after boot:

~ # touch /sys/class/leds/lm3533-lcd-bl-1/brightness

touch /sys/class/leds/lm3533-lcd-bl-1/brightness

~ # touch /sys/class/leds/lm3533-lcd-bl-2/brightness

touch /sys/class/leds/lm3533-lcd-bl-2/brightness