Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Mar 2009 15:19:17 -0300
From:      Renato Botelho <rbgarga@gmail.com>
To:        freebsd-x11@freebsd.org
Subject:   Re: Problems migrating xorg input confs to HAL
Message-ID:  <747dc8f30903021019g4a403b3bu61d157b387798c7e@mail.gmail.com>
In-Reply-To: <747dc8f30903020808l15780b5fi2636555e6e51eb65@mail.gmail.com>
References:  <747dc8f30903020808l15780b5fi2636555e6e51eb65@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 2, 2009 at 1:08 PM, Renato Botelho <rbgarga@gmail.com> 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
>
> <?xml version=3D"1.0" encoding=3D"UTF-8"?>
> <deviceinfo version=3D"0.2">
> =A0 =A0 =A0 <device>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 <match key=3D"info.capabilities" contains=3D"=
input.keyboard">
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 <match key=3D"info.product" contains=3D"produ=
ct 0x00a2">
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <merge key=3D"input.x11_drive=
r" type=3D"string">evdev</merge>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <merge key=3D"input.x11_optio=
ns.XkbSymbols"
> type=3D"string">pc(pc105)+sun_vndr/usb(sun_usb)+pc(pc105)+us(intl)</merge=
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 </match>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 </match>
> =A0 =A0 =A0 </device>
> </deviceinfo>
>
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?747dc8f30903021019g4a403b3bu61d157b387798c7e>