[Bug 1019337] New: Can't set backlight on the GPD Win
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337 Bug ID: 1019337 Summary: Can't set backlight on the GPD Win Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.2 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel Assignee: kernel-maintainers@forge.provo.novell.com Reporter: adrien.plazas@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- I installed Leap 42.2 with the latest vanilla kernel (https://build.opensuse.org/project/show/Kernel:vanilla) on a GPD Win. I can't change the brightness using GNOME's menus or xbacklight, the expected result would be for the backlight to change accordingly to my demands. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
Adrien Plazas
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337#c1
--- Comment #1 from Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337#c2
--- Comment #2 from Adrien Plazas
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337#c3
Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337#c4
--- Comment #4 from Adrien Plazas
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337#c5
--- Comment #5 from Adrien Plazas
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337#c6
--- Comment #6 from Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337#c7
--- Comment #7 from Adrien Plazas
Are you building a kernel manually?
No but if needed and with some guidance I can, I can also fork it on OBS, let OBS build it and use the resulting repo (I suspect compiling a kernel on an Atom isn't a good idea). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337#c8
--- Comment #8 from Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337#c9
--- Comment #9 from Adrien Plazas
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337#c10
--- Comment #10 from Adrien Plazas
There might be some problem in the module load order. Some drivers might be needed before i915 driver. For checking this, try to boot with "nomodeset" option. Then login on Linux console, and run like: # rmmod i915 # modprobe i915 modeset=1
This will reload i915 with KMS again.
When doing this from the console I couldn't access the graphical session anymore, and from the graphical session it rotated it correctly then froze it. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337#c11
--- Comment #11 from Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337#c12
--- Comment #12 from Adrien Plazas
OK, then check /usr/lib/dracut/modules.d/90kernel-modules/module-setup.sh. There is a part like:
hostonly='' instmods \ sr_mod sd_mod scsi_dh ata_piix hid_generic unix \ ehci-hcd ehci-pci ehci-platform \ ohci-hcd ohci-pci \ uhci-hcd \ xhci-hcd xhci-pci xhci-plat-hcd \ pinctrl-cherryview
If pinctrl-cherryview isn't present, add it like the above. Then, append also pwm-lpss and i2c-designware-platform, too.
After changing it, rebuild initrd, and retest.
Also, another way would be to rebuild initrd with "-o drm" option so that i915 module won't be loaded in initrd.
I added 'pinctrl-cherryview', 'pwm-lpss' and 'i2c-designware-platform', ran 'mkinitrd' and rebooted: no change. I then ran initrd -o drm' and rebooted: no change. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337#c13
--- Comment #13 from Takashi Iwai
(In reply to Takashi Iwai from comment #11)
OK, then check /usr/lib/dracut/modules.d/90kernel-modules/module-setup.sh. There is a part like:
hostonly='' instmods \ sr_mod sd_mod scsi_dh ata_piix hid_generic unix \ ehci-hcd ehci-pci ehci-platform \ ohci-hcd ohci-pci \ uhci-hcd \ xhci-hcd xhci-pci xhci-plat-hcd \ pinctrl-cherryview
If pinctrl-cherryview isn't present, add it like the above. Then, append also pwm-lpss and i2c-designware-platform, too.
After changing it, rebuild initrd, and retest.
Also, another way would be to rebuild initrd with "-o drm" option so that i915 module won't be loaded in initrd.
I added 'pinctrl-cherryview', 'pwm-lpss' and 'i2c-designware-platform', ran 'mkinitrd' and rebooted: no change.
I then ran initrd -o drm' and rebooted: no change.
There must be changes in the module loading order. Check it, and also see the difference of kernel messages. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337#c14
Hans de Goede
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337#c15
--- Comment #15 from Adrien Plazas
I've a couple of patches queued up for 4.11 fixing this:
https://git.kernel.org/cgit/linux/kernel/git/thierry.reding/linux-pwm.git/ commit/?h=for-4.11/acpi&id=69efb3439ccf2ce72e01edde05d2c63d624e251e https://git.kernel.org/cgit/linux/kernel/git/thierry.reding/linux-pwm.git/ commit/?h=for-4.11/acpi&id=bf71f4e8fb95632b92476c54c5fb44eb88b19deb https://git.kernel.org/cgit/linux/kernel/git/thierry.reding/linux-pwm.git/ commit/?h=for-4.11/acpi&id=60b24b82b1416c94de71fd03cf98bf149a0fe9d3
The two last ones display "Bad commit reference", do you know their current state? I would like to test all your fixes for the GPD Win. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337#c16
--- Comment #16 from Hans de Goede
Hi Hans.
(In reply to Hans de Goede from comment #14)
I've a couple of patches queued up for 4.11 fixing this:
https://git.kernel.org/cgit/linux/kernel/git/thierry.reding/linux-pwm.git/ commit/?h=for-4.11/acpi&id=69efb3439ccf2ce72e01edde05d2c63d624e251e https://git.kernel.org/cgit/linux/kernel/git/thierry.reding/linux-pwm.git/ commit/?h=for-4.11/acpi&id=bf71f4e8fb95632b92476c54c5fb44eb88b19deb https://git.kernel.org/cgit/linux/kernel/git/thierry.reding/linux-pwm.git/ commit/?h=for-4.11/acpi&id=60b24b82b1416c94de71fd03cf98bf149a0fe9d3
The two last ones display "Bad commit reference", do you know their current state? I would like to test all your fixes for the GPD Win.
They are currently queued in linux-pwm/for-next and should get merged fro 4.11-rc1. If you want to test all my fixes it is probably easiest to just use my testing branch which has all my patches: https://github.com/jwrdegoede/linux-sunxi/commits/drm-intel-next-queued-cht -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337#c17
--- Comment #17 from Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337#c18
--- Comment #18 from Hans de Goede
Adrien and I checked the audio volume buttons and failed to find anything in either the existing input devices nor the existing HID entries. I hoped that it's just a missing HID mapping, but it doesn't look so.
Hans, are we on the right track?
I'm looking at the power button issue, too...
Erm, all 3 buttons are fixed by 2 patches from me, as I already told you and Adrien before, the 2 patches are even linked from Adrien's wiki page: https://wiki.gnome.org/AdrienPlazas/GPDWin https://github.com/jwrdegoede/linux-sunxi/commit/2ec38ad70d0dc55ee7348dde711... https://github.com/jwrdegoede/linux-sunxi/commit/43e0e29dcabe7fe658e3d983e43... The interesting bits are in the second patch, the first one is just a preparation patch. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337#c19
--- Comment #19 from Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337#c20
--- Comment #20 from Adrien Plazas
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337
http://bugzilla.opensuse.org/show_bug.cgi?id=1019337#c21
--- Comment #21 from Adrien Plazas
participants (1)
-
bugzilla_noreply@novell.com