Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#197861 - 10/01/2004 17:22 Hijack v352 - fixed "battery icon after standby"
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14472
Loc: Canada
Read the announcement here

Top
#197862 - 10/01/2004 18:23 Re: Hijack v352 - fixed "battery icon after standby" [Re: mlord]
Laura
pooh-bah

Registered: 16/06/2000
Posts: 1682
Loc: Greenhills, Ohio
Thanks Mark. It worked for me and I've had that problem for a long time.
_________________________
Laura

MKI #017/90

whatever

Top
#197863 - 10/01/2004 19:02 Re: Hijack v352 - fixed "battery icon after standby" [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31563
Loc: Seattle, WA
Hey, too cool! I'm glad you found a solution to that one.

While you're in working-on-hijack mode, is there any way we can fix the old bug where two programs get run at the same time?

Example: I have two @DC @EXEC lines in my config.ini. One of them starts Emphatic, the other starts GPSapp.

When I go to the Hijack menu and select "Emphatic", what I get, instead of just emphatic, is a flickering screen of GPSapp and Emphatic flashing back and forth as they fight to draw on the same screen. This only happens intermittently, so I don't know exactly what causes it. Any ideas?
_________________________
Tony Fabris

Top
#197864 - 10/01/2004 22:28 Re: Hijack v352 - fixed "battery icon after standb [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14472
Loc: Canada
Mmm...

With the current API, the best solution would be to have one or both of those apps "fixed", to not return control to Hijack until they have finished their respective initializations..

Within Hijack and the current API, the best I could do inside Hijack would be to insert a small delay of a second or so between ;@EXEC calls, to give time for a previous exec to complete initialization before running the next one. This will slow down the boot-up by (N -1) seconds for N apps (N==2 in your case). Probably not a biggie -- how about I parameterize it, with a ;@DELAY macro or something?

Cheers

Top
#197865 - 10/01/2004 22:32 Re: Hijack v352 - fixed "battery icon after standb [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14472
Loc: Canada
Mmm.. oh, wait a sec -- you could do this yourself, if only the empeg image had a "sleep" command installed. But since it's missing, I suppose I'll do it inside Hijack for now.

I'm actually considering making my own "empeg" distro, based on BusyBox to add lots of new Linux commands basically "for free". But meanwhile..

-ml

Top
#197866 - 10/01/2004 22:48 Hijack v353: new ;@DELAY macro for config.ini [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14472
Loc: Canada
Okay, here's what I've done (v353). There is now a new ;@DELAY macro (no parameters) that simply pauses execution for one second, per instance.

So if you've got two apps that are clashing, you can try this in config.ini:

;@EXEC_ONCE first_app args
;@DELAY ;; pause for one second
;@EXEC_ONCE second_app args


Any better now?


Edited by mlord (10/01/2004 22:53)

Top
#197867 - 10/01/2004 22:49 Re: Hijack v352 - fixed "battery icon after standb [Re: Laura]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14472
Loc: Canada
>Thanks Mark. It worked for me and I've had that problem for a long time.

Oh goodie! Thanks for trying it Laura!

(waves)

Top
#197868 - 11/01/2004 01:35 Re: Hijack v353: new ;@DELAY macro for config.ini [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31563
Loc: Seattle, WA
Any better now?
I'm going to give it a shot and let you know. Can't tell from my desk because without the GPS unit plugged in, I can't get it to fail reliably. Next time I'm in the car I'll mess with it and see.

Of course, now that you've described the reason it happens, I have to say that I never tried simply switching the order of the @exec items because I didn't think it would have made a difference. Now it seems that might have some bearing on this problem.

In any case, I'll leave the two items in the current order to check and see if the delay fixes the problem.

Thanks for doing this, Mark! You da man.
_________________________
Tony Fabris

Top
#197869 - 11/01/2004 02:04 Re: Hijack v353: new ;@DELAY macro for config.ini [Re: tfabris]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31563
Loc: Seattle, WA
Any better now?
Ach, no, just got it to reproduce here at my desk after adding the ;@delay statement. Select "emphatic" from the menu, press the knob to make emphatic's menu appear, and got a brief flash of "Waiting for data from GPS receiver".

I'm going to try re-ordering the items along with the ;@delay statement and try it in the car officially tomorrow or Monday.
_________________________
Tony Fabris

Top
#197870 - 11/01/2004 02:15 Re: Hijack v353: new ;@DELAY macro for config.ini [Re: tfabris]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31563
Loc: Seattle, WA
Seems to be behaving itself better with the order reversed plus the delay statement between them. Don't know if this was due to just the order reversal or if the delay statement was a factor.
_________________________
Tony Fabris

Top
#197871 - 11/01/2004 10:17 Re: Hijack v353: new ;@DELAY macro for config.in [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14472
Loc: Canada
Adding a second DELAY could be enough to "fix" it, but I suspect having GPSapp last in the sequence will have the most effect -- it has to communicate with the GPSr over a slow serial link, so it's going to be the slower one to get started up.

Cheers

Top
#197872 - 11/01/2004 12:18 Re: Hijack v353: new ;@DELAY macro for config.in [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31563
Loc: Seattle, WA
Yeah, all this time I had GPSapp first, so that doesn't surprise me. Now that GPSapp is second, it seems to behave itself much better. I'll report again after I've had a chance to mess with it in the car a bunch of times.
_________________________
Tony Fabris

Top
#197873 - 11/01/2004 12:49 Re: Hijack v353: new ;@DELAY macro for config.in [Re: mlord]
skibum
enthusiast

Registered: 27/03/2002
Posts: 248
Loc: Swindon, UK
Mark, as the ext3 code is now part of your source tree, any reason why you don't/can't build a ext3 version at the same time you build the normal version?

Would save waiting for Mike to do it, or building it myself. I would have though a simple makefile change for you would be the easiest for everyone? Support obviously still via Mike.
_________________________
Andy MK2a 60GB Amber 040103916 32mb/Light Kit MK2a 50GB Amber 030102560 32mb

Top
#197874 - 11/01/2004 13:01 Re: Hijack v353: new ;@DELAY macro for config.in [Re: skibum]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14472
Loc: Canada
Disk space.

-ml

Top
#197875 - 11/01/2004 15:36 Re: Hijack v353: new ;@DELAY macro for config.in [Re: skibum]
mcomb
pooh-bah

Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
Would save waiting for Mike to do it, or building it myself.

I suppose I could setup a little script to do it automatically. Checks Mark's site occasionally for new versions and automate builds. I am not sure if enough people actually download them from me to be worth the trouble though?

-Mike
_________________________
EmpMenuX - ext3 filesystem - Empeg iTunes integration

Top
#197876 - 11/01/2004 17:37 Re: Hijack v353: new ;@DELAY macro for config.in [Re: mcomb]
skibum
enthusiast

Registered: 27/03/2002
Posts: 248
Loc: Swindon, UK
Mark and Mike,

It was just a thought. I've been using the ext3 stuff since Mike did it and its great. Would never go back to ext2.

Any reason the default build can't include ext3? Wouldn't have thought that would require more than 100k of space.

I wonder how many people do use it?
_________________________
Andy MK2a 60GB Amber 040103916 32mb/Light Kit MK2a 50GB Amber 030102560 32mb

Top
#197877 - 11/01/2004 19:23 Re: Hijack v353: new ;@DELAY macro for config.in [Re: skibum]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14472
Loc: Canada
Setting up ext3 is not something that all but perhaps 10 people here might ever seriously want to do -- I haven't even bothered, and I'm a Linux kernel developer by profession!

That said, the other 2000 or so Empeg owners would probably prefer to retain the extra 150-200KB of RAM for buffering music, not for dead code they'd never use.

I believe that ALL of Hijack's current features together add less than that amount of memory overhead!

Cheers

Top
#197878 - 11/01/2004 19:35 Re: Hijack v353: new ;@DELAY macro for config.in [Re: skibum]
mcomb
pooh-bah

Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
I've been using the ext3 stuff since Mike did it and its great.

Thanks, glad to know that comes in handy for people as it took quite a bit of time to get it working in the first place.
Any reason the default build can't include ext3?

It uses extra memory and is of no use unless you install the extra utils to actually convert your filesystems to ext3. So for most hijack users it would be a waste. And of course there are mixed opinions here about if ext3 is worth the overhead for a filesystem that is usually mounted read only.
I wonder how many people do use it?

I only seem to get 5 or 10 downloads of any given version from my site. Some people of course compile their own kernel or don't download every version I post. Incidentally, I'll put up a new version from work tomorrow. I just got back from CES earlier today and I am still recovering from the time in vegas

-Mike
_________________________
EmpMenuX - ext3 filesystem - Empeg iTunes integration

Top
#197879 - 12/01/2004 14:42 Re: Hijack v353: new ;@DELAY macro for config.in [Re: mcomb]
mcomb
pooh-bah

Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
Incidentally, I'll put up a new version from work tomorrow

OK, an ext3 version of hj353 is up on my site if you still need it.

-Mike
_________________________
EmpMenuX - ext3 filesystem - Empeg iTunes integration

Top
#197880 - 12/01/2004 16:15 Re: Hijack v353: new ;@DELAY macro for config.in [Re: mcomb]
skibum
enthusiast

Registered: 27/03/2002
Posts: 248
Loc: Swindon, UK
Thanks Mike, will grab it in the morning.
_________________________
Andy MK2a 60GB Amber 040103916 32mb/Light Kit MK2a 50GB Amber 030102560 32mb

Top