Bug 106305

Summary: Can't change screen brightness on MSI GT73VR with nouveau driver
Product: Mesa Reporter: Geroge T <reportbug>
Component: Drivers/DRI/nouveauAssignee: Nouveau Project <nouveau>
Status: RESOLVED DUPLICATE QA Contact: Nouveau Project <nouveau>
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: msi gt73vr keyboard picture

Description Geroge T 2018-04-28 21:39:55 UTC
Created attachment 139210 [details]
msi gt73vr keyboard picture

Running a MSI GT73VR which has a dedicated button to switch between graphic cards and requires a reboot, or use "MSI VGA Select V0.2 by Zibri" (https://github.com/Zibri/MSI-GT7x-VGA-SWITCH)

Using hardware buttons Fn+Up / Fn+Down to control screen brightness doesn't work with nouveau drivers.

Part of sudo lspci:
01:00.0 VGA compatible controller: NVIDIA Corporation GP104M [GeForce GTX 1080 Mobile] (rev a1)
	Subsystem: Micro-Star International Co., Ltd. [MSI] GP104M [GeForce GTX 1080 Mobile]
	Kernel driver in use: nouveau
	Kernel modules: nvidiafb, nouveau
01:00.1 Audio device: NVIDIA Corporation GP104 High Definition Audio Controller (rev a1)
	Subsystem: Micro-Star International Co., Ltd. [MSI] GP104 High Definition Audio Controller
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

If I switch to the integrated graphics the Fn keys do work.
Comment 1 Geroge T 2018-04-28 21:43:34 UTC
modinfo nouveau
filename:       /lib/modules/4.15.0-20-generic/kernel/drivers/gpu/drm/nouveau/nouveau.ko
Comment 2 Geroge T 2018-04-28 21:44:13 UTC
srcversion:     035DF1535F8D81478394CE8
Comment 3 Ilia Mirkin 2018-04-28 22:44:04 UTC
I believe that the backlight is just not hooked up for Pascal.

There's a patch in bug #100446 (https://bugs.freedesktop.org/attachment.cgi?id=138646) which may address this.
Comment 4 Geroge T 2018-04-29 10:20:15 UTC
(In reply to Ilia Mirkin from comment #3)
> I believe that the backlight is just not hooked up for Pascal.
> 
> There's a patch in bug #100446
> (https://bugs.freedesktop.org/attachment.cgi?id=138646) which may address
> this.

Would like to test, do I need to recompile the kernel for ubuntu?
Comment 5 Geroge T 2018-04-30 23:39:22 UTC
Just recompiled the kernel from linux-source-4.15.tar.xz, version linux-4.15.17. Patched to add "case NV_DEVICE_INFO_V0_PASCAL:"(In reply to Ilia Mirkin from comment #3)
> I believe that the backlight is just not hooked up for Pascal.
> 
> There's a patch in bug #100446
> (https://bugs.freedesktop.org/attachment.cgi?id=138646) which may address
> this.

Ok finally tested the patch and recompiled kernel linux-4.15.17 on debian, but still same result, no backlight control, it's always at 100%. The folder "/sys/class/backlight/" is totally empty.
Comment 6 Geroge T 2018-04-30 23:41:23 UTC
On KDE Plasma, at least I can use the operating system as normal, but with gnome 3 it's a nightmare, the mouse and user interface is so sluggish that it's impractical to use.
Comment 7 Geroge T 2018-05-01 00:54:02 UTC
Note that I only patched the line "NV_DEVICE_INFO_V0_PASCAL", not any other kind of patch.
Comment 8 Geroge T 2018-05-01 02:05:52 UTC
Ok tested again with the 4 patches from the kernel git I confirm that it works. Definitely the "case NV_DEVICE_INFO_V0_PASCAL:" line has to be added.
Comment 9 Geroge T 2018-05-01 02:06:41 UTC
Closing since it's a dupe

*** This bug has been marked as a duplicate of bug 100446 ***
Comment 10 Geroge T 2018-05-01 02:51:06 UTC
The sluggish was caused by the gnome extension Dash to Dock.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.