problem with setcpu - Desire HD Q&A, Help & Troubleshooting

-----------------------------

-----------------------------

Related

[Q] Modifying Gideonx's OC/UV script

Since my values for the CPU would never stick with System Tuner, I decided to learn how to modify scripts to get the desired effect. I decided that I wanted to modify Gideonx's OC/UV script.
I want to use the GideonX_OC_UV_VM_Tweaked_for_Battery.zip - CPUs @ 384/918Mhz | -75mV | OnDemand | VM tweaked | Not all phones can take -75mV.
Except rather than having a 918Mhz max, I want to use 1.35Ghz max. I heard the script makes your CPU really slow and I'm hoping increasing the max will make it smoother (I don't know too much about this, haha).
I opened up the script with notepad and changed the values from 918000 to 1350000. It now looks like this:
#########################
# GideonX kernel tweaks #
#########################
# Set CPU voltage in microvolts
echo "-75000" > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
# Set min/max and governor for CPU0
echo 384000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 1350000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
# Set min/max and governor for CPU0
echo 1 > /sys/devices/system/cpu/cpu1/online
echo 384000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
echo 1350000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
echo ondemand > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
# Set kernel dirty data writes. Dirty just means changed data, don't freak out.
# By setting writeout times to be longer, there are less writes which may save more battery for you.
#
# /proc/sys/vm/dirty_expire_centisecs = how old is the data before kernel writes
# /proc/sys/vm/dirty_writeback_centisecs = how often should the kernel check for dirty data
# /proc/sys/vm/dirty_ratio = max memory in percent of data storage
# /proc/sys/vm/dirty_background_ratio = amount of memory in percent for a data writeout to stop
echo "500" > /proc/sys/vm/dirty_expire_centisecs
echo "1000" > /proc/sys/vm/dirty_writeback_centisecs
echo "90" > /proc/sys/vm/dirty_ratio
echo "5" > /proc/sys/vm/dirty_background_ratio
When I zipped it back up and tried to install the zip, however, it crashed and didn't install. What did I do wrong? (Total newbie here)
Link to the script: http://forum.xda-developers.com/showpost.php?p=20946429&postcount=574
bump
Anyone have any idea why it's not working?
The way I did it was by using 7zip and notepad++
I didn't unzip the zip file. I juat openes it qith 7zip and draged the file onto my desktop. Then opened it with notepad++ and made the changes I wanted. After that I just draged that file back into the opened zip closed the program ans flashed it. Maybe the way you zipped it back messed up something.
Sent from my SAMSUNG-SGH-T989 using xda premium

[Q] Rom+PreFlashCustomisation

