TiVo Community Forum banner
61 - 80 of 1645 Posts

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #61 ·
The latest beta (top of thread) adds support for editing the data files for LJay's new "What's On" module and for moviesort. In addition, the ability to edit any read/write file is added. Updaters should copy both hackman.itcl and hackman.cfg.
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #62 ·
It's been about a month and the latest version of hackman has been downloaded well over a hundred times and I haven't heard any further complaints or bug reports. So I think it's time to declare the project finished (for now) and designate the latest release as Version 1.0.

Nothing other than the version designation has been changed from Beta 1.16, so there's no real need to download this other than to ensure that you have the latest version.

Of course, if any problems arise, or if there are requests for other features or support for new hacks, please make those requests known here.
 

·
Registered
Joined
·
244 Posts
ok, how about a hack to start/stop cachecard caching?

jafa
Site Admin

Joined: 13 Jan 2004
Posts: 841

Posted: Sun Apr 18, 2004 8:29 pm Post subject:

--------------------------------------------------------------------------------

Hi,

You can disable caching by telnetting in, running "cachectl -n -t" (cachectl with test and no splash screen) and then CTRL-C aborting during the write or verify stages.

You can re-enable cacheing by running "cachectl -n" (no need to do a memory test -t).
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #66 ·
Two problems:

1. I don't have a cachecard, so I couldn't test it.

2. Testing would be necessary, as I'm very uncertain how to send a ctrl-c without some experimentation.

You would certainly be able to at least start cachecard from hackman using the bash command line feature.

If anybody has a surefire method for sending a ctrl-c through an "exec /bin/bash -c XXX" type command, please let me know. Then I could set it up and PM it to you for testing. Also, how much time should elapse between the cachectl command and the ctrl-c? And where does cachctl live on your box?
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #68 ·
cachecard_user, please tell me if the ps ax/kill pid method works to shut down the cachecard. That is what hackman does now to stop programs.

But I suspect that jafa is giving you his method because kill reboots the TiVo. But if it doesn't and if it shuts down politely, then I can definitely add cachecard support to hackman. Let me know.
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #70 ·
Thank you, Arthur. That helps.

Here's what I need to create a prototype for testing:
1. Path to cachecard
2. Answer to question re: killing cachecard with PID (kill <PID>) -- does it reboot TiVo?
3. Answer to question re: Will Arthur's method alone do it? (kill -INT <PID>) -- without running "cachectl -n -t" first
4. Time elapsed between the cachectl command and the ctrl-c in the method suggested by jafa

What I really need to know is which of the following sets of commands shuts down cachecard gracefully:
1. kill <pid>
2. kill -INT <pid> (may have to experiment with case)
3. cachectl -n -t
kill -INT <pid>
All of these depend on running ps ax first to determine cachectl's pid.

If somebody with a cachecard will do a little telnet experimentation and fieldwork for me, I can whip up an experimental version to try.
 

·
Registered
Joined
·
244 Posts
bash-2.02# cachectl: Driver version: 20040522tr1/20040522tr2
cachectl: 512MB DIMM detected
cachectl: Found partition 0:10 (512MB)
cachectl: Found partition 0:12 (0MB)
cachectl: 512MB database detected
cachectl: Writing.... 0%
bash-2.02# ps ax
PID TTY STAT TIME COMMAND
1 ? SW 0:00 (init)
2 ? SW 0:03 (kflushd)
3 ? SW 0:23 (kswapd)
...blah....blah....blah...
140 ? S 0:00 (myworld)
141 ? S 5:06 ContextMgr eve
235 p0 S 0:02 /bin/bash -login
237 p1 S 0:00 /bin/bash -login
239 p0 R 0:04 cachectl -n -t
240 p1 R 0:00 ps ax
bash-2.02# kill -int 239
bash-2.02# ps ax
PID TTY STAT TIME COMMAND
1 ? SW 0:00 (init)
2 ? SW 0:03 (kflushd)
3 ? SW 0:23 (kswapd)
51 ? S 0:00 update (bdflush)
...blah...blah...blah...
139 ? S 0:05 PvrMain
140 ? S 0:00 (myworld)
141 ? S 5:06 ContextMgr eve
235 p0 S 0:02 /bin/bash -login
237 p1 S 0:00 /bin/bash -login
241 p1 R 0:00 ps ax
bash-2.02#
bash-2.02#
path is /sbin/cachectl
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #73 ·
Cache, alright, this is all very good news. Just one more favor...believe it or not, everything will be simpler if a simple kill <pid> will do the job. That way, I don't have to create an exception for cachecard and I can shut it down the way I'm shutting down most other apps. So could you please see if (in the example above) kill 239 does the trick with no adverse effects?

