Bug 196931

Summary: No backlight control though with present /sys/class/backlight/acpi_video0
Product: ACPI Reporter: Fede (fedevx)
Component: Power-VideoAssignee: Zhang Rui (rui.zhang)
Status: CLOSED MOVED    
Severity: normal CC: mcdougal0821, rui.zhang
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.13.1 Subsystem:
Regression: No Bisected commit-id:
Attachments: GFX Card info
dmesg when acpi_backlight was set to native
dmesg when acpi_backlight was set to vendor
dmesg when using acpi_osi set to Linux
dmesg
dmidecode
acpidump

Description Fede 2017-09-13 09:30:43 UTC
Created attachment 258355 [details]
GFX Card info

Backlight control doesn't work even though /sys/class/backlight/acpi_video0 is present and the values in "brightness"/"actual_brightness" are changing when using fn+F4/F5.

Tried different with acpi_osi=Linux, tried with acpi_backlight (video, vendor and native).

Kernel 4.13.1
linux-firmware 20170907
xf86-video-nouveau 1.0.15-2
gnome-shell 3.24.3-1 
wayland 1.14.0-1

Is there anything I can try or is a patch needed for this?

Thanks!
Comment 1 Fede 2017-09-13 09:32:44 UTC
While the info is in the attached file, the card is a GeForce GTX 1060.
Comment 2 Fede 2017-09-14 13:37:41 UTC
Created attachment 258373 [details]
dmesg when acpi_backlight was set to native
Comment 3 Fede 2017-09-14 13:38:13 UTC
Created attachment 258375 [details]
dmesg when acpi_backlight was set to vendor
Comment 4 Fede 2017-09-14 13:39:11 UTC
Created attachment 258377 [details]
dmesg when using acpi_osi set to Linux
Comment 5 Fede 2017-09-14 13:39:38 UTC
Created attachment 258379 [details]
dmesg
Comment 6 Fede 2017-09-14 13:39:57 UTC
Created attachment 258381 [details]
dmidecode
Comment 7 Fede 2017-09-14 13:41:06 UTC
When setting acpi_backlight to either native or vendor, /sys/class/backight is empty. None of my tests got the backlight to work.
Comment 8 Fede 2017-09-20 06:33:29 UTC
Created attachment 258517 [details]
acpidump
Comment 9 Zhang Rui 2017-12-18 03:01:40 UTC
you don't have i915 graphics on this platform?

            Method (_BCM, 1, NotSerialized)  // _BCM: Brightness Control Method
            {
                If (\_SB.CUNM == 0x02)
                {
                    If (\_SB.PCI0.LPCB.EC0.SW2S)
                    {
                        CMSW (0x63, Arg0)
                    }
                    Else
                    {
                        CMSW (0x64, Arg0)
                    }
                }
                Else
                {
                    CMSW (0x63, Arg0)
                    CMSW (0x64, Arg0)
                }

                If ((Arg0 >= Zero) && (Arg0 <= 0x64))
                {
                    \_SB.PCI0.GFX0.AINT (One, Arg0)
                    BRTL = Arg0
                }
            }

GFX0 should be the i915 device. And the ACPI video backlight control will probably not work without i915 driver loaded.
Comment 10 Zhang Rui 2017-12-18 03:04:57 UTC
so on this platform,
1. it is an ACPI/I915 problem if backlight control does not work after enabling i915.
OR
2. it is an nouveau driver problem that you should raise the problem at freedesktop.org
Comment 11 richard mcdonald 2018-01-20 15:21:27 UTC
Comment on attachment 258355 [details]
GFX Card info

>25: PCI 100.0: 0300 VGA compatible controller (VGA)
>  [Created at pci.378]
>  Unique ID: VCu0.9XY+le6fov2
>  Parent ID: vSkL.rm7g6PCwW96
>  SysFS ID: /devices/pci0000:00/0000:00:01.0/0000:01:00.0
>  SysFS BusID: 0000:01:00.0
>  Hardware Class: graphics card
>  Model: "nVidia GP106M [GeForce GTX 1060]"
>  Vendor: pci 0x10de "nVidia Corporation"
>  Device: pci 0x1c20 "GP106M [GeForce GTX 1060]"
>  SubVendor: pci 0x152d "QUANTA Computer Inc"
>  SubDevice: pci 0x1154 
>  Revision: 0xa1
>  Driver: "nouveau"
>  Driver Modules: "drm"
>  Memory Range: 0xd2000000-0xd2ffffff (rw,non-prefetchable)
>  Memory Range: 0xc0000000-0xcfffffff (ro,non-prefetchable)
>  Memory Range: 0xd0000000-0xd1ffffff (ro,non-prefetchable)
>  I/O Ports: 0xd000-0xd07f (rw)
>  Memory Range: 0xd3000000-0xd307ffff (ro,non-prefetchable,disabled)
>  IRQ: 133 (61778 events)
>  Module Alias: "pci:v000010DEd00001C20sv0000152Dsd00001154bc03sc00i00"
>  Driver Info #0:
>    Driver Status: nouveau is active
>    Driver Activation Cmd: "modprobe nouveau"
>  Config Status: cfg=new, avail=yes, need=no, active=unknown
>  Attached to: #22 (PCI bridge)
>
>Primary display adapter: #25
Comment 12 Fede 2018-03-22 00:55:47 UTC
(In reply to Zhang Rui from comment #9)
> you don't have i915 graphics on this platform?
> 

This laptop does not have an i915 graphics. Only NVIDIA. Should I be creating a ticket at freedesktop then?

Thank you!
Comment 13 Zhang Rui 2018-04-02 01:28:17 UTC
yes, please file a bug at freedesktop instead. Bug closed.
BTW, I think you should check your BIOS setup and see if there is anything related to integrated graphics or not.