forked from pool/systemd
Frederic Crozat
34ff0111a1
- 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
25 lines
855 B
Diff
25 lines
855 B
Diff
From fced3673ee1001dc905206f9a92ea2062f951d3c Mon Sep 17 00:00:00 2001
|
|
From: Robert Schweikert <rjschwei@suse.com>
|
|
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
|
|
|