[gpm] GPM sometimes could not auto suspend.



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.


--
 Best Regards,




网易163/126邮箱百分百兼容iphone ipad邮件收发


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]