public inbox for platform-driver-x86@vger.kernel.org
 help / color / mirror / Atom feed
* apple_gmux bug
@ 2013-01-24  5:25 Rolando Martins
  2013-01-24  8:13 ` Benoit Gschwind
  0 siblings, 1 reply; 5+ messages in thread
From: Rolando Martins @ 2013-01-24  5:25 UTC (permalink / raw)
  To: platform-driver-x86; +Cc: Seth Forshee

Hi,
I am currently experienced problems with the apple_gmux driver
while using a MBP retina 10,1.
System description & behavior:
-Ubuntu 13.04 with kernel 3.8-rc4.
-dmesg: apple_gmux: Found gmux version 3.2.19 [indexed]
-Under /sys/class/backlight I only have gmux_backlight.
-Under gmux_backlight both actual and max brightness are equal to 2^24
= 16777216,
while brightness value is within [0,1023] (the value can be changed)
-The backlight is dimmed throughout the boot process and remains the same,
without being possible to adjust it.

If the following hack is applied then full brightness can be achieved,
however it remains nonadjustable.

 #define HACK_VALUE 1023
 ...
 In gmux_probe() :
 ...
 props.max_brightness = gmux_read32(gmux_data, GMUX_PORT_MAX_BRIGHTNESS);
 //hack
 props.max_brightness = HACK_VALUE;
 ....
 bdev->props.brightness = gmux_get_brightness(bdev);
 //hack
 bdev->props.brightness = HACK_VALUE;

Does anybody have a clue to solve this problem?

Thanks for the help,
Rolando

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

* Re: apple_gmux bug
  2013-01-24  5:25 apple_gmux bug Rolando Martins
@ 2013-01-24  8:13 ` Benoit Gschwind
  2013-01-24  8:16   ` Benoit Gschwind
  0 siblings, 1 reply; 5+ messages in thread
From: Benoit Gschwind @ 2013-01-24  8:13 UTC (permalink / raw)
  To: Rolando Martins; +Cc: platform-driver-x86, Seth Forshee

Hello Rolando,

Do you use NVIDIA proprietary driver ?

If this is the case, this explain your issue probably. NVIDIA driver 
seems disable gmux chips.

Best regards.

Le 24/01/2013 06:25, Rolando Martins wrote :
> Hi,
> I am currently experienced problems with the apple_gmux driver
> while using a MBP retina 10,1.
> System description & behavior:
> -Ubuntu 13.04 with kernel 3.8-rc4.
> -dmesg: apple_gmux: Found gmux version 3.2.19 [indexed]
> -Under /sys/class/backlight I only have gmux_backlight.
> -Under gmux_backlight both actual and max brightness are equal to 2^24
> = 16777216,
> while brightness value is within [0,1023] (the value can be changed)
> -The backlight is dimmed throughout the boot process and remains the same,
> without being possible to adjust it.
>
> If the following hack is applied then full brightness can be achieved,
> however it remains nonadjustable.
>
>   #define HACK_VALUE 1023
>   ...
>   In gmux_probe() :
>   ...
>   props.max_brightness = gmux_read32(gmux_data, GMUX_PORT_MAX_BRIGHTNESS);
>   //hack
>   props.max_brightness = HACK_VALUE;
>   ....
>   bdev->props.brightness = gmux_get_brightness(bdev);
>   //hack
>   bdev->props.brightness = HACK_VALUE;
>
> Does anybody have a clue to solve this problem?
>
> Thanks for the help,
> Rolando
> --
> To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

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

* Re: apple_gmux bug
  2013-01-24  8:13 ` Benoit Gschwind
@ 2013-01-24  8:16   ` Benoit Gschwind
  2013-01-24 13:37     ` Rolando Martins
  0 siblings, 1 reply; 5+ messages in thread
From: Benoit Gschwind @ 2013-01-24  8:16 UTC (permalink / raw)
  To: Rolando Martins; +Cc: platform-driver-x86, Seth Forshee

Hello Rolando,

I found that if you turn you computer in stanby (suspend to RAM) and 
turn it on again, gmux work again.

I didn't found a way ot enable this behaviour at boot.

Best regards

Le 24/01/2013 09:13, Benoit Gschwind a écrit :
> Hello Rolando,
>
> Do you use NVIDIA proprietary driver ?
>
> If this is the case, this explain your issue probably. NVIDIA driver
> seems disable gmux chips.
>
> Best regards.
>
> Le 24/01/2013 06:25, Rolando Martins wrote :
>> Hi,
>> I am currently experienced problems with the apple_gmux driver
>> while using a MBP retina 10,1.
>> System description & behavior:
>> -Ubuntu 13.04 with kernel 3.8-rc4.
>> -dmesg: apple_gmux: Found gmux version 3.2.19 [indexed]
>> -Under /sys/class/backlight I only have gmux_backlight.
>> -Under gmux_backlight both actual and max brightness are equal to 2^24
>> = 16777216,
>> while brightness value is within [0,1023] (the value can be changed)
>> -The backlight is dimmed throughout the boot process and remains the
>> same,
>> without being possible to adjust it.
>>
>> If the following hack is applied then full brightness can be achieved,
>> however it remains nonadjustable.
>>
>>   #define HACK_VALUE 1023
>>   ...
>>   In gmux_probe() :
>>   ...
>>   props.max_brightness = gmux_read32(gmux_data,
>> GMUX_PORT_MAX_BRIGHTNESS);
>>   //hack
>>   props.max_brightness = HACK_VALUE;
>>   ....
>>   bdev->props.brightness = gmux_get_brightness(bdev);
>>   //hack
>>   bdev->props.brightness = HACK_VALUE;
>>
>> Does anybody have a clue to solve this problem?
>>
>> Thanks for the help,
>> Rolando
>> --
>> To unsubscribe from this list: send the line "unsubscribe
>> platform-driver-x86" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>
> --
> To unsubscribe from this list: send the line "unsubscribe
> platform-driver-x86" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: apple_gmux bug
  2013-01-24  8:16   ` Benoit Gschwind
@ 2013-01-24 13:37     ` Rolando Martins
  2013-01-24 14:02       ` Benoit Gschwind
  0 siblings, 1 reply; 5+ messages in thread
From: Rolando Martins @ 2013-01-24 13:37 UTC (permalink / raw)
  To: Benoit Gschwind; +Cc: platform-driver-x86, Seth Forshee

Hi Benoit,
thanks for the quick reply and help.
Sorry forgot to mention that, yes I am using the Nvidia driver.
You are right, after suspend it does work.
Got this message after suspend, "apple-gmux 00:07: System wakeup
disabled by ACPI"

>> If this is the case, this explain your issue probably. NVIDIA driver
>> seems disable gmux chips.
Also right:), if I shutdown and power up, the apple-gmux reports
device not present.
But if I do a reboot then it shows up.

We will have to wait for a nvidia patch (while using the proprietary
driver), right?

Thanks again,
Rolando

On Thu, Jan 24, 2013 at 3:16 AM, Benoit Gschwind <gschwind@gnu-log.net> wrote:
> Hello Rolando,
>
> I found that if you turn you computer in stanby (suspend to RAM) and turn it
> on again, gmux work again.
>
> I didn't found a way ot enable this behaviour at boot.
>
> Best regards
>
> Le 24/01/2013 09:13, Benoit Gschwind a écrit :
>
>> Hello Rolando,
>>
>> Do you use NVIDIA proprietary driver ?
>>
>> If this is the case, this explain your issue probably. NVIDIA driver
>> seems disable gmux chips.
>>
>> Best regards.
>>
>> Le 24/01/2013 06:25, Rolando Martins wrote :
>>>
>>> Hi,
>>> I am currently experienced problems with the apple_gmux driver
>>> while using a MBP retina 10,1.
>>> System description & behavior:
>>> -Ubuntu 13.04 with kernel 3.8-rc4.
>>> -dmesg: apple_gmux: Found gmux version 3.2.19 [indexed]
>>> -Under /sys/class/backlight I only have gmux_backlight.
>>> -Under gmux_backlight both actual and max brightness are equal to 2^24
>>> = 16777216,
>>> while brightness value is within [0,1023] (the value can be changed)
>>> -The backlight is dimmed throughout the boot process and remains the
>>> same,
>>> without being possible to adjust it.
>>>
>>> If the following hack is applied then full brightness can be achieved,
>>> however it remains nonadjustable.
>>>
>>>   #define HACK_VALUE 1023
>>>   ...
>>>   In gmux_probe() :
>>>   ...
>>>   props.max_brightness = gmux_read32(gmux_data,
>>> GMUX_PORT_MAX_BRIGHTNESS);
>>>   //hack
>>>   props.max_brightness = HACK_VALUE;
>>>   ....
>>>   bdev->props.brightness = gmux_get_brightness(bdev);
>>>   //hack
>>>   bdev->props.brightness = HACK_VALUE;
>>>
>>> Does anybody have a clue to solve this problem?
>>>
>>> Thanks for the help,
>>> Rolando
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe
>>> platform-driver-x86" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe
>> platform-driver-x86" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>

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

* Re: apple_gmux bug
  2013-01-24 13:37     ` Rolando Martins
