yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] farmatito:
I wonder why all this loggin to sd and this recursive launching of script is needed?

Couldn't some simpler script like this do it?

#!/system/bin/sh
#
echo "Renice Daemon launched: `date`"
# Set the priority every 3 minutes
while [ 1 ]
do
busybox renice 5 `pidof com.google.process.gapps`
busybox renice -18 `pidof com.android.phone`
busybox renice -18 `pidof android.process.media`
busybox renice -18 `pidof mediaserver`
busybox renice -16 `pidof com.android.launcher`
busybox renice -15 `pidof com.htc.music`
busybox renice -15 `pidof com.android.music`
sleep 180
done;

I tested it by launching it from my userinit.sh file with:

renice_daemon &

and it seems to work.
[G1 Android Development] miketaylor00:
The logging isn't needed, it just made it easier to see if it was running so I left it in.

I think your method probably makes more sense. I found that the script would sometimes die or stop updating all of the processes if it ran for a few hours. So I had it restart itself and that issue went away. Will that be a problem with your method?
[G1 Android Development] miketaylor00:
I'm not sure why you would get into a boot loop. That is strange. The last 5 lines of your a2sd look the same as mine. When you run it manuall, does it output to the log file?
[G1 Android Development] blueheeler:
-- Nevermind --

I just saw your post over the xROM thread.

That gave me the answer about my network connection problems.

Thanks.
[G1 Android Development] miketaylor00:
I think those are 2 different issues but they are both being addressed on xROM. It seems that this script will cause conflicts with BFS and shouldn't be run on any ROM that uses BFS, xROM or Cyan.

The radio issues are probably being caused by the new donut radio that was added to xROM. JAC is going to get this resoved as well. Look for an update later today.
[G1 Android Development] Exilim809:
ive been trying to get this to work on my jachero1.7r2 almost all day , since i loved how it work on jachero 1.8 but unfortionally there were some problems with that rom that brought me back to 1.7r2.

i follow the directions, but theres not folder in data/opt...i also notice the file was place in the "bin" folder in 1.8...should i try that ?

any help will be greatly appriciated...thxs in advance
[G1 Android Development] miketaylor00:
Ahhh, a perfect example for using this script. It will work great with 1.7r2. I'll attach an updated a2sd file for you and the same script that is used in 1.8. You will need to drop them both in the /system/bin/ folder and then run these commands from terminal

su

rwsystem

chmod 755 /system/bin/a2sd

chmod 755 /system/bin/setPriority.sh

Let me know if you need more info.

Edit: fixed the command from as2d to a2sd.
[G1 Android Development] Exilim809:
i copied both files using Root Explorer , and check they were both there....

but eveything time i get to the comands :

chmod 755 /system/bin/as2d

i get " unable to /system/bin/as2s: no such file or directory"

but it works with :chmod 755 /system/bin/setPriority.sh

is there anything im missing ?
[G1 Android Development] miketaylor00:
oh crap, typo. it should be a2sd.
[G1 Android Development] Exilim809:
should i rename it to as2d. and then chmod 755 or what ? and how do i check if its working properly ?
[G1 Android Development] miketaylor00:
No, keep the file as a2sd. Just run this instead

chmod 755 /system/bin/a2sd
[G1 Android Development] Exilim809:
try that and my phone is stuck at the g1 screen now after i rebooted....
[G1 Android Development] miketaylor00:
Which ROM are you on. I will send you a modified file to use that will start it for you since autostart is causing you so many problems.
[G1 Android Development] Exilim809:
i had to use switchrom , luckly i did a backup one hour before trying this , but im on jachero 1.7r2
[G1 Android Development] miketaylor00:
Sorry, got my wires crossed with someone else. I knew which ROM you are on. Something weird is going on with your phone. Are you sure you got the files copied and the permissions set? It sounds like it couldn't find the a2sd file or that it couldn't run it because it didn't have the permissions. Did you get any other errors?
[G1 Android Development] Exilim809:
both files were there , i check and checked again.....

the set :chmod 755 /system/bin/setPriority.sh ;;work pefect like i said before

but when i tried :

chmod 755 /system/bin/a2sd i keep getting the same error

abiously the permission it set if it allow to push and chmod 755 setpriority.sh

why cant i do the same for a2sd ?

i have tried almost evey single hero build , never got a booploop or any problem or with anything i have tried...soo i doubt its the phone
[G1 Android Development] miketaylor00:
Does it say the file doesn't exist or that it is read only?

Did you try the rwsystem command before you set the permissions?
[G1 Android Development] Exilim809:
yes i did exacly what you said....from step to step ;;;

like i said it work for "setPriority.sh" and not for a2sd , after you told me it was s typo

i retried it and still didnt work :

i get " unable to /system/bin/as2s: no such file or directory"

but i guess ill wait for jachero new update witch will have it include and fixed MT

but thank for all your effort im trying to help i really appreciated, good nite ..1
[G1 Android Development] miketaylor00:
Look at what I put in bold. It says as2s, not a2sd. You are putting in the wrong name.
[G1 Android Development] farmatito:
50 log /system/bin/logwrapper /system/bin/sh /system/bin/a2sd
51 root /sbin/adbd
55 root [sh]
62 root [kjournald]
195 root /system/bin/sh /usr/bin/renice_daemon

uptime
07:36:40 up 30 min, 1 user, load average: 0.28, 0.24, 0.24

I have it running 7 ours now with no problems and no sd card wearing.
[G1 Android Development] miketaylor00:
Are you testing each of the processes to make sure that they are all updating after all of this time? My problem is that they weren't updating even though the script was running and writing to the log file.
[G1 Android Development] bonkasnucca:
could this help improve the performance of the browser..bcuz thats about the only thing on hero i still cant really stand
[G1 Android Development] miketaylor00:
I tried it on hero and it didn't help much. The browser is just kinda slow, even with it being high priority. You can mess around with it if you want to try it. Just steal the 1 renice line from the script and change the process to the name for the browser.
[G1 Android Development] bonkasnucca:
hey since were on the topic of that crappy browser (sry if u would rather me post somewhere else but i thought ud be a good guy to ask) is it possible to port over the opera 10 browser for linux to android..and if yes could u point me in the right direction to suggest this or somthing cuz i sure as hell cant do it...lol
[G1 Android Development] miketaylor00:
You can also try this method for getting the script to run

http://xdaforums.com/showthread.php?t=558822
[G1 Android Development] farmatito:
/system/sd/bin # ps
PID TT USER NI TIME COMMAND
1 ? root 0 0:02 /init
2 ? root -5 0:00 [kthreadd]
3 ? root -5 0:00 [ksoftirqd/0]
4 ? root -5 0:00 [watchdog/0]
5 ? root -5 0:00 [rcu_sched_grace]
6 ? root -5 0:01 [events/0]
7 ? root -5 0:00 [khelper]
8 ? root -5 1:37 [suspend]
9 ? root -5 0:00 [kblockd/0]
10 ? root -5 0:00 [kmmcd]
11 ? root -5 0:00 [btaddconn]
12 ? root -5 0:00 [btdelconn]
13 ? root -5 0:00 [kondemand/0]
14 ? root -5 0:00 [qmi]
15 ? root -5 0:01 [rpcrouter]
16 ? root -5 0:00 [detection/0]
17 ? root -5 0:01 [krpcserversd]
18 ? root 0 0:00 [pdflush]
19 ? root 0 0:01 [pdflush]
20 ? root -5 0:06 [kswapd0]
21 ? root -5 0:00 [aio/0]
29 ? root -5 0:01 [kadspd]
32 ? root -5 0:00 [panel_on/0]
39 ? root -5 0:00 [mtdblockd]
40 ? root -5 0:00 [USB mass_storag]
41 ? root -5 0:05 [synaptics_wq]
42 ? root -5 0:00 [kstriped]
43 ? root -5 0:00 [hid_compat]
44 ? root -10 0:00 [krfcommd]
47 ? root -20 0:00 [loop0]
48 ? root -20 0:00 [loop1]
49 ? root -5 0:11 [mmcqd]
50 ? log 0 0:00 /system/bin/logwrapper /system/bin/sh /syste
51 ? root 0 0:04 /sbin/adbd
55 ? root 0 0:00 [sh]
62 ? root -5 0:00 [kjournald]
195 ? root 0 0:05 /system/bin/sh /usr/bin/renice_daemon
215 ? system 0 0:00 /system/bin/servicemanager
216 ? root 0 0:00 /system/bin/vold
217 ? root 0 0:00 /system/bin/debuggerd
218 ? radio 0 0:03 /system/bin/rild
219 ? root 0 0:15 zygote /bin/app_process -Xzygote /system/bin
220 ? media -18 0:27 /system/bin/mediaserver
221 ? bluetoot 0 0:00 /system/bin/dbus-daemon --system --nofork
222 ? root 0 0:00 /system/bin/installd
224 ? 1017 0 0:00 /system/bin/keystore
225 ? compass 0 0:27 /system/bin/akmd
240 ? system 0 14:13 system_server
279 ? radio -18 2:54 com.android.phone
283 ? 10006 0 3:20 android.process.acore
471 ? 10037 0 3:04 com.smartandroidapps.audiowidget
490 ? 10029 0 1:19 com.htc.android.htcime
497 ? root -5 0:03 [audmgr_rpc]
7871 136,1 root 0 0:00 /system/bin/sh -
8000 ? root 0 0:00 sleep 180
8262 ? 10007 0 0:01 com.google.process.gapps
8264 ? 10039 0 0:00 nl.jsource.retroclock.android
8499 136,1 root 0 0:00 /system/bin/sh /usr/bin/ps
8500 136,1 root 0 0:00 busybox ps -o pid,tty,user,nice,time,args

