60-sensor.hwdb 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. # This file is part of systemd.
  2. #
  3. # The lookup keys are composed in:
  4. # 60-sensor.rules
  5. #
  6. # Note: The format of the "sensor:" prefix match key is a
  7. # contract between the rules file and the hardware data, it might
  8. # change in later revisions to support more or better matches, it
  9. # is not necessarily expected to be a stable ABI.
  10. #
  11. # Match string formats:
  12. # sensor:modalias:<parent device modalias>:dmi:<dmi string>
  13. #
  14. # To add local entries, create a new file
  15. # /etc/udev/hwdb.d/61-sensor-local.hwdb
  16. # and add your rules there. To load the new rules execute (as root):
  17. # systemd-hwdb update
  18. # udevadm trigger -y `dirname $(udevadm info -n "/dev/iio:deviceXXX" -q path)`
  19. # where /dev/iio:deviceXXX is the device in question.
  20. #
  21. # If your changes are generally applicable, preferably send them as a pull
  22. # request to
  23. # https://github.com/systemd/systemd
  24. # or create a bug report on https://github.com/systemd/systemd/issues and
  25. # include your new rules, a description of the device, and the output of
  26. # udevadm info --export-db
  27. #
  28. # For hwdb format and systemd behavior:
  29. # https://www.freedesktop.org/software/systemd/man/hwdb.html
  30. #
  31. # Allowed properties are:
  32. # ACCEL_MOUNT_MATRIX=<matrix>
  33. #
  34. # where <matrix> is a mount-matrix in the format specified in the IIO
  35. # subsystem[1]. The default, when unset, is equivalent to:
  36. # ACCEL_MOUNT_MATRIX=1, 0, 0; 0, 1, 0; 0, 0, 1
  37. # eg. the identity matrix.
  38. #
  39. # [1]: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=dfc57732ad38f93ae6232a3b4e64fd077383a0f1
  40. #
  41. #
  42. # Sort by brand, model
  43. #########################################
  44. # Acer
  45. #########################################
  46. sensor:modalias:acpi:BMA250E*:dmi:*:svnAcer:pnIconiaW1-810:*
  47. ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
  48. #########################################
  49. # AsusTek
  50. #########################################
  51. sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:*pnT100CHI*
  52. ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
  53. sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:*pnT100TA*
  54. ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
  55. sensor:modalias:acpi:INVN6500*:dmi:*svn*ASUSTeK*:*pn*TP300LD*
  56. ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
  57. sensor:modalias:acpi:SMO8500*:dmi:*svn*ASUSTeK*:*pn*TP300LJ*
  58. ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
  59. #########################################
  60. # Chuwi
  61. #########################################
  62. # Chuwi Vi8 Plus
  63. sensor:modalias:acpi:BOSC0200*:dmi:*:svnHampoo:pnD2D3_Vi8A1:*
  64. ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
  65. # Chuwi Hi13
  66. sensor:modalias:acpi:KIOX000A*:dmi:svnChuwi*:pnHi13
  67. ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
  68. #########################################
  69. # Cube
  70. #########################################
  71. # Cube iWork8 Air
  72. sensor:modalias:acpi:KIOX000A*:dmi:*:svncube:pni1-TF:*
  73. ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
  74. # Cube i7 Stylus
  75. sensor:modalias:acpi:KIOX000A*:dmi:*:svnCube:pni7Stylus:*
  76. ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
  77. #########################################
  78. # Endless
  79. #########################################
  80. sensor:modalias:acpi:ACCE0001*:dmi:*svnEndless*:*pnELT-NL3*
  81. ACCEL_MOUNT_MATRIX=0, 1, 0; 0, 0, -1; -1, 0, 0
  82. #########################################
  83. # GP-electronic
  84. #########################################
  85. sensor:modalias:acpi:KIOX000A*:dmi:bvnINSYDECorp.:bvrBYT70A.YNCHENG.WIN.007:*:svnInsyde:pnT701:*
  86. ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
  87. #########################################
  88. # HP
  89. #########################################
  90. sensor:modalias:platform:lis3lv02d:dmi:*svn*Hewlett-Packard*:*pn*HPEliteBook8540w*
  91. sensor:modalias:platform:lis3lv02d:dmi:*svn*Hewlett-Packard*:*pn*HPEliteBook8560w*
  92. ACCEL_MOUNT_MATRIX=1, 0, 0; 0, 0, -1; 0, 1, 0
  93. sensor:modalias:acpi:SMO8500*:dmi:*:svnHewlett-Packard:pnHPStream7Tablet:*
  94. ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
  95. #########################################
  96. # I.T.Works
  97. #########################################
  98. # The I.T.Works TW891 2-in-1's DMI has the product-name field set, but not
  99. # the sys-vendor field. This makes the DMI data a bit generic, so we match
  100. # the whole dmi modalias, except for the BIOS version/date
  101. sensor:modalias:acpi:KIOX000A*:dmi:bvnAmericanMegatrendsInc.:*:svnTobefilledbyO.E.M.:pnTW891:pvrTobefilledbyO.E.M.:rvnTobefilledbyO.E.M.:rnTW891:rvr1.0:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
  102. ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
  103. #########################################
  104. # Jumper
  105. #########################################
  106. # EZpad mini 3
  107. sensor:modalias:acpi:BOSC0200*:dmi:bvnINSYDECorp.:bvrjumperx.T87.KFBNEE*
  108. ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
  109. #########################################
  110. # Lamina
  111. #########################################
  112. sensor:modalias:acpi:SMO8500*:dmi:*svnLamina*:*pnT701BR.SE*
  113. ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
  114. sensor:modalias:acpi:KIOX000A*:dmi:*svnLAMINA:pnT-1016BNORD*
  115. ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
  116. #########################################
  117. # Lenovo
  118. #########################################
  119. sensor:modalias:acpi:NCPE0388*:dmi:*:rnLenovoYOGA510-14IKB:*
  120. ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, -1, 0; 0, 0, 1
  121. #########################################
  122. # Peaq
  123. #########################################
  124. sensor:modalias:acpi:SMO8500*:dmi:*:svnPEAQ:pnPEAQPMMC1010MD99187:*
  125. ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
  126. #########################################
  127. # Pipo
  128. #########################################
  129. sensor:modalias:acpi:KIOX000A*:dmi:*:svnPIPO:pnW2S:*
  130. ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
  131. #########################################
  132. # Ployer
  133. #########################################
  134. sensor:modalias:acpi:BMA250E*:dmi:*:svnShenzhenPLOYER*:pnMOMO7W:*
  135. ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
  136. #########################################
  137. # Point of View
  138. #########################################
  139. # The Point of View TAB-P800W does not have its product name filled, so we
  140. # match the entire dmi-alias, assuming that the use of a BMA250E +
  141. # bios-version + bios-date combo is unique
  142. sensor:modalias:acpi:BMA250E*:dmi:bvnAmericanMegatrendsInc.:bvr3BAIR1013:bd08/22/2014:svnTobefilledbyO.E.M.:pnTobefilledbyO.E.M.:pvrTobefilledbyO.E.M.:rvnAMICorporation:rnAptioCRB:rvrTobefilledbyO.E.M.:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
  143. ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
  144. #########################################
  145. # Trekstor
  146. #########################################
  147. sensor:modalias:acpi:BMA250*:dmi:*:bvrTREK.G.WI71C.JGBMRBA*:*:svnInsyde:pnST70416-6:*
  148. ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
  149. #########################################
  150. # Cytrix (Mytrix)
  151. #########################################
  152. sensor:modalias:acpi:*KIOX000A*:dmi:*svn*CytrixTechnology:*pn*Complex11t*
  153. ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1