yashsingh1/xdaforums huggingface dataset:
[Samsung Epic 4G Touch] PhAkEer:
You must be playing with Windows again :p

The reason it said to put SQL.sh is because the name of it is SQL.sh

But that is neither here nor there. I don't know what would cause it to not not install, but I did find a couple

places that I tightened up a little.

Are you sure you didn't change anything else in the updater-script or maybe something in the permission settings script?

I decided to do i the long way. I've added quotes to all numbers and dotted my eyes.

I'll test a flash now and upload if goes smoothly. I'm going all out this time and erasing every component I can find

beforehand.
[Samsung Epic 4G Touch] M3ntalPurg3:
Right, that's why I thought it would fix it because I flashed it but nothing was in there. After I changed SLQ, it flashed fine but still perm errors as you can see
[Samsung Epic 4G Touch] Surj138:
Hmm, I just flashed placebo 3.0 on cm9 largestarmy... conservative setting doesn't wanna take, for some reason. Pegasus, interactive, lulzactive, smart ass, hotplug, and ondemand governors all switch properly, just not conservative. Anything I can show you to diagnose the issue?

Sorry, I'm learning slowly but surely. Thanks in advance

Edit: geez, after reading some more I think I may be in over my head... I've got lots to learn yet :(

Trolling from my Cricket-flashed Galaxy S2 E4GT using Tapatalk 2
[Samsung Epic 4G Touch] gershee:
placebo 3 woah!!!! I've been off the grid! thanks phak. gonna flash now and give her a whirl. :thumbup::D:beer:
[Samsung Epic 4G Touch] PhAkEer:
I'm starting to wonder what all has been done to my phone...

Way too many times stuff that works great for me will not work for others or vice versa..

So ...eff it

Ill just write the whole damn thing as one script that generates a bunch of scripts..

Ive been toying with the idea and I have a mostly functional example that Ill be wrapping up in a little bit.

Imagine... Copy/paste one script to terminal emulator and its done?! Sounds too good to be true.
[Samsung Epic 4G Touch] blackcanopy:
Now your just trying to spoil us.. Lol

Where's your sense of adventure? We enjoy making you pull your hair out trying to figure out what went wrong (even when nothing did).. :D

That does sound like a great idea tho. I just wonder if permissions for jelly bean are different from ICS, GB, CM9, Cm10.1 etc.... On Jb, Sometimes my init.d folder and files within are 0777 and other times they are 0755 (depending on who's tweaks I'm testing) .... So I'm not sure which is correct for JB... And JB doesn't have source yet, so tweaks to other governors (except ondemend) won't work.

EDIT : Something else I remember reading that Jb uses a different SQlite.... I don't know if that rings a bell or helps in any way... But thought I'd share the info.

Sent from my SPH-D710 using Xparent BlueTapatalk 2
[Samsung Epic 4G Touch] carwashman:
I just use Hexen, and thanks so much Phaker!

Battery life is awesome..

Sent from my CNA infused Samsung Epic Touch
[Samsung Epic 4G Touch] blackcanopy:
The placebo 3.0 is pretty awesome too!

Sent from my SPH-D710 using Xparent BlueTapatalk 2
[Samsung Epic 4G Touch] blackcanopy:
Xbin permissions for jelly bean are 0777 also. This is after a dirty flash using Dan's deodexed gb08.

Sent from my SPH-D710 using Xparent BlueTapatalk 2
[Samsung Epic 4G Touch] numus:
Not working on my epic 4G touch. Type peqasus and not found. Try busybox remount and get can't read /etc/fstab
[Samsung Epic 4G Touch] blackcanopy:
Are you typing su, hit enter, then pegasus?

Does your kernel support the pegasusq governor? Try typing ondemand. It should then create a file in data /log /placebo.log.

Sent from my SPH-D710 using Xparent BlueTapatalk 2
[Samsung Epic 4G Touch] PhAkEer:
Thanks for the info, I don't know why either of those are true but I'm pretty sure I have it fixed. I'm gonna run a few tests then re-post.

Really strange that you are getting " can't read /etc/fstab " for two reasons:

The command I use shouldn't be calling on /etc/fstab because I specify the device and the mountpoint,

&

Ok, well I guess that was the only reason it was weird but still....

I really am pretty confident that my solution will increase compatibility and decrease the size of the vein on my temple. Wish me luck. lmao
[Samsung Epic 4G Touch] carwashman:
The only governor that works for me seems to be "conservative", this is what I get when I try others...

Sent from my CNA infused Samsung Epic Touch
[Samsung Epic 4G Touch] blackcanopy:
In root explorer (or equivalent) make sure your system is mounted rw and not ro. If it is ro, change it to rw and try again in terminal emulator.

Sent from my SPH-D710 using Xparent BlueTapatalk 2
[Samsung Epic 4G Touch] carwashman:
Thanks black, it's like the first one takes, then you can't change after that..

Sent from my CNA infused Samsung Epic Touch
[Samsung Epic 4G Touch] blackcanopy:
What is your setup (ROM /Kernel /placebo etc...)?

Have you checked the permissions on the files after flashing? Sometimes permissions aren't set correctly on the flash. OP shows a couple commands to copy /paste in terminal emulator to set permissions and mount system. You may want to try that method.

Sent from my SPH-D710 using Xparent BlueTapatalk 2
[Samsung Epic 4G Touch] carwashman:
Thank you fine sir! I located the files, changed permissions to 0777, and I can now change to all governors in terminal..:)

Sent from my CNA infused Samsung Epic Touch
[Samsung Epic 4G Touch] blackcanopy:
I'm really glad you got it going, it'll be worth your hassle.

Sent from my SPH-D710 using Xparent BlueTapatalk 2
[Samsung Epic 4G Touch] PhAkEer:
ugh

Bare with me on this one. The entire install happens from the flash so this is a different approach than usual and it takes a little longer to flash.

Also, since I've never really done it this way I can't say for certain that it will have the best results...

I can say this:

I never once specified a /dev/block by number, not even in the updater-script...

in other words,

of all the zips I've ever made this is the most likely to work on other devices as is.
[Samsung Epic 4G Touch] blackcanopy:
I'm a tester, testing the test... It flashed without a hitch, and seems to be running well..

EDIT : this was tested on deodexed TBSGS3 JB GB08...

Sent from my SPH-D710 using Xparent BlueTapatalk 2
[Samsung Epic 4G Touch] blackcanopy:
That was the easiest placebo flash /setup so far.

What did you do to my phone PhAk? Feed it crank? :D

EDIT :actually.... I'm still waiting for it to hit deep sleep

EDIT 2:shewww.. It's finally deep sleeping again.

Sent from my SPH-D710 using Xparent BlueTapatalk 2
[Samsung Epic 4G Touch] PhAkEer:
Oh, how you know my weaknesses....

I had everything setup perfectly less the screenstate scaling.. once the phone slept, it never woke.

It didn't matter what I did I couldn't get it running lmao

I have to find a working copy and run some tests on how to to generate it without it turning my phone into sleeping beauty.

( did you look at the install-script ? :D )
[Samsung Epic 4G Touch] blackcanopy:
I didn't look at the install script until you asked the question. Is hard to believe that script (under 6k) created all those other scripts... Very impressive! I did notice allot of code I hadn't seen in your placebo in the past.

So are you saying.... You fixed... The sleeping beauty...issue... Right ? My phone is entering deep sleep without eating the apple and waking without a kiss. Running like a jaguar and sleeping like a baby with a full belly.

Sent from my SPH-D710 using Xparent BlueTapatalk 2
[Samsung Epic 4G Touch] mamouton:
I flashed the test zip but I don't think it installed it was super quick. Is there something else I need to do?
[Samsung Epic 4G Touch] PhAkEer:
Let's nip this in the bud.

What ROM are you on? ( Sorry if it's obviously stated somewhere )

You could try manually mounting the system partition in the mounts/storage section of recovery.

If that doesn't work I will flash the ROM you are on and get it working,

Edit: You could also try installing it while running, but to do that you would need to extract it from the zip and then convert it.

If you took that route, I'd suggest extracting with root explorer and putting it in /system/xbin; then

from terminal emulator type

su
mount -o remount,rw /system
chmod 0755 /system/xbin/Placebo_Install
sed -i '1s@/sbin/busybox sh@/system/bin/sh@g;s@/sbin/@@g' /etc/init.d/Placebo_Install && sh /system/xbin/Placebo_Install

That should be accurate and it should make it work. I hope I can figure out what the issue is.. it seems to only work for a select few..
[Samsung Epic 4G Touch] mamouton:
Gb08 stock

---------- Post added at 10:04 PM ---------- Previous post was at 10:03 PM ----------

I ran the placebo install using root explorer but how can I test it?
[Samsung Epic 4G Touch] PhAkEer:
It won't work from root explorer without converting first. It is setup to run during a flash and that uses /sbin/busybox sh

whereas to run it from terminal or root explorer it needs to enter with /system/bin/sh and call on busybox.
[Samsung Epic 4G Touch] mamouton:
I tried with el29 but I don't think it flashed it ran too quick. Is there a command I can run in terminal to see if it is running?
[Samsung Epic 4G Touch] PhAkEer:
Sure, lots.

To see if the scripts are there

ls /etc/init.d

To see permissions and attributes

stat /etc/init.d/*

To see the content of the files

cat /etc/init.d/*

To see if a log has generated

cat /data/log/Placebo.log

or try changing governors

ondemand

pegasus

Any of those options should tell you ;)

I should've noted that that may be an issue, gb update binaries are different, permission may not be set properly.

Are you getting an error from recovery like

"Expected 3 arguments; Got 4"

or anything?
[Samsung Epic 4G Touch] mamouton:
I am not getting a error it is just going to quick and says install. Complete. No init.d folder. Yes I am on jb.
[Samsung Epic 4G Touch] PhAkEer:
Nope. I didn't fix it yet but I tried to gear this one toward sleep in a slightly different way.

If you look at /etc/init.d/Affinity you can see that I have half of the loop/ram blocks set to rq_affinity=1.

In English:

Our phone has a tendency to hate on cpu1, and now half of your I/O favors cpu1 over the default setting of having them all set to cpu0.

I'm also hoping that will help cpu1 wake up more often when the phone is active but I haven't really tested that aspect yet.
[Samsung Epic 4G Touch] PhAkEer:
AH HA!

You don't have init.d support yet.

Do you have the auto-root tool on your PC?

If not, dl it

hook up your phone to your computer and run the option to install init.d support.

Ill try and pull the script to post it.

It's been a long time since I messed with that so I don't remember what all is needed.
[Samsung Epic 4G Touch] M3ntalPurg3:
I don't why but randomly I can't download files directly. Literally just wiped my whole phone, clean install changed my hosts file, can't figure it out. Phake could you post a link for me bro? I really want your new super smooth :p

Edit: My bad ...I'm so spoiled on the xda app that i forget that i can access the forum - ..on...line
[Samsung Epic 4G Touch] blackcanopy:
What did you change your hosts file to? Have you tried downloading the test.zip a page back?

Sent from my SPH-D710 using Xparent BlueTapatalk 2
[Samsung Epic 4G Touch] M3ntalPurg3:
I changed it from the host fix found in Jellyverse thread to stock. Not yet, dl'ed 3.0.1 though.

Edit : by accident today I found out that if you change the download directory of files for the forum, it will say can't connect to forum so it made me think that I had to delete my hosts file. They really need to change that. You should be able to f download to wherever you choose.
[Samsung Epic 4G Touch] g_ding84:
Hey bro, quick question....I don't know why I can't remember this. But what is the command line for terminal to execute scripts in init.d folder?
[Samsung Epic 4G Touch] blackcanopy:
Type the directory path then the file name

An example would be...

su

system/etc/init.d/(tweak name)

Remember that it is case sensitive too...

Sent from my SPH-D710 using Xparent BlueTapatalk 2
[Samsung Epic 4G Touch] PhAkEer:
Here you go, bro

Placebo3.0.1-DropBox

Placebo3.0.1-Amazon

I also updated the OP with two links alongside the XDA hosted all in the top.

I figure between the three there shouldn't be too many more issues.

I added a couple lines of code in between the test zip and now. Nothing major, just some Placebo-like touches to system settings.

wifi_idle_ms 8000

wifi_dhcp_max_retry_count 5

wifi_sleep_policy 2 ( sorry if that isn't your preference, you can easily reverse this in your settings.apk )

and my personal favorite...

long_press_timeout 150

hehhehhehhhehhe

Edit: Turns out I was right before, sqlite3 commands don't work unless run when the phone is on.

I'll work on a way to have it deliver these commands without having to have them read on every boot.
[Samsung Epic 4G Touch] g_ding84:
Thank you....for some reason I was drawing a complete blank.

---------- Post added at 06:06 AM ---------- Previous post was at 06:05 AM ----------

A new placebo. :) phakker you the man. Thanks for all you hard work Bro.
[Samsung Epic 4G Touch] blackcanopy:
For some reason, the test zip set the scheduler to deadline, but placebo 3. 0. 1 did not. The scheduler in the script says deadline, but my scheduler says cfq. Was there something changed that would cause that? Or am I just tripping?.. Lol

Sent from my SPH-D710 using Xparent BlueTapatalk 2
[Samsung Epic 4G Touch] PhAkEer:
There shouldn't have been anything that changes that. There is still the potential issue of permission differences with init.d scripts in general but if it worked in the test.zip it should work in the other.

Let me see if it is working on my end.

Mine is still set to deadline after having flashed the new zip,

are there any irregularities in the Schedule script in init.d ?

Try manually running the schedule script and see if that is broken.

I knew it was too easy this time. There ARE ALWAYS problems with this thing. lmao but I literally only added a few lines. Nothing should have been changed outside of that,,.... I didn't want to risk braking anything,
[Samsung Epic 4G Touch] blackcanopy:
This is why I get running scheduler script in rom toolbox...

I don't understand why the test seamed to go so smooth, and then this. If I type ondemand in terminal it doesn't change the governor anymore either.

Sent from my SPH-D710 using Xparent BlueTapatalk 2
[Samsung Epic 4G Touch] blackcanopy:
This is the log created when executing ondemand..

EDIT : if you compare the above screen shot to the my screen shot 2 pages back (using the test zip) , you can tell a drastic difference after the first couple lines...

Sent from my SPH-D710 using Xparent BlueTapatalk 2
[Samsung Epic 4G Touch] blackcanopy:
Maybes there's nothing wrong with your placebo... It may be me, or my phone, doing something wrong.

Apparently something's working with it... if I manually change the governor to ondemand and scheduler to deadline, because my battery life is amazing and wake locks are about eliminated!

Sent from my SPH-D710 using Xparent BlueTapatalk 2
[Samsung Epic 4G Touch] PhAkEer:
What the hell.

I typed a long and thought filled response to this forever ago....

Ugh.

Ok, what it looks like is happening is an error is being thrown on one of the first directories it attempts.

It isn't a directory I am familiar with or attempted to target.

See if it will fix it if you go into init.d/(whichever) and remove the lines that don't echo to a ram or loop block.

Does that make sense? So if in Schedule/Readahead/Affinity (etc) there should ONLY be lines that read

echo 3568 >/sys/class/bdi/*/read_ahead_kb

or

echo deadline >/sys/block/mmcblk0/mmcblk*/queue/scheduler

Delete any lines that echo to abnormal directories.

Separate note:

Also, I may have just found out how to easily write in an advanced mode for Pacebo users. (hell, if it works the way I think it will, it would be great for anyone..)

The way it's looking like it'll work is something like this:

From terminal

su

scheduler=sio

readahead=4096

governor=ondemand

samp_rate=20000

samp_factor=3

up_thresh=77

/system/xbin/settings
[Samsung Epic 4G Touch] M3ntalPurg3:
I don't know if you were able to see my reply to my original...it was a problem with the forum app actually, from what I can tell @ least. But the links should be useful for everyone here anyway. Thanks bro.

Btw, did you get my pm

Sent via XDA Premium
[Samsung Epic 4G Touch] PhAkEer:
i did not.

ill look now
[Samsung Epic 4G Touch] blackcanopy:
Just an update to the issue from the other day (with the errors in the placebo.log when executing ondemand command ). I moved SuperSU from data /apps to system /apps, mobile odin the gb08 repack and rebooted. The first screen shot is after the reboot, the second is after executing ondemand in terminal. No more errors, but still doesn't change the scheduler to deadline for me.

EDIT : I flashed the stock gb08 kernel (as advised to use for daily use ) and the errors returned.. :(

Sent from my SPH-D710 using Xparent BlueTapatalk 2
[Samsung Epic 4G Touch] blackcanopy:
The error at the bottom is present with both kernels... Not sure if it means anything at all.

Sent from my SPH-D710 using Xparent BlueTapatalk 2
[Samsung Epic 4G Touch] blackcanopy:
Funny thing now, I re flashed my rom and placebo 3.0.1, and now the scheduler is setting itself correctly to deadline. I still get the errors when using the stock kernel, but all seems well now. Thanks PhAkEeR

Sent from my SPH-D710 using Xparent BlueTapatalk 2
[Samsung Epic 4G Touch] PhAkEer:
Wow. I must have responded to that last message 4 or five times; something kept coming up and I would forget to finish it or click post. .

Sorry I haven't been on much. I really have no excuse; I've been home alot.

I've been learning like mad, though. Just got to the point where I needed a break `cause my head is overloading.

Check it; I started with the alphabet syntax line that's included in some files. I imediately noticed where it should wrap, so I took the liberty {

!"#$%&'()*+,-./0123456789:;<=>?
@abcdefghijklmnopqrstuvwxyz[/]
^_`abcdefghijklmnopqrstuvwxyz{|
}~

}

From there I just decided to play with it: so I started to add to the sequence by wrapping the logic-counterparts from hexidecimal and base ten.

After hitting a global pattern repeat ( which looked awesome becase i built on it from both the top and bottom ) I decided to write it out in the direction of the pattern and then things got weird..

At no surprise, the presence of pi-like sequence was heavy... but I didn't expect the rest of what I was seeing... :

For starters:

It's a fricken beautiful set of characters. Base ten and sixteen working side by side perfectly taking up 0-9+0-15 to represent our 26 char alphabet, and beyond that there's the simple fact that it actually starts with nothing ([SPACE]) and when it wraps lands dead on the other SEP reps: ' / ' ' @ ' ' \ ' ' ^_` ' ' ~ '

Then I noticed the placement of the "magical letters" ( i j ) which just so happened to be 7i{ 8{ij} 9}j --[ exactly in the middle of the Hex seqence \] ...

Then I noticed a ' 3 - d ' pattern in the sequence and it surly sent me on a s-pi-ral .. lmao

Then the g00 pattern in base 5 caught my attention...

Then I noticed the sequence we call QR . lmao I didn't know anything about it at all before but I'll tell you what//

they have the same relationship to one another as ( i j ) and they just so happen to meet at the first Hex-10-5 bridge when 10 and 16 are again together for 0-9...

So respectively , i-j are 0-1 [unicode] ; q-r are 0-1 [hexidecimal] ; much the same as a-b ([ more easily regocnized as 0-1]) are.

Basically I've been blowing my mind in amazement and I don't even know if what I'm seeing is correct.

The sequence that I extracted by finding the most closely connected characters to this pattern looks pretty powerfull..

8 ( i j ) * + A B , 1 2

I haven't had time to play with that yet since most of this was today.

Humorous observation:

The play of " d " is interesting, since it is universally regocnized as a debug/or deletion sub;

the ONLY occurence of " N O " meeting with their most-days neighbor happens at " D " " - no " and following ' n o ' E 0 F 3 ?!

so.. Delete [then)minus] - then ' no E ' ( take your pick.. pattern, echo, exist, equals..) then " 0 " F 3 [ No exist $0; force|file|find $3 (error) instead. ]
[Samsung Epic 4G Touch] tt281gt:
Brain has been blown
[Samsung Epic 4G Touch] blackcanopy:
With all that numeric /alphabet talk, I gotta ask, will this formula help to decode mysterious nursery rhymes.... Such as old McDonald naming his farm {ei} {ei}=o, I think there is an echo or 2 in there too.... or is this formula computer matrix specific?

... Oh yea... And if I flash the codes above, how do I know they are running. Is there a command in terminal I can use? :confused::p;)

I'm sorry, but that's all I could come up with as a diversion from the fact I have NO clue what to think of your findings other than it provided some interesting reading and scratching my head the WHOLE day... Lol

Sent from my SPH-D710 using Xparent BlueTapatalk 2
[Samsung Epic 4G Touch] PhAkEer:
Trust when I say that I don't even know if I "found" anything.

III added to the sequence: Because of that simple truth any pattern that emerged could have been

present due to it being a pattern in the back of my brain while I was adding what seemed to be logic.

Tell you what though, I was scratching my head with you..

Regardless of any pattern or lack thereof it still led to me having a better understanding of regex`

in general and I've finally started to write an interesting script as a result.

I'm having trouble with it since it is the first time I have actually tried to utilize styling and commenting.

I'm trying to setup a `sed ' or `awk ' based collection of useful commands to be called on in the event of

else

Basic idea is this... line 1 is "#!$" , right ?

So lines 2 through 10 will try to focus on one general goal ( setup in this case )

Line 11 will set up a `sed 'lookup index' and `append it to the bottom, and will also contain the needed code for sed to number every line.

I'm trying to even include alphabetic harmony in the calls:

#'/./='#'s/./N; s/\n/ /'#'s/$/0awk1busybox2cat34echo5find6grep7sed8haventbuildit9allyet/'

so it's still only the start of the script and already

sed `awk -F # '{print $3}'

is all that's needed to append the lookup index and with a command something like

sed 's/\(.\)*[^0].*\1\([^0-9]*\).*/\2/'

it would sub all cases of " 2 " with " cat " ;

etc
[Samsung Epic 4G Touch] PhAkEer:
have you guys been playing around in terminal emulator at all?

The things I've noticed are pretty fun for me. Like:

I've always hated that " * " isn't a variable that echo can work with..

That's a huge part of why I need do`loops` in the first place...

Try this though

echo **/**/**/**/*q/*q/**

lol

now try it like this:

for loop in `echo **/**/**/**/*q/*q/** ` ;do

sleep 0.2|echo $loop

done

ready for this ?

for loop in `echo **/**/**/**/*q/*q/** ` ;do

sleep 0.2|echo $loop\=$(sed !p $loop)

done

( holy crap!!! I just made this as I was posting it and it's fricken good! )
[Samsung Epic 4G Touch] PhAkEer:
Alright, I may be only speaking for me, but I find what that turned into very useful and it will be included in future tweaks of mine

for anyone interested:

su
ls_gov()
{
for i in `echo /sys/*/*/*/*q/*/*` ;do
echo $i\ $(sed !p $i) |awk -F / '{print $7,$8}'
done
}
ls_gov

making ls_gov one command that will display your current governor and settings despite what governor you change to.

:)
[Samsung Epic 4G Touch] PhAkEer:
now I just need a way to reverse it.

for i in `echo /sys/devices/virtual/block/*/*ue/*` ;do
echo $i\ $(sed !p $i) |sed 's/ /=/g' >>O
done

alright, I've got a present for you

\( After entering the above .. \)

for i in add_random affinity discard rotational read_ahead scheduler
do
grep -e -i -e $i O >>/data/local/$i
done
ls /data/local

BAHA! I guess I AM Old Mcdonald

\( From that point a simple sed sub and sysctl write command should do it \)

busybox sysctl -w `sed 's/=.*$/=deadline/g' scheduler`