KDE4 power consumption issues
Olivier Goffart
ogoffart at kde.org
Mon Nov 12 16:48:25 GMT 2007
Le lundi 12 novembre 2007, Matthias Kretz a écrit :
> On Sunday 11 November 2007, Olivier Goffart wrote:
> > My guess is the problem is in Phonon.
>
> to be more precise: in libxine. libphonon itself has no timers that I can
> think of right now.
>
> > The only thing I do is to keep a pointer to Phonon::MediaObject and
> > Phonon::AudioOutput
>
> Yes. Deleting those objects might help, but I'm not 100% sure. Though the
> numbers will only go down 10s later (if at all) for reasons you don't want
> to know.
Should we workaround that problem in KNotify or in Phonon or try to get it
fixed in libxine ?
>
> Btw, I've seen worse numbers from xine. But basically the problem is that
> its demuxer, decoder, and output threads are in a loop calling
> xine_usec_sleep (5000);
> whenever no new data is available. xine_usec_sleep uses nanosleep when
> available and usleep otherwise:
> #if HAVE_NANOSLEEP
> /* nanosleep is prefered on solaris, because it's mt-safe */
> struct timespec ts, remaining;
>
> ts.tv_sec = usec / 1000000;
> ts.tv_nsec = (usec % 1000000) * 1000;
> while (nanosleep (&ts, &remaining) == -1 && errno == EINTR)
> ts = remaining;
> #else
> # if WIN32
> Sleep(usec / 1000);
> # else
> usleep(usec);
> # endif
> #endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071112/9cf1cad9/attachment.sig>
More information about the kde-core-devel
mailing list