Monthly Archives: February 2014

Forget Windows7 password

For mac and windows two os devices, if the windows password is forget, we can setup another user account and give it administration power. 1. Install “Paragon NTFS for mac”, so that mac can modify ntfs files, which is used … Continue reading

Posted in Uncategorized | Leave a comment

Change Android cpu freq

To change the cpu freq, first make sure the governor is “userspace”. check it under the /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: # echo userspace > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor It also shows the available governor in ‘scaling_available_governors’ Then modify the ‘scaling_setspeed’ # echo 900000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed Verify: … Continue reading

Posted in Uncategorized | Leave a comment

OLED powertutor code

https://github.com/msg555/PowerTutor/blob/master/src/edu/umich/PowerTutor/components/OLED.java OLED component java file in powertutor source code. Brightness read from “/sys/class/leds/lcd-backlight/brightness”, “/sys/devices/virtual/leds/lcd-backlight/brightness”, “/sys/devices/platform/trout-backlight.0/leds/lcd-backlight/brightness”, Pixel info read from “/dev/fb0” or “/dev/graphics/fb0” Get N random samples  Random r = new Random();     samples = new int[NUMBER_OF_SAMPLES];     for(int i = 0; i … Continue reading

Posted in Uncategorized | Leave a comment