[gpm] GPM sometimes could not auto suspend.
- From: danny <tornadory 163 com>
- To: gnome-power-manager-list gnome org
- Subject: [gpm] GPM sometimes could not auto suspend.
- Date: Sat, 4 Dec 2010 12:03:58 +0800 (CST)
Hi all,
We use gnome-power-manager in an Non gnome-session (XFCE), and found that sometimes it could not auto suspend.
After a while of search and study, we found that in src/egg-idletime.c:egg_idletime_event_filter_cb(),
static GdkFilterReturn
egg_idletime_event_filter_cb (GdkXEvent *gdkxevent, GdkEvent *event, gpointer data)
{
EggIdletimeAlarm *alarm;
XEvent *xevent = (XEvent *) gdkxevent;
EggIdletime *idletime = (EggIdletime *) data;
XSyncAlarmNotifyEvent *alarm_event;
/* no point continuing */
if (
xevent->type != idletime->priv->sync_event + XSyncAlarmNotify)
return GDK_FILTER_CONTINUE;
......
the xevent->type always could not equal sync_event + XSyncAlarmNotify.
such as:
if sync_event = 96 and XSyncAlarmNotify = 1, then sometimes xevent->type will be 98 but not 97.
So could you give me some suggestion to find out which caused this issue?
And could you kindly explain me something about the
XSyncAlarmNotifyEvent and it's usage?
Thanks in advance.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]