LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-28-2011, 11:02 AM   #1
m4rtin
Member
 
Registered: Sep 2007
Posts: 261

Rep: Reputation: 16
Question change the keycode of the key


I need to access BIOS of one server over console(RS-232). It's an Award BIOS and in order to access I need to press DEL(Delete key). However, the problem is, that I'm not able to access BIOS over terminal emulation programs(I have tried with minicom and kermit). According to "showkey -s", the scancode of delete key is "0xe0 0x53" when pressed down and "0xe0 0xd3" if released. According to "showkey" this should mean that keycode of the delete character is 111("^[[3~" in ASCII). Maybe the server expects "^?" instead of "^[[3~"? How to change the keycode of the key?


PS: any general explanation regarding keycodes and keycodes in various applications is most welcome as well

Last edited by m4rtin; 11-28-2011 at 11:08 AM.
 
Old 11-28-2011, 02:47 PM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by m4rtin View Post
I need to access BIOS of one server over console(RS-232).
is that a special BIOS targeted at accessing it over a serial interface? Because the standard BIOS'es don't respond to a serial interface, they rather watch the local keyboard exclusively.

Quote:
Originally Posted by m4rtin View Post
It's an Award BIOS and in order to access I need to press DEL(Delete key).
That's what I was afraid of. You can't simulate a keystroke at that phase in the boot process using an RS232 link. The BIOS only looks for the local keyboard (the PS/2 port, maybe USB if you're lucky).

Quote:
Originally Posted by m4rtin View Post
However, the problem is, that I'm not able to access BIOS over terminal emulation programs
I know. It's not possible with standard BIOS'es.

Quote:
Originally Posted by m4rtin View Post
According to "showkey -s", the scancode of delete key is "0xe0 0x53" when pressed down and "0xe0 0xd3" if released.
Sounds correct (I didn't check it against the scan code list, however). But you still cannot simulate keyboard events through an RS232 interface.

Quote:
Originally Posted by m4rtin View Post
According to "showkey" this should mean that keycode of the delete character is 111("^[[3~" in ASCII). Maybe the server expects "^?" instead of "^[[3~"?
What do you mean? I can't follow you on that one. Alright, the ASCII Code also defines a "DEL" character which is 0x7F, but that's decimal 127, not 111 (111 would be a lower-case 'o'), and it has nothing to do with the "Del" key on a keyboard. But how do you get the strange "^[[3~" string?? Even if I assume that ^[ is a special notation for the escape character 0x1B, it does not make sense to me.

[X] Doc CPU
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
WEP Encryption Key:26chars_what choices must change in ubuntu 9.10 for the new change lse123 Linux - Newbie 1 03-02-2010 02:38 AM
[SOLVED] How to change key mapping in Ubuntu 9.10 taylorkh Ubuntu 10 01-25-2010 03:06 PM
Is it possible to change the keycode on a key? riwaJR Linux - General 4 03-30-2009 10:03 AM
change keycode that backspace sends on Redhat 7.2/8 AlexJ123 Red Hat 0 01-28-2005 02:54 AM
need to change a key on my keyboard ArnaudVR Slackware 1 06-27-2003 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration