yashsingh1/xdaforums huggingface dataset:
[Wildfire Android Development] venery:
Installing the ADB driver

I have gone through your steps thank you for the guide but there was one point that I wasted too much time.

Installing the USB drivers the first time is no problem. Then the unrevoked3 is just download and run. But after this step the new device ADB is found. I wasted my time at this point

For the ADB driver to install, "HTC Sync should not be installed" thats mentioned & exactly right but was not enough for me to install the ADB Drivers. When I introduced the drivers used in the first step, it could not find the right driver in the folder.

In my case, to install the ADB driver, I needed to start HTC sync setup and wait for it to install 2 required components before setting up the software.

- HTC BMP USB Driver

- HTC Driver Installer

After installing these you should CANCEL the setup and NOT proceed with HTC Sync installation.

ADB driver should now be recognised.

Tried to be as clear as possible as I am not used to writing guidelines :)

Hope this helps...
[Wildfire Android Development] venery:
Follow my previous post :)

I'm also using Windows 7 64 Bit
[Wildfire Android Development] jawbraeka:
7. start with backup, go down the menu with the volume buttons. and go to nandroid click the touch pad.

I tried using the volume rocker on my mobile to go down and up respectively and it didn't work.... is my wildfire broken lol?

*Fixed* I used the digital scroller at bottom of phone *Fixed*
[Wildfire Android Development] Les1976:
No joy, got 'Error failed to get root. is your firmware too new?'

Phone= wildfire on 'nothing' was nether locked to anyone,

Android 2.2.

Radio 3.35.20.10

Nov 17/ 2010

also the AVG <- is a Virus!!! intersepted something and as usual gave me no option about what to do with it. i'm pulling that AVG S**T out, don't know why i botherd with it, i hate it on PC's...what was i thinking?!?!?!

Help!!!!!! :)

(Edit) AVG expeled and still no joy.
[Wildfire Android Development] 3xeno:
Official Android 2.2 is unrootable using any software methods yet.
[Wildfire Android Development] Les1976:
Right, so i can't do anything with it? no themes, can't back the Rom up? well that's annoying...

thanks for your response :)
[Wildfire Android Development] 3xeno:
Not CM7/Other ROM Themes, but, you can install an alternative launcher (ADW Launcher) from the market and use ADW Themes.
[Wildfire Android Development] Les1976:
I will look into that, thanks.
[Desire General] FloHimself:
Attached init script changes the CPU frequency governor based on the screen state:

screen on -> interactive governor
screen off -> powersave governor

Don't use this with SetCPU!

Thanks NeoPhyTe.x360 for the idea...

Edit:

This script is released to public domain, so it can be freely used for derivative works without permission!
[Desire General] Rudolfje:
Good thinking!

Thanks for sharing.
[Desire General] bradputt:
do we flash this in clockwork?
[Desire General] FloHimself:
Nope, it's just a init script for the ROM devs...
[Desire General] Deleted member 267841:
but is possible to applu in a rooted phone simply copying to /systen/etc or nope? needs setcpu or works without?

thx
[Desire General] NeoPhyTe.x360:
Awesome work you do ;)

+10
[Desire General] ivicask:
This is supercool, we wont need to use SETCPU anymore, just flash this and enjoy super battery life, big thanks FloHimself!
[Desire General] FloHimself:
You can push this script to /system/etc/init.d but it has some dependencies e.g. the interactive governor, perflock disabler when you want to underclock, ...

It was your idea, so same goes to you! ;)

That's the reason we are doing it this way: make the governor switching a bit more low level without SetCPU. But remember, this is not a update.zip and not flashable from recovery...
[Desire General] aunder90:
nice work. i really appreciate this. lets hope all the devs see this
[Desire General] sbricout:
Useless... Interactive governor sets low speed when idle.
[Desire General] FloHimself:
You are right, the interactive governor sets the lowest speed when idle. But idle != screen off.
[Desire General] PaulW21781:
Applications and services can still ramp up the CPU speed during the screen being off, so not useless at all. Switching to the powersave governor for when the screen is off, will stop it ramping up during this time.
[Desire General] sfjuocekr:
I modified the script abit to include frequencies for min and max.

http://linux-box.nl/~sjoer/90screenstate_scaling
[Desire General] FloHimself:
Nice, that`s something I`ve done later, too ;):

http://dl.dropbox.com/u/31174/android/90screenstate_scaling

