I found a workaround using a script that is triggered by inotify.
I created the script called brightness in /usr/local/bin:
sudo nano /usr/local/bin/brightness
content:
--
#!/bin/sh
path=/sys/class/backlight/intel_backlight
luminance() {
read -r level < "$path"/actual_brightness
printf %.10f\\n "$((100 * level/max))e-2"
}
read -r max < "$path"/max_brightness
xrandr --output eDP-1 --brightness "$(luminance)"
inotifywait -me modify --format '' "$path"/actual_brightness | while read FILE
do
echo $(luminance)
xrandr --output eDP-1 --brightness "$(luminance)"
done
--
chmod 755 /usr/local/bin/brightness
Remarks:
- The script waits for change in
/sys/class/backlight/intel_backlight/actual_brightness.
- "intel_backlight" might be replaced the corresponding directory name in
/sys/class/backlight according to your installation.
- eDP-1 may be replaced by the display name (might be eDP1 or different). Check
the correct display name using the xrandr command.
Add the script to the in the system setting to be executed at login.
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xorg in Ubuntu.
https://bugs.launchpad.net/bugs/1872327
Title:
OLED brightness control on Intel Iris Plus Graphics G7
Status in xorg package in Ubuntu:
New
Bug description:
Hi
I'm testing kubuntu 20.4 with my HP spectre x360 13 aw0720nz.
The hotkeys to adjust the OLED brightness do not work.
Adjusting the display brightness editing the file brightness in
/sys/class/backlight/intel_backlight doesn't work either. At
/etc/default/grub I already added "acpi_backlight=vendor"
I found an article, that fits to the topic:
http://reddit.com/r/linux/comments/cmf0vi/the_state_of_oled_brightness_on_linux
Regards Daniel
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: xorg 1:7.7+19ubuntu14
ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27
Uname: Linux 5.4.0-21-generic x86_64
ApportVersion: 2.20.11-0ubuntu26
Architecture: amd64
CasperMD5CheckResult: skip
CompositorRunning: None
Date: Sun Apr 12 18:42:36 2020
DistUpgraded: Fresh install
DistroCodename: focal
DistroVariant: ubuntu
ExtraDebuggingInterest: No
GraphicsCard:
Intel Corporation Iris Plus Graphics G7 [8086:8a52] (rev 07) (prog-if 00
[VGA controller])
Subsystem: Hewlett-Packard Company Iris Plus Graphics G7 [103c:86fa]
InstallationDate: Installed on 2020-04-03 (8 days ago)
InstallationMedia: Kubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200401)
MachineType: HP HP Spectre x360 Convertible 13-aw0xxx
ProcEnviron:
LANGUAGE=de_CH:de
TERM=xterm-256color
PATH=(custom, no user)
LANG=de_CH.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.4.0-21-generic
root=UUID=61d60ac7-8b29-4729-a6a0-e3b0300dba97 ro rootflags=subvol=@ quiet
splash acpi_backlight=vendor vt.handoff=7
SourcePackage: xorg
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 03/02/2020
dmi.bios.vendor: AMI
dmi.bios.version: F.13
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: 86FA
dmi.board.vendor: HP
dmi.board.version: 87.46
dmi.chassis.type: 31
dmi.chassis.vendor: HP
dmi.chassis.version: Chassis Version
dmi.modalias:
dmi:bvnAMI:bvrF.13:bd03/02/2020:svnHP:pnHPSpectrex360Convertible13-aw0xxx:pvr:rvnHP:rn86FA:rvr87.46:cvnHP:ct31:cvrChassisVersion:
dmi.product.family: 103C_5335KV HP Spectre
dmi.product.name: HP Spectre x360 Convertible 13-aw0xxx
dmi.product.sku: 8KZ06EA#UUZ
dmi.sys.vendor: HP
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.101-1
version.libgl1-mesa-dri: libgl1-mesa-dri 20.0.4-1ubuntu1
version.libgl1-mesa-glx: libgl1-mesa-glx N/A
version.xserver-xorg-core: xserver-xorg-core 2:1.20.7-2ubuntu2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel
2:2.99.917+git20190815-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.16-1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1872327/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp