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 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... 

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()...

Kind regards,
        Thorsten




> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:freevo-users-
> [EMAIL PROTECTED] Im Auftrag von Matthieu Weber
> Gesendet: Dienstag, 27. Januar 2004 10:01
> An: [EMAIL PROTECTED]
> Betreff: Re: [Freevo-users] Automated shutdown?
> 
> Here is the file. It should go to freevo/src/helpers and run the same
> way you run the recordserver (probably ./freevo nukkumaatti start).
> Note that it also deals with Lirc, but not using pyLirc, since pyLirc
> doesn't seem to support several clients at the same time (nextcode()
> returns *always* an empty list when I use nukkumaatti at the same time
> than freevo).
> 
> Once running, a SIGHUP will provoke an early shutdown sequence (earlier
> than what was calculated), unless Freevo is recording something.
> 
> No guaranty on the code, the file, and so on. It might burn your house
> and give you cancer, the usual stuff. Don't be mad at me if it doesn't
> work as you think it should.
> 
> 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