[Bug 887629] New: acpi_backlight control broken in 13.1 for Toshiba laptops (worked fine in 11.0 & 11.4)
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c0
Summary: acpi_backlight control broken in 13.1 for Toshiba
laptops (worked fine in 11.0 & 11.4)
Classification: openSUSE
Product: openSUSE 13.1
Version: Final
Platform: x86-64
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Kernel
AssignedTo: kernel-maintainers@forge.provo.novell.com
ReportedBy: drankinatty@suddenlinkmail.com
QAContact: qa-bugs@suse.de
Found By: ---
Blocker: ---
One new issue I have with 13.1 is my Toshiba laptop brightness is stuck on high
(really high) and I cannot adjust it with the normal function keys. The normal
method for increase/decrease is:
fn + F6 - lower (8 steps)
fn + F7 - raise (8 steps)
What is strange is that this hardware brightness control has always worked,
regardless of the OS (XP/DOS, openSuSE 11.0, 11.4, Archlinux) and regardless of
the driver (radeon, radeonHD, etc..)
Now it is just stuck. I can pop the 11.4 drive back in and it works fine.
On boot, the following /sys/class/backlight entries are present:
acpi_video0 ->
../../devices/pci0000:00/0000:00:01.0/0000:01:05.0/backlight/acpi_video0
radeon_bl0 ->
../../devices/pci0000:00/0000:00:01.0/0000:01:05.0/drm/card0/card0-LVDS-1/radeon_bl0
Manually setting values [0-7] in /sys/class/backlight/acpi_video0/brightness
does control the backlight, but the normal function keys are for some reason
NOT mapped to the correct place. I wrote a small script just to echo 0-7 into
acpi_video0/brightness and that changes the brightness as expected.
The value for /sys/class/backlight/radeon_bl0/brightness is always 0 and YOU
DO NOT WANT TO MANUALLY SET THIS ONE...
Checking the systemd-backlight service show it configured for acpi_video0 and
the service started and running, but it does not catch the function key inputs:
$ systemctl status systemd-backlight@acpi_video0.service
systemd-backlight@acpi_video0.service - Load/Save Screen Backlight Brightness
of acpi_video0
Loaded: loaded (/usr/lib/systemd/system/systemd-backlight@.service; static)
Active: active (exited) since Wed 2014-07-16 15:52:30 CDT; 9min ago
Docs: man:systemd-backlight@.service(8)
Process: 370 ExecStart=/usr/lib/systemd/systemd-backlight load %I
(code=exited, status=0/SUCCESS)
Main PID: 370 (code=exited, status=0/SUCCESS)
But as stated above, the function keys do nothing. Checking with acpi_listen,
the function keys are working fine:
$ acpi_listen
video/brightnessdown BRTDN 00000087 00000000 K
video/brightnessdown BRTDN 00000087 00000000 K
video/brightnessdown BRTDN 00000087 00000000 K
video/brightnessup BRTUP 00000086 00000000 K
video/brightnessup BRTUP 00000086 00000000 K
video/brightnessup BRTUP 00000086 00000000 K
So the keys are working, the value is just never getting to
/sys/class/backlight/acpi_video0/brightness.
I have also tried setting the kernel command line value:
acpi_backlight=vendor This causes the /sys/class/backlight/acpi_video0 entry
to disappear and leaves only /sys/class/backlight/radeon_bl0. Starting
systemd-backlight@radeon_bl0.service causes that value to be monitored, but it
does nothing. If you manually try to set it [0-7] the screen goes black
(flashes occasionally) and you have to reboot to get your screen back. (having
an open konsole window to 'shutdown -r now' helps)
I have put my 11.4 drive back in the laptop and compared acpi_listen values.
The values returned have different labels. Under 11.4 I get:
# acpi_listen
video LCD 00000087 00000000
video LCD 00000087 00000000
video LCD 00000087 00000000
video LCD 00000086 00000000
video LCD 00000086 00000000
video LCD 00000086 00000000
The numerical values are the same, but the labels are completely different.
The backlight control works fine under 11.4 as it did under XP/DOS, Archlinux,
and 11.0. So I don't know what is wrong with 13.1. I have searched and tried
the fixes posted on the net, but there is just something this is broken in 13.1
that prevents acpi from using the function key values to adjust
/sys/class/backlight/acpi_video0/brightness.
The card details (lspci -vv) in the laptop are:
01:05.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
RS690M [Radeon Xpress 1200/1250/1270] (prog-if 00 [VGA controller])
Subsystem: Toshiba America Info Systems Device ff00
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c1
--- Comment #1 from David Rankin
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c2
--- Comment #2 from David Rankin
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c3
Takashi Iwai
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c4
--- Comment #4 from David Rankin
So, actually there are two problems. The main issue is that acpi video driver got broken for this laptop, and another issue is that radeon native backlight control doesn't work well either.
Could you try the upstream kernel from OBS Kernel:stable repo to see whether both issues are addressed? There have been known fixes for acpi video backlight (and rather disabling it) in the upstream.
The backport to openSUSE 13.1 kernel might be not so easy, as it may affect too many devices, unfortunately... Let's see.
Takashi, I'll be happy to give it a try. I should be able to get to it tomorrow evening when I get back in town. In the mean time, do you have any ideas why the acpi video driver isn't seeing the function key? As detailed above, using acpi_listen, I confirm that the key codes are generated, but for some reason the mapping of the key codes does not get mapped into /sys/class/backlight/acpi_video0/brightness? It appears if the connection/mapping/whatever would just send the fn key, the backlight would work as normal with the current kernel. My manual echo [0-7] > /sys/class/backlight/acpi_video0/brightness works fine? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c5
David Rankin
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c6
--- Comment #6 from Takashi Iwai
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c7
--- Comment #7 from David Rankin
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c8
--- Comment #8 from David Rankin
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c9
--- Comment #9 from Takashi Iwai
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c10
--- Comment #10 from David Rankin
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c11
--- Comment #11 from David Rankin
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c12
--- Comment #12 from David Rankin
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c13
--- Comment #13 from Takashi Iwai
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c14
--- Comment #14 from David Rankin
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c15
--- Comment #15 from Takashi Iwai
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c16
--- Comment #16 from David Rankin
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c17
--- Comment #17 from David Rankin
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c18
--- Comment #18 from David Rankin
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c19
--- Comment #19 from David Rankin
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c20
--- Comment #20 from Takashi Iwai
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c21
--- Comment #21 from David Rankin
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c22
--- Comment #22 from Takashi Iwai
https://bugzilla.novell.com/show_bug.cgi?id=887629
https://bugzilla.novell.com/show_bug.cgi?id=887629#c23
--- Comment #23 from David Rankin
From a system design standpoint, this needs to go in the X11 radeon driver. Having each desktop attempt implement differing hacks to control backlight is inviting problems and in the future (like having "Bubba" bailing-wire and duct-tape a "fix" to the problem).
Let me know on the contact info for the X11 Radeon devs. Stephen Dirsch used to do radeon/fglrx for openSuSE, I don't know if he is still the one. I'll report back on gnome. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=887629
http://bugzilla.novell.com/show_bug.cgi?id=887629#c24
Jiri Slaby
participants (1)
-
bugzilla_noreply@novell.com