2019-09-09 23:49:35 +02:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
|
|
|
|
# Generate autosuspend rules for devices that have been whitelisted (IE tested)
|
2019-10-06 17:59:53 +02:00
|
|
|
# by the Chromium OS team. Please keep this script in sync with:
|
2019-09-09 23:49:35 +02:00
|
|
|
# https://chromium.googlesource.com/chromiumos/platform2/+/master/power_manager/udev/gen_autosuspend_rules.py
|
|
|
|
|
|
|
|
import sys
|
2019-10-06 17:59:53 +02:00
|
|
|
import chromiumos.gen_autosuspend_rules
|
2019-09-09 23:49:35 +02:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
if len(sys.argv) > 1:
|
|
|
|
sys.stdout = open(sys.argv[1], 'w')
|
2019-10-06 17:59:53 +02:00
|
|
|
chromiumos.gen_autosuspend_rules.main()
|