[Sony Ericsson XPERIA X10 Mini] dams2011:
edit

misspelled a small line is very rare but this should Asher so XD

Keyboard brightness fix

add in system\etc\init.d file 91keyboard and

hw_config.sh
add the following line

#Keyboard Fix
echo 0 > /sd-ext/key.log
sh /system/etc/init.d/91keyboard &
dev=/sys/devices/platform/msm_pmic_misc_led.0
echo 255 > $dev/max::brightness
echo 1 > $dev/als::cut-off
zone "0"
echo user_als > $dev/control::mode
echo 40 > $dev/max::current_ma

was (# Keyboard Fix)

was misspelled :)

# Keyboard

should work now without any problems

# Vibrator configuration
dev=/sys/devices/platform/msm_pmic_vibrator
echo 2400 > $dev/voltage_mv

# lm3530 LMU configuration
dev=/sys/devices/platform/i2c-adapter/i2c-0/0-0036
echo linear > $dev/br::mapping # linear exp
echo 32768 > $dev/br::rate::up # 8, 1024, 2048, 4096, 8192, 16384, 32768, 65538
echo 32768 > $dev/br::rate::down # 8, 1024, 2048, 4096, 8192, 16384, 32768, 65538
echo 254 > $dev/br::limit # 0 - 255
echo 22.5 > $dev/br::fsc # 5.0, 8.5, 12.0, 15.5, 19.0, 22.5, 26.0, 29.5
echo 4,16,64,250 > $dev/curve::borders
echo 50,50,50,50,50 > $dev/curve::targets
echo high-z > $dev/als::r1 # high-z, 9360, 5560 .. 677.6 (see chip mnual)
echo high-z > $dev/als::r2 # high-z, 9360, 5560 .. 677.6 (see chip mnual)
echo 128 > $dev/als::avg-t # 32, 63, 128, 256, 512, 1024, 2048, 4096
echo i2c_pwm_als > $dev/mode # i2c, pwm, i2c_pwm, als, pwm_als, i2c_pwm_als, i2_als

# Proximity sensor configuration
dev=/sys/devices/platform/proximity-sensor/semc/proximity-sensor
echo 15 > $dev/led_on_ms # sensor LED on time in ms
echo 35 > $dev/led_off_ms # sensor LED off time in ms

echo "smartassV2" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 90 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
echo 30 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/down_differential
echo 500000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
echo 122880 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 600000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

# Flash LED configuration
dev=/sys/devices/platform/msm_pmic_flash_led
echo 80 > $dev/spotlight::current_ma # spotlight current
echo 4700 > $dev/spotlight::boost_mv # spotlight boost voltage
echo 480 > $dev/cmaflash::current_ma # camera flash current
echo 5000 > $dev/cmaflash::boost_mv # camera flash voltage

dev=/sys/devices/platform/msm_pmic_misc_led.0
echo 255 > $dev/max::brightness
echo 3 > $dev/als::cut-off
zone "0"
echo user_als > $dev/control::mode
echo 40 > $dev/max::current_ma

mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system
chmod u+s /system/bin/charger
mount -o ro,remount -t yaffs2 /dev/block/mtdblock0 /system
rm -rf /data/local/download/*

#Keyboard Fix
echo 0 > /sd-ext/key.log
sh /system/etc/init.d/91keyboard &
dev=/sys/devices/platform/msm_pmic_misc_led.0
echo 255 > $dev/max::brightness
echo 1 > $dev/als::cut-off
zone "0"
echo user_als > $dev/control::mode
echo 40 > $dev/max::current_ma

so should be

---------- Post added at 06:46 PM ---------- Previous post was at 06:42 PM ----------

keyboard numeric fix

delete the folder (usr) system that is in and replace this (new usr floder) and then install the roms should work without problem