Unoffical empeg BBS

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

Topic Options
#318592 - 29/01/2009 22:34 hijack feature 2
Boelle
addict

Registered: 22/11/2007
Posts: 475
Loc: Denmark, Odense
another idea.... i just got ben's fan controller installed and running.... but it could be nice to have a menu option to set the vaules for turning the fan on and off... maybe also bee able to tell what temp ben's controller is reading... along with a value that correct that reading.. just like in high temp warning
_________________________
the "monkey" who learned to check a harddrive

Top
#318611 - 29/01/2009 23:17 Re: hijack feature 2 [Re: Boelle]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14472
Loc: Canada
Menu thingies take up precious RAM. Anything in the kernel gets permanently loaded in RAM, reducing the amount for the unit's primary function of playing tunes.

So, when it comes to new features, I mostly don't put them into the default build unless there's widespread interest, or unless somebody the community really reveres has a nagging need for it (eg. Hugo, Patrick, Tony ..). Or unless *I* want it on *my* players. smile

The fan controllers are quite rare, so they don't pass that test, yet.

Cheers

Top
#318614 - 29/01/2009 23:25 Re: hijack feature 2 [Re: mlord]
Boelle
addict

Registered: 22/11/2007
Posts: 475
Loc: Denmark, Odense
and doing it like this:

[hijack]
;@MENUEXEC Set_Date_Time /rdate -s 10.0.0.2 &>/dev/null

does not take it out of RAM? but i guees you dont change vaules that much... just sounded like a good idea
_________________________
the "monkey" who learned to check a harddrive

Top
#318619 - 29/01/2009 23:31 Re: hijack feature 2 [Re: Boelle]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14472
Loc: Canada
Originally Posted By: Boelle
and doing it like this:

[hijack]
;@MENUEXEC Set_Date_Time /rdate -s 10.0.0.2 &>/dev/null

does not take it out of RAM? but i guees you dont change vaules that much... just sounded like a good idea

The line above is tiny, and is not permanently in RAM. The program it calls (rdate), is not tiny, and is on disk, not permanently in RAM either.

Cheers


Edited by mlord (29/01/2009 23:32)

Top
#318620 - 29/01/2009 23:33 Re: hijack feature 2 [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14472
Loc: Canada
Basically, the golden rule for kernel code is, don't put it into the kernel unless it is extraordinarily difficult to do from userspace and simple to do in kernel space.

With Hijack, I extend that rule, to include things that are of wide (or simply my own personal) interest, which are not trivial to do in userspace.

-ml

Top
#318647 - 30/01/2009 15:16 Re: hijack feature 2 [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31563
Loc: Seattle, WA
Quote:
or unless somebody the community really reveres has a nagging need for it (eg. Hugo, Patrick, Tony ..).

Aw shucks... blush
_________________________
Tony Fabris

Top