Unoffical empeg BBS

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

Page 1 of 2 1 2 >
Topic Options
#61102 - 19/01/2002 04:24 empegVNC-0.1 released
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
empegVNC-0.1 has been released. It requires a developer image and the Hijack kernel, and runs as a standalone userland application.

This version has been almost completely rewritten.

It now uses what is likely the best RFB encoding method, assuming that I'm not going to see what the changes are since the last update. This might change in future releases.

It also supports controlling the empeg via the VNC client in the form of keypresses. Check the download web page for specifics. It does not, however, either show or control the Hijack menu system. This should also be fixed in a future release.

There is not currently a way to start the VNC server either on boot or without logging into the empeg in some way. (Too bad Mark got rid of SITE EXECs.)

This version fixes the speeded-up-visual problem of the last release. While I have not exhausitvely researched the cause of that problem, I think it had to do with continually open()ing and close()ing and/or mmap()ing and munmap()ing the /dev/display interface.

Some of the previous features are gone. Namely, the VNC display selection and the delay time. It now runs only on VNC display 0 and it always updates as fast as possible. These switches will likely be added back in future versions.

It seems to work properly for me, but I have not done extensive testing. Specifically, I don't have the facility to attach the audio outputs of my empeg to anything in the house, so I cannot test whether or not playback functions properly when there is a client attached. Comments on this, as well as any other issue, are appreciated.
_________________________
Bitt Faulk

Top
#61103 - 19/01/2002 07:48 Re: empegVNC-0.1 released [Re: wfaulk]
Nosferatu
enthusiast

Registered: 24/08/2001
Posts: 344
Loc: France, Champagne
Great work man !!!

It can be started in the init script so.

I am sure that you can find a way with Mark to add commands to start and and stop the vnc server from the Hijack itself.

Ask him ...
_________________________
Empeg IIa - 10 Gb - Red Fascia - Tuner, the day is coming - I Will Strike From the Grey -

Top
#61104 - 19/01/2002 13:22 Re: empegVNC-0.1 released [Re: wfaulk]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Actually, if someone (wfaulk?) wants to whip up a working "site exec" that (1) waits for completion and (2) returns the stdout/stderr from whatever was run, then we can see if it will squish small enough to make it into the Hijack kernel.

This functionality is NEEDED by lots of stuff, including EmpVNC.

Cheers

Top
#61105 - 19/01/2002 21:47 Re: empegVNC-0.1 released [Re: wfaulk]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
I also just added a Java applet that can be installed on the empeg to allow access to the VNC server from any java-enabled web browser. Take a look at the web page for more info.
_________________________
Bitt Faulk

Top
#61106 - 19/01/2002 22:08 empegVNC-0.2 released [Re: wfaulk]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
empegVNC-0.2 has been released.

The only change is that it now automatically dissociates itself from the controlling terminal so that it need not be backgrounded manually via an "&".
_________________________
Bitt Faulk

Top
#61107 - 19/01/2002 23:43 Re: empegVNC-0.1 released [Re: wfaulk]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
I also just added an MPEG video so you guys can see what it looks like. It's much faster than the video, as I had to capture at about 5fps so that I could get it down to about 6MB, which is still too big. Try not to kill my DSL line, please.
_________________________
Bitt Faulk

Top
#61108 - 20/01/2002 00:09 Re: empegVNC-0.1 released [Re: wfaulk]
Yang
addict

Registered: 14/01/2002
Posts: 443
Loc: Raleigh, NC
This would be really cool to integrate with the display server stuff to provide the control/display via VNC and the upload/download from the web interface..

Top
#61109 - 20/01/2002 00:19 Re: empegVNC-0.1 released [Re: Yang]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Okay, so DisplayServer has (had?) two functions, if I understand correctly. It allowed display and control of the player itself from a remote interface. It also allowed ``streaming'' downloads of music from the player external to the usual interface. My VNC server does the former, and Mark Lord's khttpd and/or kftpd are about a millisecond from doing the latter. So why do we need to integrate with DisplayServer?
_________________________
Bitt Faulk

Top
#61110 - 20/01/2002 01:01 Re: empegVNC-0.1 released [Re: wfaulk]
Yang
addict

Registered: 14/01/2002
Posts: 443
Loc: Raleigh, NC
I don't mean to merge the code, but that these complement each other very well..

Top
#61111 - 20/01/2002 01:29 Re: empegVNC-0.2 released [Re: wfaulk]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
Great hack, Mr. Faulk!

How much memory does it use (so that I know whether to always start it from init and how much, if any, memory I have to reserve for it on my 12MB MkII in addition to that used by Mark's menagerie of kernel daemons)?
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#61112 - 20/01/2002 03:37 Re: empegVNC-0.2 released [Re: bonzi]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Let's see. It has a buffer of about 4k in it. That should be the vast majority of the memory used in the process. In trying to find out more info, I discovered that the VM will kill extra processes if it runs out of memory. I can only say that I never saw that happen when I was only running empegVNC.
_________________________
Bitt Faulk

Top
#61113 - 20/01/2002 03:39 Re: empegVNC-0.1 released [Re: Yang]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Unless I'm missing a feature of DisplayServer, a combination of Hijack (if and when it supports generating or delivering playlists) and empegVNC obviate the need for DisplayServer. Am I missing something?
_________________________
Bitt Faulk

Top
#61114 - 20/01/2002 03:41 Re: empegVNC-0.2 released [Re: wfaulk]
Nosferatu
enthusiast

Registered: 24/08/2001
Posts: 344
Loc: France, Champagne
EmpgVNC 0.2 Relased , I think we have an other fast coder !!!!!
_________________________
Empeg IIa - 10 Gb - Red Fascia - Tuner, the day is coming - I Will Strike From the Grey -

Top
#61115 - 20/01/2002 03:54 Re: empegVNC-0.2 released [Re: wfaulk]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
So, for all practical purposes, zero. Excellent!
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#61116 - 20/01/2002 03:58 Re: empegVNC-0.2 released [Re: Nosferatu]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Hah. The change was adding about 4 lines of code:
/* disconnect from the controlling terminal */

if (fork()) {
_exit(0);
}
setsid();


I'm actually remarkably slow.
_________________________
Bitt Faulk

Top
#61117 - 20/01/2002 05:17 empegVNC-0.3 released [Re: wfaulk]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
empegVNC-0.3 has been released.

It fixes long keypresses, which didn't work before.

I've also noticed that empegVNC sometimes hangs up when the player is busy, like when it's ``Filling up space''. It can occasionally wedge, and sometimes even the player process wedges. These seem to occur only when a visual is being displayed. I might try to see if niceing empegVNC will help. If it happens, it's usually fixable by sending the player a `q' at the console. If that fails, send a Ctrl-C at the console. If that fails, pull the plug.
_________________________
Bitt Faulk

Top
#61118 - 20/01/2002 05:26 Re: empegVNC-0.3 released [Re: wfaulk]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
I just noticed that I over-fixed long keypresses to the extent that now turning the knob requires that you press left or right for each knob-click. I can see how this might be preferable. Anyone have any thoughts on this?
_________________________
Bitt Faulk

Top
#61119 - 20/01/2002 12:48 Re: empegVNC-0.3 released [Re: wfaulk]
Nosferatu
enthusiast

Registered: 24/08/2001
Posts: 344
Loc: France, Champagne
I do have an other question.

Could it be possible to make a prog that is resident in the tray (near the clock) with button bar to control the empeg.

I ued this as an winamp plugin and I think it could be very useful to do this.

_________________________
Empeg IIa - 10 Gb - Red Fascia - Tuner, the day is coming - I Will Strike From the Grey -

Top
#61120 - 20/01/2002 13:08 Re: empegVNC-0.3 released [Re: Nosferatu]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
First, I don't know a thing about Windows programming. Second, I'm sure something is possible, but I don't understand exactly what you want. You want a tray icon that will pop up a menu with fast-forward, play, pause, etc.? I'm sure it can be done, but I'm not the man to do it.
_________________________
Bitt Faulk

Top
#61121 - 21/01/2002 03:18 Re: empegVNC-0.3 released [Re: wfaulk]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
Hm, it really might be preferable. I have difficulties doing single knob clicks with 0.2. OTOH, autorepeat is also handy.... In other words, I haven't decided yet

I have not seen VNC server hang (in perhaps 20 hours of playing), but it does slow down (stops for 2-3s, actually) when the player is accessing disk. That's to be expected, I suppose.

A wish: larger image. It would be perfect if the client could scale the image (ideally, by full resampling with antialiasing), but I don't think standard client is capable of that. Would simple pixel duplication (2x2 for one) on server side be too memory, CPU and bandwidth consuming?
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#61122 - 21/01/2002 04:22 Re: empegVNC-0.3 released [Re: bonzi]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
I think I saw the same thing that you saw about the single knob clicks in the previous versions. I think that I fixed that plus some more in v0.3. That is, I think I can make single clicks happen and make repeats work as well. I'll give it a shot and see what happens.

As far as a larger image goes: there are some clients that have a built-in resizing feature. On the MSWindows client I'm using, there's a checkbox for scaling in the options dialog (also in the top left button menu after it's started). For native resizing, there are a number of options, none of which I'm happy with right now, for network usage reasons. I'm going to have to sit down and do some math to figure out what the best idea is. But I'm keeping it in mind.

And it's nice to hear of someone using it. Thanks.
_________________________
Bitt Faulk

Top
#61123 - 21/01/2002 12:32 Re: empegVNC-0.3 released [Re: wfaulk]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
Ah, I finally found scale option on my client. If other clients tend to have it, better leave server as is. Interesting, my old Windows VNC client eats almost half CPU on an ancient 350MHz PII; your server consumes barely anything!

OK, I will try to play with 0.3 a bit...

Err, I cannot download it. Is www.beaglebros.com down?


Edited by bonzi (21/01/2002 12:36)
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#61124 - 21/01/2002 12:39 Re: empegVNC-0.3 released [Re: wfaulk]
jwickis
addict

Registered: 24/08/2000
Posts: 658
Loc: India
Server not found.

Top
#61125 - 21/01/2002 13:10 Re: empegVNC-0.3 released [Re: bonzi]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Yeah. It was down. I was completing my semiannual refresher course in topology. That is, messing with ribbon cables in a PC. Would you believe that that machine has 8 ribbon cables in it? 3 IDE cables, 1 floppy cable, 2 SCSI cables, and 2 PCMCIA adapter cables. And it's a minitower case. I'm surprised there's any air running through it at all.

By the way, don't buy Western Digital IDE drives. I just had one start to die in well less than two years. Which explains my downtime.
_________________________
Bitt Faulk

Top
#61126 - 21/01/2002 14:07 Re: empegVNC-0.3 released [Re: wfaulk]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
I am getting strange behaviour with 0.3: I press space to get volume bar, then press shift-left to lower the volume. After one or two (quick) presses the bar disappears.
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#61127 - 22/01/2002 07:20 empegVNC-0.4 released [Re: wfaulk]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
empegVNC-0.4 has been released.

This release fixes the problem with trying to actually use the knob twice in a row. (Tried to use `!' for bitwise not instead of `~'. Silly rabbit!)

It also adds back key repeats for spinning the knob. Note that it does not reintroduce the bug where you couldn't adjust the knob by one click. It's way too fast, though. I might have to hack in a delay of a few milliseconds in future releases. (Just FYI, having key repeats for the knob but not for the buttons is the closest to emulating the real interface. When the actual buttons are pressed, there is one signal sent for down and one sent for up, with no key repeat, so the player interprets a long button press when it gets a down not followed immediately by an up, which is what empegVNC sends since 0.3. When you turn the actual knob, it sends a turn signal for every click, and there is no ``stop'' indicator, so to move multiple places, you must send multiple knob turns.)
_________________________
Bitt Faulk

Top
#61128 - 22/01/2002 15:03 Re: empegVNC-0.4 released [Re: wfaulk]
RobotCaleb
pooh-bah

Registered: 15/01/2002
Posts: 1866
Loc: Austin
a question, of newbie variety. do i just send empegVNC-0.4 to my player and run it?
if so, thats not working.

Top
#61129 - 22/01/2002 15:14 Re: empegVNC-0.4 released [Re: RobotCaleb]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
That's exactly what you do. Check that your file lengths are the same as listed on the page you download it from.

How does it not work? When you start it, it should return the prompt almost immediately (without any message). Verify it is running with ps -af. Then you should be able to access it from your VNC client it as display 0 on empeg.
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#61130 - 22/01/2002 15:28 Re: empegVNC-0.4 released [Re: bonzi]
RobotCaleb
pooh-bah

Registered: 15/01/2002
Posts: 1866
Loc: Austin
empeg:/empeg/bin# ls
d d.old empegVNC-0.4 empegVNC.htm g player vncviewer.jar web
empeg:/empeg/bin# ./empegVNC-0.4
bash: ./empegVNC-0.4: Permission denied

if i type "./em" and press tab it doesnt do anything

Top
#61131 - 22/01/2002 15:30 Re: empegVNC-0.4 released [Re: wfaulk]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
Works like charm now, Mr. Faulk!
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
Page 1 of 2 1 2 >