From owner-freebsd-sparc64@FreeBSD.ORG Sat Sep 11 18:01:07 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C3F8816A4CE for ; Sat, 11 Sep 2004 18:01:07 +0000 (GMT) Received: from newtrinity.zeist.de (newtrinity.zeist.de [217.24.217.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 142E243D54 for ; Sat, 11 Sep 2004 18:01:07 +0000 (GMT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (localhost [127.0.0.1]) i8BI151a095663; Sat, 11 Sep 2004 20:01:05 +0200 (CEST) (envelope-from marius@newtrinity.zeist.de) Received: (from marius@localhost) by newtrinity.zeist.de (8.12.10/8.12.10/Submit) id i8BI0x0q095662; Sat, 11 Sep 2004 20:00:59 +0200 (CEST) (envelope-from marius) Date: Sat, 11 Sep 2004 20:00:59 +0200 From: Marius Strobl To: Dejan Lesjak Message-ID: <20040911200059.R69188@newtrinity.zeist.de> References: <200409101227.51303.dejan.lesjak@ijs.si> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200409101227.51303.dejan.lesjak@ijs.si>; from dejan.lesjak@ijs.si on Fri, Sep 10, 2004 at 12:27:51PM +0200 X-AntiVirus: checked by AntiVir Milter 1.1-beta; AVE 6.27.0.6; VDF 6.27.0.54 (host: newtrinity.zeist.de) cc: eta@lclark.edu cc: freebsd-sparc64@freebsd.org Subject: Re: xorg-server anyone? X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Sep 2004 18:01:07 -0000 On Fri, Sep 10, 2004 at 12:27:51PM +0200, Dejan Lesjak wrote: > Marius Strobl wrote: > > I guess you are refering to the former patch-xf86Events.c. It's part > > of XFree 4.4 and Xorg 6.7 but I don't get why this was sufficient to > > make Sun keyboards on FreeBSD working. Both XFree and Xorg have two > > keyboard drivers, the old "built-in keyboard driver" and the new "kbd" > > driver with MD modules. Both drivers basically assumes that every key- > > board is a PC/AT one on FreeBSD. I think part of the explanation why > > the XFree port works is that it uses the new driver while the Xorg port > > uses the old one. Actually both "drivers" are splattered over a lot of > > source and it's a bit hard to get which snippet belonges to what > > driver. I also didn't find the knob to use either the old or the new > > one, yet. I wrote an email to Eric hoping he has more insight and > > could help clarify this but didn't get an answer, yet. > > > > Marius > > ABout the keyboard driver being used: both xfree 4.4 and xorg 6.7 use old > 'keyboard' driver, xorg 6.8 will use the new 'kbd' driver. You can switch > between them in "InputDevice" section for keyboard - for old driver: > Driver "keyboard" > for new one: > Driver "kbd" Ah! I got confused when looking at different PLISTs and mistakenly thought the XFree server ports would compile the new driver while the Xorg port usese the old one and therefore was searching for a compile- time option. > > Does switching between those two result in any difference? No. With an unchanged xorg-server-6.7.0_7 Sun keyboards work with neither of the two keyboard drivers under FreeBSD. With my patch for f86Events.c the old one works but the new one still doesn't (sort of expected from the code). Ok, I now completely don't understand why the old driver did work in XFree, i.e. why the old patch for f86Events.c was sufficient. Marius