Hey Guys, i´m coming from the Desire Z.
Just wanted to ask if there´s a rom like "ILWT-CM".
Its big advantage was, that you could configure a file, that configured options while flashing e.g. Customapps, Ringtones, Launcher, option to install apps or not.
With this rom you had the option to delete apps you don´t need before the first startup. really liked these options to install/deinstall apps, set launcher etc... before the first start to install a system as clean as possible.
here is the sample file to show you what i mean.
Code:
###############################################################################
# configuration file for ilwt cm7
#
# info:
# deleting or commenting a line will result in default settings being used.
#
# default settings:
# kernel: ilwt cm7
# google apps: installed
# launcher: adw
# go launcher ex notification: not installed
# messaging app: stock
# calendar: stock
# email: stock
# music: stock
# wifi calling: removed
# spare parts: removed
# file manager: root browser
# build.prop: unpatched
# oc daemon: ilwt
# oc daemon gui: oc/uv beater2 (only for virtuous oc daemon)
# market: install from gapps
# modded gmail app: not installed
# new talk app: not installed
# titanium backup: not installed
# custom apps: not installed
# fm radio: installed
# dsp manager: installed
# gps library: cm7
# google books: installed
# camera: cm7
# stock wallpapers: installed
# vpn services app: installed
# market: new
# gallery: stock
# custom sounds: not installed
# hosts file: patched
# cerberus: not installed
# connection icons: stock
# gps fix: not patching gps.conf (uses north america's servers)
# wifi scan delay: 120
# boot animation: default
# fonts: stock
# notigo: not installed
# car home: installed
# led: current setup (amber for notifications, as of November 22, 2011)
# calculator: installed
# rom manager: installed
# sim toolkit: installed
# terminal emulator: installed
#
# if using led=old, the notification would be the "old style", meaning green
#
# !!! warning: if removing the sim toolkit app, some other apps might stop
# working. specifically, those that require sim services !!!
#
# on the first run, ilwt.txt will be created with default values.
# all possible values will be included, but commented.
#
# for the old market to work without doing a full wipe, on next boot you
# must go to Settings->Manage Applications->Market and click the
# "Uninstall Updates" button.
#
# in order to install custom apps, you have to place the .apk files
# in a folder named ILWT in the root of your sd card.
#
# in order to install custom sounds, you have to place .ogg files in
# one of the following folders in the root of your SD card:
# ILWT/sounds/r (for ringtones)
# ILWT/sounds/a (for alarms)
# ILWT/sounds/n (for notifications)
# ILWT/sounds/u (for ui)
#
# In order to use the GPS fix, you must set the gpsfix= line with the server
# you'd like to use. For example: gpsfix=ch.pool.ntp.org sets the Swiss
# server. For a list of servers that you can use, see Addons section of
# original post in XDA forum (sample NTP.txt file).
#
# The WiFi scan delay (wifiscan) must be set to an integer multiple of 15,
# otherwise the option will be disregarded.
#
# To install custom fonts, put Clockopia.ttf, DroidSans.ttf, and
# DroidSans-Bold.ttf in /sdcard/ILWT/fonts and set the appropriate option.
# You can elect to install only one or two of them if you wish.
#
# for more info see: http://forum.xda-developers.com/showthread.php?t=1242480
#############################################################################
#kernel=pershoot
#kernel=cm7
#gapps=none
#launcher=golauncherex
#launcher=none
#golauncherexnotification=yes
#messaging=gosms
#messaging=none
#calendar=jorte
#calendar=none
#email=none
#email=k9
#music=google
#music=none
#wificalling=yes
#spareparts=yes
#filemanager=stock
#filemanager=none
#build.prop=patch
#ocdaemongui=virtuous
#ocdaemongui=none
#keepmarket=yes
#modgmail=yes
#newtalk=yes
#titaniumbackup=yes
#customapps=yes
#fmradio=none
#dspmanager=none
#gpslib=htc
#googlebooks=none
#camera=miui
#stockwallpapers=none
#vpnservices=none
#market=old
#gallery=none
#customsounds=yes
#hosts=unpatch
#cerberus=yes
#connicons=h+
#connicons=4g
#ocdaemon=virtuous
#ocdaemon=none
#gpsfix=ch.pool.ntp.org
#wifiscan=60
#bootanimation=custom
#fonts=custom
#notigo=yes
#carhome=none
#led=old
#calculator=none
#rommanager=none
#sim=none
#terminal=none
Hi,
Maybe something like this:http://forum.xda-developers.com/showthread.php?t=1482379&highlight=clean

[SOLVED]Ondemand tweaks using init.d scripts

I want to tweak these settings for ondemand(found in sys/devices/system/cpu/cpufreq)
up_threshold
sampling_down_factor
sampling_rate
powersave_bias
To these values:
85
2
50000
1
The defaults
90
4
10000
0
Problem is I don't know what the init.d script is missing for it to work, as it shows errors in script manager. Here's what I have so far:
#!/system/bin/sh
echo 85 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo 2 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
echo 50000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
echo 1 > /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias
My question is how do I get the script to work so that on every boot the defaults for ondemand change to those?
What do I have add to the script?
I'm using voltage control btw.
This is for my personal use and experimenting purposes.
Just in case you say "search" I did and when I was doing this, here's the guide I followed:
http://forum.xda-developers.com/showthread.php?t=1369817

[KERNEL][LU6200][OC/UV][3.0.79] Wind Kernel [CM10.1]

Wind Kernel for P930/SU640 (http://forum.xda-developers.com/showthread.php?t=2119976)
I am trying to make LU6200 support though I do not have LU6200.
Thanks tdmcode for the lu6200 initial cm kernel
BACKUP FIRST
USE AT YOUR OWN RISK
DISCLAIMER
Code:
*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you. Hard. A lot.
*/
DEVICE SUPPORT
LU6200(i_lgu)
FEATURES
Based on latest CM10.1 Kernel Source
Latest Linux Kernel 3.0.y source
CPU [email protected] MAX CLOCK 1.83Ghz
GPU [email protected]_320Mhz 2D 266Mhz
Undervolting Support(700mV-1400mV)
L2 Performace Boost
Smooth as Butter :]
Some tweaks, fixes
and something I missed (discover it ! )
Stable Version
CM10.1 - N/A
INSTALLATION INSTRUCTION
Copy *.zip to External SD card
Boot into Recovery Mode
Flash *.zip
Reboot and Enjoy it!
OPTIONAL
NANDROID BACKUP before flash
Wipe Cache/DalvikCache,Fix Permission after flash
DEFAULT SETTING
CPU 384Mhz-1512Mhz
Stock GPU FREQ [email protected] /[email protected]
Intellidemand + SIO
WIND KERNEL DEFAULT VOLTAGE
Code:
192000 775000
310500 775000
384000 775000
432000 800000
486000 800000
540000 825000
594000 825000
648000 850000
702000 850000
756000 875000
810000 875000
864000 900000
918000 900000
972000 900000
1026000 925000
1080000 950000
1134000 950000
1188000 975000
1242000 1000000
1296000 1025000
1350000 1050000
1404000 1075000
1458000 1075000
1512000 1100000
1566000 1125000
1620000 1150000
1674000 1175000
1728000 1200000
1782000 1225000
1836000 1275000
1890000 1325000
1944000 1350000
PERFORMANCE SETTING
Rom Settings -> Developer Options -> Windows Animation Scale,Transition Animation Scale -> 0.5x
Nova Launcher Settings -> Look and Feel -> Scroll Speed,Animation Speed -> Faster than light
use any system tools on Playstore ,set by your preference.
Example: To increase maximum GPU frequency in 3D mode to 320 MHz:
echo 320000000 > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
Example: To increase maximum GPU frequency in 2D mode to 266 MHz:
echo 266667000 > /sys/devices/platform/kgsl-2d0.0/kgsl/kgsl-2d0/max_gpuclk
echo 266667000 > /sys/devices/platform/kgsl-2d1.1/kgsl/kgsl-2d1/max_gpuclk
Available frequencies:
3D: 320000000, 300000000, 266667000, 228571000, 200000000, 177778000, 27000000
2D: 266667000, 228571000, 200000000
Click to expand...
Click to collapse
Monitor MSM_MPDECISION
adb shell
su
cat /proc/kmsg | grep 'MPDEC'
CHANGELOG
JB - v2.1 (20 MAY)
tune some values(e.g. LCD voltage 3V->2.8V) according to leak 4.1 sourcecode
lower the max overclock freq to 1.83ghz
use original fix of stopping the bootanimation
Linux 3.0.79
Some patches & fixes ,check GITHUB for detail
JB - v1.9 (28 APR)
Screen off freq = 702Mhz
Disable msm_mpdecision and use Auto Hotplug by _thalamus
Kernel -O2 optimization (thats why file size larger)
Set tweaked ROW from franco.kernel by default
Logger driver update by stratosk
some misc backport,fixes
Linux 3.0.75
JB - v1.8 (15 APR)
Initial relealse - try1
Sync to su640,p930 wind kernel
For detail:
http://forum.xda-developers.com/showpost.php?p=37236229&postcount=3
BUG
CM10.1 BUGS
SOURCE
MY GITHUB
CREDITS
tdmcode (great works on our device)
rmcc (bring us CyanogenMod)
faux123 (msm8x60 kernel works, intellidemand etc.)
show-p1984 (kernel based decision, badass etc.)
edoko ( source inspiring me to start dev kernel)
altvolt74 ( introducing the kernel to xda )
Countless developers ( providing their awesome source codes)
ALL tester and developers contributing source
wao, thank you!
I'll test and give you feed back soon!
I'm ready
CM so good
Sent from my LG-LU6200 using xda premium
Thanks you vinamilk
Gửi từ LG-LU6200 của tôi bằng cách sử dụng Tapatalk 2
For try1, check
1. it can boot or not
2. if it can boot, will it force reboot when screen off
lyfkevin said:
For try1, check
1. it can boot or not
2. if it can boot, will it force reboot when screen off
Click to expand...
Click to collapse
1. Boot ok, OC 1836Mhz ok
Testing.......
Sent from my LG-LU6200 using xda premium
Chum.zuizui said:
1. Boot ok, OC 1836Mhz ok
Testing.......
Sent from my LG-LU6200 using xda premium
Click to expand...
Click to collapse
How is screen off.
Will it reboot everytimes screening off
Voltage table for overclocking is depending on device chip.
You may have to tune it by any systools or editing init.qcom.post_boot.sh (simply +25mV for each step)
hey.well,kernel worked
antutu benchmark check = 6400 .i don't know
oxiubx said:
antutu benchmark check = 6400 .i don't know
Click to expand...
Click to collapse
governor and cpu hotplug policy tweaked for battery and performace balance
Under default setting, cpu might not fullload during benchmark
if you want to benchmark, set governor: performance
lyfkevin said:
governor and cpu hotplug policy tweaked for battery and performace balance
Under default setting, cpu might not fullload during benchmark
if you want to benchmark, set governor: performance
Click to expand...
Click to collapse
Again with cpu 1k8
Hi, @lyfkevin!
how can i OC GPU? Can you give me some detail?
I notice that GPU performance is not good as ICS stock rom
hungnguyen490 said:
Hi, @lyfkevin!
how can i OC GPU? Can you give me some detail?
I notice that GPU performance is not good as ICS stock rom
Click to expand...
Click to collapse
check #2 post
also u can use
fauxclock, kernel tuner etc.
thank you!
if i want to oc gpu frequency in 3d, i have to do some steps like:
adb shell
su
cat /proc/kmsg | grep 'echo 320000000 > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk'
Right?
hungnguyen490 said:
thank you!
if i want to oc gpu frequency in 3d, i have to do some steps like:
adb shell
su
cat /proc/kmsg | grep 'echo 320000000 > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk'
Right?
Click to expand...
Click to collapse
adb shell
su
echo 320000000 > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
or
put
echo 320000000 > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
at the end of system/etc/init.qcom.post_boot.sh
thank you very much
lyfkevin said:
adb shell
su
echo 320000000 > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
or
put
echo 320000000 > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
at the end of system/etc/init.qcom.post_boot.sh
Click to expand...
Click to collapse
is it normal?
It is laggy in my end. Do I need to change something for it to fully work or what? I am new to using different kernels for phone so I am sorry.
It rebooted 1 time when downloading kernel tuner in playstore
Kernel works well and I am using it with tdmcode's aokp rom. It rebooted at 1st just after lockscreen appears but never again. I don' have any issues, its smooth.

[Q] {PRO} ROM, Keyboard & Light

Hi guys,
Xperia Pro user have a problem, in almost every ROM dedicated to our mobile, we can't use keyboard properly because the keyboard don't have light at all...
I would like to find a solution, does someone know which file(s) should be modified to make it work ?
Some ideas or comments to help ?
Thanks
Hw_config inside system/etc
Edit this line
echo 1 > $dev/button-backlight/max_current
Change to 1 to 255
Edit: it could also be this line
echo 38000 > $dev/keyboard-backlight/max_current
If its pretty low, like 1-1000 or something (estimate) then it will be off, i suggest to change it to the number stated above
P.s im a arc user, but these are the lines tthat control the backlight, suggest u to test which one it is
Sent from my LT18i
I try and it's not working.
My Configuration
I'm on Atomic V8 :
http://forum.xda-developers.com/showthread.php?t=2340089
...which is a great GB ROM.
I had also the problem on : Gin2JellyBean v2.4.0
http://forum.xda-developers.com/showthread.php?t=2250691
... which is a great ROM too but I can't see where could be the problem.
[*]The patch
In fact, on Gin2JellyBean v2.4.0, a user release a patch, see below :
Rambo_FT said:
I'm user of Xperia Pro MK16i. This rom working great with Lupus Kernel. For me, these are working great:
- Wifi
- Suggestions of words and case view (this bug solved by me)
- "Sym" button of the hardware keyboard
- LED notifications
- Other options
I solved my previous issue (in this link you can view) with flashing this file in CWM: http://www66.zippyshare.com/v/75109074/file.html
Backlight of hardware keyboard and the "Sym" key working great. I solved my suggestions of words problem with combining some files and flashing them with CWM. Now my problem was completely solved. You can enable visibling of the suggestions of words & case view with flashing this file: http://www66.zippyshare.com/v/75109074/file.html
You can flash this zip file in CWM: http://www66.zippyshare.com/v/75109074/file.html
Click to expand...
Click to collapse
In this patch, there isn't hw_config file, but these ones :
app/SystemUI.apk
framework/framework-res.apk
And it worked for the light but broke some ICS UI !
I tried to flash just one file but my MK16i was not working at all and I had to restore a backup.
[*]My tries with hw_config
This is an extract (the same on Gin2JB and Atomic ROM) of my actual hw_config, it was already like this before I tried your advices :
Code:
# LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds
echo 2,127,1,130,130,2,2 > $dev/button-backlight/als/curve # ALS curve for group2
echo 2,127,1,130,130,2,2 > $dev/keyboard-backlight/als/curve # ALS curve for group2
echo 1,1,1,0 > $dev/lcd-backlight/als/params #[gain],[filter_up],[filter_down],[offset]
echo 1 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
echo 1 > $dev/button-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
echo 1 > $dev/keyboard-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
echo 4000 > $dev/button-backlight/max_current
echo 38000 > $dev/keyboard-backlight/max_current
echo 10000 >$dev/tally-light/max_current
I tried this :
Code:
# LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds
echo 2,127,1,130,130,2,2 > $dev/button-backlight/als/curve # ALS curve for group2
echo 2,127,1,130,130,2,2 > $dev/keyboard-backlight/als/curve # ALS curve for group2
echo 1,1,1,0 > $dev/lcd-backlight/als/params #[gain],[filter_up],[filter_down],[offset]
echo 1 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
echo 1 > $dev/button-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
echo 1 > $dev/keyboard-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
echo 255 > $dev/button-backlight/max_current
echo 38000 > $dev/keyboard-backlight/max_current
echo 10000 >$dev/tally-light/max_current
And it is not working
[*]The Brightnes mod
In all case, I can see backlight when I change the brightness mod but then it turns off again..Automatic brightness don't help neither and I can't change the brightness everytime I want to write a word on the keyboard !
:highfive: Thank you for your all your ideas and help to solve this problem
Hmm i am sorry then
I do not know
Sent from my LT18i
I find a way to turn keyboard on here : http://forum.xda-developers.com/showthread.php?t=2401295
Tironsteel said:
OFF
Code:
#!/system/bin/sh
echo "0">/sys/class/leds/keyboard-backlight/brightness
ON
Code:
#!/system/bin/sh
echo "255">/sys/class/leds/keyboard-backlight/brightness
Click to expand...
Click to collapse
The problem is that I don't know how to execute the ON on slide out and the off on slide in or even, just react on a keyboard key pressed.
For now, keyboard light is always on :silly:
Night mode brightness
Just playng with my old phone... I found that it's possible to reduce also lcd brightness in same way to get lower light for night reading. I experimented to get the lowest working values for keyboard and lcd. This is it:
Code:
echo "30" > /sys/class/leds/lcd-backlight/brightness
echo "10" > /sys/class/leds/keyboard-backlight/brightness

Categories

Resources