Thought about extending it some more...
[Desire General] mi3x:
don't punch me, but... how can this be installed? :confused:
[Desire General] styr:
Kinda complicated, you`ll need a modified init.rc to run the scripts from /system/etc/init.d/ at startup, you have to push the governor modules and perflock_disabler module compiled for your kernel in /system/lib/modules/ the insmod scripts for the governors, perflock_disabler script and the script above to /system/etc/init.d/

FloHimself thank you very much for the scripts and the modules.
[Desire General] Hacre:
Is it me or is this script constantly looping with no breaks/sleeps?
[Desire General] sub0min0us:
I've installed Neophytes' ArauxtSense 7.1 rom and he already added this on his rom. The question is, do I have to uninstall my SetCPU now? I have my referred settings on it and don't know how to disable it. I have unchecked the "Set on Boot" but everytime I boot my device, I can see that the SetCPU is still running on the background. Any advice? Any risks when having them both?
[Desire General] K900:
There shouldn't be any risks, but one of them will force its set freq, and the other one will be constantly changing it
[Desire General] sub0min0us:
Thanks for clearing that out. I guess I'll have to uninstall it then not unless I install another rom. Thank you...
[Desire General] Hacre:
Ahem, hello? This script runs in a constant, never ending loop. This is neither good nor smart.
[Desire General] mmaacc:
I had a look in Neo's 7.1 ROM and I can not find that this faeture was included, at least not in init.d (not in system/etc and not in boot.img). I asked that also in his thread but did not get an answer.

Could anyone please confirm where this feature supposedly lives?
[Desire General] FloHimself:
Yes it is running in a constant, never ending loop. That is intended... what`s the problem with that?
[Desire General] FloHimself:
You may check the logs with logcat if it is running. It should output something like:

I/screenstate_scaling( 865): *** awake ***: switching CPU frequency governor to -> ondemand
[Desire General] mmaacc:
I did not flash his ROM, I only had a look into the files and could not find the script in either init.d nor in the boot.img. So my guess is he forgot it :). But I will certainly give it a shot myself. Looks promising. Thanks!
[Desire General] Hacre:
Er...lol seriously?

How about, the CPU will never actually sleep or go into power collapse, because you're kicking it with constant writes to /sys?

This is a completely dumb replacement for SetCPU. Why not write something that responds to the screen off intent?
[Desire General] FloHimself:
"cat /sys/power/wait_for_fb_wake" and "cat /sys/power/wait_for_fb_sleep" do what they imply, wait for a wake or sleep and block the loop until a state change...
[Desire General] mmaacc:
I just tried Neo's 7.1 and he only implemented this switching half way, that is he switches only some parameters (I assume the max frequency) for Ondemand. No usage of interactive or powersave.

I'm doing some final tests with MacLite 0.6, that will have the full implementation. Will be up soon :).
[Desire General] PaulW21781:
To be fair, the loop cycle will be quite minimal on any sort of load, but looking at the code, a further check could be made on each cycle to only change the values of what governor is used, aswell as speeds once per state change (currently, it is updating constantly.) But then each check will just result in another instruction and another cycle...

Simple solution, before AWAKE='cat yada yada' just add sleep 1 to make the script sleep for 1 second per cycle. Will cut down on any load created quite a bit.

Oh, and hello fellow Northwich towns folk lol!
[Desire General] Hacre:
WOW I've never in, easily ten to fifteen years, just randomly ran into someone from Northwich on the internet. o.O
[Desire General] PaulW21781:
Welcome to XDA Devs... Home of nutjob android devs and stalkers haha!
[Desire General] FloHimself:
As said before: cat /sys/power/wait_for_fb_wake" and "cat /sys/power/wait_for_fb_sleep" do what they intend. They sleep until a change of screen state happens. There is really no need to use some dirty sleep! You can verify on adb shell. Turn on the display and do a "cat /sys/power/wait_for_fb_sleep". The cat won't output anything until the display goes to sleep...

while [ 1 ]
do
AWAKE=`cat /sys/power/wait_for_fb_wake` # Script will sleep here until display goes on
if [ $AWAKE = "awake" ]; then
...
fi
SLEEPING=`cat /sys/power/wait_for_fb_sleep` # Script will sleep here until display goes off
if [ $SLEEPING = "sleeping" ]; then
...
fi
done
[Desire General] webber2109:
how do i push this script to /system/etc/init.d?

