You are not logged in.

#1 2020-03-13 02:54:22

nuzierg
Member
Registered: 2020-03-13
Posts: 1

Can't control screen brightness on Lenovo Legion Y540 - ACPI error

I've tried 4 different Linux distributions (arch, manjaro, debian, mint) and they all behave the same way, they show ACPI errors on boot  ( link of a picture: https://imgur.com/a/7rLTsyr   )   and then the systems works fine, but I can't control the screen brightness that is stuck at 100%. This is a huge issue for me since I work at night and the 300 nits of the screen are burning my eyes, making the laptop unusable while draining the battery.
Looking online, this is a common issue:
https://askubuntu.com/questions/1170044 … randr-does 
https://www.reddit.com/r/Ubuntu/comment … vidia_rtx/ 
https://askubuntu.com/questions/1175905 … enovo-y540
https://www.reddit.com/r/pop_os/comment … gion_y540/
but everyone seem to have "fixed" their issue the same way, changing the bios settings from discrete graphics to switchable graphics. Sadly, my processor is the i7-9750HF variant, which does not include an integrated GPU (that's the meaning of the F part). This means that I only have my RTX 2060 discrete GPU and I'm not able to chose switchable graphics since there is nothing else to switch into.

Here is a list of some of the things I tried and didn't work:
- linux kernels tested: 5.4, 5.3, 5.0, 4.15
- Nvidia drivers tested: nouveau, 430, 435, 440
- Tried updating /etc/default/grub acpi_backlight=<all different options>, no luck.
- xbacklight does nothing.

- ls /sys/class/backlight shows only acpi_video0

- sudo tee /sys/class/backlight/acpi_video0/brightness <<< 5 has no effect

- the only thing that works is xrandr --output DP-2 --brightness 1 but that is not a solution since the backlight brightness isn't actually being changed, it just ramps the gamma. This is a software workaround that doesn't actually control the hardware. It also wouldn't help with battery life from my understanding.


I have tried every solution that I could find or think, but nothing worked. It sounds like something that could be fixed with a BIOS update, since it seems BIOS and ACPI related, but I don't know when or if ever a BIOS update will ever come, is there something on the OS side that could fix this issue?


While I was trying to find a fix I noticed an interesting behavior that I'm going to share just in case this may help: switching secure boot back ON on linux mint makes the brightness control issue go away. But sadly other problems (apparently also screen related) show up, like the video drivers cease to be recognized and all sorts of visual bugs (like redshift crashing upon launch). Its not clear for me yet if this behaves the same way in other distros because I'm having trouble making anything work with secure boot on, I know this is not specifically Arch related but I don't know if it could help bring some light on to the issue.
I've also read a few articles from the arch wiki that were very informative but in the end couldn't solve my problem:
https://wiki.archlinux.org/index.php/backlight
https://wiki.archlinux.org/index.php/La … o#Y_series
https://wiki.archlinux.org/index.php/ACPI_modules


I have been using linux for the last 2 years but I only recently started using Arch, so I'm still somewhat of an Arch noob  and this is my first post on the forums (sorry if I did something wrong, please let me know so I can fix it).
Please let me know if there is any extra information I should provide and thank you in advance for your help and patience!

system info dump:
CPU:  i7-9750HF
GPU: Nvidia RTX 2060
Screen: 1920x1080, 300 nits, 144 Hz
Laptop: Lenovo Legion Y540 - 15IRH
Model name: 81SX
BIOS version: BHCN35WW

Offline

#2 2020-04-29 16:03:41

Gargibur
Member
Registered: 2020-04-29
Posts: 2

Re: Can't control screen brightness on Lenovo Legion Y540 - ACPI error

Hey.

I had the same problem on my Y540. I'm on Ubuntu, but I assume the driver options are the same.
Got it solved by editing /usr/share/X11/xorg.conf.d/10-nvidia.conf.

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "RegistryDwords" "EnableBrightnessControl=1;" # Add this
    ModulePath "/usr/lib/x86_64-linux-gnu/nvidia/xorg"
EndSection

After adding the option string, it works like a champ:
        Option "RegistryDwords" "EnableBrightnessControl=1;

Source:
https://www.sentinelstand.com/article/u … egion-y540

Offline

#3 2020-04-30 19:11:44

Gargibur
Member
Registered: 2020-04-29
Posts: 2

Re: Can't control screen brightness on Lenovo Legion Y540 - ACPI error

In Arch, i believe the file you need to edit is /usr/share/X11/xorg.conf.d/10-amdgpu-nvidia-drm-outputclass.conf

Offline

#4 2020-08-16 12:07:06

glitchdot
Member
Registered: 2019-11-07
Posts: 6

Re: Can't control screen brightness on Lenovo Legion Y540 - ACPI error

I have the same problem with Lenovo Legion 5i.

CPU: Intel i7-10750H (12) @ 5.000GHz
GPU: Nvidia RTX 2060
Resolution: 1920x1080

Tried all listed solution in previous replies, but nothing seems to work.

I have dualboot Win 10 and Archlinux. The graphic card usage is controlled by optimus-manager hybrid mode and it works well, but can't control the backlight.
The interesting thing I found out is that if I change the brigthness on Windows 10, it remains same when I boot Archlinux.

Offline

#5 2021-03-06 09:12:51

graphicmist
Member
Registered: 2017-03-31
Posts: 15

Re: Can't control screen brightness on Lenovo Legion Y540 - ACPI error

I am also struggling with the same issue in Legion 7i. Searched every forum on the internet. Any help will around the issue would be great.

Offline

#6 2021-03-06 17:38:43

gavsiu
Member
Registered: 2016-04-08
Posts: 29

Re: Can't control screen brightness on Lenovo Legion Y540 - ACPI error

I can't control my backlight either on my Legion 7i. I'm using hybrid graphics mode and it boots in Intel mode. I checked dmesg and the only ACPI errors are

[    0.225845] ACPI BIOS Error (bug): Failure creating named object [\_SB.PCI0.PEG0.PEGP._DOD], AE_ALREADY_EXISTS (20201113/dswload2-326)
[    0.225852] ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20201113/psobject-220)
...
[    0.430415] ACPI Error: Needed [Integer/String/Buffer], found [Reference] 0000000022dd1b72 (20201113/exresop-388)
[    0.430420] ACPI Error: AE_AML_OPERAND_TYPE, While resolving operands for [And] (20201113/dswexec-431)
[    0.430426] ACPI Error: Aborting method \_SB.PCI0.LPCB.EC0._Q20 due to previous error (AE_AML_OPERAND_TYPE) (20201113/psparse-529)

Rest of errors further down:

[    7.596030] nvidia-gpu 0000:01:00.3: i2c timeout error e0000000
[    7.596035] ucsi_ccg 0-0008: i2c_transfer failed -110
[    7.596036] ucsi_ccg 0-0008: ucsi_ccg_init failed - -110
[    7.596041] ucsi_ccg: probe of 0-0008 failed with error -110
...
[   18.201656] FS-Cache: Duplicate cookie detected
[   18.201657] FS-Cache: O-cookie c=00000000493c432f [p=000000004795c88f fl=222 nc=0 na=1]
[   18.201659] FS-Cache: O-cookie d=00000000770103e1 n=00000000468604f9
[   18.201660] FS-Cache: O-key=[8] '020001bdc0a80165'
[   18.201664] FS-Cache: N-cookie c=00000000711c7da1 [p=000000004795c88f fl=2 nc=0 na=1]
[   18.201665] FS-Cache: N-cookie d=00000000770103e1 n=000000002e046bc6
[   18.201665] FS-Cache: N-key=[8] '020001bdc0a80165'

Offline

#7 2021-06-18 03:27:59

leogersen
Member
Registered: 2021-06-18
Posts: 1

Re: Can't control screen brightness on Lenovo Legion Y540 - ACPI error

Gargibur wrote:

Hey.

I had the same problem on my Y540. I'm on Ubuntu, but I assume the driver options are the same.
Got it solved by editing /usr/share/X11/xorg.conf.d/10-nvidia.conf.

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "RegistryDwords" "EnableBrightnessControl=1;" # Add this
    ModulePath "/usr/lib/x86_64-linux-gnu/nvidia/xorg"
EndSection

After adding the option string, it works like a champ:
        Option "RegistryDwords" "EnableBrightnessControl=1;

Source:
https://www.sentinelstand.com/article/u … egion-y540


This solution Works for me, I have the ideapad L340, thank you so much, I almost sell my laptop because of this.

Last edited by leogersen (2021-06-18 03:28:23)

Offline

Board footer

Powered by FluxBB