VDU_CONTROLS(1)
π NAME π
Okay bestie, welcome to VDU_CONTROLS(1) β the page for vdu_controls.
vdu_controls - vdu_controls 2.1.1
π¦ VDU_CONTROLS - A DDC CONTROL PANEL FOR MONITORS π¦
A control panel for DisplayPort, DVI, HDMI, or USB connected VDUs (Visual Display Units). Literally the little dashboard for your screens, and it slays.
β¨ SYNOPSIS: β¨
vdu_controls
[--help|-h] [--about] [--detailed-help] [--show
{brightness,contrast,audio-volume,input-source,power-mode,osd-language}]
[--hide
{brightness,contrast,audio-volume,input-source,power-mode,osd-language}]
[--enable-vcp-code vcp_code] [--schedule|--no-schedule]
[--location latitude,longitude] [--weather|--no-weather]
[--lux-options|--no-lux-options]
[--translations|--no-translations] [--splash|--no-splash]
[--system-tray|--no-system-tray]
[--monochrome-tray|--no-monochrome-tray]
[--mono-light-tray|--no-mono-light-tray]
[--hide-on-focus-out|--no-hide-on-focus-out]
[--smart-window|--no-smart-window] [--syslog|--no-syslog]
[--debug|--no-debug] [--warnings|--no-warnings]
[--sleep-multiplier multiplier] [--ddcutil-extra-args 'extra
args'] [--dbus-client|--no-dbus-client]
[--protect-nvram|--no-protect-nvram] [--create-config-files]
[--install] [--uninstall]
π Optional arguments: π
Bestie, arguments supplied on the command line override config file equivalent settings. The command line is main character energy, fr fr.
-h,--helpβ show this help message and exit--detailed-helpβ full help in Markdown format--aboutβ info aboutvdu_controls--show control_nameβ show specified control only, may be specified multiple times--hide control_nameβ hide/disable a control, may be specified multiple times--enable-vcp-code vcp_codeβ enable a control for a vcp-code unavailable via hide/show, may be specified multiple times--system-tray|--no-system-trayβ start up as an entry in the system tray.--no-system-trayis the default.--location latitude,longitudeβ local latitude and longitude for triggering presets by solar elevation--translations|--no-translationsβ enable/disable language translations.--no-translationsis the default.--schedule|--no-scheduleβ enable/disable preset scheduling.--scheduleis the default.--weather|--no-weatherβ enable/disable weather lookups.--weatheris the default.--lux-options|--no-lux-optionsβ enable/disable ambient light metering options.--lux-optionsis the default.--debug|--no-debugβ enable/disable additional debug information.--no-debugis the default.--warnings--no-warningsβ popup a warning when a VDU lacks an enabled control.--no-warningsis the default.--syslog|-no-syslogβ divert diagnostic output to the syslog (journald).--no-syslogis the default.--hide-on-focus-out|--no-hide-on-focus-outβ minimise the main window automatically on focus out--no-hide-on-focus-outis the default.--splash|--no-splashβ show the splash screen.--splashis the default.--monochrome-tray|--no-monochrome-trayβ monochrome dark themed system-tray.--no-monochrome-trayis the default.--mono-light-tray|--no-mono-light-trayβ monochrome themed system-tray.--no-mono-light-trayis the default.--smart-window|--no-smart-windowβ smart main window placement and geometry.--smart-windowis the default.--sleep-multiplierβ set the default ddcutil sleep multiplier protocol reliability multiplier for ddcutil (typically 0.1 .. 2.0, default is 1.0)--ddcutil-extra-argsβ extra arguments to pass to ddcutil (enclosed in single quotes)--dbus-client|--no-dbus-clientβ use the D-Bus ddcutil-service instead of the ddcutil command--dbus-clientis the default--protect-nvram|--no-protect-nvramβ alter options and defaults to minimize VDU NVRAM writes--create-config-filesβ if they do not exist, create template config INI files in$HOME/.config/vdu_controls/--installβ installs thevdu_controlsin the current user's path and desktop application menu.--uninstallβ uninstalls thevdu_controlsapplication menu file and script for the current user.
π DESCRIPTION π
vdu_controls is a control-panel for DisplayPort, DVI, HDMI, or USB connected VDUs. Out of the box, vdu_controls offers a subset of controls including brightness, contrast and audio controls. Additional controls can be enabled via the Settings dialog. Cute, right?
vdu_controls interacts with VDUs by using ddcutil to issue standard VESA Virtual Control Panel (VCP) commands via the VESA Display Data Channel (DDC). Ddcutil provides a robust interface that is tolerant of the vagaries of the many OEM DDC implementations. It's giving reliable middleman, no cap.
From vdu_controls 2.0 onward, vdu_controls defaults to using the D-Bus ddcutil-service. Should the ddcutil-service be unavailable, vdu_controls will fall back to running the ddcutil command to perform each request. Backup plan activated, periodt.
The UI's look-and-feel adjusts itself for dark and light desktop themes. The application may optionally run in the system tray of KDE, Deepin, GNOME, and Xfce (and possibly others). We love an adaptable icon.
The UI provides an optional ambient-light slider for simultaneously adjusting all VDUs according to custom per-VDU ambient lux/brightness profiles. Options are included for automated adjustment by accessing a hardware light-meters, webcams, or other devices. Ambient vibes? Handled.
Named Preset configurations can be saved and recalled. For example, presets may be created for night, day, photography, movies, and so forth. Presets can be triggered by specific ambient light levels, scheduled according to local solar elevation, vetoed by local weather conditions, or activated by UNIX signals. That's the whole preset cinematic universe.
From any UI window, F1 accesses help, and F10 accesses the main-menu. The main-menu is also available via the hamburger-menu, and also via the right-mouse button in either the main-window or the system-tray icon. The main-menu has ALT-key shortcuts for all menu items (subject to sufficient letters being available to distinguish all user defined presets). Keyboard shortcuts ate.
For further information, including screenshots, see https://github.com/digitaltrails/vdu_controls .
The long term affects of repeatably rewriting a VDUs setting are not well understood, but some concerns have been expressed. See LIMITATIONS for further details. Like, be aware, bestie.
π CONFIGURATION π
Configuration changes can be made via the Settings dialog or by editing the config-files. Both routes are valid, pick your fighter.
π Settings Menu and Config files π
The Settings dialog features a tab for editing common/default settings as well as tabs specific to each VDU. The config files are named according to the following scheme:
- Application wide default config:
$HOME/.config/vdu_controls/vdu_controls.conf - VDU model and serial number config:
$HOME/.config/vdu_controls/<model>_<serial|display_num>.conf - VDU model only config:
$HOME/.config/vdu_controls/<model>.conf
The VDU-specific config files can be used to:
- Correct manufacturer built-in metadata.
- Customise which controls are to be provided for each VDU.
- Set optimal ddcutil DDC parameters for each VDU.
The config files are in INI-format divided into a number of sections as outlined below:
[vdu-controls-globals]
# The vdu-controls-globals section is only required in $HOME/.config/vdu_controls/vdu_controls.conf
system-tray-enabled = yes|no
splash-screen-enabled = yes|no
translations-enabled = yes|no
weather-enabled = yes|no
schedule-enabled = yes|no
lux-options-enabled = yes|no
warnings-enabled = yes|no
debug-enabled = yes|no
syslog-enabled = yes|no
[vdu-controls-widgets]
# Yes/no for each of the control options that vdu_controls normally provides by default.
brightness = yes|no
contrast = yes|no
audio-volume = yes|no
audio-mute = yes|no
audio-treble = yes|no
audio-bass = yes|no
audio-mic-volume = yes|no
input-source = yes|no
power-mode = yes|no
osd-language = yes|no
# Enable ddcutil supported codes not enabled in vdu_controls by default, CSV list of two-digit hex values.
enable-vcp-codes = NN, NN, NN
[ddcutil-parameters]
# Useful values appear to be >=0.1
sleep-multiplier = 0.5
[ddcutil-capabilities]
# The (possibly edited) output from "ddcutil --display N capabilities" with leading spaces retained.
capabilities-override =
Config files can only be used to enable and alter definitions of VCP codes supported by ddcutil. Unsupported manufacturer specific features should only be experimented with caution, some may have irreversible consequences, including bricking the hardware.
π«Ά Bestie, that warning is not a vibe. Unsupported manufacturer specific features can be irreversible, including bricking the hardware. Do not play with them casually.
As well as using the Settings, config files may also be created by the command line option:
vdu_controls --create-config-files
which will create initial templates based on the currently connected VDUs.
The config files are completely optional, they need not be used if the default options are found to be adequate. Lowkey freeing.
π Adding value restrictions to a VDU's capabilities override π
In some cases, a VDU's DDC reported minimums and maximums may be incorrect or overstated. Within vdu_controls this can be corrected by overriding the DDC reported range. For example, perhaps a VDU reports it supports a brightness range of 0 to 100, but in fact only practically supports 20 to 90. This can be corrected by bringing up the VDU's settings tab and editing the text in the capabilities override:
- Open the Settings tab for the VDU, navigate to the
"capabilities override*field - locate the feature, in this example, the brightness,
- add a
Values: min..maxspecification to line the following the feature definition, - save the changes.
For the brightness example the completed edit would look like:
Feature: 10 (Brightness)
Values: 20..80
The vdu_controls slider for that value will now be restricted to the specified range. Iconic.
β¨ Adding a refresh/reload requirement to a VDU's capabilities override β¨
okay so bestie, hereβs the situation: changing some VCP code values can lowkey cause a whole cascade of changes in other codes. Like, changing a VCP value for Picture Mode might change several VCP-code features, including brightness, contrast, and others. The metadata from each VDU does not say exactly which codes have these side effects, but vdu_controls supports adding refresh annotations to the feature-names inside the capabilities override. For example:
Feature: 15 (Picture Mode)
can be annotated like this:
Feature: 15 (Picture Mode *refresh*)
With that annotation, whenever Picture Mode is altered, vdu_controls will reload all configuration files and refresh all control values from the VDUs. π
π Presets π
A custom named preset can save the current VDU settings for later recall. You can create any number of presets for different lighting conditions or different applications β for example: Night, Day, Overcast, Sunny, Photography, and Video. Each preset can be assigned a name and an icon.
The Presets item in main-menu will bring up a Presets dialog for managing and applying presets. The main-menu also includes a shortcut for applying each existing presets. β¨
Any small SVG or PNG can be assigned as a presetβs icon. Monochrome SVG icons that conform to the Plasma color conventions will be automatically inverted if the desktop theme is changed from dark to light. If a preset lacks an icon, an icon will be created from its initials (of its first and last words). A starter set of icons is included in /usr/share/vdu_controls/icons/. π
Any time the current VDUs settings match those of a preset, the presetβs name and icon will automatically show in the window-title, tray tooltip, tray icon. π
Presets may be set to transition immediately (the default); gradually on schedule (solar elevation); or gradually always (when triggered by schedule, main-menu, or UNIX signal). The speed of transition is determined by how quickly each VDU can respond to adjustment. During a transition, the transition will be abandoned if the controls involved in the transition are altered by any other activity.
Each preset is stored in config directory as:
$HOME/.config/vdu_controls/Preset_<preset_name>.conf
Preset files are saved in INI-file format for ease of editing. Each preset file contains a section for each connected VDU, for example:
[preset]
icon = /usr/share/icons/breeze/status/16/cloudstatus.svg
solar-elevation = eastern-sky 40
transition-type = scheduled
transition-step-interval-seconds = 5
[HP_ZR24w_CNT008]
brightness = 50
osd-language = 02
[LG_HDR_4K_89765]
brightness = 13
audio-speaker-volume = 16
When creating a preset file, you may select which controls to save for each VDU. For example, you might create a preset that includes the brightness, but not the contrast or audio-volume. Keeping the included controls to a minimum speeds up the transition and reduces the chances of the VDU failing to keep up with the associated stream of DDC commands. π«Ά
While using the GUI to create or edit a preset, activation of scheduled presets and adjustments due to light-metering are blocked until editing is complete.
π¦ Presets - VDU initialization-presets π¦
For a VDU named abc with a serial number xyz, if a preset named abx xyz exists, that preset will be restored at startup or whenever the VDU is subsequently detected.
This feature is designed to restore settings that cannot be saved in the VDUβs NVRAM or for VDUs where the NVRAM capacity has been exhausted. π
πΈ Presets - solar elevation triggers πΈ
A preset may be set to automatically trigger when the sun rises to a specified elevation. The idea being to allow a preset to trigger relative to dawn or dusk, or when the sun rises above some surrounding terrain (the time of which will vary as the seasons change). π
If a preset has an elevation, the preset will be triggered each day at a time calculated according to the latitude and longitude specified in the vdu-controls-globals location option. By choosing an appropriate solar-elevation a preset may be confined to specific times of the year. For example, a preset with a positive solar elevation will not trigger at mid-winter in the Arctic circle (because the sun never gets that high). Any preset may be manually invoked regardless of its specified solar elevations. β¨
To assign a trigger, use the Preset Dialog to set a presetβs solar-elevation. A solar elevation may range from -19 degrees in the eastern sky (morning/ascending) to -19 degrees in the western sky (afternoon/descending), with a maximum nearing 90 degrees at midday. βοΈ
On any given day, the Preset Dialog may be used to temporarily override any trigger, in which case the trigger is suspended until the following day. For example, a user might choose to disable a trigger intended for the brightest part of the day if the day is particularly dull.
At startup vdu_controls will restore the most recent preset that would have been triggered for this day (if any). For example, say a user has vdu_controls set to run at login, and theyβve also set a preset to trigger at dawn, but they donβt actually log in until just after dawn, the overdue dawn preset will be triggered at login. π«Ά
π Presets - Smooth Transitions π
In order to minimize writes to VDU NVRAM, the smooth transition of presets is deprecated and is now normally disabled. Transitions can be re-enabled by disabling protect-nvram in _Settings_.
π¨ Bestie, this part is deprecated for a reason β smooth transitions are normally off to protect VDU NVRAM. Donβt forget that.
A preset may be set to Transition Smoothly, in which case changes to continuous-value slider controls such as brightness and contrast will be stepped by one until the final values are reached. Any non-continuous values will be set after all continuous values have reached their final values, for example, if input-source is included in a preset, it will be restored at the end.
The Preset Dialog includes a combo-box for defining when to apply transitions to a preset:
- None - change immediately;
- On schedule - slowly change according to a solar elevation trigger;
- On signal - slowly change on the appropriate UNIX signal;
- On menu - slowly change when selected in the main-menu;
Normally a transition single-steps the controls as quickly as possible. In practice this means each step takes one or more seconds and increases linearly depending on the number of VDUs and number of controls being altered. The Presets Dialog includes a Transition Step seconds control that can be used to increase the step interval and extend a transition over a longer period of time. β³
If any transitioning controls change independently of the transition, the transition will cease. In that manner a transition can be abandoned by dragging a slider or choosing a different preset. ποΈ
π Presets - supplementary weather requirements π
A solar elevation trigger can have a weather requirement which will be checked against the weather reported by https://wttr.in.
By default, there are three possible weather requirements: good, bad, and all weather. Each requirement is defined by a file containing a list of WWO (https://www.worldweatheronline.com) weather codes, one per line. The three default requirements are contained in the files $HOME/.config/vdu_controls/{good,bad,all}.weather. Additional weather requirements can be created by using a text editor to create further files. The all.weather file exists primarily as a convenient resource that lists all possible codes. π¦οΈ
Because reported current weather conditions may be inaccurate or out of date, itβs best to use weather requirements as a coarse measure. Going beyond good and bad may not be very practical. Whatβs possible might depend on your local weather conditions.
To ensure wttr.in supplies the weather for your location, please ensure that Settings Location includes a place-name suffix. The Settings Location Detect button has been enhanced to fill out a place-name for you. Should wttr.in not recognise a place-name, the place-name can be manually edited to something more suitable. The nearest big city or an airport-code will do, for example: LHR, LAX, JFK. You can use a web browser to test a place-name, for example: https://wttr.in/JFK. π«
When weather requirements are in use, vdu_controls will check that the coordinates in Settings Location are a reasonable match for those returned from wttr.in, a warning will be issued if they are more than 200 km (124 miles) apart. β οΈ
If the place-name is left blank, the wttr.in server will try to guess your location from your external IP address. The guess may not be accurate and may vary over time.
π₯ Presets - remote control π₯
Scripts may use UNIX/Linux signals to instruct a running vdu_controls to invoke a preset or to initiate "Refresh settings from monitors". Signals in the range 40 to 55 correspond to first to last presets (if any are defined). Additionally, SIGHUP can be used to initiate "Refresh settings from monitors". For example:
Identify the running vdu_controls (assuming it is installed as
/usr/bin/vdu_controls):
ps axwww | grep '[/]usr/bin/vdu_controls'
Combine this with kill to trigger a preset change:
kill -40 $(ps axwww | grep '[/]usr/bin/vdu_controls' | awk '{print $1}')
kill -41 $(ps axwww | grep '[/]usr/bin/vdu_controls' | awk '{print $1}')
Or if some other process has changed a VDUs settings, trigger
vdu_controls to update its UI:
kill -HUP $(ps axwww | grep '[/]usr/bin/vdu_controls' | awk '{print $1}')
Any other signals will be handled normally (in many cases they will result in process termination). π
π§ Ambient Light Levels and Light/Lux Metering π§
The default UI includes an ambient-light slider which will simultaneously adjust all VDUs according to custom per-VDU lux/brightness profiles. As well as indicating the ambient light level manually via the slider, vdu_controls can be configured to periodically read from a hardware lux metering device and adjust brightness automatically. The Lux-Dialog provides controls for setting up light metering and VDU lux/brightness profiles. If ambient light level controls are not required, the Settings Dialog includes an option to disable and hide them. π‘
As well as the manual-slider, a metering device may be a serial-device, a UNIX FIFO (named-pipe), or an executable (script or program):
- A serial-device must periodically supply one floating-point lux-value terminated by a carriage-return newline.
- A FIFO must periodically supply one floating-point lux-value terminated by a newline.
- An executable has to spit out one floating-point lux-value reading, terminated by a newline, every single time it's run. That's the whole contract, bestie. π
Possible hardware devices include:
- An Arduino with a
GY-30/BH1750lux meter writing to a usb serial-port. π - A webcam that gets periodically sampled to produce approximate lux values. Those values might be estimated by analysing image content, or by analysing image settings that contribute to exposure β such ISO values, apertures, and shutter speed. πΈ
Further info on the various lux metering options, plus instructions for building and programming an Arduino with a GY-30/BH1750, lives here:
https://github.com/digitaltrails/vdu_controls/blob/master/Lux-metering.md
Example scripts for mapping a webcam's average-brightness to approximate lux values ship in /usr/share/vdu_controls/sample-scripts/ β or you can grab them from:
https://github.com/digitaltrails/vdu_controls/tree/master/sample-scripts.
The examples include vlux_meter.py, a beta-release Qt-GUI python-script that meters from a webcam and writes to a FIFO ($HOME/.cache/vlux_fifo). It's got controls for mapping image-brightness to lux mappings, and for defining a crop from which to sample brightness values. The script optionally runs in the system-tray too, cute. π¦
Heads up: the examples may need customising for your own webcam and your own lighting conditions. No cap.
π Lux Metering and brightness transitions π
So, real talk: because of VDU hardware and DDC protocol limitations, gradual transitions from one brightness level to another are likely to be noticeable and potentially annoying. π And annoying is one thing, but excessive stepping may also eat into your VDU NVRAM lifespan. Not iconic behaviour.
The auto-brightness adjustment feature includes several measures to reduce the number of changes passed to the VDU:
- Lux/Brightness Profiles may be altered for local conditions so that brightness levels stay constant over set ranges of lux values (night, day, and so forth). πβοΈ
- Adjustments are only made at intervals of one or more minutes (default is 10 minutes). β³
- The adjustment task passes lux values through a smoothing low-pass filter.
- A VDU brightness profile may optionally be set to stair-step with no interpolation of intermediate values. πͺ
When ambient light conditions are fluctuating β think passing clouds, the classic β automatic adjust can be manually suspended. The main-panel, main-menu, and light-metering dialog each contain controls for toggling Auto/Manual. Also: moving the manual lux-slider turns off automatic adjustment. You have the power. π
The Light-metering dialog includes an option to enable auto-brightness interpolation. This option will enable the calculation of values between steps in the profiles. In order to avoid tiny fluctuating changes, interpolation won't result in brightness changes less than 10%. During interpolation, if a lux value is found to be in proximity to any attached preset, the preset values will be preferred over interpolated ones. Presets stay winning. π
β¨ Light/Lux Metering and Presets β¨
The Light-Metering Dialog includes the ability to set a Preset to trigger at a lux value. You access this feature by hovering under the bottom axis of the Lux Profile Chart. Lowkey hidden, but it's there. π«Ά
When a preset is tied to a lux value, the preset's VDU brightness values become fixed points on the Lux Profile Chart. When the specified metered lux value is achieved, the stepping process will restore the preset's brightness values and then trigger the full restoration of the preset. That ordering of events reduces the likelihood of metered-stepping and preset-restoration clashing. It's giving choreography. π§
A preset that doesn't include a VDU's brightness may be attached to a lux point to restore one or more non-brightness controls. For example, on reaching a particular lux level, an attached preset might restore a contrast setting. Slay.
If a preset is attached to a lux value and then detached, the preset's profile points will be converted to normal (editable) profile points. Attach/detach is a quick way to copy VDU brightness values from presets if you don't want to permanently attach them. Free real estate, kinda. π
If you utilise light-metered auto-brightness and preset-scheduling together, their combined effects may conflict. For example, a scheduled preset may set a reduced brightness, but soon after, light-metering might increase it. They're fighting, basically π
If you wish to use the two together, design your lux/brightness profile steps to match the brightness levels of specific presets β for example, a full-sun preset and the matching step in a lux/brightness Profile might both be assigned the same brightness level. Match made in heaven. πΈ
π Lux Metering Internal Parameters π
The following internal constants can be altered by manually editing ~/.config/vdu_controls/AutoLux.conf. They guide the various metering and auto-adjustment heuristics:
[lux-meter]
# How many times per minute to sample from the Lux meter (for auto-adjustment)
samples-per-minute=3
# How many samples to include in the smoothing process
smoother-n=5
# How heavily should past values smooth the present value (smaller = more smoothing)
# See: https://en.wikipedia.org/wiki/Low-pass_filter#Simple_infinite_impulse_response_filter
smoother-alpha=0.5
# If an interpolated value yields a change in brightness, how big should the change
# be to trigger an actual VDU change in brightness? Also determines how close
# an interpolated value needs to be to an attached preset's brightness in order
# to prefer triggering the preset over applying the interpolated value.
interpolation-sensitivity-percent=10
# Jump brightness in one step up to this maximum, after which transition in steps.
max-brightness-jump=100
β‘ Improving Response Time: Dynamic Optimization and Sleep Multipliers β‘
If you're using ddcutil version 2.0 or greater, vdu_controls will default to using the ddcutil dynamic sleep optimiser. The optimiser automatically tunes and caches VDU specific timings whenever ddcutil is run. Any reliability issues or errors may be automatically resolved as the optimiser refines its cached timings β it's self-care, honestly. π₯
Should problems persist, the optimiser can be disabled by adding --disable-dynamic-sleep to the ddcutil extra arguments in the Settings Dialog (either globally on the vdu_controls tab, or selectively under each VDU's tab). If dynamic sleep is disabled, multipliers can then be manually assigned. Heads up that the optimiser's heuristics continue to be refined, so it may be that some issues get resolved by moving to a more recent version of libddcutil/ddcutil. Software's a journey. π
For versions of ddcutil prior to 2.0, you can manually set the vdu_control sleep-multiplier passed to ddcutil. A sleep multiplier less than one will speed up the i2c protocol interactions at the risk of increased protocol errors. The default sleep multiplier of 1.0 has to be quite conservative, and many VDUs can cope with smaller multipliers. A bit of experimentation with multiplier values may greatly speed up responsiveness. In a multi-VDU setup, individual sleep multipliers can be configured (see previous section). Science! π§ͺ
π Improving Response Time and Reliability: Connections and Controls π
DDC/I2C is not a totally reliable form of communication. Unpopular fact but true. VDUs may vary in their responsiveness and compliance. GPUs, GPU drivers, and types of connection may affect the reliability. Both ddcutil and vdu_controls attempt to manage the reliability by using repetition and by adjusting timings. They're doing their best, ok. π
If you have the choice, a DisplayPort to DisplayPort connection may be more reliable than DVI or HDMI. Plug accordingly, bestie. π
Reducing the number of enabled controls can speed up initialization, decrease the refresh time, and reduce the time taken to restore presets. Less is more, and also less is faster. β
There's plenty of useful info for getting the best out of ddcutil at:
https://www.ddcutil.com/
π LIMITATIONS π
okay bestie, real talk first: repeatably altering VDU settings might affect VDU lifespan β think exhausting the NVRAM write cycles, stressing the VDU power-supply, or increasing panel burn-in. not a vibe, but also not a reason to panic.
That said, vdu_controls does include a number of features that can be used to reduce the overall frequency of adjustments.
- Inbuilt mitigations:
- Slider and spin-box controls only update the VDU when adjustments become slow or stop (when no change occurs in
0.5 seconds). - Preset restoration only updates the VDU values that differ from its current values.
- Transitioning smoothly has been disabled by default and deprecated for version
2.1.0onward. - Automatic ambient brightness adjustment only triggers a change when the proposed brightness differs from the current brightness by at least
10%.
- Slider and spin-box controls only update the VDU when adjustments become slow or stop (when no change occurs in
- Electable mitigations:
- Choose to restore pre-prepared 'presets' instead of dragging sliders.
- Refrain from adding transitions to presets.
- If using the ambient-light brightness response curves, tune the settings and curves to minimise frequent small changes.
- If using a light-meter, disengage metered automatic adjustment when faced with rapidly fluctuating levels of ambient brightness.
- The About-Dialog reports a count of
setvcpwrites per VDU. Hovering over a VDU-name in the main-window reveals the count for that VDU. Use these numbers to tune the number of writes to acceptable levels. - Consider adjusting the ambient lighting instead of the VDU.
πΈ Other concerns πΈ
The power-supplies in some older VDUs may buzz/squeel audibly when the brightness is turned way down. This may not be a major issue because, in normal surroundings, older VDUs are often not usable below about 85-90% brightness.
β οΈ Going beyond the standard DDC features by attempting to experiment with hidden or undocumented features or values has the potential to make irreversible changes.
Some controls change the number of connected devices (for example, some VDUs support a power-off command). If such controls are used, vdu_controls will detect the change and will reconfigure the controls for the new situation (for example, DDC VDU 2 may now be DDC VDU 1). If you change settings independently of vdu_controls, for example, by using a VDU's physical controls, the vdu_controls UI includes a refresh button to force it to assess the new configuration.
Some VDU settings may disable or enable other settings in the VDU. For example, setting a VDU to a specific picture-profile might result in the contrast-control being disabled, but vdu_controls will not be aware of the restriction resulting in its contrast-control erring or appearing to do nothing.
If your VDUs support picture-modes, altering any controls in vdu_controls will most likely result in the picture-mode being customised. For example, say you have selected the VDU's Vivid picture-mode, if you use vdu_controls to change the brightness, it's likely that this will now become the brightness for Vivid until the VDU is reset to its defaults. To avoid confusion, it may be advisable to stick to one picture-mode for use with vdu_controls, preserving the others unaltered.
The ddcutil-service has some ability to signal hot-plug events, such as connecting a new VDU or powering one down. Not all GPU-drivers support an efficient means of event detection, as a result there may be a delay of many seconds before ddcutil-service passes these events to vdu_controls.
Builtin laptop displays normally don't implement DDC and those displays are not supported, but a laptop's externally connected VDUs are likely to be controllable.
π EXAMPLES π
okay, here are the literal example invocations from the page β keep the commands exact, bestie:
vdu_controls
All default controls.
vdu_controls --show brightness --show contrast
Specified controls only:
vdu_controls --hide contrast --hide audio-volume
All default controls except for those to be hidden.
vdu_controls --system-tray --no-splash --show brightness --show
audio-volume
Start as a system tray entry without showing the
splash-screen.
vdu_controls --create-config-files --system-tray --no-splash --show
brightness --show audio-volume
Create template config files in $HOME/.config/vdu_controls/
that include the other settings.
vdu_controls --enable-vcp-code 63 --enable-vcp-code 93 --warnings
--debug
All default controls, plus controls for VCP_CODE 63 and 93,
show any warnings, output debugging info.
This script often refers to displays and monitors as VDUs in order to disambiguate the noun/verb duality of display and monitor.
β¨ PREREQUISITES β¨
Described for OpenSUSE, similar for other distros:
Software:
zypper install python3 python3-qt5 noto-sans-math-fonts noto-sans-symbols2-fonts
zypper install ddcutil
zypper install libddcutil ddcutil-service # optional, but recommended if availabled
If you wish to use a serial-port lux metering device, the pyserial module is a runtime requirement.
Get ddcutil working first. Check that the detect command detects your VDUs without issuing any errors:
ddcutil detect
Read ddcutil documentation concerning config of i2c_dev with nvidia GPUs. Detailed ddcutil info at https://www.ddcutil.com/
π¦ ENVIRONMENT π¦
these are the env vars, and yes every single one matters:
LC_ALL,LANG,LANGUAGEβ These variables specify the locale for language translations and units of distance.LC_ALLis used by python,LANGUAGEis used by Qt. Normally, they should all have the same value, for example:Da_DK. For these to have any effect on language, Settings Translations Enabled must also be enabled.VDU_CONTROLS_UI_IDLE_SECSβ The length of pause in slider or spin-box control motion that triggers commit of the controls value to the VDU. This is a precautionary throttle in case frequently updating a VDU might shorten its lifespan. The default is0.5 seconds.VDU_CONTROLS_IPINFO_URLβ Override the default ip-address to location service URL (https://ipinfo.io/json).VDU_CONTROLS_WTTR_URLβ Override the default weather service URL (https://wttr.in).VDU_CONTROLS_WEATHER_KMβ Override the default maximum permissible spherical distance (in kilometres) between the Settings Location andwttr.inreported location (200 km, 124 miles).VDU_CONTROLS_DDCUTIL_ARGSβ Add to the list of arguments passed to each exec ofddcutil.VDU_CONTROLS_DDCUTIL_RETRIESβ Set the number of times to repeat addcutil getvcporsetvcpbefore returning an error.VDU_CONTROLS_DEVELOPERβ Changes some search paths to be more convenient in a development scenario. (nooryes)VDU_CONTROLS_DBUS_TIMEOUT_MILLISβ Dbus call wait timeout. Default is10000,10 seconds.
π FILES π
$HOME/.config/vdu_controls/β Location for config files, Presets, and other persistent data.$HOME/.config/vdu_controls/tray_icon.svgβ If present, this file is the preferred source for the system-tray icon. It can be used if the normal icon conflicts with the desktop theme. If the Settings monochrome-tray and mono-light-tray are enabled, they are applied to the file when it is read.$HOME/.config/vdu_controls/translations/β Location for user supplied translations.$HOME/.config/vdu_controls.qt.state/β Location for Qt/desktop state such as the past window sizes and locations./usr/share/vdu_controlsβ Location for system-wide icons, sample-scripts, and translations.
π«Ά REPORTING BUGS π«Ά
https://github.com/digitaltrails/vdu_controls/issues
π GNU LICENSE π
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
π AUTHOR π
Michael Hamilton
π COPYRIGHT π
2021, Michael Hamilton
okay that's literally the whole VDU_CONTROLS(1) page β source/version VDU_CONTROLS(1), dated Oct 15, 2024 β go forth and adjust responsibly, bestie πβ¨π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: vdu_controls 2.1.1-bp160.1.9 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms