HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
rockowitz
ddcutil
C2018–2026
rockowitz / ddcutil

ddcutil

Control monitor settings using DDC/CI and USB

8Distinct people
9Mentions
1Explicit recommenders
1.4KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Control monitor settings using DDC/CI and USB

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

I love this approach, but a few years ago I tried it very unsuccessfully with my Xiaomi Mi 34" ultrawide. By very unsuccessfully, I mean that the commands to change input…

GeorgeDewar used a recommendation phrase. One indexed comment matches. This is a phrase match, not a verdict.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

Mentioned in the same Hacker News threads. That is not proof they are substitutes.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:03:16 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year9 dated mentions

Observed mentions: 2018-03-27 01:33:25 UTC to 2026-05-18 20:50:41 UTC.

01232018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20182019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20222023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-01 00:00:00 UTC to 2027-01-01 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments. Incomplete calendar period.2026*

* An incomplete calendar period is marked with an outlined bar. Its count is not directly comparable with a full period.

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC101
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC000
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC202
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC101
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC101
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC101
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC000
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC000
2026 (partial)2026-01-01 00:00:00 UTC2027-01-01 00:00:00 UTC303

What Hacker News says

9 sources
GeorgeDewar·May 18, 2026Recommendation phrase
I love this approach, but a few years ago I tried it very unsuccessfully with my Xiaomi Mi 34" ultrawide. By very unsuccessfully, I mean that the commands to change input didn't work. I can't remember if they did nothing or crashed the monitor, but subsequent investigation led me to realise I was lucky not to brick it, as some people found certain commands cause non-recoverable issues on that monitor! So, I suggest caution in the form of maybe checking that others have successfully used DDC commands on your particular model. https://github.com/rockowitz/ddcutil/issues/153
In Two computers, one monitor, zero fiddling (2025)
I did that at home. But I needed to try several KVMs until I found one which was stable. And I hate all the cables. I agree that the industry hates its consumers and likes to mess things up. CEC never always quite the same. Not supported on many GPUs etc. I do not want to appear to condone LG. But actually (sorry!) some supoort[0] it using DDC side channels (0x50 rather that 0x51). But I agree it is painful. Yet I prefer it over my cable spaghetti. [0] https://github.com/rockowitz/ddcutil/wiki/Switching-input-so...
In Two computers, one monitor, zero fiddling (2025)
There are some tools out there that will allow you to bind hotkeys (or at least provide a widget) to send brightness-adjustment commands via DDC/CI over the HDMI/DP cable to your desktop monitor. This may improve your UX. My 2015 and 2021 Dell monitors both support the functionality, with differing degrees of finesse. Non-exhaustive list: Linux: https://github.com/ddccontrol/ddccontrol || https://github.com/rockowitz/ddcutil macOS: https://github.com/MonitorControl/MonitorControl Windows: https://github.com/emoacht/Monitorian
In Scrollbars are becoming a problem
Yeah, this is almost certainly the same bug. Some more info here [1] [2] [3]. In my case, using the second direct HDMI cable like you did was a non-starter because my Thinkpad only supports 4k at 30 Hz via the built-in HDMI port (!), vs. 4k at 60 Hz if you use the Thunderbolt port or a dock / adapter connected to that port. 30 Hz gave me eye strain after less than 5 minutes. [1] https://gitlab.freedesktop.org/drm/intel/-/issues/37 [2] https://github.com/rockowitz/ddcutil/issues/11 [3] https://github.com/rockowitz/ddcutil/issues/146
In Linux 5.10
I use a USB host-side switch [0] to quickly move my keyboard and mouse between my desktop and my laptop's docking station, since my 4k monitor already supports multiple inputs, and 4k capable KVMs are expensive and buggy. In order to make the switch, I push one button on the USB switch, and then select the next input on my monitor (four button presses using the monitor's OSD). There's a great little tool called ddcutil [1] that allows you to send commands to your monitor via the i2c bus embedded in your HDMI/DisplayPort connection, so I tried to write a script to do the monitor input swap on either a key binding or after detecting the appropriate USB event. It almost worked. My monitor only listens to the i2c bus of the selected input, so I need to run this script on both my desktop and laptop rather than just on the desktop. But apparent
Read the rest
ly there was a bug in the way my (TB3) dock handled forwarding of the DP i2c data to the docking host. And by bug, I mean write forwarding was just not implemented in the kernel driver. So ddcutil would work on my laptop with a direct HDMI connection, but not when it was connected via the dock. Anyway, long story short: 5.10 fixes this [2], so I'm particularly excited about this release. [0] https://www.amazon.com/Cable-Matters-Sharing-Computers-Perip... [1] https://github.com/rockowitz/ddcutil [2] https://lkml.org/lkml/2020/9/1/300
In Linux 5.10

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.