Re: Since chvt works, the problem must be the keymap
On Tue, May 01, 2007 at 02:09:10 +0100, David Claughton wrote:
> Florian Kulzer wrote:
>> Check what is assigned to keycode 67. I see this:
>> $ xmodmap -pk | egrep '^[ ]+67 '
>> 67 0xffbe (F1) 0x1008fe01 (XF86_Switch_VT_1)
>> If your output looks different then you can try if
>> xmodmap -e 'keycode 67 = F1 XF86_Switch_VT_1'
>> restores the VT switching.
>
> This does seem to be the answer, or nearly at least ...
>
> david@debian:~$ xmodmap -pk | egrep '^[ ]+67 '
> 67 0xffbe (F1) 0xffca (F13)
>
> This is wrong, so I run the second command ...
>
> david@debian:~$ xmodmap -e 'keycode 67 = F1 XF86_Switch_VT_1'
> david@debian:~$ xmodmap -pk | egrep '^[ ]+67 '
> 67 0xffbe (F1) 0x1008fe01 (XF86_Switch_VT_1)
>
> This now allows me to switch VT on pressing Shift-F1, but not on
> Ctrl-Alt-F1. Checking the xmodmap man page reveals that this is correct -
> the command maps keycode = keysym shifted-keysym.
That is interesting. "keycode 67 = F1 XF86_Switch_VT_1" is the output that I
get with "xmodmap -pke" and this command is supposed to return the exact
expressions which can be used with "-e" to set things up. I can only guess that
the format of the expressions is dependent on the general keyboard setup.
> However despite careful reading of the man page and a bit of googling, I'm
> not sure of the correct way to get the XF86_Switch_VT_1 keysym onto
> Ctrl-Alt-F1 where it belongs?
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'
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
$ 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)" };
};
$ 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 ]
--
Regards, | http://users.icfo.es/Florian.Kulzer
Florian |
Reply to: