Bug 508060

Summary: Option XkbLayout doesn't work
Product: [Fedora] Fedora Reporter: Miroslav Lichvar <mlichvar>
Component: xorg-x11-drv-evdevAssignee: Peter Hutterer <peter.hutterer>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: mcepl, xgl-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-30 08:39:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Xorg output
none
Xorg config
none
Xorg log none

Description Miroslav Lichvar 2009-06-25 12:37:51 UTC
Created attachment 349386 [details]
Xorg output

Description of problem:

Not sure this is an xorg-x11-drv-keyboard problem, please reassign if not.

When in xorg.conf is specified:
Option      "XkbLayout" "us,cz_qwerty"

The layouts are not loaded and keyboard doesn't work correctly. Calling setxkbmap -layout 'us,cz' later works.

In Xorg output (not in the log) is:

The XKEYBOARD keymap compiler (xkbcomp) reports:
> Error:            Can't find file "cz_qwerty" for symbols include
>                   Exiting
>                   Abandoning symbols file "default"
Errors from xkbcomp are not fatal to the X server


The same xorg.conf worked in F10.

Version-Release number of selected component (if applicable):
xorg-x11-drv-keyboard-1.3.2-3.fc11.x86_64

Comment 1 Miroslav Lichvar 2009-06-25 12:38:50 UTC
Created attachment 349387 [details]
Xorg config

Comment 2 Miroslav Lichvar 2009-06-25 12:39:59 UTC
Created attachment 349388 [details]
Xorg log

Comment 3 Miroslav Lichvar 2009-06-25 12:52:38 UTC
Hm, it works when "us,cz" is specified in xorg.conf, only "us,cz_qwerty" doesn't.

Is this a xkeyboard-config problem?

Comment 4 Matěj Cepl 2009-06-27 14:20:17 UTC
Peter, is it a good idea to use .fdi file in /etc/hal even for language configuration as described on https://fedoraproject.org/wiki/Input_device_configuration ???

Comment 5 Peter Hutterer 2009-06-28 22:08:47 UTC
Miroslav:
try "us,cz(qwerty)" instead.
Any particular reason why you are forcing the keyboard driver btw? (AutoAddDevices off)



Matej: no, generally we don't recommend it. the fdi files are set up from /etc/sysconfig/keyboard and then gnome takes over anyways and applies its own setup (KDE doesn't touch the keyboard layout by default).

Comment 6 Miroslav Lichvar 2009-06-30 08:39:59 UTC
"us,cz(qwerty)" works, but only with setxkbmap.

I found another syntax, when XkbVariant ",qwerty" is specified in xorg.conf, it works.

I'm using kbd driver because evdev didn't work qemu, maybe it's fixed now.

Thanks.

Comment 7 Peter Hutterer 2009-06-30 22:33:48 UTC
(In reply to comment #6)
> I found another syntax, when XkbVariant ",qwerty" is specified in xorg.conf, it
> works.

FTR, this adds up to the same thing as the variants are paired up with the layout. so a layout of "a,b" with a variant of "C, D" is equivalent to setxkbmap -layout "a(C),b(D)". Empty variants (like in your case) thus require a simple comma.