linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Richard Purdie <rpurdie@rpsys.net>
To: Helge Deller <deller@gmx.de>
Cc: Andrew Zabolotny <zap@homelink.ru>,
	linux-fbdev-devel@lists.sourceforge.net,
	Jamey Hicks <jamey.hicks@hp.com>
Subject: Re: [PATCH] backlight.c: avoid unnecessarily calling	backlight_update_status()
Date: Sun, 13 Jan 2008 23:02:27 +0000	[thread overview]
Message-ID: <1200265347.4665.3.camel@localhost.localdomain> (raw)
In-Reply-To: <200801061529.19606.deller@gmx.de>

On Sun, 2008-01-06 at 15:29 +0100, Helge Deller wrote:
> Every write to the backlight control sysfs entries like (on a Sharp
> Zaurus Poodle):
> - /sys/class/backlight/locomo-bl/power
> - /sys/class/backlight/locomo-bl/brightness
> triggers a call of backlight_update_status(), even if the same
> value is written multiple times in row into those entries.
> 
> In principle this is not critical, but e.g. on the SHARP Poodle everytime
> backlight_update_status() is called, a lot of registers are reset
> and this leads to screen distortions of a ~ 0.4 seconds time frame.
> Esp. tools like some light control programs with controlling sliders 
> for the light intensity happen to set those values more often 
> which is really annoying and makes it nearly impossible to use them
> because the reaction time is really slow and you see lots of screen
> distortions.
> 
> The trivial patch below avoids this problem by comparing the 
> new value with the already set value. In case they are the same,
> it just avoids to call backlight_update_status() again.
> 
> It would be great if this patch could be applied to the fbdev git tree
> for inclusion in later linux kernels.

I've queued this in the backlight tree, thanks.

Note that ideally userspace shouldn't be making all these calls
mind ;-).

Richard


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

      reply	other threads:[~2008-01-13 23:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-06 14:29 [PATCH] backlight.c: avoid unnecessarily calling backlight_update_status() Helge Deller
2008-01-13 23:02 ` Richard Purdie [this message]

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=1200265347.4665.3.camel@localhost.localdomain \
    --to=rpurdie@rpsys.net \
    --cc=deller@gmx.de \
    --cc=jamey.hicks@hp.com \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    --cc=zap@homelink.ru \
    /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;
as well as URLs for NNTP newsgroup(s).