Mario Limonciello | b61d777 | 2019-09-09 22:49:35 +0100 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| 2 | # SPDX-License-Identifier: LGPL-2.1+ |
| 3 | |
| 4 | # Generate autosuspend rules for devices that have been whitelisted (IE tested) |
Tim Teichmann | 0490b44 | 2019-10-06 17:59:53 +0200 | [diff] [blame^] | 5 | # by the Chromium OS team. Please keep this script in sync with: |
Mario Limonciello | b61d777 | 2019-09-09 22:49:35 +0100 | [diff] [blame] | 6 | # https://chromium.googlesource.com/chromiumos/platform2/+/master/power_manager/udev/gen_autosuspend_rules.py |
| 7 | |
| 8 | import sys |
Tim Teichmann | 0490b44 | 2019-10-06 17:59:53 +0200 | [diff] [blame^] | 9 | import chromiumos.gen_autosuspend_rules |
Mario Limonciello | b61d777 | 2019-09-09 22:49:35 +0100 | [diff] [blame] | 10 | |
| 11 | if __name__ == '__main__': |
| 12 | if len(sys.argv) > 1: |
| 13 | sys.stdout = open(sys.argv[1], 'w') |
Tim Teichmann | 0490b44 | 2019-10-06 17:59:53 +0200 | [diff] [blame^] | 14 | chromiumos.gen_autosuspend_rules.main() |