Send special keys (other than ctrl-alt-del)

Help
2011-01-20
2013-04-23
  • Peter Platek
    Peter Platek
    2011-01-20

    Hi,

    I have an Centos 5.5 nfs installation freeze, and wanted to see what's going on behind the scenes. When you have a physical server you can do ctrl-alt-f2 and open a console to see what's going on behind the scenes.

    I found the piece of code that does the ctrl-alt-del in window_menuitem.py:

     def on_menuitem_tools_cad_activate(self, widget, data=None):
            """
            "Send Ctrl-Alt-Del" menu item is pressed (tools menu)
            """
            self.tunnel.send_data("\xfe\x01\x00\x00\x00\x00\x00\x1d")
            self.tunnel.send_data("\xfe\x01\x00\x00\x00\x00\x00\x38")
            self.tunnel.send_data("\xfe\x01\x00\x00\x00\x00\x00\xd3")
            self.tunnel.send_data("\xfe\x00\x00\x00\x00\x00\x00\x1d")
            self.tunnel.send_data("\xfe\x00\x00\x00\x00\x00\x00\x38")
            self.tunnel.send_data("\xfe\x00\x00\x00\x00\x00\x00\xd3")
    

    So how would you do ctrl-alt-f2 for instance?

    thanks in advance.