diff --git a/lid-switch-chromebook.patch b/lid-switch-chromebook.patch new file mode 100644 index 0000000..b635e1c --- /dev/null +++ b/lid-switch-chromebook.patch @@ -0,0 +1,24 @@ +From fced3673ee1001dc905206f9a92ea2062f951d3c Mon Sep 17 00:00:00 2001 +From: Robert Schweikert +Date: Fri, 12 Apr 2013 12:08:16 -0400 +Subject: [PATCH] rules: add lid switch of ARM based Chromebook as a power + switch to logind + +--- + src/login/70-power-switch.rules | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/login/70-power-switch.rules b/src/login/70-power-switch.rules +index 36fb827..d925ab7 100644 +--- a/src/login/70-power-switch.rules ++++ b/src/login/70-power-switch.rules +@@ -9,5 +9,6 @@ ACTION=="remove", GOTO="power_switch_end" + + SUBSYSTEM=="input", KERNEL=="event*", SUBSYSTEMS=="acpi", TAG+="power-switch" + SUBSYSTEM=="input", KERNEL=="event*", KERNELS=="thinkpad_acpi", TAG+="power-switch" ++SUBSYSTEM=="input", KERNEL=="event*", KERNELS=="gpio-keys.8", TAG+="power-switch" + + LABEL="power_switch_end" +-- +1.8.1.4 + diff --git a/systemd.changes b/systemd.changes index 4844a41..3fecc99 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Apr 12 16:17:04 UTC 2013 - rschweikert@suse.com + +- Add chromebook lid switch as a power switch to logind rule to + enable suspend on lid close + ------------------------------------------------------------------- Mon Apr 8 14:51:47 CEST 2013 - fcrozat@suse.com diff --git a/systemd.spec b/systemd.spec index 1a75460..7bfd5d2 100644 --- a/systemd.spec +++ b/systemd.spec @@ -292,6 +292,8 @@ Patch139: improve-readahead-spinning.patch Patch141: wait-for-processes-killed.patch # PATCH-FIX-UPSTREAM do-no-isolate-on-fsck-failure.patch bnc#812874 -- do not isolate if fsck fails Patch142: do-no-isolate-on-fsck-failure.patch +# PATCH-FIX-UPSTREAM lid-switch-chromebook.patch +Patch143: lid-switch-chromebook.patch # udev patches # PATCH-FIX-OPENSUSE 1001-Reinstate-TIMEOUT-handling.patch @@ -641,6 +643,7 @@ cp %{SOURCE7} m4/ %patch140 -p1 %patch141 -p1 %patch142 -p1 +%patch143 -p1 %build autoreconf -fiv