#88494 - 17/04/2002 09:35
Hijack v256: that blinkin' LED
|
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]
|
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.
|
Top
|
|
|
|
#88496 - 17/04/2002 09:45
Re: Hijack v256: that blinkin' LED
[Re: mlord]
|
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]
|
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]
|
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]
|
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]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14496
Loc: Canada
|
|
Top
|
|
|
|
#88501 - 17/04/2002 10:11
Re: Hijack v257
[Re: mlord]
|
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?
|
Top
|
|
|
|
#88502 - 17/04/2002 10:17
Re: Hijack v257
[Re: tonyc]
|
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]
|
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]
|
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?
|
Top
|
|
|
|
#88505 - 17/04/2002 10:28
Re: Hijack v256: that blinkin' LED
[Re: mlord]
|
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!
|
Top
|
|
|
|
#88506 - 17/04/2002 10:37
Re: Hijack v257
[Re: tonyc]
|
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]
|
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]
|
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]
|
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?
|
Top
|
|
|
|
#88511 - 17/04/2002 11:45
Re: The boy with pingpong ball eyes..
[Re: rob]
|
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]
|
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]
|
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.
|
Top
|
|
|
|
#88514 - 17/04/2002 16:38
Re: Hijack v256: that blinkin' LED
[Re: snoopstah]
|
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]
|
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
|
|
|
|
#88517 - 21/04/2002 02:32
Re: Hijack v257
[Re: mlord]
|
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]
|
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]
|
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.
|
Top
|
|
|
|
#88520 - 21/04/2002 12:41
Hijack v261
[Re: f_devocht]
|
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]
|
member
Registered: 28/12/2001
Posts: 159
Loc: Belgium
|
|
Top
|
|
|
|
|
|