From: Mattia Dongili <malattia@linux.it>
To: Karol Babioch <karol@babioch.de>
Cc: platform-driver-x86@vger.kernel.org
Subject: Re: sony_laptop: Default values for keyboard backlight
Date: Tue, 19 Nov 2013 07:30:08 +0900 [thread overview]
Message-ID: <20131118223008.GA4397@taihen.jp> (raw)
In-Reply-To: <5289F067.40201@babioch.de>
On Mon, Nov 18, 2013 at 11:48:07AM +0100, Karol Babioch wrote:
> Hi,
>
> the keyboard backlight has been working for me for the last couple of
> years without any problems and I was fine with the default values, so I
> wasn't too happy when I realized that a recent kernel upgrade has
> changed this by leaving the backlight always on.
>
> I've tracked down the "issue" to a specific commit (see [1]) from Mattia
> itself, so I guess he had every reason to make this change. I've dealt
> with the "problem" with a specific modprobe.d file.
This should work of course but if I broke the majority of older models
then maybe a different approach is a better idea.
...
> But to my understanding the commit shouldn't change the default behavior
> for the keyboard backlight itself, as it actually doesn't touch the
that's right, the new code specifically doesn't do aanything with
keyboard backlight unless you have a module parameter that sets a value.
> registers involved. But as the behavior has actually changed, something
> is definitely going on here, which might not necessarily be intentional.
The code was changed on the assumption that keyboard backlight settings
value are persisted across reboots. I guess this is not the case on your
machine. If you don't load sony-laptop module you still have the 10
seconds timeout that you see in the BIOS? Only _after_ you load the
module the backlight never goes off?
One alternative approach is the following.
From the DSDTs I have hanging around these models may see the same
behaviour as you're seeing:
VPCF127FX
VPCS11E7E
VPCS12A7R
VPCS12C5E
VPCZ12C5E
i.e. VPC F/S/Z series.
They all have handle 0x137 which is what the very original code was
developed for and, after all, 0x137 is special cased in the keyboard
backlight code.
One approach could be to make the default setting handle based with
again 0x137 being different from all others.
--
mattia
:wq!
next prev parent reply other threads:[~2013-11-18 22:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-18 10:48 sony_laptop: Default values for keyboard backlight Karol Babioch
2013-11-18 22:30 ` Mattia Dongili [this message]
2013-11-21 23:05 ` Karol Babioch
2013-11-22 22:11 ` Mattia Dongili
2013-11-25 12:09 ` Karol Babioch
2013-11-25 22:43 ` [PATCH] sony-laptop: do not scribble keyboard backlight registers on resume Mattia Dongili
2013-11-26 4:16 ` Linus Torvalds
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=20131118223008.GA4397@taihen.jp \
--to=malattia@linux.it \
--cc=karol@babioch.de \
--cc=platform-driver-x86@vger.kernel.org \
/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