Bug 72551
Summary: | Toshiba Qosmio X75-A7298 - Can't Adjust Brightness | ||
---|---|---|---|
Product: | ACPI | Reporter: | Lonnie Lee Best (launchpad) |
Component: | Power-Video | Assignee: | Aaron Lu (aaron.lu) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | aaron.lu, alan, coproscefalo, rafael.raccuia |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 3.13.0-18-generic x86_64 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
acpidump.txt
Photo of Keyboard Photo2 of Keyboard Proposed patch |
Description
Lonnie Lee Best
2014-03-20 14:07:38 UTC
acpidump please: # acpidump > acpidump.txt Please list what backlight control interfaces do you have: # ls /sys/class/backlight And test if manually echo a value works: # cd /sys/class/backlight/i915_xxx # cat max_brightness 1234 # echo 400 > brightness # echo 600 > brightness ... @Aaron lu: I've included the information you've requested in post #5 here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1295141 Please list what backlight control interfaces do you have: # ls /sys/class/backlight acpi_video0 intel_backlight And test if manually echo a value works: # cd /sys/class/backlight/i915_xxx # cat max_brightness user@Qosmio-X75-A:~$ cd /sys/class/backlight/i915_xxx bash: cd: /sys/class/backlight/i915_xxx: No such file or directory user@Qosmio-X75-A:~$ cd /sys user@Qosmio-X75-A:/sys$ ls block class devices fs kernel power bus dev firmware hypervisor module user@Qosmio-X75-A:/sys$ cd class/backlight/ user@Qosmio-X75-A:/sys/class/backlight$ ls acpi_video0 intel_backlight user@Qosmio-X75-A:/sys/class/backlight$ cd intel_backlight user@Qosmio-X75-A:/sys/class/backlight/intel_backlight$ ls actual_brightness brightness max_brightness subsystem uevent bl_power device power type user@Qosmio-X75-A:/sys/class/backlight/intel_backlight$ cat max_brightness 5273 user@Qosmio-X75-A:/sys/class/backlight/intel_backlight$ cd .. user@Qosmio-X75-A:/sys/class/backlight$ ls acpi_video0 intel_backlight user@Qosmio-X75-A:/sys/class/backlight$ cd acpi_video0 user@Qosmio-X75-A:/sys/class/backlight/acpi_video0$ ls actual_brightness brightness max_brightness subsystem uevent bl_power device power type user@Qosmio-X75-A:/sys/class/backlight/acpi_video0$ cat max_brightness 100 user@Qosmio-X75-A:/sys/class/backlight/acpi_video0$ echo 400 > brightness bash: brightness: Permission denied user@Qosmio-X75-A:/sys/class/backlight/acpi_video0$ sudo echo 400 > brightness bash: brightness: Permission denied user@Qosmio-X75-A:/sys/class/backlight/acpi_video0$ cd .. user@Qosmio-X75-A:/sys/class/backlight$ ls acpi_video0 intel_backlight user@Qosmio-X75-A:/sys/class/backlight$ cd intel_backlight user@Qosmio-X75-A:/sys/class/backlight/intel_backlight$ ls actual_brightness brightness max_brightness subsystem uevent bl_power device power type user@Qosmio-X75-A:/sys/class/backlight/intel_backlight$ cat brightness 5100 user@Qosmio-X75-A:/sys/class/backlight/intel_backlight$ sudo echo 400 > brightness bash: brightness: Permission denied user@Qosmio-X75-A:/sys/class/backlight/intel_backlight$ sudo echo 600 > brightness bash: brightness: Permission denied Created attachment 133391 [details]
acpidump.txt
Created attachment 133401 [details]
Photo of Keyboard
Please use a root shell to do echo. $ sudo -s # BTW, 400 value is an example, you should not use a value that is greater than max_brightness. Every interface's max_brightness is different. Created attachment 133411 [details]
Photo2 of Keyboard
The echo's you suggested did indeed adjust the brightness after trying them with root shell: user@Qosmio-X75-A:/sys/class/backlight/intel_backlight$ sudo -s [sudo] password for user: root@Qosmio-X75-A:/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight# ls actual_brightness brightness max_brightness subsystem uevent bl_power device power type root@Qosmio-X75-A:/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight# cat max_brightness 5273 root@Qosmio-X75-A:/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight# echo 400 > brightness root@Qosmio-X75-A:/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight# echo 4000 > brightness root@Qosmio-X75-A:/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight# You'll also notice that I've attached photos of the keyboard, as I couldn't imagine how you'd implement the proper mappings without seeing the symbols shown on the keys themselves. Sorry for the delay. Please run acpi_listen and then press the backlight related hotkeys, see if you get any output: $ sudo -s ... # acpi_listen now press the hotkeys Brightness would not adjust while running acpi_listen as root. Here is the output where I initiall hit FN-f2 twice then FN-f3 twice. Neither changed brightness and FN-F3 actually caused the laptop to go into hibernation instead of making the screen brighter (as the key indicates). root@Qosmio-X75-A:~# acpi_listen button/battery BAT 00000080 00000000 K button/battery BAT 00000080 00000000 K button/sleep SBTN 00000080 00000000 K button/sleep SBTN 00000080 00000000 K ac_adapter ACPI0003:00 00000080 00000001 battery PNP0C0A:00 00000080 00000001 ^[OR^[OR ^[OQ^[OR^[OQ^[OBR The final outputs you see are after I came back out of hibernation. I tried to use these same keys to adjust brightness. As you can see, after hibernation pressing fn-f2 produced "^[OR" and fn-f3 produced "^[OQ". I was not sent back to habernation again however (from pressing fn-f3). Hi, exactly same problem on Toshiba Tecra A50-A-130: $ ls /sys/class/backlight acpi_video0 intel_backlight toshiba This works: /sys/class/backlight/intel_backlight$ sudo -s [sudo] password for raphael: root@alphonse:/sys/devices/pci0000:00/0000:00:02.0/drm/card1/card1-eDP-1/intel_backlight# echo 700 > brightness root@alphonse:/sys/devices/pci0000:00/0000:00:02.0/drm/card1/card1-eDP-1/intel_backlight# echo 1000 > brightness interesting lines of acpi_listen: video/brightnessup BRTUP 00000086 00000000 K video/brightnessdown BRTDN 00000087 00000000 K (how do I get a system config list to put here? eg. ProblemType: Bug DistroRelease:...) acpi_listen give same lines after sleep, but brightness turns to initial value Hi Lonnie, In case any vendor driver did something fancy, please check if any module starts with toshiba is loaded. If so, please blacklist them and try acpi_listen again. The problem with your laptop is the hotkey doesn't work while we already have a working backlight control interface, so we need to find out how to make hotkey work. (In reply to Blindekinder from comment #10) > Hi, exactly same problem on Toshiba Tecra A50-A-130: > > $ ls /sys/class/backlight > acpi_video0 intel_backlight toshiba > > This works: > /sys/class/backlight/intel_backlight$ sudo -s > [sudo] password for raphael: > root@alphonse:/sys/devices/pci0000:00/0000:00:02.0/drm/card1/card1-eDP-1/ > intel_backlight# echo 700 > brightness > root@alphonse:/sys/devices/pci0000:00/0000:00:02.0/drm/card1/card1-eDP-1/ > intel_backlight# echo 1000 > brightness > > interesting lines of acpi_listen: > video/brightnessup BRTUP 00000086 00000000 K > video/brightnessdown BRTDN 00000087 00000000 K So both the control interface and the hotkey works for you :-) What's the problem? Oh, I see, maybe it's due to the X driver doesn't pick intel_backlight. Can you please add video.use_native_backlight=1 to the kernel cmdline and test again? Thanks. tried video.use_native_backlight=1 in boot cmdline, and it works: I can know set backlight in seven step. Hi Searching the web for Toshiba DSDTs I came accross this post. Newer Toshiba models (like yours) now come with the Fn keys already "enabled", and by that I mean that you don't need to press the Fn key to access the special functions, you press the Fn key to access F{1,2,3,4,5,6,7,8,9,10,11,12}. Try pressing just the F2-F3 key and see if brightness changes, otherwise the driver won't fire the notification to the input layer. Hope this helps. Cheers No, F_ doesn't change brightness. Actually it's F6-7 on mine. Blinde, Since your hotkey just works, I think Azael's hint is for Lonnie. The only problem with your model is acpi_video interface gets in the way and we will need to make it disappear(so essentially your problem is a different one with the original reporter). Aaron, Lonnie: Please take a look at this bug <a href="show_bug.cgi?id=69761">69761</a>, it seems Toshiba decided to change the keyboard layout without doing a proper key remapping, so pressing F2-F3 is actually triggering BATTERY and SLEEP, that's why you're not getting any changes at all, try pressing F6-F7 and see if brightness changes. Seems that more machines need to be added to that DMI matching. Yes, that looks like to be the case for Lonnie, thanks for the info Azael. Aaron Lu, ok, do I have to fill a new bug report? (In reply to Blindekinder from comment #20) > Aaron Lu, > ok, do I have to fill a new bug report? Yes please. Don't forget to attach the acpidump there, thanks. This is actually computer I set up for a business owner. I will have access to it again later this week an address unconfirmed suggestions. (done thank you: https://bugzilla.kernel.org/show_bug.cgi?id=76971 Please, how can I get this for my system?: >ProblemType: Bug >DistroRelease: Ubuntu 14.04 >Package: linux-image-3.13.0-18-generic 3.13.0-18.38 [modified: >boot/vmlinuz-3.13.0-18-generic] >ProcVersionSignature: Ubuntu 3.13.0-18.38-generic 3.13.6 >Uname: Linux 3.13.0-18-generic x86_64 >ApportVersion: 2.13.3-0ubuntu1 >... Any update Lonnie? Did you try Azael's suggestion at comment #18? @Azael Avalos It is true that the function keys are active without having to hit the FN keys (I did not know this). However, they are still improperly mapped. Hitting F2 and F3 without the FN key produces the same undesired results as FN+F2 AND FN+F3 does. Again, the keyboard layout can be seen here: https://bugzilla.kernel.org/attachment.cgi?id=133401 Some of the function keys work fine. For example: F9, F10, and F11 properly adjust volume (reduce, increase, mute) and hitting the FN button is not required to do this. As a matter of fact, they do not work if you do hold the FN key. However, F2 and FN+F2 do not dim the screen as the button-label indicates. Same goes with F3 AND FN-F3 (in regards to brightening). No function key combination (with or without hoding the FN key) adjusts brightness. @Azael Avalos - I did also try your suggestion of F5 and f6 (with and without holding the FN key). I thought I should explicitly mention this, though my last message covers this fact broadly. Meant to say F6-F7. I've really tried all combinations. Then your model should be added to the DMI matching list, the recently released kernel 3.16-rc1 now comes with the new keymap (commit fe808bfb59d693e07ee23c99542cd64e1f41b8c9). A simple patch to add your model will do, as this bug is similar to bug 69761 and we can probably get this in rc2. @Lonnie Try the following patch against 3.16 and check if your issue still persist, in case you don't want to download the whole release, just get toshiba_acpi.c from upstream and a makefile from here http://pastebin.com/Jv0YWma3 Created attachment 141191 [details]
Proposed patch
Lonnie, Can you please try the patch in #comment 31? Thanks. This is actually a computer I set up for a business owner. So, I won't have access to it again until next week. At that time, I will surely test your proposed patch. Thank you. Any update? commit e6efad7f292d99190b66d32f1ddcc764db0fa6f4 Author: Azael Avalos <coproscefalo@gmail.com> Date: Mon Aug 4 09:21:02 2014 -0600 toshiba_acpi: Add Qosmio X75-A to the alt keymap dmi list |