I managed finally to shut off this annoying led blinking (I can see it through plastic on my white glow)
From the kernel source: arch/arm/mach-mx5/mx50_ntx_io.c, I discovered these calls
// #define CM_LED_BLINK 127
// shut off blinking led
ioctl -d /dev/ntx_io 127 0
// same but with a oneshot blink
ioctl -d /dev/ntx_io 127 2
// Put led on ( don't allways work, probably need another call to re-enable timer)
ioctl -d /dev/ntx_io 127 1
These others are interesting too.
You can test them in a adb shell
// Led Blue
ioctl -d /dev/ntx_io 101 0
// Led Green
ioctl -d /dev/ntx_io 101 1
// #define POWER_OFF_COMMAND 0xC0 // 192
// Power off directly, keeping the Eink screen as actual
ioctl -d /dev/ntx_io 192
// these are not tested yet
// #define SYS_RESET_COMMAND 193
// Reboot ?
ioctl -d /dev/ntx_io 193
// #define POWER_KEEP_COMMAND 205
// Sleep mode on off ?
ioctl -d /dev/ntx_io 205 0
ioctl -d /dev/ntx_io 205 1
// #define CM_TOUCH_LOCK 128
// Lock screen touch ?
ioctl -d /dev/ntx_io 128 0
ioctl -d /dev/ntx_io 128 1
-----------------
However this lead to another problem
I tried to put this command (work in a shell)
ioctl -d /dev/ntx_io 127 0
in a shellscript led_off.sh that I call from init.rc like this
service led_off /system/etc/led_off.sh
oneshot
The call seams correct but don't work...
In fact, it is not possible because the root (ramdisk ?) is erased at each reboot
The file seems copied from other recovery partition.
Can someone confirm this ? I have not a linux box working yet to view sdcard partitions
Would be fine to modify init.rc to call a sh script which could himself call optional user script.
related links
http://grokbase.com/p/gg/android-pla...ges-to-init-rc
http://grokbase.com/t/gg/android-pla...anges-to-init-
---------------
In the meantime I found this app: SManager
https://play.google.com/store/apps/d...anager%26hl=en
or
http://smanager.wikidot.com/main:start
It can execute shellscript on reboot
It works well (despite tiny char interface) but is not ideal in term of memory usage and power in sleep mode.