From: "Richard Purdie" <rpurdie@rpsys.net>
To: linux-fbdev-devel@lists.sourceforge.net
Subject: FB_EVENT (blank and unblank?)
Date: Sat, 27 Nov 2004 14:53:48 -0000 [thread overview]
Message-ID: <010501c4d490$e9edee40$0f01a8c0@max> (raw)
In-Reply-To: Pine.GSO.4.61.0411261010460.26681@waterleaf.sonytel.be
I've been looking at ways to solve a couple of code interdepencies I don't
like with w100fb and its backlight and touch screen drivers.
I have two places where they need to talk. The first is for the touch screen
to query the x resolution (and to know if the screen is blanked)[1]. The
second is to turn the backlight off when the console is blanked.
On solution I've been looking at is to use fb_register_client. I could then
hook into mode changes and that solves one problem. There is currently no
FB_EVENT_BLANK and FB_EVENT_UNBLANK however. Would it be acceptable to add
these events with appropriate hooks in fbmem.c and to use fb_register_client
in these drivers to obtain this information?
Or can anyone see an alternative other than global variables?
[1] Presumably for interference reasons, it only queries the touchscreen
after a hsync. The hysnc pulse can be obtained from the IO lines but to get
the timing right, xres also needs to be known. If the screen is blank, these
delays can be disabled...
--
Richard
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
next prev parent reply other threads:[~2004-11-27 14:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-23 17:04 Default timings in vga16fb driver Martin Wilck
2004-11-24 16:16 ` Antonino A. Daplas
2004-11-25 14:55 ` Martin Wilck
2004-11-25 19:51 ` Antonino A. Daplas
2004-11-26 9:11 ` Geert Uytterhoeven
2004-11-27 14:53 ` Richard Purdie [this message]
2004-11-27 22:43 ` FB_EVENT (blank and unblank?) Antonino A. Daplas
2004-11-27 23:59 ` Richard Purdie
2004-11-28 0:24 ` Antonino A. Daplas
2004-11-28 0:59 ` Richard Purdie
2004-11-28 1:14 ` Antonino A. Daplas
2004-11-29 22:36 ` fbdev: Add FB_EVENT_BLANK to notify listeners of a blanking status change Richard Purdie
2004-11-29 23:29 ` Antonino A. Daplas
2004-11-29 10:53 ` cursor color changes ramprasad
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='010501c4d490$e9edee40$0f01a8c0@max' \
--to=rpurdie@rpsys.net \
--cc=linux-fbdev-devel@lists.sourceforge.net \
/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).