Page 1 of 3

wake on lan support

Posted: Tue Aug 07, 2012 11:41 am
by marcjero
Hello,

I trying to allow my tv (LE40A856) to start a server automatically using wake on lan.

I enabled the 02_10_wakelan.init init script but it doesn't seem work at TV boot. (MAC address was set correctly of course)
If I login to TV using ssh and run 02_10_wakelan.init manually server boots ! Any idea is very welcome because I'm stuggling...

Moreover it would be great to port the wake on lan application to A-Series. This way it could be possible to start the server on demand and not at every tv boot. Do you think this is possible ?

Re: wake on lan support

Posted: Tue Aug 07, 2012 8:10 pm
by marcjero
Ok solved the issue adding a sleep 20 at the beginning of the script.

Is there a way to catch remote control events (log files) ? I would like to wake up the server when I try to access wiselink only.

Re: wake on lan support

Posted: Wed Aug 08, 2012 4:43 pm
by tom_van
You can't do it without hacking exeDSP code.
There is similar app viewtopic.php?f=5&t=982 for B-series. It uses on-sreen menu. I haven't resolved how to display on-screen text on A series.

Re: wake on lan support

Posted: Wed Aug 29, 2012 8:21 pm
by marcjero
And what about adding a widget or an application that just would run any script ?

Re: wake on lan support

Posted: Thu Aug 30, 2012 8:26 pm
by tom_van
Good idea. You can do it...

Re: wake on lan support

Posted: Sun Nov 11, 2012 7:23 pm
by marcjero
Hi,

I was too much worried about patching the exeDSP for application support so I didn't follow this route.
Tom isn't it a way to just observe the remote control commands from any /dev/* file ?

Re: wake on lan support

Posted: Sun Nov 11, 2012 11:05 pm
by tom_van
You can try

Code: Select all

hexdump -v -n 9 -e '/1 "%02x "' /dev/ttyAS2
as I described in http://wiki.samygo.tv/index.php5/Watchd ... s%28SH4%29
Unfortunately if exeDSP is running you are in race with it when reading from serial line
- so you'll steal some byte time to time.

It is not a bad idea to have a patch functioning as redirector of rc commands to unix.
Unfortunately I'm too busy to make it now. Maybe sometimes.

Re: wake on lan support

Posted: Mon Nov 12, 2012 5:32 pm
by marcjero
And hat about using slsnif for that ?

Re: wake on lan support

Posted: Mon Nov 12, 2012 10:52 pm
by marcjero
compiled slsnif but got this error when running the program :
/lib/libc.so.6: version `GLIBC_2.7' not found

Do you know a way to fix that ? I think I have to force compiler to link an older libc ?

Re: wake on lan support

Posted: Tue Nov 13, 2012 5:36 am
by juusso
yes, you have to compile against libraries, used in tv. Or make static binary (best way for your goal).