Bug 25873

Summary: misc:typo rules doesn't apply on X startup
Product: xorg Reporter: Alexey Ten <alexeyten+deb>
Component: Server/Input/XKBAssignee: Peter Hutterer <peter.hutterer>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: peter.hutterer, svu
Version: 7.4 (2008.09)   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
xkbcomp :1 - > bug.xkb.txt
none
xkbcomp after running setxkbmap
none
git formatted patch
none
signed off patch none

Description Alexey Ten 2010-01-03 09:07:07 UTC
Created attachment 32414 [details]
xkbcomp :1 - > bug.xkb.txt

I have following settings in /etc/default/console-setup
XKBMODEL="pc104"
XKBLAYOUT="us,ru"
XKBVARIANT=","
XKBOPTIONS="grp:caps_toggle,lv3:ralt_switch,misc:typo,terminate:ctrl_alt_bksp"

Logging into text console and starting xinit -- :1 doesn't apply rules for misc:typo option, so I have to run setxkbmap.

xprop -root gives right settings:
$ xprop -root
_XKB_RULES_NAMES(STRING) = "evdev", "pc104", "us,ru", ",", "grp:caps_toggle,lv3:ralt_switch,misc:typo,terminate:ctrl_alt_bksp"
XFree86_VT(INTEGER) = 9

Output of xkbcomp after start is attached. Also xkbcomp outputs following to stderr
Warning:          Could not load keyboard geometry for :1
                  BadAlloc (insufficient resources for operation)
                  Resulting keymap file will not describe geometry
Comment 1 Alexey Ten 2010-01-03 09:08:28 UTC
Created attachment 32415 [details]
xkbcomp after running setxkbmap

after running setxkbmap xkbcomp gives no error messages
Comment 2 Alexey Ten 2010-01-03 09:11:59 UTC
My system is ubuntu 9.10
ii  xorg                                  1:7.4+3ubuntu10
ii  xserver-xorg                          1:7.4+3ubuntu10
Comment 3 Alexey Ten 2012-10-23 08:49:06 UTC
Created attachment 68943 [details] [review]
git formatted patch

We have to apply patch similar to one in bug #19563 because we have own maprules.c
Comment 4 Peter Hutterer 2012-11-01 06:25:28 UTC
Alexey, please sign-off your patch. ACK otherwise, I'll merge it as soon as I have your Signed-off-by.
Comment 5 Alexey Ten 2012-11-01 07:14:45 UTC
Created attachment 69381 [details] [review]
signed off patch
Comment 6 Peter Hutterer 2012-11-06 01:48:20 UTC
commit 5b7384a3154a95a805b040e1910e276b52aada96
Author: Alexey Ten (Lynn) <alexeyten@gmail.com>
Date:   Tue Oct 23 12:32:31 2012 +0400

    Apply partial matches for option (#25873)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.