heavily inspired by this thread and this thread
tested on my NS4G
**If auto brightness is on you might experience a green/yellow screen**
SCREEN v1 Gamma Hack
Red = -51
Green = -53
Blue = - 47
Screen RGB multipliers
Red = 230********
Green = 230********
Blue = 273********
so far I have not had any issues with green flash on matrix v19
FOR FREE VERSION OF VOODOO COLORS:
if you want your settings to stick:
- download rom toolbox
- under 'tools' select 'scripter'
- add new script by pressing the +
- call it whatever and enter the script below
- save script and select 'run at boot' if you want your voodoo colors to stick
#! /sys/bin/sh echo 2309122400 >/sys/class/misc/voodoo_color/red_multiplier echo 2309122400 >/sys/class/misc/voodoo_color/green_multiplier echo 2736309760 >/sys/class/misc/voodoo_color/blue_multiplier echo -47 >/sys/class/misc/voodoo_color/blue_v1_offset echo -51 >/sys/class/misc/voodoo_color/red_v1_offset echo -53 >/sys/class/misc/voodoo_color/green_v1_offset
On CM9, positive gamma values are equivalent to Voodoo Sound's negative gamma settings. So on CM9, you'd use 51 for red, 53 for green, and 47 for blue.
Colour multipliers are a range from 0 to 4294967290 in Voodoo Sound, so you can get the CM9 value by division. For instance, 2309122400/4294967290 = 0.5376344554. CM9 colour values for the OP are: 0.5376344554 for red, 0.5376344554 for green, and 0.6370967635 for blue.
CM9 also uses a range of 0 to 4294967290 in /sys/class/misc/samoled_color/*_multiplier, so you can set colour and gamma values directly by modifying the script in the OP:
#!/system/bin/sh echo 2309122400 >/sys/class/misc/samoled_color/red_multiplier echo 2309122400 >/sys/class/misc/samoled_color/green_multiplier echo 2736309760 >/sys/class/misc/samoled_color/blue_multiplier echo 47 >/sys/class/misc/samoled_color/blue_v1_offset echo 51 >/sys/class/misc/samoled_color/red_v1_offset echo 53 >/sys/class/misc/samoled_color/green_v1_offset