From: Maxim Levitsky <maximlevitsky@gmail.com>
To: Zhang Rui <rui.zhang@intel.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>
Subject: Re: acpi 'video' driver, and issues with 'brightness_switch_enabled=0'
Date: Tue, 28 Apr 2009 12:58:51 +0300 [thread overview]
Message-ID: <1240912731.29860.11.camel@maxim-laptop> (raw)
In-Reply-To: <1240886605.4639.19.camel@rzhang-dt>
[-- Attachment #1: Type: text/plain, Size: 2350 bytes --]
On Tue, 2009-04-28 at 10:43 +0800, Zhang Rui wrote:
> On Tue, 2009-04-28 at 01:57 +0800, Maxim Levitsky wrote:
> > I have a notebook which handles brightness keys in hardware, but tells
> > loudly when it does so.
> >
> if you boot into console mode w/o ACPI video driver, does the brightness
> still change when you press the hotkeys?
They always work.
For s while, due to buggy ACPI table, acpi 'video' driver won't work, so
I blacklisted it, and yet hw keys did work.
>
> > Currently, acpi 'video' also sets the brightness, which result in double
> > setting, and on top of that it emits a key that makes gpm set brightness
> > again.
> >
> we need to support the brightness control in console mode.
> and "brightness_switch_enabled" should be cleared in graphics mode to
> prevent the ACPI video driver action upon hotkey events.
How gnome power manager can do that, use /sys/module iface?
>
> > And (yes...) on top of that keyboard emits a brightness up/down even,
> > which (you guessed...) sets brightness again.
> >
> > I found out that it is possible to tell gnome-power-manager not to set
> > brightness, but yet in kernel driver still sets it.
> >
> > I found out even earlier that I can use brightness_switch_enabled=0,
> > which supposed to make inkernel driver not touch the brightness.
> > But I found out that this driver won't update the brightness, in /sys
> > interface when I set this param.
> >
> No, when "brightness_switch_enabled" is cleared, gdm should still use
> the ACPI backlight sysfs I/F if available to change the backlight,
> i.e. /sys/class/backlight/acpi_video0/...
Indeed it does, but I don't like it, hardware already changed the
brightness, but it receives another two events about brightness up/down.
It (and I too) can change the brightness, but it doesn't update to
reflect current brightness
(/sys/class/backlight/acpi_video0/brightness) shows cached value from
last time it was set.
there is also the actual_brightness, but I think it isn't used by gpm.
>
> what's the model name of your laptop?
acer aspire 5720G
> are you using Intel graphics?
no, nvidia 8400GS
> please attach the output of acpidump and lspci.
> It would be great if you can file a bug report about this issue at
> bugzilla.kernel.org.
No problem.
>
> thanks,
> rui
Thanks too,
Best regards,
Maxim Levitsky
[-- Attachment #2: acpidump.bz2 --]
[-- Type: application/x-bzip, Size: 42936 bytes --]
[-- Attachment #3: lspci.bz2 --]
[-- Type: application/x-bzip, Size: 8319 bytes --]
next prev parent reply other threads:[~2009-04-28 9:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-27 17:57 acpi 'video' driver, and issues with 'brightness_switch_enabled=0' Maxim Levitsky
2009-04-28 2:43 ` Zhang Rui
2009-04-28 9:58 ` Maxim Levitsky [this message]
2009-04-29 3:08 ` Zhang Rui
2009-04-29 11:15 ` Maxim Levitsky
2009-04-29 16:43 ` Maxim Levitsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1240912731.29860.11.camel@maxim-laptop \
--to=maximlevitsky@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rui.zhang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox