All of lore.kernel.org
 help / color / mirror / Atom feed
From: Karol Babioch <karol@babioch.de>
To: platform-driver-x86@vger.kernel.org
Subject: sony_laptop: Default values for keyboard backlight
Date: Mon, 18 Nov 2013 11:48:07 +0100	[thread overview]
Message-ID: <5289F067.40201@babioch.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 1701 bytes --]

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.

I'm wondering whether this is the right approach, though. The default
behavior before even any "sony-laptop" module is loaded at all (e.g.
within the BIOS and/or the bootloader selection menu) is to enable the
keyboard backlight with a timeout of 10 seconds - at least on my machine.

This has changed with the recent commit once the module is actually
loaded and the backlight is never turned off again. The sysfs interface
reports "-1" for both "kbd_backlight" and "kbd_backlight_timeout", which
in itself is fine according to the message describing the commit as the
values can't be known until having them set for the first time.

But to my understanding the commit shouldn't change the default behavior
for the keyboard backlight itself, as it actually doesn't touch the
registers involved. But as the behavior has actually changed, something
is definitely going on here, which might not necessarily be intentional.

So is this something that has been overlooked, or is my understanding of
the new behavior wrong?

Best regards,
Karol Babioch

[1]:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/platform/x86/sony-laptop.c?id=294d31e8227c9892a89d6b3e58d17886b79ea4e6


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

             reply	other threads:[~2013-11-18 10:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-18 10:48 Karol Babioch [this message]
2013-11-18 22:30 ` sony_laptop: Default values for keyboard backlight Mattia Dongili
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=5289F067.40201@babioch.de \
    --to=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 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.