From: Chris Diamand <chris.diamand@gmail.com>
To: kristoffer.ericson@gmail.com
Cc: linux-kernel@vger.kernel.org, torvalds@linux-foundation.org,
Chris Diamand <chris.diamand@gmail.com>
Subject: [PATCH] Jornada 720: Fixes "Invalid argument" when changing backlight brightness.
Date: Thu, 23 Feb 2012 00:57:30 +0000 [thread overview]
Message-ID: <1329958651-8575-1-git-send-email-chris.diamand@gmail.com> (raw)
Sorry - this patch I just sent is for kernels 2.6.24/2.6.26.
(I think it's actually been fixed on versions >3.0 but they versions don't
seem to work on the jornada for various other reasons...)
Thanks,
Chris.
---------------------
On jornada 720. Running:
echo n > /sys/class/backlight/s1d13806fb/brightness
would give a "write error: Invalid argument" as the max_brightness
was not set, so any value other that 0 exceeds it. Now sets
max_brightness to 255 when the module is loaded.
Backlight can also be turned on and off using
echo 0-4 > /sys/class/backlight/s1d13806fb/bl_power
Also added some extra braces so jornada720_ssp.c.
next reply other threads:[~2012-02-23 0:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-23 0:57 Chris Diamand [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-02-23 0:36 [PATCH] Jornada 720: Fixes "Invalid argument" when changing backlight brightness Chris Diamand
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=1329958651-8575-1-git-send-email-chris.diamand@gmail.com \
--to=chris.diamand@gmail.com \
--cc=kristoffer.ericson@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--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 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).