60-autosuspend-chromiumos.rules 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. ACTION!="add", GOTO="autosuspend_end"
  2. SUBSYSTEM!="i2c|pci|usb", GOTO="autosuspend_end"
  3. SUBSYSTEM=="i2c", GOTO="autosuspend_i2c"
  4. SUBSYSTEM=="pci", GOTO="autosuspend_pci"
  5. SUBSYSTEM=="usb", GOTO="autosuspend_usb"
  6. # I2C rules
  7. LABEL="autosuspend_i2c"
  8. ATTR{name}=="cyapa", ATTR{power/control}="on", GOTO="autosuspend_end"
  9. GOTO="autosuspend_end"
  10. # PCI rules
  11. LABEL="autosuspend_pci"
  12. ATTR{vendor}=="0x8086", ATTR{device}=="0x590c", GOTO="autosuspend_enable"
  13. ATTR{vendor}=="0x8086", ATTR{device}=="0x591e", GOTO="autosuspend_enable"
  14. ATTR{vendor}=="0x8086", ATTR{device}=="0x1903", GOTO="autosuspend_enable"
  15. ATTR{vendor}=="0x8086", ATTR{device}=="0x9d2f", GOTO="autosuspend_enable"
  16. ATTR{vendor}=="0x8086", ATTR{device}=="0x9ded", GOTO="autosuspend_enable"
  17. ATTR{vendor}=="0x8086", ATTR{device}=="0x9d21", GOTO="autosuspend_enable"
  18. ATTR{vendor}=="0x8086", ATTR{device}=="0x9d23", GOTO="autosuspend_enable"
  19. ATTR{vendor}=="0x8086", ATTR{device}=="0x095a", GOTO="autosuspend_enable"
  20. ATTR{vendor}=="0x8086", ATTR{device}=="0x1911", GOTO="autosuspend_enable"
  21. ATTR{vendor}=="0x8086", ATTR{device}=="0x9d31", GOTO="autosuspend_enable"
  22. ATTR{vendor}=="0x8086", ATTR{device}=="0x9d3a", GOTO="autosuspend_enable"
  23. ATTR{vendor}=="0x8086", ATTR{device}=="0x9d4b", GOTO="autosuspend_enable"
  24. ATTR{vendor}=="0x8086", ATTR{device}=="0x9d24", GOTO="autosuspend_enable"
  25. ATTR{vendor}=="0x8086", ATTR{device}=="0x02d3", GOTO="autosuspend_enable"
  26. ATTR{vendor}=="0x8086", ATTR{device}=="0x02ef", GOTO="autosuspend_enable"
  27. ATTR{vendor}=="0x8086", ATTR{device}=="0x0284", GOTO="autosuspend_enable"
  28. ATTR{vendor}=="0x8086", ATTR{device}=="0x02e0", GOTO="autosuspend_enable"
  29. ATTR{vendor}=="0x8086", ATTR{device}=="0x02f0", GOTO="autosuspend_enable"
  30. ATTR{vendor}=="0x8086", ATTR{device}=="0x02a4", GOTO="autosuspend_enable"
  31. ATTR{vendor}=="0x8086", ATTR{device}=="0x02ed", GOTO="autosuspend_enable"
  32. ATTR{vendor}=="0x8086", ATTR{device}=="0x9b41", GOTO="autosuspend_enable"
  33. ATTR{vendor}=="0x8086", ATTR{device}=="0x02f9", GOTO="autosuspend_enable"
  34. ATTR{vendor}=="0x8086", ATTR{device}=="0x9b61", GOTO="autosuspend_enable"
  35. ATTR{vendor}=="0x8086", ATTR{device}=="0x9b71", GOTO="autosuspend_enable"
  36. ATTR{vendor}=="0x8086", ATTR{device}=="0x02b0", GOTO="autosuspend_enable"
  37. ATTR{vendor}=="0x8086", ATTR{device}=="0x591c", GOTO="autosuspend_enable"
  38. ATTR{vendor}=="0x8086", ATTR{device}=="0x2526", GOTO="autosuspend_enable"
  39. ATTR{vendor}=="0x8086", ATTR{device}=="0x22b1", GOTO="autosuspend_enable"
  40. ATTR{vendor}=="0x8086", ATTR{device}=="0x22dc", GOTO="autosuspend_enable"
  41. ATTR{vendor}=="0x8086", ATTR{device}=="0x22b5", GOTO="autosuspend_enable"
  42. ATTR{vendor}=="0x8086", ATTR{device}=="0x2284", GOTO="autosuspend_enable"
  43. ATTR{vendor}=="0x8086", ATTR{device}=="0x22c8", GOTO="autosuspend_enable"
  44. ATTR{vendor}=="0x8086", ATTR{device}=="0x22cc", GOTO="autosuspend_enable"
  45. ATTR{vendor}=="0x8086", ATTR{device}=="0x229c", GOTO="autosuspend_enable"
  46. ATTR{vendor}=="0x8086", ATTR{device}=="0x2280", GOTO="autosuspend_enable"
  47. ATTR{vendor}=="0x144d", ATTR{device}=="0xa806", GOTO="autosuspend_enable"
  48. ATTR{vendor}=="0x144d", ATTR{device}=="0xa808", GOTO="autosuspend_enable"
  49. ATTR{vendor}=="0x14a4", ATTR{device}=="0x9100", GOTO="autosuspend_enable"
  50. ATTR{vendor}=="0x7089", ATTR{device}=="0x5012", GOTO="autosuspend_enable"
  51. ATTR{vendor}=="0x2646", ATTR{device}=="0x5008", GOTO="autosuspend_enable"
  52. GOTO="autosuspend_end"
  53. # USB rules
  54. LABEL="autosuspend_usb"
  55. ATTR{idVendor}=="1d6b", ATTR{idProduct}=="0001", GOTO="autosuspend_enable"
  56. ATTR{idVendor}=="1d6b", ATTR{idProduct}=="0002", GOTO="autosuspend_enable"
  57. ATTR{idVendor}=="1d6b", ATTR{idProduct}=="0003", GOTO="autosuspend_enable"
  58. ATTR{idVendor}=="0424", ATTR{idProduct}=="3503", GOTO="autosuspend_enable"
  59. ATTR{idVendor}=="05e3", ATTR{idProduct}=="0610", GOTO="autosuspend_enable"
  60. ATTR{idVendor}=="8087", ATTR{idProduct}=="0024", GOTO="autosuspend_enable"
  61. ATTR{idVendor}=="8087", ATTR{idProduct}=="8000", GOTO="autosuspend_enable"
  62. ATTR{idVendor}=="04d8", ATTR{idProduct}=="0b28", GOTO="autosuspend_enable"
  63. ATTR{idVendor}=="04f2", ATTR{idProduct}=="b1d8", GOTO="autosuspend_enable"
  64. ATTR{idVendor}=="04f2", ATTR{idProduct}=="b262", GOTO="autosuspend_enable"
  65. ATTR{idVendor}=="04f2", ATTR{idProduct}=="b2fe", GOTO="autosuspend_enable"
  66. ATTR{idVendor}=="04f2", ATTR{idProduct}=="b35f", GOTO="autosuspend_enable"
  67. ATTR{idVendor}=="04f2", ATTR{idProduct}=="b443", GOTO="autosuspend_enable"
  68. ATTR{idVendor}=="04f2", ATTR{idProduct}=="b552", GOTO="autosuspend_enable"
  69. ATTR{idVendor}=="058f", ATTR{idProduct}=="b001", GOTO="autosuspend_enable"
  70. ATTR{idVendor}=="05c8", ATTR{idProduct}=="0351", GOTO="autosuspend_enable"
  71. ATTR{idVendor}=="05c8", ATTR{idProduct}=="0355", GOTO="autosuspend_enable"
  72. ATTR{idVendor}=="05c8", ATTR{idProduct}=="036e", GOTO="autosuspend_enable"
  73. ATTR{idVendor}=="064e", ATTR{idProduct}=="d251", GOTO="autosuspend_enable"
  74. ATTR{idVendor}=="0bda", ATTR{idProduct}=="571c", GOTO="autosuspend_enable"
  75. ATTR{idVendor}=="13d3", ATTR{idProduct}=="5657", GOTO="autosuspend_enable"
  76. ATTR{idVendor}=="1bcf", ATTR{idProduct}=="2c17", GOTO="autosuspend_enable"
  77. ATTR{idVendor}=="2232", ATTR{idProduct}=="1013", GOTO="autosuspend_enable"
  78. ATTR{idVendor}=="2232", ATTR{idProduct}=="1017", GOTO="autosuspend_enable"
  79. ATTR{idVendor}=="2232", ATTR{idProduct}=="1033", GOTO="autosuspend_enable"
  80. ATTR{idVendor}=="2232", ATTR{idProduct}=="1037", GOTO="autosuspend_enable"
  81. ATTR{idVendor}=="2232", ATTR{idProduct}=="1056", GOTO="autosuspend_enable"
  82. ATTR{idVendor}=="2232", ATTR{idProduct}=="6001", GOTO="autosuspend_enable"
  83. ATTR{idVendor}=="5986", ATTR{idProduct}=="0299", GOTO="autosuspend_enable"
  84. ATTR{idVendor}=="0489", ATTR{idProduct}=="e04e", GOTO="autosuspend_enable"
  85. ATTR{idVendor}=="0489", ATTR{idProduct}=="e056", GOTO="autosuspend_enable"
  86. ATTR{idVendor}=="0489", ATTR{idProduct}=="e09f", GOTO="autosuspend_enable"
  87. ATTR{idVendor}=="0489", ATTR{idProduct}=="e0a2", GOTO="autosuspend_enable"
  88. ATTR{idVendor}=="04ca", ATTR{idProduct}=="3006", GOTO="autosuspend_enable"
  89. ATTR{idVendor}=="04ca", ATTR{idProduct}=="3016", GOTO="autosuspend_enable"
  90. ATTR{idVendor}=="04ca", ATTR{idProduct}=="301a", GOTO="autosuspend_enable"
  91. ATTR{idVendor}=="0bda", ATTR{idProduct}=="b00c", GOTO="autosuspend_enable"
  92. ATTR{idVendor}=="0cf3", ATTR{idProduct}=="3004", GOTO="autosuspend_enable"
  93. ATTR{idVendor}=="0cf3", ATTR{idProduct}=="3005", GOTO="autosuspend_enable"
  94. ATTR{idVendor}=="0cf3", ATTR{idProduct}=="3007", GOTO="autosuspend_enable"
  95. ATTR{idVendor}=="0cf3", ATTR{idProduct}=="311e", GOTO="autosuspend_enable"
  96. ATTR{idVendor}=="0cf3", ATTR{idProduct}=="e300", GOTO="autosuspend_enable"
  97. ATTR{idVendor}=="1286", ATTR{idProduct}=="2046", GOTO="autosuspend_enable"
  98. ATTR{idVendor}=="1286", ATTR{idProduct}=="204e", GOTO="autosuspend_enable"
  99. ATTR{idVendor}=="8087", ATTR{idProduct}=="07dc", GOTO="autosuspend_enable"
  100. ATTR{idVendor}=="8087", ATTR{idProduct}=="0a2a", GOTO="autosuspend_enable"
  101. ATTR{idVendor}=="8087", ATTR{idProduct}=="0aaa", GOTO="autosuspend_enable"
  102. ATTR{idVendor}=="8087", ATTR{idProduct}=="0026", GOTO="autosuspend_enable"
  103. ATTR{idVendor}=="8087", ATTR{idProduct}=="0025", GOTO="autosuspend_enable"
  104. ATTR{idVendor}=="12d1", ATTR{idProduct}=="15bb", GOTO="autosuspend_enable"
  105. ATTR{idVendor}=="2cb7", ATTR{idProduct}=="0007", GOTO="autosuspend_enable"
  106. ATTR{idVendor}=="05e3", ATTR{idProduct}=="0727", GOTO="autosuspend_enable"
  107. ATTR{idVendor}=="0bda", ATTR{idProduct}=="0138", GOTO="autosuspend_enable"
  108. ATTR{idVendor}=="0bda", ATTR{idProduct}=="0136", GOTO="autosuspend_enable"
  109. ATTR{idVendor}=="0bda", ATTR{idProduct}=="0177", GOTO="autosuspend_enable"
  110. ATTR{idVendor}=="1050", ATTR{idProduct}=="0211", GOTO="autosuspend_enable"
  111. ATTR{idVendor}=="1050", ATTR{idProduct}=="0200", GOTO="autosuspend_enable"
  112. ATTR{idVendor}=="18d1", ATTR{idProduct}=="5026", GOTO="autosuspend_enable"
  113. ATTR{idVendor}=="18d1", ATTR{idProduct}=="5025", GOTO="autosuspend_enable"
  114. ATTR{idVendor}=="18d1", ATTR{idProduct}=="5029", GOTO="autosuspend_enable"
  115. ATTR{idVendor}=="18d1", ATTR{idProduct}=="5034", GOTO="autosuspend_enable"
  116. ATTR{idVendor}=="18d1", ATTR{idProduct}=="5033", GOTO="autosuspend_enable"
  117. ATTR{idVendor}=="03eb", ATTR{idProduct}=="2433", GOTO="autosuspend_enable"
  118. ATTR{idVendor}=="282b", ATTR{idProduct}=="48f0", GOTO="autosuspend_enable"
  119. ATTR{idVendor}=="282b", ATTR{idProduct}=="0026", GOTO="autosuspend_enable"
  120. ATTR{idVendor}=="0572", ATTR{idProduct}=="1a08", GOTO="autosuspend_enable"
  121. ATTR{idVendor}=="05ac", ATTR{idProduct}=="110a", GOTO="autosuspend_enable"
  122. GOTO="autosuspend_end"
  123. # Enable autosuspend
  124. LABEL="autosuspend_enable"
  125. TEST=="power/control", ATTR{power/control}="auto", GOTO="autosuspend_end"
  126. LABEL="autosuspend_end"