linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Trackpad support for PowerBook
@ 1998-12-26 18:04 Benjamin Herrenschmidt
  0 siblings, 0 replies; 3+ messages in thread
From: Benjamin Herrenschmidt @ 1998-12-26 18:04 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Paul Mackerras


Enclosed is a patch to drivers/macintosh/mac_keyb.c which does the following:

 - All mouse handlers IDs are changed to 4 or 2 if possible to enable
full features of most mice. Keyboards are changed to 3 or 5 (I think
those are the good handler IDs for extended keyboards but this could be
double checked)
 
 - The PowerBook trackpad is detected and initialized to full features
(clicking, dragging and drag lock). I'll make a command line tool for
changing it's settings later via /dev/adb.

 - Button 2 of the trackpad is "hacked" to be button 1 so that tapping
(button 2) and pressing the real button (button 1) do the same thing,
like MacOS. This behaviour could be improved to something configurable by
the user (maybe using tapping for button 1 and real button for button 2
?) but I don't know what is the best way to add a runtime-configurable
setting to mac_keyb.c... Maybe some special ioctls to adbmouse.c, but we
would have to export the configuration globals (or accessor functions)
from mac_keyb.c.

 - Adds a placeholder function for the front-panel buttons of the
powerbook G3 series.

I think the patch can be included "as is" (after some testings of
course). The improvements can always be added later.




[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to  Cc linuxppc-dev  if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request@lists.linuxppc.org ]]

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [PATCH] Trackpad support for PowerBook
@ 1998-12-26 18:08 Benjamin Herrenschmidt
  0 siblings, 0 replies; 3+ messages in thread
From: Benjamin Herrenschmidt @ 1998-12-26 18:08 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Paul Mackerras

[-- Attachment #1: Type: text/plain, Size: 1222 bytes --]

Enclosed is a patch to drivers/macintosh/mac_keyb.c which does the following:

 - All mouse handlers IDs are changed to 4 or 2 if possible to enable
full features of most mice. Keyboards are changed to 3 or 5 (I think
those are the good handler IDs for extended keyboards but this could be
double checked)
 
 - The PowerBook trackpad is detected and initialized to full features
(clicking, dragging and drag lock). I'll make a command line tool for
changing it's settings later via /dev/adb.

 - Button 2 of the trackpad is "hacked" to be button 1 so that tapping
(button 2) and pressing the real button (button 1) do the same thing,
like MacOS. This behaviour could be improved to something configurable by
the user (maybe using tapping for button 1 and real button for button 2
?) but I don't know what is the best way to add a runtime-configurable
setting to mac_keyb.c... Maybe some special ioctls to adbmouse.c, but we
would have to export the configuration globals (or accessor functions)
from mac_keyb.c.

 - Adds a placeholder function for the front-panel buttons of the
powerbook G3 series.

I think the patch can be included "as is" (after some testings of
course). The improvements can always be added later.



[-- Attachment #2: trackpad.patch.gz --]
[-- Type: application/octet-stream, Size: 1883 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: Test kernels for chipsfb (2400/3400)
@ 1998-12-24 12:23 Timothy A. Seufert
  1998-12-26 17:46 ` [PATCH] Trackpad support for PowerBook Benjamin Herrenschmidt
  0 siblings, 1 reply; 3+ messages in thread
From: Timothy A. Seufert @ 1998-12-24 12:23 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, linuxppc-dev; +Cc: David Ray, Paul Mackerras


At 10:00 AM +0100 12/23/98, Benjamin Herrenschmidt wrote:
>I got a first round of feedback and I uploaded 2 new test kernels:
>
> <http://calvaweb.calvacom.fr/bh40/vmlinux_test3.gz>
> <http://calvaweb.calvacom.fr/bh40/vmlinux_test4.gz>
>
>(the first one uses truecolor for chipsfb, the second directcolor). offb
>is "fixed" to disable the ATI kuldge when not in 8 bits (apparently
>breaks some models like PowerBook G3 Series) so "No video driver" should
>work all the time again.

On my 2400, test3 works okay for the console (8 & 16 bit) and Xpmac3400 (16
bit).  XF68FBDev is still screwed up in 16 bit, though -- the colors are
all wrong.  Also, XF68FBDev repeatably crashes on the first attempt to run
it after booting, but subsequent runs succeed.

I didn't try test4 because it failed to uncompress.

>Note that those kernel will do funny things with your ADB like
>auto-setting handler IDs of mice to 2 or 4 (depending on what the mouse
>supports) and detecting the powerbook trackball. All this is quite
>verbose (lots of printks) and I would like to know if it breaks
>something. The result of those changes should be that now, mice should
>use better capabilities by default and mousemode should not be necessary
>most of the time.
>Note also that the trackpad tapping is partially implemented (you will be
>able to click by tapping but sometimes it behaves strangely).
>
>I'll post cleaned up patches for all this later today or later this week.

I haven't tried to test any of these things.

I did notice that one thing was broken, compared to the 2.1.130 kernels
I've been compiling for myself from the vger cvs tree.  Paul's "snooze"
program does not successfully put the powerbook into sleep mode with your
test3 kernel.  The screen blanks, but the sleep light never starts
blinking, as if the machine hangs in the middle of the process of going to
sleep.  Keyboard reset seems to be the only way out.  I looked at the
source code for snooze and it's bonehead simple -- opens /dev/pmu, does a
sync(), then uses an ioctl on /dev/pmu to sleep the machine.  So this must
be a kernel bug.


I'm going to be away from email the next few days for Christmas.  However,
that also means I may have some spare time to try to work on patching up
chipsfb to work for all situations myself.  I also went and printed myself
a copy of the enormous C&T65550 datasheet, so now I have register specs for
everything and may get brave and try to implement some acceleration
functions for the console.

  Tim Seufert

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to  Cc linuxppc-dev  if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request@lists.linuxppc.org ]]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-12-26 18:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-26 18:04 [PATCH] Trackpad support for PowerBook Benjamin Herrenschmidt
  -- strict thread matches above, loose matches on Subject: below --
1998-12-26 18:08 Benjamin Herrenschmidt
1998-12-24 12:23 Test kernels for chipsfb (2400/3400) Timothy A. Seufert
1998-12-26 17:46 ` [PATCH] Trackpad support for PowerBook Benjamin Herrenschmidt

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).