Problem in mapping keyboard in Red Hat 8.0
Dear All,
I want to map the <Alt>+<Ctrl>+F1 with the F12 key .It means ,whenever I press the F12 key , the system should switch to console mode. For this I am modifying the Xmodmap file . The Xmodmap file can be generated using command xmodmap -pke > Xmodmap It contains the mapping of all the keycodes with their corresponding keysymbols. Originally the entry in Xmodmap file of Red Hat Enterprise Linux 4.0 against F12 key appears as: keycode 96 = F12 XF86_Switch_VT_12 I changed this entry to: keycode 96 = XF86_Switch_VT_1 and then loading these changes using command xmodmap Xmodmap Its working perfectly fine in RHEL 4.0. But when I try to repeat this process in Red Hat Linux 8.0 then, the entry against F12 key in Xmodmap file is appearing as: keycode 96 = F12 after changing this entry to keycode 96 = XF86_Switch_VT_1 and trying to load the settings using xmodmap command , then error is coming. The error says that "XF86_Switch_VT_1 is bad keysym". Please help me how should I do this in Red hat Linux 8.0 Regards Arun |
It's possible that the switch from RHEL 4.0 to Red Hat Linux 8.0 also involved a switch from XFree86 to Xorg. If that is indeed the case, then the keycode for F12 may have changed.
From the Arch Linux Wiki: Quote:
So, to learn the correct keycode for F12 in Xorg, switch to a VT and run 'showkey'. You have 10 seconds before showkey will timeout. In those 10 seconds, press the F12 key. The return will be the keycode for F12. Then, edit your xmodmap Quote:
In my SuSE installation, that keycode is 88. |
All times are GMT -5. The time now is 05:06 PM. |