uptime
12:53:45 up 21:28, load average: 0.00, 0.02, 0.08

Seems to me that it is working fine.
[G1 Android Development] jinx10000:
Mike.

I have been playing with JacxHeroSki 1.8 for a little over a day and have not seen any problem with your renicing script running. What exactly is the problem anyways? It still rings faster with your script running to me.

Had an idea but have no idea of how to implement it. Is there anyway through script to wake up the phone and play a ringtone (use a silent ringtone) if the media player or the phone is not currently in use? Seems that the phone takes longer to ring when it has been sitting around with no use.
[G1 Android Development] miketaylor00:
I haven't noticed the problem as much with JacxHeroSki. With xROM it made the phone not ring at all. I suppose I could add some commands to launch the service before it updates the priority.
[G1 Android Development] citydog5:
I'm testing Mike's renice script on MoDaCo 2.2 w/ JACSki 2.1 kernel and so far things are fine. I would like to confirm renice is working but my ps output doesn't include process nice values. Is it a specially compiled ps under your system sd folder?
[G1 Android Development] miketaylor00:
Use this script that devsk wrote. It's very useful for this.

http://xdaforums.com/showthread.php?p=4365912&highlight=printPriority#post4365912

Also, I modified the script a little for Hero. Try the attached script instead. Let me know how it works. With BFS running, Hero didn't have the problems that AOSP ROMs had. Let me know what happens.

Edit: I updated the script to include the browser. I think I got the right name but I don't have hero to confirm. Let me know if it is wrong.
[G1 Android Development] Loccy:
I seem to be making a habit of grave-digging Mike's old threads today, but renicing FTW.

I've just put a version of farmatito's variation of Mike's script onto my Cyan 4.0.4 ROM. I removed the Music apps (not interested) and instead added the Browser and also my input methods (HTC_IME and Better Keyboard).

