On Wed 28.01.2004 at 12:53:23PM +0100, Pferdekaemper, Thorsten wrote:
> Hi,
> I have had a look at your coding and I have tried something similar. On my system, 
> the line 
>       r = self.lircd_sock.recv(64)
> blocks until I press a key on my remote. It seems that the line 
>       self.lircd_sock.setblocking(0)
> has no effect. Perhaps this depends on the version of LIRC and the
> driver you are using.

I don't think it depends on Lirc; it should be a system feature. I have
no idea why it doesn't work for you, though :(

> I am using the remote which was bundled with my Terratec Cinergy 600,
> so I have to use the linux input layer. (Reading from
> /dev/input/event0) I have read something about sockets in "Python In A
> Nutshell", but they only tell things about TCP/IP based sockets... 

They are mostly the same, once you have connected the "server".

> And another question so far...: How do you make sure that the system
> does not shut down while watching TV? I assume that this has something
> to with the function set_tv_video()...

My idea was that if you watch TV, you have been using the remote control
to access the menu that starts the TV. And if you use the remote
control, the auto-off is disabled until nukkumaatti receives a SIGHUP.
This also allows to discriminate an automatic wake-up (for scheduled
recordings) which require an automatic shutdown once the show is
recorded, from a manual wake-up (where the user will use the remote
control at some time, hopefully). It also allows the machine not to
shutdown if the user starts to use it after an automatic wake-up.

But as you can notice, the feature to shutdown if the users gets asleep
in front of the TV is not implemented. The system lacks a sensor for
checking if the user sleeps or nor :)

The set_tv_video() function is only for my freevo box to switch the TV
from TV to Video input and vice-versa (the external tv_video software
sends a signal to the parallel port, which enables or disables the
function_switch pin of my TV's SCART). It has nothing to do with shuting
down the machine (except that I switch the TV back from video to TV
before shutdown).

Matthieu
-- 
 (~._.~)        Matthieu Weber - Universit� de Jyv�skyl�         (~._.~)
  ( ? )                email : [EMAIL PROTECTED]                  ( ? ) 
 ()- -()               public key id : 452AE0AD                  ()- -()
 (_)-(_)  "Humor ist, wenn man trotzdem lacht (Germain Muller)"  (_)-(_)


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to