can i just copy and paste the zip file into that directory?

Sorry, i'm a noob.
[Desire General] teppic74:
I've noticed a lot of ROMs set the minimum scaling frequency to 245000, but this is the default minimum. Am I missing something?
[Desire General] Rudolfje:
IIRC 245 MHz is the lowest stable frequency.

The script belongs in /init.d/ but you need to have the other governors set up as well.
[Desire General] mmaacc:
What it does is basically holding your CPU speed at the lowest setting with powersave governor when the screen is off, and upscales frequencies when the screen is on. 245MHz is said to be the lowest stable but that may still depend on your particular phone.

I've tried both interactive and ondemand active governors, back and forth, and I can't really see a difference in performance. The powersave mode however will probably help to preserve battery when the phone is idling in your pocket :).
[Desire General] webber2109:
Could someone answer the question?

I'm sure there are many newbies like me who came across this thread. I believe it would benefit a lot of people if instructions are given.

It is also good to provide instructions now rather than people asking it over and over again later in the future.

Thank you
[Desire General] mmaacc:
It requires 3 things:

1) a ROM that is enabled to run init.d scripts (if you have a rooted one with A2SD you are ready to go)

2) interactive and powersave governor modules loaded which are

cpufreq_interactive.ko

cpufreq_powersave.ko

(additionally perflock_disable.ko but Perflock can also be disabled by SetCPU at every boot, it's a hassle tho). You can check with SetCPU if these modules are available in your ROM (they are if they are listed under "Scaling").

3) the 90screenstate_scaling script itself. You can find that ready for flashing here (under Experimental)

After flashing + reboot the switching should be enabled. You can check that using "adb logcat | grep screen" and switching the screen on and off.

Hope that helps, although it is not super straight forward ;)
[Desire General] -Mr. X-:
I seem to be having issues verifying that this is working for me,

What should i be looking for with "adb logcat | grep screen"

