<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Alex,<br>
<br>
Thanks again for the fast reply!<br>
<br>
I've tested your script and the power button doesn't work when running
it. <br>
So it has something to do with the libavg running fullscreen on ubuntu
10.04, but why?<br>
<br>
Maarten<br>
<br>
<br>
On 07/28/2010 09:58 PM, Alex Harrington wrote:
<blockquote
 cite="mid:0718E9D6BE82654A890FDDFD52CC665E062917@mcexchange.mail.longhill.brighton-hove.sch.uk"
 type="cite">
  <blockquote type="cite">
    <pre wrap="">If you are sure libavg isn't the problem, I will contact the Xibo 
developers again, maybe there is another cause.
    </pre>
  </blockquote>
  <pre wrap="">
Hi Maarten

Alex from Xibo project here.

The simplest way we can decide is to put together a minimal test case file with just libavg player and get you to try that. As I said before we don't have any code to block a shutdown. All we do is run the player fullscreen (or not). The only thing that springs to mind is if the keyhandler is somehow swallowing the call? I'm not sure that's even possible though. The only code change between running fullscreen and not is a boolean that we pass straight to libavg to tell the player to run fullscreen or not (see below example). It's odd then that the same code running prevents shutdown when running fullscreen but not when running windowed!

If you make up a files as follows:
------------------------------------------------
#!/usr/bin/python
# -*- coding: utf-8 -*-

# Define the width and height of the display
width = 1024
height = 768

# Run fullscreen?
fullscreen = True

from libavg import avg

player = avg.Player.get()
player.setResolution(fullscreen,width,height,24)

avgContent = '&lt;avg id="main" width="'
avgContent += str(width)
avgContent += '" height="'
avgContent += str(height)
avgContent += '"&gt;&lt;div id="screen"/&gt;'
avgContent += '&lt;/avg&gt;'

player.loadString(avgContent)

player.play()
---------------------------------------

If you make that executable and run it, can you power down then?

Alex

This email carries a disclaimer, a copy of which may be read at <a class="moz-txt-link-freetext" href="http://learning.longhill.org.uk/disclaimer">http://learning.longhill.org.uk/disclaimer</a></pre>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
libavg-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:libavg-users@datenhain.de">libavg-users@datenhain.de</a>
<a class="moz-txt-link-freetext" href="https://mail.datenhain.de/mailman/listinfo/libavg-users">https://mail.datenhain.de/mailman/listinfo/libavg-users</a></pre>
</blockquote>
<br>
</body>
</html>