How do i Edit the Clocksourcs0 file?

Got a problem with your Scroll? Unsure how to do something? Ask here! (ANY Model)

How do i Edit the Clocksourcs0 file?

Postby Dub77 » February 11th, 2011, 2:06 pm

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
Darren
Kernel version 2.6.29, FW v1.01, Android 2.1
Dub77
Serious Scroller
Serious Scroller
 
Posts: 77
Joined: January 27th, 2011, 11:28 pm
Location: Kent, UK

Re: How do i Edit the Clocksourcs0 file?

Postby Detection » February 11th, 2011, 5:23 pm

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
User avatar
Detection
Scroll Genuis
Scroll Genuis
 
Posts: 789
Joined: January 5th, 2011, 1:54 am
Location: Durham, UK

Re: How do i Edit the Clocksourcs0 file?

Postby Dub77 » February 11th, 2011, 5:29 pm

Cool I'll give it a go ;) where do I open the cmd window ?? Platform tools as in the Market fix ??
Darren
Kernel version 2.6.29, FW v1.01, Android 2.1
Dub77
Serious Scroller
Serious Scroller
 
Posts: 77
Joined: January 27th, 2011, 11:28 pm
Location: Kent, UK

Re: How do i Edit the Clocksourcs0 file?

Postby Detection » February 11th, 2011, 5:40 pm

Yea same place - hold shift, right click in that folder, and choose open "command window here"
User avatar
Detection
Scroll Genuis
Scroll Genuis
 
Posts: 789
Joined: January 5th, 2011, 1:54 am
Location: Durham, UK

Re: How do i Edit the Clocksourcs0 file?

Postby Dub77 » February 11th, 2011, 6:23 pm

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
Darren
Kernel version 2.6.29, FW v1.01, Android 2.1
Dub77
Serious Scroller
Serious Scroller
 
Posts: 77
Joined: January 27th, 2011, 11:28 pm
Location: Kent, UK

Re: How do i Edit the Clocksourcs0 file?

Postby Detection » February 11th, 2011, 9:20 pm

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/
User avatar
Detection
Scroll Genuis
Scroll Genuis
 
Posts: 789
Joined: January 5th, 2011, 1:54 am
Location: Durham, UK

Re: How do i Edit the Clocksourcs0 file?

Postby Dub77 » February 11th, 2011, 9:35 pm

I will report back......cheers
;)
Darren
Kernel version 2.6.29, FW v1.01, Android 2.1
Dub77
Serious Scroller
Serious Scroller
 
Posts: 77
Joined: January 27th, 2011, 11:28 pm
Location: Kent, UK

Re: How do i Edit the Clocksourcs0 file?

Postby Detection » February 11th, 2011, 9:46 pm

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
User avatar
Detection
Scroll Genuis
Scroll Genuis
 
Posts: 789
Joined: January 5th, 2011, 1:54 am
Location: Durham, UK

Re: How do i Edit the Clocksourcs0 file?

Postby Dub77 » February 11th, 2011, 10:02 pm

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
Darren
Kernel version 2.6.29, FW v1.01, Android 2.1
Dub77
Serious Scroller
Serious Scroller
 
Posts: 77
Joined: January 27th, 2011, 11:28 pm
Location: Kent, UK

Re: How do i Edit the Clocksourcs0 file?

Postby Detection » February 12th, 2011, 1:01 am

Just open those 2 files I sent you with Notepad++
User avatar
Detection
Scroll Genuis
Scroll Genuis
 
Posts: 789
Joined: January 5th, 2011, 1:54 am
Location: Durham, UK

Next

Return to HELP REQUESTS (all models)

Who is online

Users browsing this forum: No registered users and 21 guests

cron