linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Simon Stapleton" <simon@tufty.co.uk>
To: linuxppc-dev@lists.linuxppc.org
Subject: Re: No Backlight Control in 2.2.18pre21
Date: Mon, 04 Dec 2000 12:15:58 +0000	[thread overview]
Message-ID: <975932158.3a2b8afe69611@rascal.ums.easynet.net> (raw)


> Subject says it: with current linux-pmac-stable kernels, the
> backlight control via [Fn-]F{1,2} does not work, neither
> dimming nor turning off the LCD altogether, on a PB Lombard
> at least.
> Might have been this way since the CONFIG_PMAC section appeared,
> in any case, in 2.4.0-test11 there is a CONFIG_PMAC_BACKLIGHT
> option, and backlight control is working (I've set it to "=y",
> of course).

Funny you should mention this.  I was about to pen a missive along
the same lines.  I noticed it this very weekend when getting back
to hacking together ADB Wacom support (not necessarily coming
any time soon, BTW)

The problem appears, to me at least, that if you use the USB
backport code the powerbook buttons stuff doesn't get included.
I think somewhere a CONFIG_PMAC_BACKLIGHT is being missed, but
I may well be wrong.  Changing CONFIG_PMAC_BACKLIGHT to
CONFIG_PMAC_PBOOK seems to fix the problem (and seems to make
more sense as we're dealing with powerbook button devices here.
Or are we?  What about the buttons on the front of some of the
older pmacs, and on the apple monitors?  I assume these are all
ADB devices.  I can't test the monitor stuff as my 1710 decided
it doesn't want to start up recently.  Bah.)

In a related note, I've been looking at the code that does this.
I had a patch under 2.2.17 to make the volume and mute buttons work
on my wallstreet, and was wanting to reinstate it - the original
patch won't work but the coding seems (relatively) simple.

So - a couple of questions.

1: What is labelled as the 'contrast' button is actually the
   wallstreet volume control.  Is this the case for other Pbooks?
   (I can probably get hold of a 3400 to test, but kangas, lombards
   and the like are all unreachable).  If this _is_ the case, could
   we rename the constant?
2: Getting to the sound device.  This is probably a stupid question,
   but here goes anyway... The sound device is controllable from
   userland via the /dev/mixer ioctl, as far as I can see.  Can I
   use this from within the kernel, or is that a big no-no?  I don't
   like the idea of putting extra helpers in the sound code (or even
   using existing ones directly), as there's no guarantee that sound
   support has been built in.  And I _really_ don't like lots more
   #ifdef's in the code.

Thoughts, comments, flames?

Simon

--
Your mouse has moved.  You must reboot Windows NT for these changes to be
recognised.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

             reply	other threads:[~2000-12-04 12:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-04 12:15 Simon Stapleton [this message]
2000-12-04 12:43 ` No Backlight Control in 2.2.18pre21 jpgarcia, UNEXPECTED_DATA_AFTER_ADDRESS
2000-12-04 14:03   ` Simon Stapleton
2000-12-04 16:36 ` Benjamin Herrenschmidt
     [not found] <200012010559.XAA05749@lists.linuxppc.org>
2000-12-01 23:22 ` Derek Homeier

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=975932158.3a2b8afe69611@rascal.ums.easynet.net \
    --to=simon@tufty.co.uk \
    --cc=linuxppc-dev@lists.linuxppc.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).