FreeBSD: NVIDIA driver does not expose GPU DDC/I2C buses to iicbus, preventing DDC/CI monitor control

System

  • OS: GhostBSD, FreeBSD 15.x based
  • Desktop: XFCE / X11
  • GPU: NVIDIA GeForce RTX 4060 Ti (AD106)
  • NVIDIA driver: 595.84
  • Kernel module: nvidia-kmod-595.84.1500068
  • DRM module: nvidia-drm-66-kmod-595.84.1500068_1
  • Display connection: DisplayPort
  • Monitor: ViewSonic VX2479 Series
  • Connected output: DP-4

Problem

The NVIDIA driver can communicate with the monitor over DDC sufficiently to obtain the EDID, but it does not expose the GPU’s DDC/I2C buses through the FreeBSD iicbus subsystem.

As a result, no /dev/iicN devices are created and FreeBSD DDC/CI utilities such as FreeDDC cannot communicate with the monitor.

I would like to use standard DDC/CI VCP commands, in particular VCP code 0x10 for hardware monitor brightness.

EDID works

The monitor is detected correctly:

DP-4 connected 1920x1080+0+0
ConnectorType: DisplayPort
ConnectorNumber: 2

The full EDID can be read through xrandr --prop, including:

VX2479 Series

nvidia-settings -q dpys also reports:

DP-4 (connected, enabled)
DFP-5
DPY-5
Connector-2

This indicates that the physical DDC path between the NVIDIA GPU and monitor is functioning.

FreeBSD I2C device is missing

The FreeBSD I2C character device module loads:

iic.ko

but no I2C devices appear:

find /dev -maxdepth 1 -name 'iic*' -print

Output:

<no output>

Likewise:

ls /dev/iic*

returns no devices.

Loaded modules include:

nvidia-drm.ko
drm.ko
iic.ko
nvidia.ko
nvidia-modeset.ko

The DRM device is present:

/dev/drm

but there is no:

/dev/iic0
/dev/iic1
...

NVIDIA driver contains I2C/DDC functionality

Searching the installed NVIDIA 595.84 kernel module shows that the binary contains multiple I2C/DDC-related Resource Manager options:

RmHdmiFrlI2cPollingMode
RMI2cSpeed
RMUseSwI2c
RMUsePmuI2c
RMUsePmuSwI2c
RMUsePmuHwI2c
RMHotPlugI2cDisplays
RMI2cValidatedPortMask
RMI2cRevalidateDdcPortWAR
RmEnableI2CBUserModeAccess
RMI2cPmgrMutexTimeoutus
RMI2cClockStretchTimeoutMs

It also contains:

I2C Error: Speed too high [NV_ERR_I2C_SPEED_TOO_HIGH]
I2C Error [NV_ERR_I2C_ERROR]

Therefore the driver clearly has an internal I2C implementation.

Registry tests

I tested:

RmEnableI2CBUserModeAccess=1

and also:

RmEnableI2CBUserModeAccess=1;RMUseSwI2c=1

The driver accepts these settings:

hw.nvidia.registry.dwords:
RmEnableI2CBUserModeAccess=1;RMUseSwI2c=1

The GPU continues operating normally:

NVIDIA-SMI 595.84
Driver Version: 595.84
NVIDIA GeForce RTX 4060 Ti

However, /dev/iicN devices still do not appear.

FreeBSD iicbus linkage

I also checked the NVIDIA kernel module for unresolved FreeBSD iicbus/I2C symbols:

nm -u /boot/modules/nvidia.ko | grep -Ei 'iic|i2c|iicbus'

No FreeBSD iicbus symbols are reported.

This appears to indicate that NVIDIA’s internal GPU I2C implementation is not registered as a FreeBSD iicbus adapter.

Why this matters

FreeBSD has software capable of sending DDC/CI commands to monitors, for example FreeDDC.

FreeDDC expects an interface such as:

/dev/iic0
/dev/iic1
/dev/iic2

Example desired use:

freeddc /dev/iicN 75

to set the monitor’s real hardware brightness to 75%.

Currently this is impossible with the NVIDIA GPU because there is no FreeBSD I2C device corresponding to the DisplayPort DDC bus.

Software brightness through xrandr or NVIDIA gamma controls is not equivalent, because it changes the framebuffer/gamma rather than the monitor’s physical backlight through DDC/CI.

Expected behavior

Ideally the NVIDIA FreeBSD driver would register each usable GPU DDC/I2C adapter with FreeBSD’s iicbus subsystem, resulting in devices such as:

/dev/iic0
/dev/iic1
...

Applications could then use the standard FreeBSD I2C API to send DDC/CI commands.

Conceptually:

NVIDIA GPU DDC/I2C
       |
       v
FreeBSD iicbus
       |
       v
/dev/iicN
       |
       v
DDC/CI applications

Linux comparison

The NVIDIA Linux driver documents I2C bus support and exposes GPU I2C adapters through the Linux I2C framework.

I cannot find an equivalent FreeBSD interface in the 595.84 driver, despite the internal NVIDIA Resource Manager clearly containing I2C/DDC functionality.

Request

Could NVIDIA please add FreeBSD iicbus integration for the GPU DDC/I2C adapters, or provide a documented supported userspace interface for accessing the NVIDIA Resource Manager I2C/DDC functionality on FreeBSD?

If RmEnableI2CBUserModeAccess is intended to provide such access, documentation describing the corresponding FreeBSD userspace API would also be very helpful.

I can provide additional nvidia-bug-report.log, pciconf, Xorg logs, EDID data, or perform driver tests if needed.

1 Like