From owner-freebsd-x11@FreeBSD.ORG Mon Mar 2 18:19:18 2009 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D067F10656F2 for ; Mon, 2 Mar 2009 18:19:18 +0000 (UTC) (envelope-from rbgarga@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by mx1.freebsd.org (Postfix) with ESMTP id 844578FC1B for ; Mon, 2 Mar 2009 18:19:18 +0000 (UTC) (envelope-from rbgarga@gmail.com) Received: by yx-out-2324.google.com with SMTP id 31so1340974yxl.13 for ; Mon, 02 Mar 2009 10:19:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=5xv15MlNqzphcfgFC8DrsYDxTMuwt2HmCcb5Oib45vo=; b=SEDySulvjqQJ3yGun79Mb5gM7BOfp/BAWrXW54EagLanP/iKd0Xr4bglbVw7UeKcV1 2Kpa4wiGhTWxh/4GDS/ywVenyWfRUkPWA2JZ3zVV3JeWG9bx9yb1xe6p493VhGQaMvG7 hp3XlIts3ErTPBJzKDeSWYWbnIZWAXd1R0rG4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=nXWiv9t+qLFrPhRw9yP6IfYsOfCHn9iIJpSktEYXQ11C3Oz/jFUERllQPImOafr5h/ cVfEjD/2WR+iByv9eBuIVg+gQ4vejQ1OViR5/A5xQ3pTiQlkf8lf/UeO/rJrJ8OUDr+s xq801U8EMsF1ECkWeS3RmATUd2Q2ogBfTcp+o= MIME-Version: 1.0 Received: by 10.220.44.194 with SMTP id b2mr1894791vcf.83.1236017957668; Mon, 02 Mar 2009 10:19:17 -0800 (PST) In-Reply-To: <747dc8f30903020808l15780b5fi2636555e6e51eb65@mail.gmail.com> References: <747dc8f30903020808l15780b5fi2636555e6e51eb65@mail.gmail.com> Date: Mon, 2 Mar 2009 15:19:17 -0300 Message-ID: <747dc8f30903021019g4a403b3bu61d157b387798c7e@mail.gmail.com> From: Renato Botelho To: freebsd-x11@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: Problems migrating xorg input confs to HAL X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2009 18:19:19 -0000 On Mon, Mar 2, 2009 at 1:08 PM, Renato Botelho wrote: > Hello, > > After xorg was upgraded to 7.4 I added AllowEmptyInput off and keep > using xorg.conf intead of moving to hal, my system is a current r189278. > > Today I've decided to try to move my keyboard and mouse confs to hal > to start using the new configuration model. Mouse did fine, but i have > some problems with keyboard. > > I use a Sun type 7 unix us keyboard, on my xorg.conf I had: > > Option =A0 =A0 =A0"XkbRules" =A0 =A0"xorg" > Option =A0 =A0 =A0"XkbSymbols" =A0"pc(pc105)+sun_vndr/usb(sun_usb)+pc(pc1= 05)+us(intl)" > > when I simply start my window manager without change hal, it recognize > the keyboard special keys, but it did a bit later, and windowmaker just f= ind > these special keys after a wmaker restart. Ah, I use xdm on /etc/ttys > > I've tried to add this keyboard.fdi on /usr/local/etc/hal/fdi/policy > > > > =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 evdev > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 type=3D"string">pc(pc105)+sun_vndr/usb(sun_usb)+pc(pc105)+us(intl) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 > > > But I still have same problem, when windowmaker is loaded, it ignore the > Sun special keys, just if I do a restart it work fine. > > hal-device keyboard output is: > > 17: udi =3D '/org/freedesktop/Hal/devices/usb_device_430_a2_noserial_if0' > =A0usb_device.device_protocol =3D 0 =A0(0x0) =A0(int) > =A0usb_device.is_self_powered =3D false =A0(bool) > =A0usb_device.can_wake_up =3D true =A0(bool) > =A0usb_device.max_power =3D 100 =A0(0x64) =A0(int) > =A0info.udi =3D '/org/freedesktop/Hal/devices/usb_device_430_a2_noserial_= if0' > =A0(string) > =A0usb_device.num_interfaces =3D 1 =A0(0x1) =A0(int) > =A0info.subsystem =3D 'usb' =A0(string) > =A0freebsd.driver =3D 'ukbd' =A0(string) > =A0usb_device.num_ports =3D 0 =A0(0x0) =A0(int) > =A0info.product =3D 'product 0x00a2' =A0(string) > =A0freebsd.unit =3D 0 =A0(0x0) =A0(int) > =A0usb_device.speed =3D 12 =A0(double) > =A0usb_device.speed_bcd =3D 4608 =A0(0x1200) =A0(int) > =A0usb_device.version =3D 2 =A0(double) > =A0usb_device.product_id =3D 162 =A0(0xa2) =A0(int) > =A0usb_device.vendor_id =3D 1072 =A0(0x430) =A0(int) > =A0info.vendor =3D 'Sun Microsystems' =A0(string) > =A0usb_device.device_revision_bcd =3D 512 =A0(0x200) =A0(int) > =A0usb_device.serial =3D '' =A0(string) > =A0usb_device.product =3D 'product 0x00a2' =A0(string) > =A0usb_device.vendor =3D 'Sun Microsystems' =A0(string) > =A0info.bus =3D 'usb' =A0(string) > =A0usb.interface.number =3D 0 =A0(0x0) =A0(int) > =A0usb.interface.class =3D 3 =A0(0x3) =A0(int) > =A0info.category =3D 'input.keyboard' =A0(string) > =A0usb.interface.subclass =3D 1 =A0(0x1) =A0(int) > =A0info.capabilities =3D { 'input', 'input.keyboard' } (string list) > =A0usb.interface.protocol =3D 1 =A0(0x1) =A0(int) > =A0usb.interface.description =3D '' =A0(string) > =A0usb.freebsd.devname =3D 'ukbd0' =A0(string) > =A0freebsd.device_file =3D '/dev/ukbd0' =A0(string) > =A0input.device =3D '/dev/ukbd0' =A0(string) > =A0input.x11_options.XkbSymbols =3D > 'pc(pc105)+sun_vndr/usb(sun_usb)+pc(pc105)+us(intl)' =A0(string) > =A0input.x11_driver =3D 'evdev' =A0(string) > =A0usb_device.bus_number =3D 3 =A0(0x3) =A0(int) > =A0usb_device.level_number =3D 3 =A0(0x3) =A0(int) > =A0usb_device.port_number =3D 4 =A0(0x4) =A0(int) > =A0usb_device.configuration =3D '' =A0(string) > =A0info.parent =3D > '/org/freedesktop/Hal/devices/usb_device_430_a2_noserial' =A0(string) > =A0usb_device.configuration_value =3D 1 =A0(0x1) =A0(int) > =A0usb_device.num_configurations =3D 1 =A0(0x1) =A0(int) > =A0usb_device.device_class =3D 0 =A0(0x0) =A0(int) > =A0usb_device.device_subclass =3D 0 =A0(0x0) =A0(int) > > I had this same problem in the past when I use startx, and someone from > xorg told me to start using *dm to fix the problem, I choose xdm and it > worked fine untill now. > > Any kind of hellp will be appreciate Just one more information, I found a problem on my .fdi file, and changed evdev to kbd on x11_driver line, now I have this on Xorg.0.log (II) config/hal: Adding input device product 0x00a2 (II) LoadModule: "kbd" (II) Loading /usr/local/lib/xorg/modules/input//kbd_drv.so (II) Module kbd: vendor=3D"X.Org Foundation" compiled for 1.5.3, module version =3D 1.3.2 Module class: X.Org XInput Driver ABI class: X.Org XInput driver, version 2.1 (**) product 0x00a2: always reports core events (**) Option "Protocol" "standard" (**) product 0x00a2: Protocol: standard (**) Option "Device" "/dev/ukbd0" (EE) product 0x00a2: cannot open "/dev/ukbd0" (EE) PreInit failed for input device "product 0x00a2" (II) UnloadModule: "kbd" (EE) config/hal: NewInputDeviceRequest failed Hope this can be useful, thanks --=20 Renato Botelho