[libavg-users] Power button disabled during fullscreen?
Alex Harrington
alex at longhill.org.uk
Wed Jul 28 21:58:33 CEST 2010
> If you are sure libavg isn't the problem, I will contact the Xibo
> developers again, maybe there is another cause.
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 = '<avg id="main" width="'
avgContent += str(width)
avgContent += '" height="'
avgContent += str(height)
avgContent += '"><div id="screen"/>'
avgContent += '</avg>'
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 http://learning.longhill.org.uk/disclaimer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3504 bytes
Desc: not available
Url : http://mail.datenhain.de/pipermail/libavg-users/attachments/20100728/b383eefe/attachment.bin
More information about the libavg-users
mailing list