The Gain setting in DISPLAX Service controls the amplification level of the touch signal injected by the DISPLAX touch controller. Proper Gain adjustment is essential for achieving accurate touch detection while avoiding noise, false touches, or unstable behavior.
Gain tuning is typically performed together with Threshold and Shield settings.
To view the current Gain value on a local device, run:
displaxservice -a 127.0.0.1 --gain
This command returns the active Gain value used by DISPLAX Service.
To change the Gain value, specify a numeric value.
displaxservice -a 127.0.0.1 --gain 5
The new Gain value will be applied immediately to the connected touch controller.
⚠ Important Note
The Gain value used in DISPLAX Service (command line) is inverted compared to the Gain value shown in DISPLAX Connect.
This means:
A higher number in displaxservice = lower Gain in DISPLAX Connect
A lower number in displaxservice = higher Gain in DISPLAX Connect
| DISPLAX Connect | displaxservice |
|---|---|
| 7 | 0 |
| 6 | 1 |
| 5 | 2 |
| 4 | 3 |
| 3 | 4 |
| 2 | 5 |
| 1 | 6 |
| 0 | 7 |
Example:
Setting:
displaxservice --gain 5
Is equivalent to Gain = 2 in DISPLAX Connect.
Higher Gain increases touch signal amplification
Lower Gain reduces sensitivity and noise amplification
Improper Gain settings may cause:
Missed touches (Gain too low)
False or unstable touches (Gain too high)
Adjust the Gain when:
Touches are not detected reliably
Light touches are ignored
Noise or ghost touches appear
Threshold adjustments alone do not resolve stability issues
Start with moderate Gain values.
Adjust Gain before fine-tuning Threshold.
Test touch performance across the entire sensor surface.
Avoid maximum Gain unless required by thick glass or large sensors.