TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

KDE Plasma Widget for external monitor brightness adjustment

229 pointsby alin23about 2 years ago

16 comments

alin23about 2 years ago
I develop Lunar (<a href="https:&#x2F;&#x2F;lunar.fyi&#x2F;" rel="nofollow">https:&#x2F;&#x2F;lunar.fyi&#x2F;</a>) for controlling monitors on Mac and stumbled upon this gem for Linux which I wanted to share with you.<p>I regularly get asked to recommend something similar to Lunar for Linux and Windows and while there&#x27;s TwinkleTray for Windows, I didn&#x27;t have a good recommendation for Linux. Glad this finally exists!<p>A lot of people also use MonitorControl for Mac and might be curious what&#x27;s the difference between it and Lunar. I have a comparison table here for those people: <a href="https:&#x2F;&#x2F;lunar.fyi&#x2F;lunar-vs-monitorcontrol" rel="nofollow">https:&#x2F;&#x2F;lunar.fyi&#x2F;lunar-vs-monitorcontrol</a>
评论 #35528905 未加载
评论 #35525983 未加载
评论 #35526435 未加载
评论 #35525743 未加载
评论 #35525591 未加载
评论 #35531160 未加载
jraphabout 2 years ago
If it ever works reliably, I hope the feature gets integrated to KDE by default, possibly in the battery icon where there is the brightness setting of the internal monitor.<p>Could be weird for desktops, so maybe the widget could be generalized a bit so it also allows setting the brightness of the laptop screen.
paolabout 2 years ago
Oh I&#x27;m definitely trying this. I currently have kb shortcuts defined for brightness up&#x2F;down that invoke ddcutil.<p>This really ought to be built into every OS. From what I&#x27;ve read, the catch is that DDC implementations are often very buggy and can cause problems, so it would be risky to do this out of the box.
评论 #35525444 未加载
评论 #35525412 未加载
评论 #35528100 未加载
crossbowffsabout 2 years ago
Neat! I&#x27;m working on something very similar for Xfce, but invoking ddcutil natively: <a href="https:&#x2F;&#x2F;github.com&#x2F;apsun&#x2F;xfce4-ddc-plugin">https:&#x2F;&#x2F;github.com&#x2F;apsun&#x2F;xfce4-ddc-plugin</a> (very much WIP, currently only supports hotkeys and a single monitor)<p>I&#x27;ve found that shelling out to the ddcutil CLI directly tends to be &quot;lossy&quot; - as in, if invoked very quickly (i.e. via keyboard shortcuts), it will tend to race with itself and fail half the time. So far the best solution I&#x27;ve found is to run a daemon to queue and batch together multiple operations, which significantly improved reliability.
评论 #35527746 未加载
plqabout 2 years ago
If your distro doesn&#x27;t have a package for the backend of this plasmoid yet, it invokes the backend with[1]:<p><pre><code> python3 -m ddcci_plasmoid_backend </code></pre> So you can probably get away with this:<p><pre><code> git clone https:&#x2F;&#x2F;github.com&#x2F;davidhi7&#x2F;ddcci-plasmoid \ &amp;&amp; cd $(python3 -c &quot;import site; print(site.getsitepackages()[0])&quot;) \ &amp;&amp; ln -s $(cd -)&#x2F;ddcci-plasmoid&#x2F;backend&#x2F;ddcci_plasmoid_backend . </code></pre> [1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;davidhi7&#x2F;ddcci-plasmoid&#x2F;blob&#x2F;3c002d9822ce4534bff2ed2e14b4f8ed8da5eef8&#x2F;plasmoid&#x2F;contents&#x2F;config&#x2F;main.xml">https:&#x2F;&#x2F;github.com&#x2F;davidhi7&#x2F;ddcci-plasmoid&#x2F;blob&#x2F;3c002d9822ce...</a>
评论 #35528984 未加载
fanatic2popeabout 2 years ago
If you use gnome, this extension has worked well for me.<p><a href="https:&#x2F;&#x2F;extensions.gnome.org&#x2F;extension&#x2F;2645&#x2F;brightness-control-using-ddcutil&#x2F;" rel="nofollow">https:&#x2F;&#x2F;extensions.gnome.org&#x2F;extension&#x2F;2645&#x2F;brightness-contr...</a>
kirubakaranabout 2 years ago
This is cool, thanks for sharing.<p>I use a bash script to adjust brightness and contrast from the command line.<p>I invoke it as `brco 80` etc where 80 sets it to 80%. The script is:<p><pre><code> $ cat `which brco` #!&#x2F;usr&#x2F;bin&#x2F;env bash set -euo pipefail # use `ddccontrol -p` (probe) to find the following: mydevice=&quot;i2c-7&quot; # brightness ddccontrol -r 0x10 -w $1 dev:&#x2F;dev&#x2F;$mydevice &amp;&gt; &#x2F;dev&#x2F;null # contrast ddccontrol -r 0x12 -w $1 dev:&#x2F;dev&#x2F;$mydevice &amp;&gt; &#x2F;dev&#x2F;null</code></pre>
swahabout 2 years ago
Also use something like this on Mac: <a href="https:&#x2F;&#x2F;github.com&#x2F;MonitorControl&#x2F;MonitorControl">https:&#x2F;&#x2F;github.com&#x2F;MonitorControl&#x2F;MonitorControl</a>
neogodlessabout 2 years ago
Now could this fix the non-functional laptop monitor brightness buttons issue I had?<p>(Lenovo Legion 5, RTX 2060, while in hybrid&#x2F;automatic GPU switching mode - brightness buttons had no effect.)
评论 #35525971 未加载
marcosdumayabout 2 years ago
Debian in particular has the ddcci-dkms package that once installed should solve the entire problem and let you control external monitors the same way you control internal ones.<p>I just found it, and I have to restart KDE to see if it worked, so no certainty here yet :)
评论 #35529384 未加载
izoowabout 2 years ago
Thanks, this is exactly what I’ve been looking for! I was even considering writing a Plasma widget myself because I couldn’t find anything. So far I’ve been using gddccontrol as it’s been the most reliable, but the UX isn’t the best.
wkat4242about 2 years ago
Nice! Just what I&#x27;m looking for. I wonder if I can get this going on FreeBSD, i2c seems to work a little differently there.
shmerlabout 2 years ago
Nice! Interesting that it has to use i2c for it. I guess there are no other interfaces to modify display properties?
mmh0000about 2 years ago
This is amazing! Thank you for sharing, can confirm it works perfectly on Fedora + KDE + (2) Dell U3415W.
treesciencebotabout 2 years ago
Looks amazing and works perfectly fine (Ubuntu Dev 23.04 + KDE with Phillips 325E1 and 328E1)
pipeline_peakabout 2 years ago
Is Kde that outdated that it needs this?
评论 #35535734 未加载