1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 06:52:22 +03:00
systemd/hwdb/60-sensor.hwdb

71 lines
2.5 KiB
Plaintext
Raw Normal View History

# This file is part of systemd.
#
# The lookup keys are composed in:
# 60-sensor.rules
#
# Note: The format of the "sensor:" prefix match key is a
# contract between the rules file and the hardware data, it might
# change in later revisions to support more or better matches, it
# is not necessarily expected to be a stable ABI.
#
# Match string formats:
# sensor:modalias:<parent device modalias>:dmi:<dmi string>
#
# To add local entries, create a new file
# /etc/udev/hwdb.d/61-sensor-local.hwdb
# and add your rules there. To load the new rules execute (as root):
# systemd-hwdb update
# udevadm trigger -y `dirname $(udevadm info -n "/dev/iio:deviceXXX" -q path)`
# where /dev/iio:deviceXXX is the device in question.
#
# If your changes are generally applicable, preferably send them as a pull
# request to
# https://github.com/systemd/systemd
# or create a bug report on https://github.com/systemd/systemd/issues and
# include your new rules, a description of the device, and the output of
# udevadm info --export-db
#
# For hwdb format and systemd behavior:
# https://www.freedesktop.org/software/systemd/man/hwdb.html
#
# Allowed properties are:
# ACCEL_MOUNT_MATRIX=<matrix>
#
# where <matrix> is a mount-matrix in the format specified in the IIO
# subsystem[1]. The default, when unset, is equivalent to:
# ACCEL_MOUNT_MATRIX=1, 0, 0; 0, 1, 0; 0, 0, 1
# eg. the identity matrix.
#
# [1]: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=dfc57732ad38f93ae6232a3b4e64fd077383a0f1
#
#
# Sort by brand, model
#########################################
# AsusTek
#########################################
sensor:modalias:acpi:SMO8500*:dmi:*svn*ASUSTeK*:*pn*TP500LB*
ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 0
sensor:modalias:acpi:SMO8500*:dmi:*svn*ASUSTeK*:*pn*TP300LJ*
ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
hwdb: Endless ELT-NL3 accelerometer support The Endless ELT-NL3 laptop has an accelerometer but its values are not being interpreted correctly, meaning that it's very easy to end up with the screen rotated inappropriately. Add an appropriate mount matrix to correct the values. P: /devices/LNXSYSTM:00/LNXSYBUS:00/ACCE0001:00 E: DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/ACCE0001:00 E: DRIVER=cmpc_accel_v4 E: ID_VENDOR_FROM_DATABASE=Accton Technology Corporation E: MODALIAS=acpi:ACCE0001: E: SUBSYSTEM=acpi P: /devices/LNXSYSTM:00/LNXSYBUS:00/ACCE0001:00/input/input8 E: ABS=7 E: ACCEL_MOUNT_MATRIX=0, 1, 0; 0, 0, -1; -1, 0, 0 E: DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/ACCE0001:00/input/input8 E: EV=9 E: ID_FOR_SEAT=input-acpi-ACCE0001_00 E: ID_INPUT=1 E: ID_INPUT_ACCELEROMETER=1 E: ID_PATH=acpi-ACCE0001:00 E: ID_PATH_TAG=acpi-ACCE0001_00 E: IIO_SENSOR_PROXY_TYPE=input-accel E: MODALIAS=input:b0000v0000p0000e0000-e0,3,kra0,1,2,mlsfw E: NAME="cmpc_accel_v4" E: PRODUCT=0/0/0/0 E: PROP=0 E: SUBSYSTEM=input E: SYSTEMD_WANTS=iio-sensor-proxy.service E: TAGS=:seat:systemd: P: /devices/LNXSYSTM:00/LNXSYBUS:00/ACCE0001:00/input/input8/event7 N: input/event7 E: ACCEL_MOUNT_MATRIX=0, 1, 0; 0, 0, -1; -1, 0, 0 E: DEVNAME=/dev/input/event7 E: DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/ACCE0001:00/input/input8/event7 E: ID_INPUT=1 E: ID_INPUT_ACCELEROMETER=1 E: ID_PATH=acpi-ACCE0001:00 E: ID_PATH_TAG=acpi-ACCE0001_00 E: IIO_SENSOR_PROXY_TYPE=input-accel E: MAJOR=13 E: MINOR=71 E: SUBSYSTEM=input E: SYSTEMD_WANTS=iio-sensor-proxy.service E: TAGS=:power-switch:systemd:
2017-02-28 20:54:53 +03:00
#########################################
# Endless
#########################################
sensor:modalias:acpi:ACCE0001*:dmi:*svnEndless*:*pnELT-NL3*
ACCEL_MOUNT_MATRIX=0, 1, 0; 0, 0, -1; -1, 0, 0
#########################################
# HP
#########################################
sensor:modalias:platform:lis3lv02d:dmi:*svn*Hewlett-Packard*:*pn*HPEliteBook8540w*
sensor:modalias:platform:lis3lv02d:dmi:*svn*Hewlett-Packard*:*pn*HPEliteBook8560w*
ACCEL_MOUNT_MATRIX=1, 0, 0; 0, 0, -1; 0, 1, 0
#########################################
# Winbook
#########################################
sensor:modalias:acpi:BMA250*:dmi:*svn*WinBook*:*pn*TW100*
ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 0