[Fedora-livecd-list] Keyboard configuration

Peter Åstrand astrand at cendio.se
Mon May 5 15:04:49 UTC 2008


> > It seems like the current LiveCD tools for F8 does not correctly handle 
> > keyboard configuration via Kickstart. We have a line:
> >
> > lang sv_SE.UTF-8
> >
> > ...in our ks.cfg. The console keyboard layout is correctly set. However, 
> > The X11 layout is sometimes wrong: 
> >
> 
> On my own LiveCD respin, I patched the kudzu script so that the keyboard is
> correctly configured for X. Basically, I'm adding those 2 lines in
> /etc/init.d/kudzu:
> 
>         . /etc/sysconfig/keyboard
>         /usr/bin/system-config-keyboard \$KEYTABLE 2&> /dev/null

Thanks for the hint. But does this really work when there's no xorg.conf, 
or XF86Config, at all? 
/usr/share/system-config-keyboard/keyboard_backend.py contains:

    def modifyXconfig(self, fullname, layout, model, variant, options):
        #import xf86config and make the necessary changes
        if os.access("/etc/X11/XF86Config", os.W_OK) or os.access("/etc/X11/xorg.conf", os.W_OK):        
            import xf86config

In other words, modifyXconfig does nothing if there's no X config file. 

Regards, 
---
Peter Åstrand		ThinLinc Chief Developer
Cendio AB		http://www.cendio.se
Wallenbergs gata 4
583 30 Linköping	Phone: +46-13-21 46 00


More information about the Fedora-livecd-list mailing list