Unoffical empeg BBS

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

Topic Options
#88494 - 17/04/2002 09:35 Hijack v256: that blinkin' LED
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Hijack v256 is now out.

The only new feature (that I know of, ) is that the infamous and erotic (to some) powerfully pulsating standby LED has been zapped. I'll replace it if many scream, but for the most part I suspect nobody will.

In it's place is a simple blink, once every ten seconds. The duration of the blink, and the interval between blinks, are adjustable in config.ini:

[hijack]
standbyLED_on=1 ;; in 1/100ths of a second
standbyLED_off=1000 ;; in 1/100ths of a second

It's not perfect. Even the default 1/100th sec blink is too bright for my liking, but to fix it would require a kernel thread running at real-time priority, so that finer resolution could be obtained. If somebody wants to hack one up for me, I'll look at it. Probably 30 lines of C or so.

Cheers

Top
#88495 - 17/04/2002 09:44 Re: Hijack v256: that blinkin' LED [Re: mlord]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
Woohoo!

What a great feature from a guy who supposedly doesn't have time to fuss with Hijack these days. Thanks, Mark.
_________________________
- Tony C
my empeg stuff

Top
#88496 - 17/04/2002 09:45 Re: Hijack v256: that blinkin' LED [Re: mlord]
tms13
old hand

Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
I like the pulsating LED. As Tony Fabris said, it's like the breathing of a sleeping dragon waiting to be awakened.

Since you read the settings from config.ini, I think absence of such configuration should mean "use Empeg's default" i.e. the pulsating LED.

Please count this as a scream (for optionality at least - I don't want to deprive those who like the change).
_________________________
Toby Speight
030103016 (80GB Mk2a, blue)
030102806 (0GB Mk2a, blue)

Top
#88497 - 17/04/2002 09:47 Re: Hijack v256: that blinkin' LED [Re: mlord]
rob
carpal tunnel

Registered: 21/05/1999
Posts: 5335
Loc: Cambridge UK
Can't the default behaviour continue to be an option? There's a lot of history in that pulsating light - one of the first empeg features ever implemented! My player would certainly cease to be an empeg if that behaviour was lost.

(I don't mind what those new fangled Rio models do, though)

Rob

Top
#88498 - 17/04/2002 09:54 Hijack v257 [Re: rob]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Okay, two people screamed (very politely, must be British or Canadian ).

I'll change the default back to the pulsating strobing thingie. If one sets standbyLED_on=nn in config.ini, where nn is not -1, then the new behaviour will be activated.

This will be in v257, in a few minutes.

EDIT: so, to get the "new" behaviour, you must now do this in config.ini:

[hijack]
standbyLED_on=1
Cheers


Edited by mlord (17/04/2002 10:06)

Top
#88499 - 17/04/2002 09:58 Re: Hijack v257 [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
And oh yeah, the ioctl() interface is also now implemented, for those who want to directly control the LED (when display is off) from userland. Use at your own risk.

-ml

Top
#88500 - 17/04/2002 10:01 The boy with pingpong ball eyes.. [Re: rob]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Is that really you, Rob?

Top
#88501 - 17/04/2002 10:11 Re: Hijack v257 [Re: mlord]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
And oh yeah, the ioctl() interface is also now implemented, for those who want to directly control the LED (when display is off) from userland. Use at your own risk.

Is said ioctl() interface documented anywhere?
_________________________
- Tony C
my empeg stuff

Top
#88502 - 17/04/2002 10:17 Re: Hijack v257 [Re: tonyc]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
I doubt it. It's one of the "stock" Empeg kernel ioctls(), just never did anything before.

To use it, open the display device ("/dev/display" ?), and use the ioctl like this:

int fd = open("/dev/display", O_RDRW);
if (fd != -1) {
if (0 == ioctl(fd, 1, 0)) { // enter standby mode
ioctl(fd, 2, 0); // turn off LED
ioctl(fd, 2, 1); // turn on LED
}
close(fd);
}
There are no "seatbelts" here.. so please ensure the display is in standby ("off") before fiddling with the LED.

-ml

Top
#88503 - 17/04/2002 10:17 Re: Hijack v257 [Re: mlord]
tms13
old hand

Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
You're a nice bloke, Mark.
_________________________
Toby Speight
030103016 (80GB Mk2a, blue)
030102806 (0GB Mk2a, blue)

Top
#88504 - 17/04/2002 10:24 Re: Hijack v257 [Re: mlord]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
There are no "seatbelts" here.. so please ensure the display is in standby ("off") before fiddling with the LED.

So are we talking potential hardware damage if not done in the correct sequence?
_________________________
- Tony C
my empeg stuff

Top
#88505 - 17/04/2002 10:28 Re: Hijack v256: that blinkin' LED [Re: mlord]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
BTW I'm glad that a binary multiple numbered release like v256 got such a nice feature. Hopefully you've got some real jaw-droppers planned for v512 and v1024!

_________________________
- Tony C
my empeg stuff

Top
#88506 - 17/04/2002 10:37 Re: Hijack v257 [Re: tonyc]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Should be safe enough with the sequence as shown in my example. But try at your own risk.

I think it is probably safe regardless, as the dangerous stuff is hidden in the kernel code, and always does the Right Thing (tm) in the right sequence.

Hugo mentioned elsewhere that if that part got bunged, then one might end up with two buffers trying to out-drive each other.

-ml

Top
#88507 - 17/04/2002 11:04 Hijack v258 [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Mmm.. seem to have mungled the ButtonLED illumination code.. Fixed in v258 (shortly).

-ml

Top
#88508 - 17/04/2002 11:25 Re: The boy with pingpong ball eyes.. [Re: mlord]
rob
carpal tunnel

Registered: 21/05/1999
Posts: 5335
Loc: Cambridge UK
They are cool blue sunglasses. And lots of theatrical face paint. And a top hat.

Standard SONICblue corporate dress.

Rob

Top
#88509 - 17/04/2002 11:31 Re: Hijack v257 [Re: mlord]
loren
carpal tunnel

Registered: 23/08/2000
Posts: 3826
Loc: SLC, UT, USA
So, just so i have this straight for the FAQ... the standbyLED_on and _off time periods still apply correct? So as long as _on is any value above -1, then that will be the length of the on blink in 1/100ths of a second. If no _off value is specified, it will blink every 10 seconds. Right?
_________________________
|| loren ||

Top
#88510 - 17/04/2002 11:42 Re: The boy with pingpong ball eyes.. [Re: rob]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
They are cool blue sunglasses. And lots of theatrical face paint. And a top hat.

And except for the sunglasses, he comes to work every day like that.
_________________________
Tony Fabris

Top
#88511 - 17/04/2002 11:45 Re: The boy with pingpong ball eyes.. [Re: rob]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Ah.. So, at last.. evidence of a corporate link between SonicBlue and RedHat..

Top
#88512 - 17/04/2002 11:47 Re: Hijack v257 [Re: loren]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Right.

And it's perfectly legal to disable the LED completely with standbyLED_on=0

Cheers

Top
#88513 - 17/04/2002 15:01 Re: Hijack v256: that blinkin' LED [Re: mlord]
snoopstah
enthusiast

Registered: 07/01/2002
Posts: 339
Loc: Squamish, BC
In reply to:

Even the default 1/100th sec blink is too bright for my liking...




I have no idea how these things work, but as the original LED code faded in and out, would it be possible to light it at say, 50% brightness? Or was the LED fade controlled by some kind of software PWM or something?

Cheers,

A.
_________________________
Empeg Mk2a 128G with amber lit buttons kit - #30102490

PhotoVancouver | Squamish, BC Webcam | Personal Website

Top
#88514 - 17/04/2002 16:38 Re: Hijack v256: that blinkin' LED [Re: snoopstah]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Its a firmware thing, built into the logic that runs the display board. As I noted, one could simulate varying levels of brightness in software, if a faster rate of interrupts were available (the kernel scheduler only guarantees 100 times/sec).

The idea is that LEDs are binary, they are either ON (very bright) or OFF. In-between levels of brightness are achieved by switching the LED on/off very quickly, far faster than the 100 times/sec that is easily available in the kernel.

Cheers

Top
#88515 - 17/04/2002 16:59 Re: Hijack v256: that blinkin' LED [Re: snoopstah]
xn00dlesx
new poster

Registered: 11/03/2002
Posts: 13
Im not "Screaming" or anything like that but, whenever you get the time mark it would be nice if you could make Visual- work. Right now I have Visual+ when you turn the knob clockwise, and it would be really cool if I could have Visual- when I turn the knob counterclockwise. Im not saying you have to do this right away or even at all, but just making a request. Thanks.

Top
#88516 - 17/04/2002 18:15 Re: The boy with pingpong ball eyes.. [Re: mlord]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
Yes, it's Rob, or at least someone using his admin account to put pictures like that online.


Top
#88517 - 21/04/2002 02:32 Re: Hijack v257 [Re: mlord]
f_devocht
member

Registered: 28/12/2001
Posts: 159
Loc: Belgium
Call me stupid. I don't get it. How do I completely disable that damn led?
I tried standbyLED_on=0 but it still blinks. Then tried -1, same result. What am I doing wrong here?
I'm on v260 BTW. Only discovered it after v256 was gone of course. Does it only work in v256 or what?

Frank

Top
#88518 - 21/04/2002 09:45 Re: Hijack v257 [Re: f_devocht]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
Ditto. This didn't work for me.

Tom

Top
#88519 - 21/04/2002 10:10 Re: Hijack v257 [Re: charcoalgray99]
loren
carpal tunnel

Registered: 23/08/2000
Posts: 3826
Loc: SLC, UT, USA
ditto, that's why i haven't put it in the FAQ yet.
_________________________
|| loren ||

Top
#88520 - 21/04/2002 12:41 Hijack v261 [Re: f_devocht]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Thanks for testing this for me.

Fixed & working now in v261.

Cheers

Top
#88521 - 21/04/2002 13:23 Re: Hijack v261 [Re: mlord]
f_devocht
member

Registered: 28/12/2001
Posts: 159
Loc: Belgium
Thanks Mark!

Frank

Top