Guest System of a pWne!^ Posted October 24, 2010 Report Posted October 24, 2010 Have you ever look in /data/etc/undervolt.conf ? You can edit this file and put your voltage table, save, reboot and that's all. Example: 950 1050 19200 950 1050 128000 950 1050 245000 975 1050 384000 975 1050 422400 1000 1050 460800 1025 1075 499200 1025 1100 537600 1050 1100 576000 1075 1125 614400 1100 1150 652800 1125 1175 691200 1150 1200 729600 1175 1200 768000 1200 1225 806400 1200 1250 844800 1225 1275 883200 1225 1300 921600 1250 1300 960000 1250 1300 998400 1275 1300 1036800 1275 1300 1075200 1300 1300 1113600 No, I haven't. I'm still on the other kernel but and I needed clarification before I switch. Anyway, thanks for helping once more!
Guest woti17 Posted October 24, 2010 Report Posted October 24, 2010 (edited) @sub01 i took a look at the default tx power settings on my netbook wifi build in, it has 10dBm tx power, thats 10mW right? desire has default 20dBm = 100mW (which is the max limit for sending power including antenna gain in europe) and i found that i can go down do 7dBm in the wifi-network@home without loss of connection - that may vary on other networks and places. at 1mW (0dBm) connection interrupts immediately. am i right that this only affects the sending power and doesn't influence the receiving signal capabilities? so setting this to a value suiting the environment would be an achievement? Edited October 24, 2010 by woti17
Guest Sub501 Posted October 24, 2010 Report Posted October 24, 2010 The concept behind this mods is customization. Simply put, there's no need to reinstall binaries (kernel, modules). If you want a specific feature just look in /data/etc/*.conf files. Configurable features: undervolt table cpu governors and frequencies on screenstate / battery level basis. module loaded during boot Configurable feature available in the next version (20101025) nand and sdcard i/o schedulers nand and sdcard readahead values wifi tx power other tuning values (sysctl / VM) Bonus: loopmount - loop filesystem mount helper. Useful for mounting iso files for example.
Guest Sub501 Posted October 24, 2010 Report Posted October 24, 2010 (edited) @sub01 i took a look at the default tx power settings on my netbook wifi build in, it has 10dBm tx power, thats 10mW right? desire has default 20dBm = 100mW (which is the max limit for sending power including antenna gain in europe) and i found that i can go down do 7dBm in the wifi-network@home without loss of connection - that may vary on other networks and places. at 1mW (0dBm) connection interrupts immediately. am i right that this only affects the sending power and doesn't influence the receiving signal capabilities? so setting this to a value suiting the environment would be an achievement? P (in W) = ( 10 ^ (x/10) ) / 1000 x (in dBm) = 10 * log10(P) + 30 Mine has 32dBm which translates to.... ~1.5W . Tested on 10dBm = 10mW and everything is ok. Stay tuned for the next init-mods update. It will include tx power mod (also configurable in /data/etc/wifipower.conf). Edited October 24, 2010 by Sub501
Guest woti17 Posted October 24, 2010 Report Posted October 24, 2010 (edited) P (in W) = ( 10 ^ (x/10) ) / 1000 x (in dBm) = 10 * log10(P) + 30 Mine has 32dBm which translates to.... ~1.5W . Tested on 10dBm = 10mW and everything is ok. Stay tuned for the next init-mods update. It will include tx power mod (also configurable in /data/etc/wifipower.conf). great! thanks! when compiling next kernel could you please include config.gz support in kernel? Edited October 24, 2010 by woti17
Guest Sub501 Posted October 24, 2010 Report Posted October 24, 2010 great! thanks! when compiling next kernel could you please include config.gz support in kernel? It is already there. Just insmod /system/lib/modules/configs.ko
Guest woti17 Posted October 24, 2010 Report Posted October 24, 2010 It is already there. Just insmod /system/lib/modules/configs.ko if [ ! -f $CTRL ]; then log -p e -t "$LOGTITLE" "configuration file not found: $CONFIG . ..... shouldn't the variable asked for moduleconfig path be $CONFIG instead of $CTRL in 98_90_....? or do i have an old version?
Guest Sub501 Posted October 24, 2010 Report Posted October 24, 2010 if [ ! -f $CTRL ]; then log -p e -t "$LOGTITLE" "configuration file not found: $CONFIG . ..... shouldn't the variable asked for moduleconfig path be $CONFIG instead of $CTRL in 98_90_....? or do i have an old version? Yes I know, it was already fixed here and be avail in the next update.
Guest Sub501 Posted October 24, 2010 Report Posted October 24, 2010 Update 20101025 is available. Waiting for your feedback/bug reports.
Guest woti17 Posted October 24, 2010 Report Posted October 24, 2010 (edited) Update 20101025 is available. Waiting for your feedback/bug reports. only thing i have seen so far load_cfq(){ MODULE=/system/lib/modules/cfq-iosched.ko seems like this module is missing? edit: cfq is already in the kernel, right? so module doesn't have to load, or do i read the script wrong? great work, thank you for doing this! Edited October 24, 2010 by woti17
Guest Sub501 Posted October 25, 2010 Report Posted October 25, 2010 only thing i have seen so far load_cfq(){ MODULE=/system/lib/modules/cfq-iosched.ko seems like this module is missing? edit: cfq is already in the kernel, right? so module doesn't have to load, or do i read the script wrong? great work, thank you for doing this! The cfq is already in the kernel, that function will check if is already in kernel then if not will try to load the module ;-) . Not everyone here is using my kernel, may be other kernels have CFQ as module.
Guest sebastiaan15 Posted October 25, 2010 Report Posted October 25, 2010 # # Sub501's Module load configuration file # v20101025 # # Example (there is no need to load undervolt this way - is loaded by a dedicated script): #undervolt "acpuclk_set_rate_addr=`awk '$3 == "acpuclk_set_rate" { print "0x"$1; }' /proc/kallsyms`" # Kernel configuration #configs #cifs #fuse #ntfs #tun #xfs #nls_utf8 #isofs # UDF #crc_itu_t #udf # NFS #lockd #auth_rpcgss #sunrpc #nfs_acl #nfs #nfsd # CPU Governors #cpufreq_interactive #cpufreq_powersave Are all module's activated or must i remove the # at the beginning of the module to actived them
Guest Sub501 Posted October 25, 2010 Report Posted October 25, 2010 (edited) Are all module's activated or must i remove the # at the beginning of the module to actived them You have to uncomment them. No need to uncomment Interactive, powersave and undervolt . Undervolt is loaded by a dedicated script. interactive and powersave are already in the kernel. Edited October 25, 2010 by Sub501
Guest LowRun Posted October 25, 2010 Report Posted October 25, 2010 I played a little with the powermanagement.conf file and got pretty confused. I'm getting better performance with the conservative governor than with ondemand, interactive or even the performance governor (which paradoxically gives the worst perf) :P
Guest snapilica Posted October 25, 2010 Report Posted October 25, 2010 I played a little with the powermanagement.conf file and got pretty confused. I'm getting better performance with the conservative governor than with ondemand, interactive or even the performance governor (which paradoxically gives the worst perf) :P That is weird, but hey what ever suits your needs best no? Anyway i think powersave might perform worse than conservative :D
Guest Sub501 Posted October 25, 2010 Report Posted October 25, 2010 I played a little with the powermanagement.conf file and got pretty confused. I'm getting better performance with the conservative governor than with ondemand, interactive or even the performance governor (which paradoxically gives the worst perf) :P What do you mean by performance?
Guest LowRun Posted October 25, 2010 Report Posted October 25, 2010 What do you mean by performance? Well, when using the "performance" governor at the max overclock, i get around 20.xx MFlops in Linpack and like 11xx in Quadrant, while when using the "conservative" governor with the max overclock i get around 36.xxMflops and around 13xx in Quadrant.
Guest woti17 Posted October 26, 2010 Report Posted October 26, 2010 (edited) Have you ever look in /data/etc/undervolt.conf ? You can edit this file and put your voltage table, save, reboot and that's all. Example: 950 1050 19200 950 1050 128000 950 1050 245000 975 1050 384000 975 1050 422400 1000 1050 460800 1025 1075 499200 1025 1100 537600 1050 1100 576000 ... 1250 1300 998400 1275 1300 1036800 1275 1300 1075200 1300 1300 1113600 i m confused: in your example is first the lower value than a higher now i have uncommented -75 and set to -50 and the second value is now lower cat /proc/undervolt 950 900 19200 950 900 128000 950 900 245000 975 925 384000 975 925 422400 1000 950 460800 1025 975 499200 1025 975 537600 ... is this ok? does this mean the values differ now 150mV (900 to 1050) or 50mV (900 to 950) from the stock values? and even more confused - if the first value is the kernel default and the second the current value and your second value is higher, did you overvolt it? seems i have a brain-tilt at the moment ;-) Edited October 26, 2010 by woti17
Guest Sub501 Posted October 26, 2010 Report Posted October 26, 2010 (edited) i m confused: in your example is first the lower value than a higher now i have uncommented -75 and set to -50 and the second value is now lower cat /proc/undervolt 950 900 19200 950 900 128000 950 900 245000 975 925 384000 975 925 422400 1000 950 460800 1025 975 499200 1025 975 537600 ... is this ok? does this mean the values differ now 150mV (900 to 1050) or 50mV (900 to 950) from the stock values? and even more confused - if the first value is the kernel default and the second the current value and your second value is higher, did you overvolt it? seems i have a brain-tilt at the moment ;-) First column is the current kernel table, which is undervolted - my kernel is undervolted by default. That example show how to do to revert to official stock HTC values (ex: 950 1050 19200 - will set 1050 for 192Mhz) Column layout: default_kernel_voltage current_voltage cpu_frequence. Setting -50 will lover ALL voltages in the current table by 50. As my kernel is already undervolted, -50 will lower for example 950 @ 19200 to 900 @19200 (950 900 19200). Going below 900 freeze my phone (till reboot) Edited October 26, 2010 by Sub501
Guest Sub501 Posted October 26, 2010 Report Posted October 26, 2010 (edited) After changin a configuration value you must reboot (power->poweroff then poweron) your phone. Don't try hot/quick-reboot it will reboot only graphical interface and will not run init scripts. Yeah, I know it is a known OS like behavior ;-) but it is not worth watching config files for changes. For undervolt , tuning and module loading you can run (as root) the init scripts by hand without rebooting: /system/etc/init.d/98_01_cpu_undervolt /system/etc/init.d/98_90_kernel_modules /system/etc/init.d/98_98_sys_tuning This method will not work for wifi tx power or powermanagement (screen state scaling ) scripts. Reboot is needed for these 2 scripts. Edited October 26, 2010 by Sub501
Guest woti17 Posted October 26, 2010 Report Posted October 26, 2010 First column is the current kernel table, which is undervolted - my kernel is undervolted by default. That example show how to do to revert to official stock HTC values (ex: 950 1050 19200 - will set 1050 for 192Mhz) Column layout: default_kernel_voltage current_voltage cpu_frequence. Setting -50 will lover ALL voltages in the current table by 50. As my kernel is already undervolted, -50 will lower for example 950 @ 19200 to 900 @19200 (950 900 19200). Going below 900 freeze my phone (till reboot) thank you, now i got it
Guest woti17 Posted October 26, 2010 Report Posted October 26, 2010 After changin a configuration value you must reboot (power->poweroff then poweron) your phone. Don't try hot/quick-reboot it will reboot only graphical interface and will not run init scripts. Yeah, I know it is a known OS like behavior ;-) but it is not worth watching config files for changes. For undervolt , tuning and module loading you can run (as root) the init scripts by hand without rebooting: /system/etc/init.d/98_01_cpu_undervolt /system/etc/init.d/98_90_kernel_modules /system/etc/init.d/98_98_sys_tuning This method will not work for wifi tx power or powermanagement (screen state scaling ) scripts. Reboot is needed for these 2 scripts. at least for wifi power one could kill the pid (-HUP doesn't work for whatever reason) and start the script again, i believe
Guest woti17 Posted October 26, 2010 Report Posted October 26, 2010 at least for wifi power one could kill the pid (-HUP doesn't work for whatever reason) and start the script again, i believe for /system/etc/init.d/98_01_cpu_undervolt necessary reboot if you lower with "-xy", otherwise if one runs the script twice or more it lowers cummulativ and you get lower and lower with every run of the script?
Guest Sub501 Posted October 26, 2010 Report Posted October 26, 2010 for /system/etc/init.d/98_01_cpu_undervolt necessary reboot if you lower with "-xy", otherwise if one runs the script twice or more it lowers cummulativ and you get lower and lower with every run of the script? No man, it will not lower at every script invocation. Just because the table is reset to kernel default just before applying new settings ;-)
Guest Sub501 Posted October 26, 2010 Report Posted October 26, 2010 at least for wifi power one could kill the pid (-HUP doesn't work for whatever reason) and start the script again, i believe no man this is not for normal users. there is a way to kill but you have to know what to kill. see the checks that script is performing to prevent multiple instances.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now