[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Since chvt works, the problem must be the keymap



Florian Kulzer wrote:

I would experiment like this:

xmodmap -e 'keycode  67 = F1 F13 XF86_Switch_VT_1'
xmodmap -e 'keycode  67 = F1 F13 F1 XF86_Switch_VT_1'
xmodmap -e 'keycode  67 = F1 F1 F1 XF86_Switch_VT_1'
xmodmap -e 'keycode  67 = F1 F13 F13 XF86_Switch_VT_1'

Nope, none of these commands seem to work - all possible shift/alt/control F1 combinations I tried after running each of these commands just got me an error beep + a letter or two on the terminal, or it launched Gnome Help!

It would be interesting to know what works for you and also your general
keyboard setup. For comparison, here is what I have:

$ xmodmap -pke | grep 'F1 '
keycode  67 = F1 XF86_Switch_VT_1


I get the same ...

$ setxkbmap -print
xkb_keymap {
        xkb_keycodes  { include "xfree86+aliases(qwerty)"       };
        xkb_types     { include "complete+caps(shift)"  };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc(pc105)+es(nodeadkeys)+compose(menu)"        };
        xkb_geometry  { include "pc(pc105)"     };
};


I get ...
xkb_keymap {
        xkb_keycodes  { include "xfree86+aliases(qwerty)"       };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc(pc105)+uk"  };
        xkb_geometry  { include "pc(pc105)"     };
};


$ awk '/Section "InputDevice"/,/EndSection/' /etc/X11/xorg.conf
Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc105"
        Option          "XkbLayout"     "es"
        Option          "XkbVariant"    "nodeadkeys"
EndSection

[ snip: output related to the mouse ]


I get this ...

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc105"
        Option          "XkbLayout"     "uk"
EndSection


So AFAICT, not a lot of help there.

I should also mention that once I have switched VT using Shift-F1, I can switch back using Ctrl-Alt-F7 as expected - which seems to suggest nothing is wrong with the system keymap.

Dave.



Reply to: