From ce65a2b92c8d647b0621120358bde62f7a893129 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Thu, 17 Oct 2002 02:45:43 +0000 Subject: zaurus screenblanking - maybe better, maybe not- needs testing --- (limited to 'noncore/multimedia') diff --git a/noncore/multimedia/opieplayer2/mediaplayer.cpp b/noncore/multimedia/opieplayer2/mediaplayer.cpp index 606f8e9..f0a01a1 100644 --- a/noncore/multimedia/opieplayer2/mediaplayer.cpp +++ b/noncore/multimedia/opieplayer2/mediaplayer.cpp @@ -35,6 +35,7 @@ extern MediaPlayerState *mediaPlayerState; MediaPlayer::MediaPlayer( QObject *parent, const char *name ) : QObject( parent, name ), volumeDirection( 0 ), currentFile( NULL ) { + fd=-1;fl=-1; playList->setCaption( tr( "OpiePlayer: Initializating" ) ); qApp->processEvents(); @@ -298,14 +299,31 @@ void MediaPlayer::timerEvent( QTimerEvent * ) { void MediaPlayer::blank( bool b ) { fd=open("/dev/fb0",O_RDWR); +#ifdef QT_QWS_EBX + fl= open( "/dev/fl", O_RDWR ); +#endif if (fd != -1) { if ( b ) { qDebug("do blanking"); +#ifdef QT_QWS_EBX + ioctl( fd, FBIOBLANK, 1 ); + if(fl !=-1) { + ioctl( fl, 2 ); + ::close(fl); + } +#else ioctl( fd, FBIOBLANK, 3 ); +#endif isBlanked = TRUE; } else { qDebug("do unblanking"); ioctl( fd, FBIOBLANK, 0); +#ifdef QT_QWS_EBX + if(fl != -1) { + ioctl( fl, 1); + ::close(fl); + } +#endif isBlanked = FALSE; } close( fd ); -- cgit v0.9.0.2