为 Myria MY8307 二合一笔记本电脑设置 iio-sensor-local(基本上是 Chuwi 品牌重塑)

为 Myria MY8307 二合一笔记本电脑设置 iio-sensor-local(基本上是 Chuwi 品牌重塑)

我最近购买了一台 Myria MY8307 笔记本电脑/平板电脑。我决定尝试一下 Kali,但安装后就遇到了问题。当登录显示时,我的屏幕是颠倒的,并且一直如此,直到我xrandr -o left在终端中使用“”。

编辑:这不仅仅是 Kali 的问题,我在 Fedora 和 Parrot Sec 上也得到了同样的结果。所以这是 iio 传感器造成的。

我尝试添加

# Myria MY8307 (MY8307)
sensor:modalias:acpi:BOSC0200*:dmi:*:svnCompletElectroServ:pnMY8307:*
 ACCEL_MOUNT_MATRIX=0, 1, 0; 0, -1, 0; 0, 0, 1

进入一个61-sensor-local.hwdb/lib/udev/hwdb.d

但我似乎无法让它发挥作用。我想知道你们是否可以告诉我我做错了什么。

运行systemd-hwdb update返回无错误 运行udevadm trigger -v -p DEVNAME=/dev/iio:device0返回

/sys/devices/pci0000:00/808622C1:02/i2c-2/i2c-BOSC0200:00/iio:device0

的输出dmidecode | grep Manufacturer

    Manufacturer: Complet Electro Serv
    Manufacturer: Insyde
    Manufacturer: Chassis Manufacturer
    Manufacturer: Intel(R) Corporation
    Option 1: String1 for Type12 Equipment Manufacturer
    Option 2: String2 for Type12 Equipment Manufacturer
    Option 3: String3 for Type12 Equipment Manufacturer
    Option 4: String4 for Type12 Equipment Manufacturer
    Manufacturer: 0000
    Manufacturer: Intel SR 1
    Manufacturer: OEM Define 2

的输出dmidecode | grep Product

Product Name: MY8307
Product Name: Cherry Trail CR

在 808622C1 的 modalias 文件中我发现acpi:808622C1:808622C1:

唯一与加速度计相关的两件事是这些

P: /devices/pci0000:00/808622C1:02/i2c-2/i2c-BOSC0200:00
E: DEVPATH=/devices/pci0000:00/808622C1:02/i2c-2/i2c-BOSC0200:00
E: DRIVER=bmc150_accel_i2c
E: ID_VENDOR_FROM_DATABASE=BOS
E: MODALIAS=acpi:BOSC0200:BOSC0200:
E: SUBSYSTEM=i2c
E: USEC_INITIALIZED=5496176

P: /devices/pci0000:00/808622C1:02/i2c-2/i2c-BOSC0200:00/iio:device0
N: iio:device0
E: DEVNAME=/dev/iio:device0
E: DEVPATH=/devices/pci0000:00/808622C1:02/i2c-2/i2c-BOSC0200:00/iio:device0
E: DEVTYPE=iio_device
E: IIO_SENSOR_PROXY_TYPE=iio-buffer-accel
E: MAJOR=247
E: MINOR=0
E: SUBSYSTEM=iio
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: TAGS=:systemd:
E: USEC_INITIALIZED=5755344

我也不知道如何获得正确的 ACCEL_MOUNT_MATRIX 所以我想我会尝试尝试结束错误......尽管我认为这可能是一个坏主意。

sensor:modalias:acpi:BOSC0200*:dmi:*:svnCompletElectroServ*:pnMY8307:*
    ACCEL_MOUNT_MATRIX=-1, 0, 0; 0,1, 0; 0, 0,1

编辑:已解决

相关内容