All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 105051] New: Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5
@ 2015-09-26 21:01 bugzilla-daemon
  2015-09-28 15:07 ` [Bug 105051] " bugzilla-daemon
                   ` (16 more replies)
  0 siblings, 17 replies; 20+ messages in thread
From: bugzilla-daemon @ 2015-09-26 21:01 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=105051

            Bug ID: 105051
           Summary: Radeon sets max_brightness to -1, breaking GNOME
                    backlight control on Macbook Pro mid-2015 11,5
           Product: Drivers
           Version: 2.5
    Kernel Version: 4.2.1
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Video(DRI - non Intel)
          Assignee: drivers_video-dri@kernel-bugs.osdl.org
          Reporter: tim.sammut@gmail.com
        Regression: No

Created attachment 188601
  --> https://bugzilla.kernel.org/attachment.cgi?id=188601&action=edit
dmesg output

The radeon driver appears to be setting an incorrect value of -1 for
max_brightness in 
/sys/devices/pnp0/00:03/backlight/gmux_backlight/max_brightness. This computer
is a Macbook Pro Retina mid-2015 model 11,5 without any video or acpi related
kernel command line options.

This prevents GNOME from correctly managing the backlight. You can see this
using the following commands:

$ cat /sys/devices/pnp0/00:03/backlight/gmux_backlight/max_brightness
-1

$ /usr/libexec/gsd-backlight-helper --get-max-brightness
Could not get the maximum value of the backlight: got invalid backlight value
from /sys/devices/pnp0/00:03/backlight/gmux_backlight/max_brightness

$ sudo /usr/libexec/gsd-backlight-helper --set-brightness 500
Could not get the maximum value of the backlight: got invalid backlight value
from /sys/devices/pnp0/00:03/backlight/gmux_backlight/max_brightness


This looks to be the same issue reported into the RedHat bugzilla at:

https://bugzilla.redhat.com/show_bug.cgi?id=1263387

I've attached the dmesg from my machine.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug 105051] Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5
  2015-09-26 21:01 [Bug 105051] New: Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5 bugzilla-daemon
@ 2015-09-28 15:07 ` bugzilla-daemon
  2015-09-28 15:53 ` bugzilla-daemon
                   ` (15 subsequent siblings)
  16 siblings, 0 replies; 20+ messages in thread
From: bugzilla-daemon @ 2015-09-28 15:07 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=105051

Alex Deucher <alexdeucher@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alexdeucher@gmail.com

--- Comment #1 from Alex Deucher <alexdeucher@gmail.com> ---
Radeon hardware supports 256 levels of brightness (0-255).  The backlight
integer property max_brightness is thus set to RADEON_MAX_BL_LEVEL (0xff).  It
sounds like GNOME is misinterpreting the value.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug 105051] Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5
  2015-09-26 21:01 [Bug 105051] New: Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5 bugzilla-daemon
  2015-09-28 15:07 ` [Bug 105051] " bugzilla-daemon
@ 2015-09-28 15:53 ` bugzilla-daemon
  2015-09-28 22:32 ` bugzilla-daemon
                   ` (14 subsequent siblings)
  16 siblings, 0 replies; 20+ messages in thread
From: bugzilla-daemon @ 2015-09-28 15:53 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=105051

Robert Abraham <robert.abraham86@googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |robert.abraham86@googlemail
                   |                            |.com

--- Comment #2 from Robert Abraham <robert.abraham86@googlemail.com> ---
I have a similar problem. gmux_backlight/max_brightness is set to -1.
But i also have a radeon_bl entry in /sys/class/backlight which has the correct
values.
But no matter which value i echo into /sys/class/backlight/radeon_bl/brightness
i am on max brightness, except i echo 0. in this case the backlight turns off.

so i can only choose between backlight off or on max brightness.
it works perfectly fine on 4.0.x kernel though.

i will happily provide any information you need.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug 105051] Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5
  2015-09-26 21:01 [Bug 105051] New: Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5 bugzilla-daemon
  2015-09-28 15:07 ` [Bug 105051] " bugzilla-daemon
  2015-09-28 15:53 ` bugzilla-daemon
@ 2015-09-28 22:32 ` bugzilla-daemon
  2015-09-29  1:15 ` bugzilla-daemon
                   ` (13 subsequent siblings)
  16 siblings, 0 replies; 20+ messages in thread
From: bugzilla-daemon @ 2015-09-28 22:32 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=105051

--- Comment #3 from Alex Deucher <alexdeucher@gmail.com> ---
(In reply to Robert Abraham from comment #2)
> 
> it works perfectly fine on 4.0.x kernel though.

The radeon backlight code hasn't really changed since it was added so
presumably something else did.  Can you bisect?  Since this is a mac, it's
possible the GPU driver does not actually control the backlight.  Everything is
a one off on macs.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug 105051] Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5
  2015-09-26 21:01 [Bug 105051] New: Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5 bugzilla-daemon
                   ` (2 preceding siblings ...)
  2015-09-28 22:32 ` bugzilla-daemon
@ 2015-09-29  1:15 ` bugzilla-daemon
  2015-09-29  1:17 ` bugzilla-daemon
                   ` (12 subsequent siblings)
  16 siblings, 0 replies; 20+ messages in thread
From: bugzilla-daemon @ 2015-09-29  1:15 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=105051

--- Comment #4 from Tim Sammut <tim.sammut@gmail.com> ---
(In reply to Alex Deucher from comment #1)
> Radeon hardware supports 256 levels of brightness (0-255).  The backlight
> integer property max_brightness is thus set to RADEON_MAX_BL_LEVEL (0xff). 
> It sounds like GNOME is misinterpreting the value.

Hi Alex, thanks. I don't think is a GNOME issue. This is via /sys and you can
see the max_brightness = -1 here:

$ for F in /sys/class/backlight/*/{type,max_brightness}; do echo $F: $(cat $F);
done | sort
/sys/class/backlight/gmux_backlight/max_brightness: -1
/sys/class/backlight/gmux_backlight/type: platform
/sys/class/backlight/radeon_bl0/max_brightness: 255
/sys/class/backlight/radeon_bl0/type: raw

Manually adjusting the brightness via `echo $level >
/sys/class/backlight/gmux_backlight/brightness` works, but GNOME control of
brightness and the on-screen display do not. 


> The radeon backlight code hasn't really changed since it was added so
> presumably something else did.  Can you bisect?  Since this is a mac,
> it's possible the GPU driver does not actually control the backlight.
> Everything is a one off on macs.

Yeah, but probably not for 3+ weeks... sorry.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug 105051] Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5
  2015-09-26 21:01 [Bug 105051] New: Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5 bugzilla-daemon
                   ` (3 preceding siblings ...)
  2015-09-29  1:15 ` bugzilla-daemon
@ 2015-09-29  1:17 ` bugzilla-daemon
  2015-09-29 10:42 ` bugzilla-daemon
                   ` (11 subsequent siblings)
  16 siblings, 0 replies; 20+ messages in thread
From: bugzilla-daemon @ 2015-09-29  1:17 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=105051

--- Comment #5 from Tim Sammut <tim.sammut@gmail.com> ---
(In reply to Robert Abraham from comment #2)
> But i also have a radeon_bl entry in /sys/class/backlight which has the
> correct values.
> But no matter which value i echo into
> /sys/class/backlight/radeon_bl/brightness i am on max brightness, except i
> echo 0. in this case the backlight turns off.
> 
> so i can only choose between backlight off or on max brightness.
> it works perfectly fine on 4.0.x kernel though.

Just for the record, this is precise how my machine behaves as well.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug 105051] Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5
  2015-09-26 21:01 [Bug 105051] New: Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5 bugzilla-daemon
                   ` (4 preceding siblings ...)
  2015-09-29  1:17 ` bugzilla-daemon
@ 2015-09-29 10:42 ` bugzilla-daemon
  2015-09-29 15:52 ` bugzilla-daemon
                   ` (10 subsequent siblings)
  16 siblings, 0 replies; 20+ messages in thread
From: bugzilla-daemon @ 2015-09-29 10:42 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=105051

--- Comment #6 from Robert Abraham <robert.abraham86@googlemail.com> ---
commit 
4eebd5a4e72697aac25a8a57d3f888a9d5f80370

breaks the backlight for me.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug 105051] Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5
  2015-09-26 21:01 [Bug 105051] New: Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5 bugzilla-daemon
                   ` (5 preceding siblings ...)
  2015-09-29 10:42 ` bugzilla-daemon
@ 2015-09-29 15:52 ` bugzilla-daemon
  2015-09-30  2:57 ` bugzilla-daemon
                   ` (9 subsequent siblings)
  16 siblings, 0 replies; 20+ messages in thread
From: bugzilla-daemon @ 2015-09-29 15:52 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=105051

--- Comment #7 from Alex Deucher <alexdeucher@gmail.com> ---
Perhaps the radeon driver should just not attempt to register a backlight
interface on Macs since they seem to use the gmux for backlight control.  Some
one with more knowledge of mac hw should probably comment on how they should be
handled.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug 105051] Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5
  2015-09-26 21:01 [Bug 105051] New: Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5 bugzilla-daemon
                   ` (6 preceding siblings ...)
  2015-09-29 15:52 ` bugzilla-daemon
@ 2015-09-30  2:57 ` bugzilla-daemon
  2015-09-30 19:56 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  16 siblings, 0 replies; 20+ messages in thread
From: bugzilla-daemon @ 2015-09-30  2:57 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=105051

--- Comment #8 from Michel Dänzer <michel@daenzer.net> ---
(In reply to Robert Abraham from comment #6)
> commit 
> 4eebd5a4e72697aac25a8a57d3f888a9d5f80370
> 
> breaks the backlight for me.

That's an apple-gmux change, not a radeon driver change. Please reassign the
component of this bug report accordingly.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug 105051] Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5
  2015-09-26 21:01 [Bug 105051] New: Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5 bugzilla-daemon
                   ` (7 preceding siblings ...)
  2015-09-30  2:57 ` bugzilla-daemon
@ 2015-09-30 19:56 ` bugzilla-daemon
  2015-10-01  7:42 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  16 siblings, 0 replies; 20+ messages in thread
From: bugzilla-daemon @ 2015-09-30 19:56 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=105051

--- Comment #9 from Tim Sammut <tim.sammut@gmail.com> ---
(In reply to Michel Dänzer from comment #8)
> 
> That's an apple-gmux change, not a radeon driver change. Please reassign the
> component of this bug report accordingly.

Thanks, I'd be happy to, but I don't see where to but it and looking at other
apple_gmux bugs seem scattered. Help!?

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug 105051] Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5
  2015-09-26 21:01 [Bug 105051] New: Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5 bugzilla-daemon
                   ` (8 preceding siblings ...)
  2015-09-30 19:56 ` bugzilla-daemon
@ 2015-10-01  7:42 ` bugzilla-daemon
  2015-10-01 21:04 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  16 siblings, 0 replies; 20+ messages in thread
From: bugzilla-daemon @ 2015-10-01  7:42 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=105051

--- Comment #10 from Michel Dänzer <michel@daenzer.net> ---
It may be easier to contact the apple-gmux developers via e-mail. The
scripts/get_maintainer.pl script should be useful for that.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug 105051] Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5
  2015-09-26 21:01 [Bug 105051] New: Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5 bugzilla-daemon
                   ` (9 preceding siblings ...)
  2015-10-01  7:42 ` bugzilla-daemon
@ 2015-10-01 21:04 ` bugzilla-daemon
  2015-10-01 21:13 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  16 siblings, 0 replies; 20+ messages in thread
From: bugzilla-daemon @ 2015-10-01 21:04 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=105051

Tim Sammut <tim.sammut@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Video(DRI - non Intel)      |Platform_x86

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug 105051] Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5
  2015-09-26 21:01 [Bug 105051] New: Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5 bugzilla-daemon
                   ` (10 preceding siblings ...)
  2015-10-01 21:04 ` bugzilla-daemon