And do you have to run cachectl -n -t first, or is there a cachectl app already running?
 

·
Registered
Joined
·
244 Posts
cachectl has to be invoked, and terminates when it is finished testing and/or prefetching. As to weather we are doing anything constructive... I have to defer to Jafa.

bash-2.02# cachectl -n -t &
[1] 251
bash-2.02# cachectl: Driver version: 20040522tr1/20040522tr2
cachectl: 512MB DIMM detected
cachectl: Found partition 0:10 (512MB)
cachectl: Found partition 0:12 (0MB)
cachectl: 512MB database detected
cachectl: Writing.... 0%
bash-2.02# ps ax
PID TTY STAT TIME COMMAND
1 ? SW 0:00 (init)
2 ? SW 0:03 (kflushd)
3 ? SW 0:25 (kswapd)
51 ? S 0:00 update (bdflush)
...blah...blah...blah
141 ? S 6:44 ContextMgr eve
250 p0 S 0:00 /bin/bash -login
251 p0 R 0:04 cachectl -n -t
252 p0 R 0:00 ps ax
bash-2.02# kill 251
bash: ki: command not found
bash-2.02# kill 25.1
bash-2.02# ps ax
PID TTY STAT TIME COMMAND
1 ? SW 0:00 (init)
2 ? SW 0:03 (kflushd)
3 ? SW 0:25 (kswapd)
51 ? S 0:00 update (bdflush)
59 ? S 1:00 syslogd -p /var/dev/log -m 10000
...blah...blah...blah...
250 p0 S 0:00 /bin/bash -login
254 p0 R 0:00 ps ax
[1]+ Terminated cachectl -n -t
bash-2.02# ps ax
PID TTY STAT TIME COMMAND
1 ? SW 0:00 (init)
2 ? SW 0:03 (kflushd)
3 ? SW 0:25 (kswapd)
51 ? S 0:00 update (bdflush)
59 ? S 1:00 syslogd -p /var/dev/log -m 10000
...blah...blah...blah...
1 ? S 6:45 ContextMgr eve
250 p0 S 0:00 /bin/bash -login
255 p0 R 0:00 ps ax
bash-2.02#
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #75 ·
Anyone with a cachecard is invited to try out this experimental version of hackman with cachecard support.

Basically, what it does is start cachecard with:
cachectl -n

And stop it with
cachectl -n -t
followed by a ctrl-c

Please let me know if this works, and if it does I'll add it to the general release version.

(obsolete attachment deleted; see end of thread)
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #78 ·
That I can fix.

But I've been thinking about this and I need to understand how cachecard works a little better. I'm assuming that there is no app always running while cachecard is operational...that you start it with cachectl, that app terminates and then you run cachectl again (with ctrl-c) to stop it.

This means that there is no application-related way to tell if cachecard is active or not. That means that hackman will look at the list of running apps, not find cachecard and only offer "start" as an option.

So my question is, how do you tell (from software) if cachecard is active or not? Then I can set the state of the start/stop button appropriately.

Or, if there is no good way to tell if cachecard is active, I can set up some kind of toggle to keep track of the status.

So please let me know if there's a way to check the cachecard status and I'll pick up from there.

And thank you for the kind words about hackman; greatly appreciated.
 

·
Woodstock-era Hacker
Joined
·
1,057 Posts
Discussion Starter · #80 ·
Okay, for each of these hacks please tell me:
1. The full path and name to the hack
2. The command used to start the hack
3. The command used to stop the hack (if any)

I don't have either of these hacks installed on my SA1 box, so I'll have to do what I'm doing with cachecard, i.e. put together an experimental version and let you tell me if it works.
 
61 - 80 of 1645 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top