Bug 42777
Summary: | [PATCH]Screen brightness adjust hotkeys don't work with an Acer 5755G laptop | ||
---|---|---|---|
Product: | Drivers | Reporter: | Adam Niedling (kricsek) |
Component: | Platform | Assignee: | drivers_platform (drivers_platform) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | alan, anakin.cs, jlee, kentfredric, kricsek |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 3.3.0-030300rc3-generic | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
dmesg
sudo lspci -vvnn acpidump.dat dmidecode.log 0001-acer-wmi-add-acer-5755G-to-video-backlight-vendor-m.patch 0001-acer-wmi-add-quirk-table-for-video-backlight-vendor.patch |
Created attachment 72390 [details]
sudo lspci -vvnn
The original bug report at Launchpad: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/925690 (no additional information over there) I was wrong, there are many attachments that can be found at the original report. Those might be helpful, sorry. Hi Adam, Please kindly provide your acpidump and dmidecode log: #acpidump > acpidump.dat #dmidecode > dmidecode.log Thanks Created attachment 72592 [details]
acpidump.dat
Created attachment 72593 [details]
dmidecode.log
Hi Chun-Yi! Certainly, please find them attached! Thanks (In reply to comment #7) > Hi Chun-Yi! > > Certainly, please find them attached! > > Thanks Please try 'acpi_backlight=vendor' kernel parameter, put it to /boot/grub/menu.lst. Adding acpi_backlight=vendor as a kernel parameter fixed this issue, now I can adjust the brightness of the screen. However after adding it my system (Ubuntu 12.04 x64) does not always boot up in full graphics mode, only in limited mode or even in command line mode. So it needs some restarting from time to time. I did it like this: vi /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor" sudo update-grub My question is: if this kernel parameter fixes this issue then do you consider this bug fixed or do you still think it needs fixing? Thanks. (In reply to comment #9) > Adding acpi_backlight=vendor as a kernel parameter fixed this issue, now I > can > adjust the brightness of the screen. However after adding it my system > (Ubuntu > 12.04 x64) does not always boot up in full graphics mode, only in limited > mode > or even in command line mode. So it needs some restarting from time to time. > hm..... if this new issue causes by set to 'vendor' mode, then there have video driver problem on your machine. Please kindly paste the the result: # ls -la /sys/class/backlight/ I aware there have 2 video chip on your machine, which video chip did you use? > I did it like this: > vi /etc/default/grub > GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor" > sudo update-grub > > My question is: if this kernel parameter fixes this issue then do you > consider > this bug fixed or do you still think it needs fixing? > > Thanks. If 'acpi_backlight=vendor' works to you (of course need no side effect), then I will add your machine to a quirk table in acer-wmi driver, set it default to vendor mode. The new issue happens when I switch from the laptop's screen and an external monitor and then reboot. After some additional testing I don't think it has anything to do with the backlight parameter because it's also happening without it. $ ls -la /sys/class/backlight/ összesen 0 drwxr-xr-x 2 root root 0 máj 6 2012 . drwxr-xr-x 52 root root 0 máj 6 2012 .. lrwxrwxrwx 1 root root 0 máj 6 12:41 intel_backlight -> ../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-LVDS-1/intel_backlight I have two video cards as I mentioned in the original post: $ lspci | grep VGA 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) 01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 540M] (rev ff) I'm using Bumblebee which means that the Nvidia card is turned off by default but can be turned on anytime for apps that need the extra VGA power. Let me know if you need more info! Thanks. I recently discovered that specifying acpi_osi=Linux on the command line made the backlight buttons magically work, both in X11 and in the VT. So, this indicates a somewhat "bugged" default acpi table. Interestingly, it also seems to make the fan management more up-to-what-I-expect. ( Fan works fine without acpi_osi, just seems to run too slowly, but with acpi_osi=Linux it seems to spin up faster more often when needed, instead of letting things cook ). Kernel: 3.4.4 w/ gentoo patchset. Lighting seems to appear to be a logarithmic scale of some kind. 0 == can't see a damn thing, and the difference in shades between 100 and 976 are pretty subtle. cd /sys/class/backlight/intel_backlight for i in $( seq 0 976 ); do sleep 0.001; echo $i > brightness ; cat actual_brightness ; done Screen goes black and then fades back to the light. "I aware there have 2 video chip on your machine, which video chip did you use?" In this regard, on this laptop there is no "choice", the Nvidia GPU is completely without an attached display, and there's no way to switch it to your boot display device at all. All display work is done via the integrated Intel video chip on the i5 chip. And even under windows, the Nvidia gpu works like a headless off-screen render buffer, and copies frames and writes them to the intel gpu to display. ( This is what bumblebee does in Linux ) Created attachment 76041 [details]
0001-acer-wmi-add-acer-5755G-to-video-backlight-vendor-m.patch
Let's add Acer Aspire 5755G to quirk table in acer-wmi, first.
The above patch is for v3.5 kernel.
Created attachment 76051 [details]
0001-acer-wmi-add-quirk-table-for-video-backlight-vendor.patch
A backport patch for testing on v3.3 kernel.
This patch already include Acer 5755G in quirk table.
I've upgraded to Ubuntu 13.04 (Kernel 3.8.0-19-generic) and the issue is still present. I've upgraded to Ubuntu 13.10 (Kernel 3.11.0-12-generic x64) and the issue is still present. (In reply to Adam Niedling from comment #17) > I've upgraded to Ubuntu 13.10 (Kernel 3.11.0-12-generic x64) and the issue > is still present. I'd suggest you try the "video.use_native_backlight=1" kernel parameter (Linux 3.13 only), it fixed my backlight issues with an Acer laptop as well. It's working in Ubuntu 15.10! 4.2.0-11-generic #13-Ubuntu SMP Mon Sep 21 21:33:10 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux Thanks! |
Created attachment 72389 [details] dmesg I'm using Ubuntu 11.10 x64. When I press fn+left/right arrow keys the brightness of the screen doesn't change even though the bar appears on the top right corner correctly (This is Ubuntu's way of indicating the change of screen brightness). This laptop has two video cards: nVidia 540M and an integrated Intel HD Graphics 3000. Normally the nVidia card is switched off by Bumblebee so only the Intel one is running.