As i dont seem to see anything related to this script. I have all the required modules running and have verified this with lsmod.
[Desire General] teppic74:
Try 'adb shell' and then 'busybox ps | grep cat' - do you see anything?
[Desire General] -Mr. X-:
Nothing :(
[Desire General] teppic74:
The script isn't running. Can you see it in /etc/init.d? And does it have execute permissions? It should look something like this:

-rwxr-xr-x 1 0 2000 838 Aug 1 2008 90screenstate_scaling
[Desire General] -Mr. X-:
Hm, it does not appear to have permission to run, since i was re-flashing anyhow i decided id check my update script. well there it be. i wasn't setting perm :rolleyes: don't know how that got lost.

Sorry about that guys. ill go hang my head in shame for wasting your time lol
[Desire General] FloHimself:
This is the latest version which takes running SetCPU into account:

http://dl.dropbox.com/u/31174/android/90screenstate_scaling
[Desire General] teppic74:
You've changed to the ondemand scheduler here instead of interactive (as default). Is that deliberate?
[Desire General] frantacech:
How to use?

only copy to init.d or any support interactive with SetCPU?

I want ... sleep 245 MHZ or any number

wake up with battery 806 MHZ or any number

AND

wake with plug 998 MHZ or any number

Set freq interactive with phone .. SETCPU
[Desire General] FloHimself:
I am using ondemand and powersave atm, because I am after max battery life (for vacation). If you are after speed on screen-on you may use the interactive governor.
[Desire General] teppic74:
Ok, thanks. I've added your update to my ROM, but switched it back to interactive.
[Desire General] FloHimself:
The script doesn`t take into account if you are on AC / USB or not. You could extend the script for that by checking /sys/class/power_supply/battery/charging_source easily. There are several other things that could be taken into account. But that would end in reimplementing SetCPU on a lower level and would need more than this simple script. I thought about that, writing a "power daemon"...
[Desire General] igor7:
I have AuraxTSense v7.1 and I want to try this cool script. I did everything according this explanation above, but no effect... So, I hope somebody can say what I did wrong...

1. I checked my rom AuraxTSense v7.1,- it has A2SD+, so it's OK.

2. I installed SetCPU from marked, choose Profile >> New Profile >> Scaling >> checked here: Powersave, Interactive, Userspace,Ondemand, Performance are exists. So per my understanding it's OK? May be it is possible to check existence of cpufreq_interactive.ko and cpufreq_powersave.ko in other way? I uninstalled SetCPU, since I don't need it, right?

3. I downloaded and flashed from recovery 90screenstate_scaling script, and check if it appears under /system/etc/inid.d >> it's OK, script there.

Now I rebooted my phone, connected it to PC and execute command

adb logcat | grep screen

The output was:

adb: not found

and switching the screen on and off doesn't have any effect..

Then I checked if 90screenstate_scaling have permission. Here is output I’ve received:

-rwxrwxrwx root root 703 2008-08-01 15:00 01modules
-rwxrwxrwx root root 577 2008-08-01 15:00 00start
-rwxrwxrwx root root 56 2008-08-01 15:00 99complete
-rwxrwxrwx root root 555 2008-08-01 15:00 20userinit
-rwxrwxrwx root root 2359 2008-08-01 15:00 03stuff2sd
-rwxrwxrwx root root 231 2008-08-01 15:00 02firstboot
-rwxr-xr-x root shell 1379 2008-08-01 15:00 90screenstate_scaling

Any help is very appreciated...
[Desire General] Rudolfje:
You'll need the android-sdk for adb.

http://developer.android.com/sdk/index.html

It's in the tools folder.
[Desire General] igor7:
I have adb installed and working properly... It's my bad... I got it work.

proper command after connecting device should be:

igor@Desire:~$ adb shell
* daemon not running. starting it now *
* daemon started successfully *
# logcat | grep screen

Then it return output to the terminal. And when I switching screen on/off, it show following output:

I/screenstate_scaling( 3622): *** sleeping ***: switching CPU frequency governor to -> ondemand
I/screenstate_scaling( 3621): *** sleeping ***: switching CPU frequency governor to -> powersave
I/power ( 196): *** set_screen_state 1
I/screenstate_scaling( 3631): *** awake ***: switching CPU frequency governor to -> ondemand
I/screenstate_scaling( 3630): *** awake ***: switching CPU frequency governor to -> interactive

So it's working!! Thanks for help anyway!!!
[Desire General] nevawlkalone:
hi all,

got this mod installed via clockwork recovery and is working fine however the only problem that i have noticed is that when i charge the phone over night and then un plug it, the Android System process sky rockets in the battery usage and is draining it something stupid. The only way i have found to get around this is to reboot my phone everytime i take it off charge. Has anyone else come accross this? Is there a fix?

Im running Modaco R8 rom, flashed signed perflock and governor mod's from THIS link.

Thanks,
[Desire General] zacharias.maladroit:
Hi FloHimself

I uploaded your script in my thread and referred to this very thread

hope that is OK with you

Thanks for this fine script ! :)

(I would click on your "thanks" button but all buttons on the first page of this thread disappeared or aren't available :confused: )
[Desire General] godutch:
Egypte would anyone want to use this script, the whole ideale of these governors is to dynamically adjust the frequencies.

I don't mean to be offensive or anything.
[Desire General] FloHimself:
Thank you for using the script! :)

This should be public domain, so go ahead and use it, edit it, publish it! ;)

You are right, but there are different governors for different demands. Two such (conflicting!) demands are speed and power saving. Maybe you want speed when the screen is on and the phone is in use, but you want power saving when the screen is off and the phone is not in use.
[Desire General] godutch:
But most governors(well all except performance ) should scale down automatically when not in use and up when in use (except for powersave).
[Desire General] FloHimself:
That's the point. Because governors rely on the utilization of the CPU or system and not the screen state; e.g. the ondemand governor would scale up in screen off state, if it thinks it has to. There are cases we just don't want the governor to scale up: e.g. when the screen is off. NeoPhyTe.x360 and I did several power consumption tests with this script and it performed well.

The script is a complement to the existing governors. NeoPhyTe.x360 extended it to switch the governors on battery level basis and even the Palm/WebOS scene is using this approach to reduce power consumption.

Beside governor switching we use it to switch G3 / G2 states etc. Search the forums for what it is used for.
[Desire General] zoubidou:
i am a lazy bunger, so i just did this:

extracted the script with root explorer

copy it over with root explorer into etc/init.d

changed permission with root explorer

shutdown and restart my i9000 running cm7

downloaded alogcat from market

checked with governor filter

and it worked perfectly

forced stop alogcat, because i don't want this to run besides when i need it.

i will let you know what my batterylife says about this.
[Desire General] pillz424:
What did you battery life say?
[Desire General] BL4zD:
seems like it's becoming time to write a completely new governor for mobile devices that takes into account screen state as well as cpu load.
[Desire General] lagaba:
Smartass governor will restrict CPU to 384 when screen is off.
[Desire General] hawkeyexp:
Hi guys,

i tried it out with CM7 Nightly Build 30 on Bravo but it stocks on splashscreen. Im looking what's the reason or does anybody have the same problem ?

permissions etc. are correct - when removing script via recovery device boots correctly....
[Desire General] ch33kybutt:
@Flo ... Great work on screenstate_scaling! Just wanted to say thanks, and hope you don't mind, but I've combined your script with collin_ph's battery saver and hardcore's VM speedmods and come up with something called SS4N1 (Screen State for Nexus One). It has a config script "sscfg" which can be run from adb or terminal and enables users to make changes on-the-fly. Source is available in the update zip in my signature.

Keep on keeping on ... ;)
[Desire General] :
Same ..
[Desire General] hawkeyexp:
hi,

since tried the script a while is gone and i restartet testing with the following result:

when i try to write a value to the governor it get the following message:

echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

cannot create /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: directory nonexistent

has anybody a solution for it ??
[Desire General] chalomadek:
put "powersave" else powersave
[Desire General] djcc_15:
Actually this work(?
[Omnia II General] boobika:
Hello,

please could anybody help and upload somewhere this official ROM?

PDA I8000NXXIJC

CSC I8000XEZIJC

Phone I8000XXIJ3

Eboot ... don't know a version but it is probably I8000NXXIJC as well.

I have flashed the phone with JE3, JE5, JD1 (last offcial ROM with WM 6.5.3), but now I need come back to the original ROM and cannot find anything. All links what I foung are dead.: :(

Thank you so much for help.
[EVO 4G Q&A, Help & Troubleshooting] Arnezie:
i try to shoot video in 720p and when i play it back or upload it to youtube it is all choppy and lagging. Anyone else have this issue or had this happen?
[EVO 4G Q&A, Help & Troubleshooting] Neo3D:
Same here, wish there was a solution to this.
[EVO 4G Q&A, Help & Troubleshooting] t3project:
there is. get a higher class sd card. i used a sandisk class 6 and dont have this problem.
[EVO 4G Q&A, Help & Troubleshooting] iitreatedii:
this has nothing to do with it, it's the evo itself, when you play a video regardless of class, it is choppy in 720p, the best way to shoot is vga. sorry lol
[EVO 4G Q&A, Help & Troubleshooting] blakjak220:
Have the same problem and after readin 100's of posts about it it seems that there's a 50/50 chance that gettin a higher class SD card will work.... I have yet to try yet but if you do let me know.... It would be really nice if it worked right

And it doesnt matter if you "play" the video on the phone or not.. it has to do with the recording of the video, becuase it's choppy/laggy whether it's watched on the phone or on a desktop..... So it's not a problem with the EVO screen...
[EVO 4G Q&A, Help & Troubleshooting] sleepyfu:
could you try this out

http://xdaforums.com/showthread.php?t=1025512
[EVO 4G Q&A, Help & Troubleshooting] pas4227:
I got a 16Gb class 6 Kingston SD card and it didn't help - still lousy 720p results.

MikG 2.5

ChopSuey 9.2.7
[Click General] deadevil13:
Okay, so i hope im not wrong - im a complete noob with Android phones.

So yesterday i brought my Tattoo, and while playing with its features today and yesterday i found it did not support bluetooth file transfer :(.

So i googled it, and got a bit of a headache, and then i saw about ROMS! Im guessing that i need a custom ROM to get access to Bluetooth File Transfer. Soo, which ROM available (preferably a complete one :p) has Bluetooth File Transfer available and doesnt sacrifice anything else (i.e. Camera etc.).

Or is there a way to get Bluetooth File Transfer without flashing a ROM?

Btw i have rooted my phone.

As i said, complete noob here - so please be slow with me XD
[Click General] sheik_yerbouti:
BT file transfer will only work on a 2.1 or 2.2 ROM. And the camera and FM radio doesn't work on both of them. So there's definitely a trade off. If you can sacrifice camera and FM radio for BT file transfer, then check out Kiljacken's 2.1 ROM.
[Click General] llanerosolitario:
I think Fyodor 0.6.42 i s better (bluetooth and camera) but is android 1.6