[PATCH] do not feed keyboard device path in X devd backend
Robert Millan
rmh at freebsd.org
Thu Feb 13 22:36:21 UTC 2014
On 13/02/2014 21:52, Alex Kozlov wrote:
> On Thu, Feb 13, 2014 at 09:32:40PM +0000, Robert Millan wrote:
>> On 13/02/2014 16:28, Alex Kozlov wrote:
>>>> [ 1002.547] (EE) Keyboard: cannot open "/dev/ukbd0"
>>>> [ 1002.547] (EE) PreInit returned 8 for "Keyboard"
>>>> [ 1002.547] (II) UnloadModule: "kbd"
>>> This should be worked around by the next code:
>>>
>>> 269 + if (attrs.flags & ATTR_KEYBOARD) {
>>> 270 + /*
>>> 271 + * Don't pass device option if keyboard is attached to console (open fails),
>>> 272 + * thus activating special logic in xf86-input-keyboard.
>>> 273 + */
>>> 274 + fd = open(path, O_RDONLY | O_NONBLOCK | O_EXCL);
>>> 275 + if (fd > 0) {
>>> 276 + close(fd);
>>> 277 + options = input_option_new(options, "device", path);
>>> 278 + }
>>> 279 + } else {
>>> 280 + options = input_option_new(options, "device", path);
>>> 281 + }
>>
>> Where's this code? I can't see it in x11-servers/xorg-server/files/extra-config_devd.c
> http://trillian.chruetertee.ch/ports/browser/trunk/x11-servers/xorg-server/files/extra-devd
> plus
> http://trillian.chruetertee.ch/ports/browser/trunk/x11-servers/xorg-server/files/extra-new-config_devd
>
> You need revision 1282 of x11-servers/xorg-server.
Great. Looks like I wasted several hours of work by debugging the wrong branch...
--
Robert Millan
More information about the freebsd-x11
mailing list