@ 2015-10-01 21:13 ` bugzilla-daemon
  2015-10-08 14:46 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  16 siblings, 0 replies; 20+ messages in thread
From: bugzilla-daemon @ 2015-10-01 21:13 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=105051

--- Comment #11 from Tim Sammut <tim.sammut@gmail.com> ---
(In reply to Robert Abraham from comment #6)
> commit 
> 4eebd5a4e72697aac25a8a57d3f888a9d5f80370
> 
> breaks the backlight for me.

Yep, me too. Reverting that change against a 4.2.1 kernel completely fixes the
issues. Brightness adjusts and OSD appears.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug 105051] Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5
  2015-09-26 21:01 [Bug 105051] New: Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5 bugzilla-daemon
                   ` (11 preceding siblings ...)
  2015-10-01 21:13 ` bugzilla-daemon
@ 2015-10-08 14:46 ` bugzilla-daemon
  2015-10-08 15:14 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  16 siblings, 0 replies; 20+ messages in thread
From: bugzilla-daemon @ 2015-10-08 14:46 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=105051

--- Comment #12 from Tim Sammut <tim.sammut@gmail.com> ---
(In reply to Michel Dänzer from comment #8)
> 
> That's an apple-gmux change, not a radeon driver change. Please reassign the
> component of this bug report accordingly.

Hi. I changed the component based on the output of scripts/get_maintainer.pl,
but I do not appear to be able to reassign the bug. 

Is anyone watching this bug able to reassign it?

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug 105051] Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5
  2015-09-26 21:01 [Bug 105051] New: Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5 bugzilla-daemon
                   ` (12 preceding siblings ...)
  2015-10-08 14:46 ` bugzilla-daemon
@ 2015-10-08 15:14 ` bugzilla-daemon
  2015-10-15  4:47 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  16 siblings, 0 replies; 20+ messages in thread
From: bugzilla-daemon @ 2015-10-08 15:14 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=105051

--- Comment #13 from Alex Deucher <alexdeucher@gmail.com> ---
Only the original filer or an admin can change it as far as I know.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug 105051] Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5
  2015-09-26 21:01 [Bug 105051] New: Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5 bugzilla-daemon
                   ` (13 preceding siblings ...)
  2015-10-08 15:14 ` bugzilla-daemon
@ 2015-10-15  4:47 ` bugzilla-daemon
  2015-10-22  9:37 ` bugzilla-daemon
  2015-10-22  9:39 ` bugzilla-daemon
  16 siblings, 0 replies; 20+ messages in thread
From: bugzilla-daemon @ 2015-10-15  4:47 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=105051

Felipe Ortiz <fortizc@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fortizc@gmail.com

--- Comment #14 from Felipe Ortiz <fortizc@gmail.com> ---
I can confirm the problem with 4eebd5a4e72697aac25a8a57d3f888a9d5f80370. I have
a MPB 11,5 with AMD/Intel graphics. I recompile the module (a previous version
of 4eebd5a4e72697aac25a8a57d3f888a9d5f80370) and brightness adjusts is working
again.

I see two problems: 

1) If someone uses gpu-switch (https://github.com/0xbb/gpu-switch) with this
bug screen seem not work, after severals reboots (with different kernels) I can
access a terminal and execute gpu-switch -d and then screen seems work again.

2) If you use a Intel card (swiched with gpu-switch) the OSD (activated with
functions keys) is so slow and chromium have the same problem (temporary fix is
deactivate chromium hw acceleration) is this a intel driver bug?

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug 105051] Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5
  2015-09-26 21:01 [Bug 105051] New: Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5 bugzilla-daemon
                   ` (14 preceding siblings ...)
  2015-10-15  4:47 ` bugzilla-daemon
@ 2015-10-22  9:37 ` bugzilla-daemon
  2015-10-22  9:39 ` bugzilla-daemon
  16 siblings, 0 replies; 20+ messages in thread
From: bugzilla-daemon @ 2015-10-22  9:37 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=105051

--- Comment #15 from Darren Hart <dvhart@infradead.org> ---
Thanks for reporting, we're following up on the platform-drivers-x86 mailing
list.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* [Bug 105051] Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5
  2015-09-26 21:01 [Bug 105051] New: Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5 bugzilla-daemon
                   ` (15 preceding siblings ...)
  2015-10-22  9:37 ` bugzilla-daemon
@ 2015-10-22  9:39 ` bugzilla-daemon
  16 siblings, 0 replies; 20+ messages in thread
From: bugzilla-daemon @ 2015-10-22  9:39 UTC (permalink / raw)
  To: dri-devel

https://bugzilla.kernel.org/show_bug.cgi?id=105051

Darren Hart <dvhart@infradead.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|drivers_video-dri@kernel-bu |drivers_platform_x86@kernel
                   |gs.osdl.org                 |-bugs.osdl.org

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [Bug 105051] Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5
  2015-10-22  9:36   ` Darren Hart
@ 2015-10-25 16:58     ` Bruno Prémont
  0 siblings, 0 replies; 20+ messages in thread
From: Bruno Prémont @ 2015-10-25 16:58 UTC (permalink / raw)
  To: Darren Hart
  Cc: platform-driver-x86, Linux Kernel Mailing List, Petri Hodju,
	Bjorn Helgaas

Hi Darren,

Looks like the Apple issue with backlight working on hidden Intel IGP
(doing IO on VGA addresses) while graphics are running on visible
discrete GPU (Radeon this time instead of usual nvidia).


I should have offered a solution quite some time ago but it seem time
was running very fast.
The best solution I can think of is denying any vga_arb on Apple EFI
systems (and not trying to choose the right one which is not possible
when one of both GPUs is hidden).


The lines of interest in dmesg are:
[    0.210225] vgaarb: device added: PCI:0000:01:00.0,decodes=io+mem,owns=none,locks=none
[    0.210227] vgaarb: loaded
[    0.210228] vgaarb: setting as boot device: PCI:0000:01:00.0
[    0.210229] vgaarb: bridge control possible 0000:01:00.0
[    0.385583] fb0: EFI VGA frame buffer device
[    7.738507] apple_gmux: Found gmux version 4.0.20 [indexed]
[    7.738514] apple_gmux: locked IO for PCI:0000:01:00.0
[    7.792805] fb: switching to radeondrmfb from EFI VGA

Not loading apple_gmux might or might not affect ability to control
backlight depending on what backlight devices go registered
(radeon backlight device probably does not affect screen, at best an
ACPI backlight device might work)

Interesting part to check is how things work when both GPU are visible
to OS.

Thanks,
Bruno

On Thu, 22 Oct 2015 11:36:52 Darren Hart wrote:
> Bruno, can you please have a look at the following regression attributed to:
> 
> 4eebd5a apple-gmux: lock iGP IO to protect from vgaarb changes
>  2015-03-18 (7 months ago), Bruno Prémont <bonbons@linux-vserver.org>
> 
> 
> On Thu, Oct 15, 2015 at 04:47:13AM +0000, bugzilla-daemon@bugzilla.kernel.org wrote:
> > https://bugzilla.kernel.org/show_bug.cgi?id=105051
> > 
> > Felipe Ortiz <fortizc@gmail.com> changed:
> > 
> >            What    |Removed                     |Added
> > ----------------------------------------------------------------------------
> >                  CC|                            |fortizc@gmail.com
> > 
> > --- Comment #14 from Felipe Ortiz <fortizc@gmail.com> ---
> > I can confirm the problem with 4eebd5a4e72697aac25a8a57d3f888a9d5f80370. I have
> > a MPB 11,5 with AMD/Intel graphics. I recompile the module (a previous version
> > of 4eebd5a4e72697aac25a8a57d3f888a9d5f80370) and brightness adjusts is working
> > again.
> > 
> > I see two problems: 
> > 
> > 1) If someone uses gpu-switch (https://github.com/0xbb/gpu-switch) with this
> > bug screen seem not work, after severals reboots (with different kernels) I can
> > access a terminal and execute gpu-switch -d and then screen seems work again.
> > 
> > 2) If you use a Intel card (swiched with gpu-switch) the OSD (activated with
> > functions keys) is so slow and chromium have the same problem (temporary fix is
> > deactivate chromium hw acceleration) is this a intel driver bug?
> > 
> > -- 
> > You are receiving this mail because:
> > You are on the CC list for the bug.
> > 
> 
> Thanks,
> 


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [Bug 105051] Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5
       [not found] ` <bug-105051-5380-RlJ9dZd1ch@https.bugzilla.kernel.org/>
@ 2015-10-22  9:36   ` Darren Hart
  2015-10-25 16:58     ` Bruno Prémont
  0 siblings, 1 reply; 20+ messages in thread
From: Darren Hart @ 2015-10-22  9:36 UTC (permalink / raw)
  To: Bruno Prémont
  Cc: platform-driver-x86, Linux Kernel Mailing List, Petri Hodju,
	Bjorn Helgaas

Bruno, can you please have a look at the following regression attributed to:

4eebd5a apple-gmux: lock iGP IO to protect from vgaarb changes
 2015-03-18 (7 months ago), Bruno Prémont <bonbons@linux-vserver.org>


On Thu, Oct 15, 2015 at 04:47:13AM +0000, bugzilla-daemon@bugzilla.kernel.org wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=105051
> 
> Felipe Ortiz <fortizc@gmail.com> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |fortizc@gmail.com
> 
> --- Comment #14 from Felipe Ortiz <fortizc@gmail.com> ---
> I can confirm the problem with 4eebd5a4e72697aac25a8a57d3f888a9d5f80370. I have
> a MPB 11,5 with AMD/Intel graphics. I recompile the module (a previous version
> of 4eebd5a4e72697aac25a8a57d3f888a9d5f80370) and brightness adjusts is working
> again.
> 
> I see two problems: 
> 
> 1) If someone uses gpu-switch (https://github.com/0xbb/gpu-switch) with this
> bug screen seem not work, after severals reboots (with different kernels) I can
> access a terminal and execute gpu-switch -d and then screen seems work again.
> 
> 2) If you use a Intel card (swiched with gpu-switch) the OSD (activated with
> functions keys) is so slow and chromium have the same problem (temporary fix is
> deactivate chromium hw acceleration) is this a intel driver bug?
> 
> -- 
> You are receiving this mail because:
> You are on the CC list for the bug.
> 

Thanks,

-- 
Darren Hart
Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2015-10-25 17:05 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-26 21:01 [Bug 105051] New: Radeon sets max_brightness to -1, breaking GNOME backlight control on Macbook Pro mid-2015 11,5 bugzilla-daemon
2015-09-28 15:07 ` [Bug 105051] " bugzilla-daemon
2015-09-28 15:53 ` bugzilla-daemon
2015-09-28 22:32 ` bugzilla-daemon
2015-09-29  1:15 ` bugzilla-daemon
2015-09-29  1:17 ` bugzilla-daemon
2015-09-29 10:42 ` bugzilla-daemon
2015-09-29 15:52 ` bugzilla-daemon
2015-09-30  2:57 ` bugzilla-daemon
2015-09-30 19:56 ` bugzilla-daemon
2015-10-01  7:42 ` bugzilla-daemon
2015-10-01 21:04 ` bugzilla-daemon
2015-10-01 21:13 ` bugzilla-daemon
2015-10-08 14:46 ` bugzilla-daemon
2015-10-08 15:14 ` bugzilla-daemon
2015-10-15  4:47 ` bugzilla-daemon
2015-10-22  9:37 ` bugzilla-daemon
2015-10-22  9:39 ` bugzilla-daemon
     [not found] <bug-105051-5380@https.bugzilla.kernel.org/>
     [not found] ` <bug-105051-5380-RlJ9dZd1ch@https.bugzilla.kernel.org/>
2015-10-22  9:36   ` Darren Hart
2015-10-25 16:58     ` Bruno Prémont

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.