@ 2013-01-24 14:02       ` Benoit Gschwind
  0 siblings, 0 replies; 5+ messages in thread
From: Benoit Gschwind @ 2013-01-24 14:02 UTC (permalink / raw)
  To: Rolando Martins; +Cc: platform-driver-x86, Seth Forshee

Hello Rolando,

I'm not a specialist about NVIDIA driver, I guess that NVIDIA can fix 
this issue, but I also guess that Linux on NVIDIA Mac computer is not 
their priority, we may are very few people (I use macbook pro retina 
15.5' on linux too). And since issue is not a major issue, because 
without this fixed you can use you computer, I Think we cannot expect 
NVIDIA fix this soon.

So to fix this we have to find a work around, but my knowledge are 
limited :D. Use sun glasses ? :D

For final words, if you don't plan to play rich graphical stuff, you can 
use nouveau driver (which do not have this issue). In current 
development branch, hardware acceleration is enable for GeForce 650M and 
seems that it will be available for kernel 3.8. note that nouveau 
support of GeForce 650M accelerated or not is young, probably since 
kernel 3.7.

Best regards.

Le 24/01/2013 14:37, Rolando Martins a écrit :
> Hi Benoit,
> thanks for the quick reply and help.
> Sorry forgot to mention that, yes I am using the Nvidia driver.
> You are right, after suspend it does work.
> Got this message after suspend, "apple-gmux 00:07: System wakeup
> disabled by ACPI"
>
>>> If this is the case, this explain your issue probably. NVIDIA driver
>>> seems disable gmux chips.
> Also right:), if I shutdown and power up, the apple-gmux reports
> device not present.
> But if I do a reboot then it shows up.
>
> We will have to wait for a nvidia patch (while using the proprietary
> driver), right?
>
> Thanks again,
> Rolando
>
> On Thu, Jan 24, 2013 at 3:16 AM, Benoit Gschwind <gschwind@gnu-log.net> wrote:
>> Hello Rolando,
>>
>> I found that if you turn you computer in stanby (suspend to RAM) and turn it
>> on again, gmux work again.
>>
>> I didn't found a way ot enable this behaviour at boot.
>>
>> Best regards
>>
>> Le 24/01/2013 09:13, Benoit Gschwind a écrit :
>>
>>> Hello Rolando,
>>>
>>> Do you use NVIDIA proprietary driver ?
>>>
>>> If this is the case, this explain your issue probably. NVIDIA driver
>>> seems disable gmux chips.
>>>
>>> Best regards.
>>>
>>> Le 24/01/2013 06:25, Rolando Martins wrote :
>>>>
>>>> Hi,
>>>> I am currently experienced problems with the apple_gmux driver
>>>> while using a MBP retina 10,1.
>>>> System description & behavior:
>>>> -Ubuntu 13.04 with kernel 3.8-rc4.
>>>> -dmesg: apple_gmux: Found gmux version 3.2.19 [indexed]
>>>> -Under /sys/class/backlight I only have gmux_backlight.
>>>> -Under gmux_backlight both actual and max brightness are equal to 2^24
>>>> = 16777216,
>>>> while brightness value is within [0,1023] (the value can be changed)
>>>> -The backlight is dimmed throughout the boot process and remains the
>>>> same,
>>>> without being possible to adjust it.
>>>>
>>>> If the following hack is applied then full brightness can be achieved,
>>>> however it remains nonadjustable.
>>>>
>>>>    #define HACK_VALUE 1023
>>>>    ...
>>>>    In gmux_probe() :
>>>>    ...
>>>>    props.max_brightness = gmux_read32(gmux_data,
>>>> GMUX_PORT_MAX_BRIGHTNESS);
>>>>    //hack
>>>>    props.max_brightness = HACK_VALUE;
>>>>    ....
>>>>    bdev->props.brightness = gmux_get_brightness(bdev);
>>>>    //hack
>>>>    bdev->props.brightness = HACK_VALUE;
>>>>
>>>> Does anybody have a clue to solve this problem?
>>>>
>>>> Thanks for the help,
>>>> Rolando
>>>> --
>>>> To unsubscribe from this list: send the line "unsubscribe
>>>> platform-driver-x86" in
>>>> the body of a message to majordomo@vger.kernel.org
>>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>>>
>>>
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe
>>> platform-driver-x86" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>>

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

end of thread, other threads:[~2013-01-24 14:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-24  5:25 apple_gmux bug Rolando Martins
2013-01-24  8:13 ` Benoit Gschwind
2013-01-24  8:16   ` Benoit Gschwind
2013-01-24 13:37     ` Rolando Martins
2013-01-24 14:02       ` Benoit Gschwind

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox