On Thu, 2019-12-26 at 17:22 +0800, AceLan Kao wrote: > Hi all, > > I'm working on a new platform which comes with an accelerator meter. > It's a STMicroelectronics LSM6DS3US accelerator meter, it doesn't use > st_sensors driver, but hid_sensor_accel_3d. > After hid_sensor_accel_3d is loaded, the display becomes upside down, > so I tried to add some code to make it become normal.(ACCEL_X should > have the same modification) > > I don't know how to fix this in a correct way, please give me some > hints. This needs to be done as a quirk, either by applying a quirk for the HID descriptors (which should have a definition of the scale, which would be negative for this device), or in user-space in systemd's hwdb database, which your user-space consumers need to take care of: https://github.com/systemd/systemd/blob/master/hwdb.d/60-sensor.hwdb Cheers