Advertisement
v1ral_ITS

ftmovptest.sh

Mar 30th, 2019
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.22 KB | None | 0 0
  1. #!/system/bin/sh
  2. #this .sh is used test current while devices runs at full speed with all CPUs in FTM
  3.  
  4.  
  5.  
  6. stop mpdecision
  7. echo "stop mpdecision"
  8. echo "scaling_min_freq before set"
  9. cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
  10. echo 1 > /sys/devices/system/cpu/cpu1/online
  11. echo 1 > /sys/devices/system/cpu/cpu2/online
  12. echo 1 > /sys/devices/system/cpu/cpu3/online
  13.  
  14. echo "scaling_min_freq 0 after set"
  15. max=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq`
  16. echo $max > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
  17. cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
  18.  
  19. echo "scaling_min_freq 1 after set"
  20. max=`cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq`
  21. echo $max > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
  22. cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
  23.  
  24.  
  25. echo "scaling_min_freq 2 after set"
  26. max=`cat /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq`
  27. echo $max > /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq
  28. cat /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq
  29.  
  30. echo "scaling_min_freq 3 after set"
  31. max=`cat /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq`
  32. echo $max > /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq
  33. cat /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq
  34.  
  35. echo "disable 0 idle --> PC"
  36. echo 0 > /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled
  37. cat /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled
  38. echo 0 > /sys/module/msm_pm/modes/cpu0/retention/idle_enabled
  39. cat /sys/module/msm_pm/modes/cpu0/retention/idle_enabled
  40. echo 0 > /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/idle_enabled
  41. cat /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/idle_enabled
  42. echo 0 > /sys/module/msm_pm/modes/cpu0/wfi/idle_enabled
  43.  
  44.  
  45.  
  46.  
  47. echo "disable 1 idle --> PC"
  48. echo 0 > /sys/module/msm_pm/modes/cpu1/power_collapse/idle_enabled
  49. cat /sys/module/msm_pm/modes/cpu1/power_collapse/idle_enabled
  50. echo 0 > /sys/module/msm_pm/modes/cpu1/retention/idle_enabled
  51. cat /sys/module/msm_pm/modes/cpu1/retention/idle_enabled
  52. echo 0 > /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/idle_enabled
  53. cat /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/idle_enabled
  54. echo 0 > /sys/module/msm_pm/modes/cpu1/wfi/idle_enabled
  55.  
  56.  
  57. echo "disable 2 idle --> PC"
  58. echo 0 > /sys/module/msm_pm/modes/cpu2/power_collapse/idle_enabled
  59. cat /sys/module/msm_pm/modes/cpu2/power_collapse/idle_enabled
  60. echo 0 > /sys/module/msm_pm/modes/cpu2/retention/idle_enabled
  61. cat /sys/module/msm_pm/modes/cpu2/retention/idle_enabled
  62. echo 0 > /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/idle_enabled
  63. cat /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/idle_enabled
  64. echo 0 > /sys/module/msm_pm/modes/cpu2/wfi/idle_enabled
  65.  
  66.  
  67. echo "disable 3 idle --> PC"
  68. echo 0 > /sys/module/msm_pm/modes/cpu3/power_collapse/idle_enabled
  69. cat /sys/module/msm_pm/modes/cpu3/power_collapse/idle_enabled
  70. echo 0 > /sys/module/msm_pm/modes/cpu3/retention/idle_enabled
  71. cat /sys/module/msm_pm/modes/cpu3/retention/idle_enabled
  72. echo 0 > /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/idle_enabled
  73. cat /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/idle_enabled
  74. echo 0 > /sys/module/msm_pm/modes/cpu3/wfi/idle_enabled
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement