I have just been through the same thing.. I have a Lenovo Mini Wireless that doesn't have function keys using xbmc-standalone i needed to pull out my keyboard to get to a virtual terminal which was annoying! it took a while for me to figure this out so hopefully I can save some other newbies some time.
first you need to make a simple bash script
copy the below into a text file and save as 'tty1' in an easily accessible folder (i saved it in my .xbmc/userdata folder
Code:
#!/bin/bash
#
gksudo chvt 1
exit
right click on tty1 and make sure in permissions you have the run as executable ticked.
if you run that script now it should take you to tty1, if not there is something wrong.
Now in your userdata/keymaps folder you will need to open keyboard.xml in a text editor (
https://github.com/xbmc/xbmc/tree/master/system/keymaps - i downloaded mine from here) and add the following line in the global keyboard area
Code:
<one mod="ctrl,alt">System.Exec("/home/simon/.xbmc/userdata/tty1")</one>
you will need to update the path in the above code to where you saved your tty1 script
save and reboot into xbmc
now when you hit ctrl alt 1 you will hopefully be taken to tty1
the only downside is it puts xbmc into windowed mode but that is easily fixed by pushing your "
' " key.
I also removed the requirement to enter the sudo password when running chvt commands..
at your own risk - you can also do this by running in terminal 'sudo visudo' and adding at the bottom
Code:
%usergroup ALL = NOPASSWD: /bin/chvt
changing 'usergroup' to whatever your usergroup is called