From 34ff0111a15b8380b4729d2b5a5a205f5bd6e1502f1381b603495d83acf6cb8e Mon Sep 17 00:00:00 2001 From: Frederic Crozat Date: Fri, 12 Apr 2013 16:24:46 +0000 Subject: [PATCH] Accepting request 163780 from home:rjschwei:branches:Base:System - Add chromebook lid switch as a power switch to logind rule to enable suspend on lid close OBS-URL: https://build.opensuse.org/request/show/163780 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=362 --- lid-switch-chromebook.patch | 24 ++++++++++++++++++++++++ systemd.changes | 6 ++++++ systemd.spec | 3 +++ 3 files changed, 33 insertions(+) create mode 100644 lid-switch-chromebook.patch diff --git a/lid-switch-chromebook.patch b/lid-switch-chromebook.patch new file mode 100644 index 00000000..b635e1ce --- /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 4844a41d..3fecc999 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 1a75460b..7bfd5d20 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