There does appear to be a work around here:
https://wiki.archlinux.org/index.php/HP_Spectre_x360_13-4231ng#Brightness_/_backlight
It requires bc and inotify-tools.
The workaround is for a long running program to listen for changes to
/sys/class/backlight/intel_backlight
calculate the right luminance value
write them to xrandr.
Here's a slight improvement to the suggested script:
#!/bin/bash
#-----------------------------------------------------------------
# /usr/local/bin/brightness
# be sure this file is executable
#-----------------------------------------------------------------
backlight_path=/sys/class/backlight/intel_backlight
device=`xrandr | grep -w connected | awk '{ print $1 }'`
luminance() {
read -r level < "$backlight_path"/actual_brightness
bc <<< "scale=10;$level/$max"
}
read -r max < "$backlight_path"/max_brightness
xrandr --output "$device" --brightness "$(luminance)"
inotifywait -me modify --format '' "$backlight_path"/actual_brightness | while
read; do
echo "$device" $(luminance)
xrandr --output "$device" --brightness "$(luminance)"
done
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1831587
Title:
brightness control not work with OLED panel
To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1831587/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs