You are correct in noting that the perceived brightness levels between Windows and Linux using tools like xbacklight can differ, even if the same percentage values are used. This discrepancy can arise due to several factors, including differences in how the operating systems interact with display hardware, variations in driver implementations, and the specific method used to control the backlight.
The brightness control in Windows often uses an adaptive logarithmic or non-linear scale, which can make the brightness appear to change more dramatically at lower percentages compared to higher ones. This approach can make the display feel more comfortable to human eyes, which do not respond to changes in luminance linearly.
On the other hand, xbacklight typically interacts with the backlight through a simpler linear control provided by the X server, which might not correspond directly to the non-linear adjustments seen in Windows. This means that setting xbacklight -set 30 could indeed appear brighter than setting a Windows machine to 30% brightness.
To mimic the Windows brightness behavior more closely on Linux, you might need to adjust the brightness values experimentally to find a more visually similar setting, or use a more sophisticated tool or script that applies a non-linear scaling factor to the brightness values.
If you want to experiment with adjusting the brightness in a more controlled manner, you might consider using a script that adjusts the brightness non-linearly. Here’s a simple conceptual example using bash and xbacklight:
#!/bin/bash
# Function to convert Windows-style percentage to a more non-linear scale suitable for xbacklight
function adjust_brightness {
local win_percent=$1
local max_brightness=$(cat /sys/class/backlight/*/max_brightness)
local non_linear_value=$(echo "scale=0; $max_brightness * ($win_percent/100)^2.2" | bc)
xbacklight -set $(echo "scale=2; 100 * $non_linear_value / $max_brightness" | bc)
}
# Set brightness to a Windows-like 30%
adjust_brightness 30
This script is conceptual and may require adjustments based on your specific hardware and setup. The exponent 2.2 in the formula is arbitrary and used here for illustrative purposes to create a non-linear effect. You might need to tweak this value based on your observations and preferences.
In practice, achieving exact parity in brightness perception across different operating systems and hardware setups can be challenging due to the inherent variability in display technology and driver behavior. Experimentation and adjustment are often necessary to find the best settings for your specific situation.