Commit f642cbe0 authored by Chris Zhong's avatar Chris Zhong Committed by ChromeOS Commit Bot
Browse files

veyron: disable the wakeup function of gpio-charger

Plugging or unplugging the charger should not wake up the system, so
disable it in user space.

TEST=cat /sys/class/power_supply/gpio-charger/device/power/wakeup
then plug or unplug the charger, system didn't wake.

Change-Id: I9c3a026a86e53e914dbb9dd33a7e2859837206d9
Signed-off-by: default avatarChris Zhong <>

Reviewed-by: default avatarDmitry Torokhov <>
Reviewed-by: default avatarDouglas Anderson <>
Commit-Queue: Douglas Anderson <>
Trybot-Ready: Douglas Anderson <>
Tested-by: default avatarDouglas Anderson <>
parent 0d028cbb
......@@ -37,4 +37,6 @@ src_install() {
# Install platform specific files to enable persist on usb3
udev_dorules "${FILESDIR}/99-rk3288-usb3-persist.rules"
# Install platform specific files to avoid wakeup system by gpio-charger
udev_dorules "${FILESDIR}/99-rk3288-gpio-charger.rules"
# Avoid gpio-charger wakeup system
ACTION=="add|change", SUBSYSTEM=="platform", ENV{DRIVER}=="gpio-charger", ATTR{power/wakeup}="disabled"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment