summaryrefslogtreecommitdiff
path: root/tools/make-autosuspend-rules.py
blob: 25b261ea0d4a09b0e78543b404089b693211c31b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python3
# SPDX-License-Identifier: LGPL-2.1+

# Generate autosuspend rules for devices that have been whitelisted (IE tested)
# by the Chromium OS team. Please keep this script in sync with:
# https://chromium.googlesource.com/chromiumos/platform2/+/master/power_manager/udev/gen_autosuspend_rules.py

import sys
import chromiumos.gen_autosuspend_rules

if __name__ == '__main__':
    if len(sys.argv) > 1:
        sys.stdout = open(sys.argv[1], 'w')
    chromiumos.gen_autosuspend_rules.main()