Guest User

GPU control initd script

a guest
Nov 1st, 2013
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #!/system/bin/sh
  2.  
  3. # Insert GPU control module.
  4.  
  5. # How to get GPU clock speeds for the module
  6. #
  7. # echo "0" > /proc/sys/kernel/kptr_restrict
  8. # cat /proc/kallsyms | grep 'device_3d0' | tail -n1
  9. # XXXXXXXX d device_3d0
  10. # cat /proc/kallsyms | grep 'gfx2d0_clk'
  11. # YYYYYYYY d gfx2d0_clk
  12. # cat /proc/kallsyms | grep 'gfx3d_clk'
  13. # ZZZZZZZZ d gfx3d_clk
  14.  
  15. insmod kcontrol_gpu_msm.ko dev_3d0=0xXXXXXXXX gfx2d0_clk=0xYYYYYYYY gfx3d_clk=0xZZZZZZZZ
Advertisement
Add Comment
Please, Sign In to add comment