Result is truly a thing of beauty. It make the ROM feel ridiculously smooth and touchscreen input, usually ridiculously laggy when typing posts on XDA regardless of which onscreen keyboard I use (I think it's something to do with Javascript), actually becomes fast and responsive. Multitouch zooming on the browser suddenly almost iPhone slick. Honestly. Any of you still running Cupcake ROMs who haven't been sold by all this BFS hype, and who use the browser to any degree should do this immediately. I'm not sure what it'll do to battery life but I would defy any BFS/Donut ROM to be as usable as this, and certainly none of them will be as stable.

Am going to run like this for a few days and see how it goes, but provisional thoughts are "BFS, my arse!"
[G1 Android Development] pychobj2001:
How do you test to make sure it's running? I put it in my user.conf as a line where the custom stuff goes on bottom as this

sh /system/sd/autostart.sh

but i have no idea if it worked? the phone book stuff seems a tad zippier but that could be just me expecting it to run faster? idk..if i do autostart.sh -i will that tell me if it's running? i'll try and find out...
[G1 Android Development] Loccy:
Use the script in this post. That'll give you the nice values for a given process. So if you do

printPriority.sh phone

you should see NICE=-18 (assuming you kept Mike's nice values)

However, if you want to add apps that aren't persistent (e.g. browser, HTC_IME, as I have), I suspect Mike's version of the script might not work. His version only actively operates for the first hour after a reboot (two minute intervals x 30). That's fine for persistent apps like the phone. However, any non-persistent apps, if they drop out of memory after that point (which they will), won't then get reniced after that interval. If you plan to do what I've done and add things like the Browser, you should use something like farmatito's variation which runs continuously.
[G1 Android Development] snellx:
just getting crazy... used several versions of the script an getting always

C:\>adb shell sh /data/opt/autostart.sh
Renice Daemon launched: Mon Oct 5 00:36:22 EET 2009
/data/opt/autostart.sh: 21: Syntax error: "done" unexpected (expecting "do")

(result from original version of mikes' autostart.sh')

seems like it just doesn't process the 'do'-part.

any idea? i'm just a noob, who wants to try this speed up...;)
[G1 Android Development] bkmo:
That is not the output from the script attached to the first post of this thread. Try using that one.
[G1 Android Development] pychobj2001:
I don't want to use autostart app, i just wanna add it to my user.conf which i would imagine I should be able to...idk...

in the user.conf i hava a line that says (sh /system/sd/printpriority.sh)

but the post you lead me to has me input all the PID's of every app I want to set the priority for? I'm so lost...ha or can i just leave printpriority.sh as is, and throw it on the /system/sd and let it do it's magic w/ nothing to turn in on in user.conf it will start itself? that's kind of what the post sounded like it saying....the script in this thread works..but like you said, not awesome for app that kill themselfs which most of mine don't becuase of backing swap...but i would like them to turn themselves back on w/ the method your talking about....

Edit: I think i read what you were saying wrong the first time I read it..ha! ok, so I looked for farmatito's variation and couldn't find it under search. the printpriority.sh just helps me make sure the priority's are set and working, like a status check...I'll keep looking for farmatito's post on his version
[G1 Android Development] slashbeast:
You forget about #!/bin/sh in first line, also, rm -r /sdcard/setPriority.txt? -r is recursive, and setPriority.txt is a file, if you want force, add -f, not -r.
[G1 Android Development] snellx:
Problem solved... Reason for the errors was that i used windows-notepad to edit the files...
[G1 Android Development] bronxbru:
Thanks miketaylor00!!

Now I can officially enjoy my evil hero rom 'cause I can get my phone calls on time. All of you modders rock!
[G1 Android Development] torturedsoul802:
Hmmm...wonder if there's any chance of porting this into the next CyanogenMod?
[Touch Pro2, Tilt 2 Windows Mobile General] vinciente:
when a appointment is selected in tab calendar in tf3d there is a new tab showing the appointment in wm6 style

underneath there is reply (beantwoorden) instead of edit (bewerken)

see capture

reply to what?

and my real question

how to change this to edit like it was in wm5 on my old qtek9100

WAT beantwoorden???

EDIT
[Touch Pro2, Tilt 2 Windows Mobile General] vinciente:
nobody?

no-one has reply there? only edit?
[Touch Pro2, Tilt 2 Windows Mobile General] sleonard:
I found the same problem in my TMoUS version earlier today. Doesn't help, I know, but at least we both know it's widespread.

S
[Touch Diamond, MDA Compact IV Themes and Apps] nitrana:
I would like to know if is possible to activate a vibration of the phone when i scroll the touch flo schedule..
[Touch Diamond, MDA Compact IV General] giangy11:
Hi,

i've a big problem with my diamond

it starts normally, but after htc splash screen, it tries to load windows but after 1-2 seconds it restart.

i was using cooked rom gen.Y D2 rev.Y with radio 1.09.25.23

G 52.51.25.26H

i've tried with original rom 2.03 but the problem still remains.:mad:

What can i do to resolve this problem?:eek:

Where can i find original radio and G (what does it stand for?) to put inside my htc with original rom for probably warranty assistence (i hope)

i've also olinex1.40 spl, how can i remove it?:(

Thank you in advance:)

Gianluca
[Touch Diamond, MDA Compact IV General] supersanj:
SOunds like a bad flash to me. Try using MTTY to reflash. Should work fine

http://xdaforums.com/showthread.php?t=540290
[Touch Diamond, MDA Compact IV General] giangy11:
how can i run this procedure:

Connect Device to PC via Active Sync, Once Connected Uncheck USB Connections,DISCONNECT DEVICE then Reboot Computer

if the device can't start completely?
[Touch Diamond, MDA Compact IV General] supersanj:
Flash from your System not the Internal Storage. Read the 4th post.
[Touch Diamond, MDA Compact IV General] giangy11:
i can't install drivers on my win7 x64 because i can't follow the first post "how to install drivers" so with the mtty.exe it doesn't find the usb driver
[Touch Diamond, MDA Compact IV General] supersanj:
In that case see if you can get into bootloader.

(Reset + Hold Vol Down), this will show the Red, Blue, Green screen showing "Serial"

Then plug your usb cable in and you should get it showing "USB".

You then need to Hard SPL and reflash.
[Touch Diamond, MDA Compact IV General] giangy11:
yes i've succesfully installed drive on win7 x64

i've run mtty.exe, followed the instructions, all ok.

then i've disconnected the diamond from usb and made an hard reset (it says press vol.up to restore manufacturer default, vol. down to restore and format movinanand, i press vol. up, and after vol.up again: is it the hard reset or is it another menu?)

but after restart the htc has same problem..it continues to restart by itself
[Touch Diamond, MDA Compact IV General] giangy11:
i've decided to return htc to stock software and firmware in order to send him in warranty to delaer.

so, i've installed last official rom htc 2.03, it includes the radio.

Now after that, because system doesn't want to start completely, also after mtty.exe format ecc., the last thing i've to do is install official spl right?

i've found the guide:

STEP BY STEP HOW TO RETURN TO STOCK SPL - FOR WARRANTY REASONS ONLY!

0. be sure to first restore stock OS, and stock radio. stock SPL is always to be done last!!

1. download the stock spl package from this post (pick one of the attachments) in this thread.

2. also download the RUU-SSPL-withoutNBH.zip from the attachments in this post.

3. pick the SPL you want to reflash to (ONLY FOR WARRANTY REASONS), it's a .NBH file, put the NBH in the extracted RUU-SSPL-withoutNBH package.

4. run the RUU (or if needed, run SSPL-Manual.exe manually, then run RUU when it goes to black screen), it goes to 100%, reboots, done.

+5. to verify, volume down + reset, see version number on tricolour screen.

that's it.

what official spl have i to install? 1.23 1.34 1.37?
[Touch Diamond, MDA Compact IV General] giangy11:
i've tried with all the 3 spl but nothing changed i think, because when i open the bootloader it still saying 1.40olinex
[Touch HD General] neoculture:
hi all

i am looking for the old style keyboard.

one that looks like this but with the numbers on top as well.

i am using energy Rom 2.1 manila win 6.5

does anyone have a cab file.

thanks for your help
[Touch HD General] CAVEGIANT:
I want this too
[Touch HD General] abubakar:
Go to Settings>Personal>Input

Select "Keyboard" as your input method and select small keys. Then press OK.

The picture you showed is actually the traditional old school keyboard with large keys, so the numerical keys are hidden. Select small keys and they should be back up.

Cheers
[Touch HD General] neoculture:
I am using Energy Rom and i think it has finger keyboard installed, i have tried the setting you have mentioned but it still shows as finger keyboard.

its the old school keyboard i want as a cab file if anyone has it.
[Touch HD General] hcurban:
the same problem

In the new roms with sense 2,5 etc is this keyboard also missing.
[Touch HD General] dwizzy130:
I don't have a cab but just to clarify, the one you want is not the HTC Full compact keyboard, it is the stock Microsoft Windows Mobile keyboard.

dwizzy130
[Touch HD General] BOjaS:
i iam using SPB Full Screen Keyboard v3.0.1!

its transforming all the screen to the keyboard!!!
[Touch HD General] !SINGH!:
Or use Resco Keyboard Pro
[Touch HD General] onesolo:
Just don't understand why no one help us ?!?!

Please, someone make a cab with the winmo qwerty keyboard!!!
[Touch HD General] pablusia:
in Resco Keyboard Pro you've got that skin
[Touch HD General] meachi04:
I want this one too!!!
[Touch HD General] jimmiewalker:
i have this keyboard in the rom i'm usin'.

but,windows mobile 6.1

if someone tell me where,i can try to look in the .nbh file....
[Touch HD General] onesolo:
Ok, responding to myself, I just found how to have this keyboard again!!

Apparently the keyboard is there all the time, at least in the roms that I've tested but the cookers don't enable it!!! :mad:

On the other day, accidentally I saw a cab on the Cloudy's rom that was to enable the "old" M$ keyboard.

I was (and I'm still) not using Cloudy's rom but decide to try if it works. Install it and puff there it was in all is glory!!!

Here is the link for that cab,

http://xdaforums.com/showpost.php?p=5410858&postcount=278

Many thkx to Cloudy for this one and a hands down to the rest of the cookers for hiding this feature. Worst than hiding is not to give a cab for this as I many times asked for it...
[Touch HD General] mister gun:
Fifty thumbs up. I've even posted a thread asking for this months ago. Just did a hard reset and decided to try my luck.

I have been in hell with the other keyboards. This is the missing piece for me.

Cheers to cloud and you, OP.
[Touch Diamond, MDA Compact IV Themes and Apps] Gregorius:
Hi guys !

Looking at new manila 2.6 videos on topaz and HD, from duttys new rom, can anyone port this so it would be available for HTC TOUCH DIAMOND ?

i would very like to use it, but i dont want to buy new phone at this point :)

thank you so much
[Touch Diamond, MDA Compact IV Themes and Apps] TomMyH1992:
2 nice reviews on the diamond 2 here from pocketnow,, looking forwards

http://www.youtube.com/watch?v=igRAl0swRsI

http://www.youtube.com/watch?v=ZZhI9myqjdo&feature=SeriesPlayList&p=52A0239A0BAF7295
[Touch Diamond, MDA Compact IV Themes and Apps] supersanj:
be patient, devs are working on it porting it. Nothing available yet.
[Touch Diamond, MDA Compact IV Themes and Apps] nec85:
this looks fantastic, they did great job on finger friendly thing buttons seems bigger and easy to press, i hope it'll soon release on our diamonds too...
[Touch Diamond, MDA Compact IV Themes and Apps] csjneek:
but what about manilla 2.5?

I can't find any rom with manilla 2.5 for gsm diamond
[Touch Diamond, MDA Compact IV Themes and Apps] kevin_m:
http://xdaforums.com/showthread.php?t=541026

just check this thread...

good luck
[Touch Diamond, MDA Compact IV Themes and Apps] ellaia:
Manila 2.6 for HTC diamond 1

Hi,

is there a way to install the last version of manila (2.6) on my HTD Touch Diamond 1 (WM 6.1) ?

Thanks
[Touch Diamond, MDA Compact IV Themes and Apps] andylayo:
Only by flashing this rom at the moment.

http://xdaforums.com/showthread.php?t=565078
[Touch Diamond, MDA Compact IV Themes and Apps] Zagor81:
Ciao a tutti,

fino a ieri avevo il display nero per i messaggi e altro..

qualcuno sa indicarmi il file cab che avevo.. non lo trovo piu grazie