• Bastien Nocera's avatar
    udev: Add rules for accelerometer orientation quirks · c61e6c91
    Bastien Nocera authored
    This commit adds a rules file to extract the properties from hwdb
    to set on i2c IIO devices. This is used to set the ACCEL_MOUNT_MATRIX
    property on IIO devices, to be consumed by iio-sensor-proxy or
    equivalent daemon.
    
    The hwdb file contains documentation on how to write quirks. Note
    however that mount information is usually exported in:
    - the device-tree for ARM devices
    - the ACPI DSDT for Intel-compatible devices
    but currently not extracted by the kernel.
    
    Also note that some devices have the framebuffer rotation that changes
    between the bootloader and the main system, which might mean that the
    accelerometer is then wrongly oriented. This is a missing feature in the
    i915 kernel driver: https://bugs.freedesktop.org/show_bug.cgi?id=94894
    which needs to be fixed, and won't require quirks.
    Signed-off-by: 's avatarAnthony G. Basile <blueness@gentoo.org>
    c61e6c91
Name
Last commit
Last update
..
20-OUI.hwdb Loading commit data...
20-acpi-vendor.hwdb Loading commit data...
20-bluetooth-vendor-product.hwdb Loading commit data...
20-net-ifname.hwdb Loading commit data...
20-pci-classes.hwdb Loading commit data...
20-pci-vendor-model.hwdb Loading commit data...
20-sdio-classes.hwdb Loading commit data...
20-sdio-vendor-model.hwdb Loading commit data...
20-usb-classes.hwdb Loading commit data...
20-usb-vendor-model.hwdb Loading commit data...
60-evdev.hwdb Loading commit data...
60-keyboard.hwdb Loading commit data...
60-sensor.hwdb Loading commit data...
70-mouse.hwdb Loading commit data...
70-pointingstick.hwdb Loading commit data...
70-touchpad.hwdb Loading commit data...
Makefile.am Loading commit data...
ids-update.pl Loading commit data...
sdio.ids Loading commit data...