[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:
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.

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?

Thanks, Dave.




Reply to: