vnc-ledstate-pseudo-encoding.rst 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. VNC LED state Pseudo-encoding
  2. =============================
  3. Introduction
  4. ------------
  5. This document describes the Pseudo-encoding of LED state for RFB which
  6. is the protocol used in VNC as reference link below:
  7. http://tigervnc.svn.sourceforge.net/viewvc/tigervnc/rfbproto/rfbproto.rst?content-type=text/plain
  8. When accessing a guest by console through VNC, there might be mismatch
  9. between the lock keys notification LED on the computer running the VNC
  10. client session and the current status of the lock keys on the guest
  11. machine.
  12. To solve this problem it attempts to add LED state Pseudo-encoding
  13. extension to VNC protocol to deal with setting LED state.
  14. Pseudo-encoding
  15. ---------------
  16. This Pseudo-encoding requested by client declares to server that it supports
  17. LED state extensions to the protocol.
  18. The Pseudo-encoding number for LED state defined as:
  19. ======= ===============================================================
  20. Number Name
  21. ======= ===============================================================
  22. -261 'LED state Pseudo-encoding'
  23. ======= ===============================================================
  24. LED state Pseudo-encoding
  25. --------------------------
  26. The LED state Pseudo-encoding describes the encoding of LED state which
  27. consists of 3 bits, from left to right each bit represents the Caps, Num,
  28. and Scroll lock key respectively. '1' indicates that the LED should be
  29. on and '0' should be off.
  30. Some example encodings for it as following:
  31. ======= ===============================================================
  32. Code Description
  33. ======= ===============================================================
  34. 100 CapsLock is on, NumLock and ScrollLock are off
  35. 010 NumLock is on, CapsLock and ScrollLock are off
  36. 111 CapsLock, NumLock and ScrollLock are on
  37. ======= ===============================================================