All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xf86-video-intel: Add support for toshiba backlight interface
@ 2012-03-14 14:37 Akio Idehara
  2012-03-14 14:57 ` Seth Forshee
  0 siblings, 1 reply; 3+ messages in thread
From: Akio Idehara @ 2012-03-14 14:37 UTC (permalink / raw)
  To: chris; +Cc: seth.forshee, intel-gfx, platform-driver-x86

xfce4-power-manager cannot control backlight brightness via
toshiba backlight sysfs interface.
The reason is that xf86-video-intel doesn't treat it.
This patch adds support for toshiba backlight sysfs interface.

This was tested on a Toshiba Portege R500.

Signed-off-by: Akio Idehara <zbe64533@gmail.com>
---
 src/intel_display.c   |    1 +
 src/sna/sna_display.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/intel_display.c b/src/intel_display.c
index 11d0e2b..8eb8df8 100644
--- a/src/intel_display.c
+++ b/src/intel_display.c
@@ -131,6 +131,7 @@ static const char *backlight_interfaces[] = {
 	"fujitsu-laptop",
 	"sony",
 	"samsung",
+	"toshiba",
 	"acpi_video1", /* finally fallback to the generic acpi drivers */
 	"acpi_video0",
 	"intel_backlight",
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 9401ca4..10c67f7 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -109,6 +109,7 @@ static const char *backlight_interfaces[] = {
 	"fujitsu-laptop",
 	"sony",
 	"samsung",
+	"toshiba",
 	"acpi_video1", /* finally fallback to the generic acpi drivers */
 	"acpi_video0",
 	NULL,
-- 
1.7.7.6

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

* Re: [PATCH] xf86-video-intel: Add support for toshiba backlight interface
  2012-03-14 14:37 [PATCH] xf86-video-intel: Add support for toshiba backlight interface Akio Idehara
@ 2012-03-14 14:57 ` Seth Forshee
  2012-03-15 13:20   ` Akio Idehara
  0 siblings, 1 reply; 3+ messages in thread
From: Seth Forshee @ 2012-03-14 14:57 UTC (permalink / raw)
  To: Akio Idehara; +Cc: chris, intel-gfx, mjg59, platform-driver-x86

On Wed, Mar 14, 2012 at 11:37:39PM +0900, Akio Idehara wrote:
> xfce4-power-manager cannot control backlight brightness via
> toshiba backlight sysfs interface.
> The reason is that xf86-video-intel doesn't treat it.
> This patch adds support for toshiba backlight sysfs interface.
> 
> This was tested on a Toshiba Portege R500.
> 
> Signed-off-by: Akio Idehara <zbe64533@gmail.com>

This isn't a good idea. On many (probably most) Toshibas the platform
backlight interface is read-only. I think this patch will break more
machines than it fixes.

I have a patch for toshiba_acpi that (among other things) makes it only
register the backlight device if it can be written. I've just been
sitting on it though because I haven't been able to get anyone with a
read/write backlight interface to test it. If you'd be willing to help
with testing then I can work on getting that patch into the kernel, then
I wouldn't object to your patch.

Seth

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

* Re: [PATCH] xf86-video-intel: Add support for toshiba backlight interface
  2012-03-14 14:57 ` Seth Forshee
@ 2012-03-15 13:20   ` Akio Idehara
  0 siblings, 0 replies; 3+ messages in thread
From: Akio Idehara @ 2012-03-15 13:20 UTC (permalink / raw)
  To: seth.forshee; +Cc: chris, intel-gfx, mjg59, platform-driver-x86

Seth Forshee wrote:

> On Wed, Mar 14, 2012 at 11:37:39PM +0900, Akio Idehara wrote:
>> xfce4-power-manager cannot control backlight brightness via
>> toshiba backlight sysfs interface.
>> The reason is that xf86-video-intel doesn't treat it.
>> This patch adds support for toshiba backlight sysfs interface.
>>
>> This was tested on a Toshiba Portege R500.
>>
>> Signed-off-by: Akio Idehara <zbe64533@gmail.com>
> 
> This isn't a good idea. On many (probably most) Toshibas the platform
> backlight interface is read-only. I think this patch will break more
> machines than it fixes.
> 
> I have a patch for toshiba_acpi that (among other things) makes it only
> register the backlight device if it can be written. I've just been
> sitting on it though because I haven't been able to get anyone with a
> read/write backlight interface to test it. If you'd be willing to help
> with testing then I can work on getting that patch into the kernel, then
> I wouldn't object to your patch.
> 
> Seth
> 


Hi Seth.

Thank you for telling me about this.
If I had known it, I'd never send this patch.
And I'd be happy to help with testing.
So please feel free to send me your patch!

Regards,
Akio

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

end of thread, other threads:[~2012-03-15 13:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-14 14:37 [PATCH] xf86-video-intel: Add support for toshiba backlight interface Akio Idehara
2012-03-14 14:57 ` Seth Forshee
2012-03-15 13:20   ` Akio Idehara

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.