All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Bjørn Mork" <bjorn@mork.no>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Hans de Goede <hdegoede@redhat.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux ACPI <linux-acpi@vger.kernel.org>,
	"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
Subject: Re: [BISECTED 3.16-rc REGREGRESSION] backlight control stopped working
Date: Mon, 14 Jul 2014 22:45:07 +0200	[thread overview]
Message-ID: <877g3fsm98.fsf@nemi.mork.no> (raw)
In-Reply-To: <CA+55aFzHo4BEO8W0yza7g0YMgg-b=hPbk20-vpR3s==ydpmAOg@mail.gmail.com> (Linus Torvalds's message of "Mon, 14 Jul 2014 09:59:51 -0700")

Linus Torvalds <torvalds@linux-foundation.org> writes:
> On Mon, Jul 14, 2014 at 9:24 AM, Linus Torvalds
> <torvalds@linux-foundation.org> wrote:
>>
>> Bjørn, what's your setup? Is this perhaps solvable some other way?

Just to answer that: I don't use any particular desktop environment.  I
have acpid running to take care of the most basic power management
stuff.  My X session is simply WindowMaker (sic) running directly from
lightdm.  No session management or fancy policy daemons. So I don't have
any daemon which would react on the brightness key codes.

Now, it's not that I would mind adding a daemon to handle stuff like
brightness control. I reported this as a bug because I was a bit
surprised by the existing behaviour breaking like that, and I thought
that other users might be as surprised as me.  Some maybe even without
the ability to track down the change and the setting that would restore
the old behaviour.

> For example, I wonder if we could fix the "dual brightness change"
> problem automatically by making a new option for
> 'brightness_switch_enabled'.
>
> Currently, there are two cases:
>
>  - enabled: do the actual brightness change _and_ send the input
> report keycode for a brightness change
>
>  - disabled: just send the keycode, excpecting the desktop software to
> handle it.
>
> and maybe we could have a new case (and make *that* the default):
>
>  - delayed: send the keycode, and set up a delayed timer (say, one
> tenth of a second) to do the actual brightness change. And if a
> brightness change from user mode comes in during that delay, we cancel
> the kernel-induced pending change.

That sounds like a good solution to me FWIW.



Bjørn
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

WARNING: multiple messages have this Message-ID (diff)
From: "Bjørn Mork" <bjorn@mork.no>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Hans de Goede <hdegoede@redhat.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux ACPI <linux-acpi@vger.kernel.org>,
	"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
Subject: Re: [BISECTED 3.16-rc REGREGRESSION] backlight control stopped working
Date: Mon, 14 Jul 2014 22:45:07 +0200	[thread overview]
Message-ID: <877g3fsm98.fsf@nemi.mork.no> (raw)
In-Reply-To: <CA+55aFzHo4BEO8W0yza7g0YMgg-b=hPbk20-vpR3s==ydpmAOg@mail.gmail.com> (Linus Torvalds's message of "Mon, 14 Jul 2014 09:59:51 -0700")

Linus Torvalds <torvalds@linux-foundation.org> writes:
> On Mon, Jul 14, 2014 at 9:24 AM, Linus Torvalds
> <torvalds@linux-foundation.org> wrote:
>>
>> Bjørn, what's your setup? Is this perhaps solvable some other way?

Just to answer that: I don't use any particular desktop environment.  I
have acpid running to take care of the most basic power management
stuff.  My X session is simply WindowMaker (sic) running directly from
lightdm.  No session management or fancy policy daemons. So I don't have
any daemon which would react on the brightness key codes.

Now, it's not that I would mind adding a daemon to handle stuff like
brightness control. I reported this as a bug because I was a bit
surprised by the existing behaviour breaking like that, and I thought
that other users might be as surprised as me.  Some maybe even without
the ability to track down the change and the setting that would restore
the old behaviour.

> For example, I wonder if we could fix the "dual brightness change"
> problem automatically by making a new option for
> 'brightness_switch_enabled'.
>
> Currently, there are two cases:
>
>  - enabled: do the actual brightness change _and_ send the input
> report keycode for a brightness change
>
>  - disabled: just send the keycode, excpecting the desktop software to
> handle it.
>
> and maybe we could have a new case (and make *that* the default):
>
>  - delayed: send the keycode, and set up a delayed timer (say, one
> tenth of a second) to do the actual brightness change. And if a
> brightness change from user mode comes in during that delay, we cancel
> the kernel-induced pending change.

That sounds like a good solution to me FWIW.



Bjørn

  reply	other threads:[~2014-07-14 20:45 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-14 12:59 [BISECTED 3.16-rc REGREGRESSION] backlight control stopped working Bjørn Mork
2014-07-14 12:59 ` Bjørn Mork
2014-07-14 13:14 ` Hans de Goede
2014-07-14 13:14   ` Hans de Goede
2014-07-14 13:27   ` Bjørn Mork
2014-07-14 13:27     ` Bjørn Mork
2014-07-14 16:24   ` Linus Torvalds
2014-07-14 16:24     ` Linus Torvalds
2014-07-14 16:59     ` Linus Torvalds
2014-07-14 20:45       ` Bjørn Mork [this message]
2014-07-14 20:45         ` Bjørn Mork
2014-07-14 20:49         ` Linus Torvalds
2014-07-14 20:49           ` Linus Torvalds
2014-07-14 21:46           ` Bjørn Mork
2014-07-14 21:46             ` Bjørn Mork
2014-07-14 22:19             ` Linus Torvalds
2014-07-14 18:01     ` Rafael J. Wysocki
2014-07-14 18:01       ` Rafael J. Wysocki
2014-07-15  7:00     ` Hans de Goede
2014-07-15  7:00       ` Hans de Goede
2014-07-15  7:33       ` Bjørn Mork
2014-07-15  7:33         ` Bjørn Mork
2014-07-15 10:59       ` Hans de Goede
2014-07-15 10:59         ` Hans de Goede

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=877g3fsm98.fsf@nemi.mork.no \
    --to=bjorn@mork.no \
    --cc=hdegoede@redhat.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rafael.j.wysocki@intel.com \
    --cc=torvalds@linux-foundation.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.