Page 1 of 2

How do i Edit the Clocksourcs0 file?

PostPosted: February 11th, 2011, 2:06 pm
by Dub77
Hello people can somebodey tell me how to edit the current clocksource to "jiffies" the file path is:
/sys/devices/system/clocksource/clocksource0
Ive tried with in root explorer and text edit( it says it has saved but when i save and exit it then says no changes were made....
Is it poss to do this via sdk/adb using cmd prompt??
I think this is the issue with my clock not updateing and reverting back to the time i last booted up the scroll every time i re-boot...
Cheers
Darren

Re: How do i Edit the Clocksourcs0 file?

PostPosted: February 11th, 2011, 5:23 pm
by Detection
if you connect the scroll, then open the command prompt in the adb folder and type

adb pull /sys/devices/system/clocksource/clocksource0

It will pull the 2 files you needed to the adb folder

edit them with Notepad++ and then use the adb command

adb push available_clocksource /sys/devices/system/clocksource/clocksource0

and

adb push current_clocksource /sys/devices/system/clocksource/clocksource0


That should replace the old ones with your new edited ones

Reboot the scroll

Re: How do i Edit the Clocksourcs0 file?

PostPosted: February 11th, 2011, 5:29 pm
by Dub77
Cool I'll give it a go ;) where do I open the cmd window ?? Platform tools as in the Market fix ??

Re: How do i Edit the Clocksourcs0 file?

PostPosted: February 11th, 2011, 5:40 pm
by Detection
Yea same place - hold shift, right click in that folder, and choose open "command window here"

Re: How do i Edit the Clocksourcs0 file?

PostPosted: February 11th, 2011, 6:23 pm
by Dub77
Hi Detection the pull cmd works great the 2 files show up in the tools folder then that allows me to edit them that all works ok then it comes to push them back and the available will not go back says "operation not permited"
the current clocksource goes back. Then i reboot and the files still say the same, the current stays at "ocsr".
Ive checked the permissions of the files and allowed everything so im a bit lost now......
Maybe they are files that are not allowed to be edited???????

Darren

Re: How do i Edit the Clocksourcs0 file?

PostPosted: February 11th, 2011, 9:20 pm
by Detection
Try

adb pull /sys/devices/system/clocksource/

Edit the files inside the folder and push the full folder back

adb push /clocksource0 /sys/devices/system/clocksource/

Re: How do i Edit the Clocksourcs0 file?

PostPosted: February 11th, 2011, 9:35 pm
by Dub77
I will report back......cheers
;)

Re: How do i Edit the Clocksourcs0 file?

PostPosted: February 11th, 2011, 9:46 pm
by Detection
You could also try this - Ive seen this in a few guides for different adb commands


adb push available_clocksource /sys/devices/system/clocksource/clocksource0/available_clocksource

and

adb push current_clocksource /sys/devices/system/clocksource/clocksource0/current_clocksource


OR THIS

adb push available_clocksource /sys/devices/system/clocksource/clocksource0/available_clocksource available_clocksource

and

adb push current_clocksource /sys/devices/system/clocksource/clocksource0/current_clocksource current_clocksource

Re: How do i Edit the Clocksourcs0 file?

PostPosted: February 11th, 2011, 10:02 pm
by Dub77
No No luck again i get either, cannot stat '/clocksource0': or permission denied ????????
Could you do me a quick favour please mate and see what your current clocksource is set to....
Cheers
Darren

Re: How do i Edit the Clocksourcs0 file?

PostPosted: February 12th, 2011, 1:01 am
by Detection
Just open those 2 files I sent you with Notepad++