Skip to content

Commit

Permalink
System startup ready detection is based on init-done flag file
Browse files Browse the repository at this point in the history
Support functionality in filewatcher module hides the details of
processing inotify events from glib io watch.

Display plugin uses filewatcher to unblock late suspend when
/run/systemd/boot-status/init-done flag file is created.

If /run/systemd/boot-status directory does not exist when mce is
started up, mce waits uptime to reach 60 seconds before unblocking
late suspend.

In any case late suspend is blocked for 10 after mce startup.
  • Loading branch information
spiiroin committed Feb 20, 2013
1 parent b271b2d commit 35c6a94
Show file tree
Hide file tree
Showing 5 changed files with 653 additions and 16 deletions.
22 changes: 22 additions & 0 deletions .depend
Expand Up @@ -66,6 +66,16 @@ event-switches.pic.o:\
mce-io.h\
mce.h\

filewatcher.o:\
filewatcher.c\
filewatcher.h\
mce-log.h\

filewatcher.pic.o:\
filewatcher.c\
filewatcher.h\
mce-log.h\

libwakelock.o:\
libwakelock.c\
libwakelock.h\
Expand Down Expand Up @@ -363,6 +373,7 @@ modules/display.o:\
mce-lib.h\
mce-log.h\
mce.h\
filewatcher.h\
libwakelock.h\
modules/display.h\
tklock.h\
Expand All @@ -378,6 +389,7 @@ modules/display.pic.o:\
mce-lib.h\
mce-log.h\
mce.h\
filewatcher.h\
libwakelock.h\
modules/display.h\
tklock.h\
Expand Down Expand Up @@ -608,6 +620,14 @@ powerkey.pic.o:\
mce.h\
powerkey.h\

test_inotify.o:\
test_inotify.c\
filewatcher.h\

test_inotify.pic.o:\
test_inotify.c\
filewatcher.h\

tklock.o:\
tklock.c\
datapipe.h\
Expand Down Expand Up @@ -647,13 +667,15 @@ tools/evdev_trace.pic.o:\
tools/mcetool.o:\
tools/mcetool.c\
modules/display.h\
modules/filter-brightness-als.h\
modules/powersavemode.h\
tklock.h\
tools/mcetool.h\

tools/mcetool.pic.o:\
tools/mcetool.c\
modules/display.h\
modules/filter-brightness-als.h\
modules/powersavemode.h\
tklock.h\
tools/mcetool.h\
Expand Down
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -275,6 +275,7 @@ MCE_CORE += mce-io.c
MCE_CORE += mce-lib.c
MCE_CORE += median_filter.c
MCE_CORE += evdev.c
MCE_CORE += filewatcher.c

# HACK: do not link against libgconf-2
ifeq ($(strip $(ENABLE_BUILTIN_GCONF)),y)
Expand Down

0 comments on commit 35c6a94

Please sign in to comment.