Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #94172 > unrolled thread

Bug#1148724: linux: please enable CONFIG_BMI323_I2C (BOSC0200 accelerometers on 2-in-1s)

Started byywp1023456@foxmail.com
First post2026-09-22 19:40 +0200
Last post2026-10-09 12:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.debian.kernel


Contents

  Bug#1148724: linux: please enable CONFIG_BMI323_I2C (BOSC0200 accelerometers on 2-in-1s) ywp1023456@foxmail.com - 2026-09-22 19:40 +0200
    Bug#1148724: marked as done (linux: please enable CONFIG_BMI323_I2C  (BOSC0200 accelerometers on 2-in-1s)) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2026-10-09 12:20 +0200

#94172 — Bug#1148724: linux: please enable CONFIG_BMI323_I2C (BOSC0200 accelerometers on 2-in-1s)

Fromywp1023456@foxmail.com
Date2026-09-22 19:40 +0200
SubjectBug#1148724: linux: please enable CONFIG_BMI323_I2C (BOSC0200 accelerometers on 2-in-1s)
Message-ID<NGcDf-1aUq-1@gated-at.bofh.it>
Package: linux
Severity: wishlist

Dear maintainers,

The Debian kernel does not enable CONFIG_BMI323_I2C. On 2-in-1 convertible
laptops whose accelerometer is a Bosch BMI323 exposed under the ACPI ID
BOSC0200, no IIO device is created, so iio-sensor-proxy has no data source
and GNOME automatic screen rotation does not work.

The same hardware works correctly with Gentoo's gentoo-kernel-bin 6.18.48,
where this driver is enabled. This indicates that the sensor hardware itself
is functional and that the missing IIO device is due to the Debian kernel
configuration.

My machine:

    H3C MegaBook 14 (2-in-1 convertible)
    Intel Core Ultra 5 226V (Lunar Lake)
    Accelerometer: Bosch BMI323, connected over I2C
    ACPI device: BOSC0200:00

On Debian 13 (trixie) with kernel 7.1.8+deb13-amd64 (source version
7.1.8-1~bpo13+1):

    $ grep BMI323 /boot/config-7.1.8+deb13-amd64
    # CONFIG_BMI323_I2C is not set
    # CONFIG_BMI323_SPI is not set

    $ find /lib/modules/7.1.8+deb13-amd64 -name '*bmi323*'
    (no output)

    $ dmesg | grep -i bosc
    [...] bmc150_accel_i2c i2c-BOSC0200:00: Invalid chip 0

    $ ls /sys/bus/iio/devices/
    (empty)

    $ ls /sys/class/iio/
    (empty)

iio-sensor-proxy 3.7-3 is installed from Debian main, but there is no IIO
device for it to read, so automatic screen rotation does not work.

The option is absent from Debian's kernel configuration, in both the backports
source matching the kernel I run and in stable trixie:

    linux 7.1.8-1~bpo13+1   debian/config/config   8050 lines   grep -ci bmi323 -> 0
    linux 6.12.107-1        debian/config/config   8212 lines   grep -ci bmi323 -> 0

In both files, the sibling driver in the same Kconfig directory is enabled
explicitly:

    ## file: drivers/iio/imu/bmi160/Kconfig
    CONFIG_BMI160_I2C=m
    CONFIG_BMI160_SPI=m

There is no entry referencing drivers/iio/imu/bmi323/Kconfig anywhere in
either file. The upstream Kconfig entry is:

    config BMI323_I2C
            tristate "Bosch BMI323 I2C driver"
            depends on I2C
            select BMI323
            select REGMAP_I2C

It is a tristate with no default, so the option remains disabled when Debian's
configuration does not mention it. I could not find any Debian-specific reason
for it being disabled.

The "Invalid chip 0" line above is expected behaviour rather than an error. The
upstream bmc150 driver documents, in drivers/iio/accel/bmc150-accel-i2c.c, that
BOSC0200 is also used by BMI323-based devices such as the ASUS ROG Ally and
Ayaneo Air Plus. Because the bmc150 and BMI323 chip IDs differ, the bmc150
chip-ID check fails on those devices, which allows the BMI323 driver to bind
instead. On this system that handoff cannot happen, because the bmi323 driver
is not enabled in the Debian kernel.

Working configuration on the same hardware, with
sys-kernel/gentoo-kernel-bin-6.18.48:

    $ ls /sys/bus/iio/devices/
    iio:device0

    $ cat /sys/bus/iio/devices/iio:device0/name
    bmi323-imu

iio-sensor-proxy detects the device and GNOME automatic screen rotation works
normally.

Please enable the BMI323 I2C driver in the Debian kernel configuration:

    ## file: drivers/iio/imu/bmi323/Kconfig
    CONFIG_BMI323_I2C=m

CONFIG_BMI323_SPI is not required for my hardware, since the sensor is
connected over I2C; enabling it as well may be appropriate for consistency
with the I2C driver.

The BOSC0200 + BMI323 combination is documented upstream for the ASUS ROG
Ally and Ayaneo Air Plus, so this change may benefit other affected systems
as well.

I searched the Debian BTS before filing; the closest match (#1106411, a bmc150
NULL-pointer dereference, since fixed) is a different issue.

Thank you for your work on the Debian kernel.

[toc] | [next] | [standalone]


#94412 — Bug#1148724: marked as done (linux: please enable CONFIG_BMI323_I2C (BOSC0200 accelerometers on 2-in-1s))

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2026-10-09 12:20 +0200
SubjectBug#1148724: marked as done (linux: please enable CONFIG_BMI323_I2C (BOSC0200 accelerometers on 2-in-1s))
Message-ID<NMfRM-4ryG-67@gated-at.bofh.it>
In reply to#94172

[Multipart message — attachments visible in raw view] — view raw

Your message dated Fri, 09 Oct 2026 10:14:18 +0000
with message-id <E1xF7cI-0000000G2SW-1tTV@fasolo.debian.org>
and subject line Bug#1148724: fixed in linux 7.3~rc6-1~exp1
has caused the Debian Bug report #1148724,
regarding linux: please enable CONFIG_BMI323_I2C (BOSC0200 accelerometers on 2-in-1s)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1148724: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1148724
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web