Vandami Bhante
Oh, I see. The USB ports are on the laptop keyboard, so cannot just leave the keyboard plugged off if wanting to use a USB keyboard instead.
Is it possible to do at least some work with only the touchscreen and using the touchscreen keyboard?
I found
here the commands to disable the laptop keyboard on the Lenovo MIIX320.
One would need to open a terminal and type (with touchscreen keyboard, hopefully possible, or copy-paste from here) these commands:
For disabling the keyboard:
xinput disable "HAILUCK CO.,LTD Lenovo HID Device"
For disabling the touchpad under the keyboard:
xinput disable "HAILUCK CO.,LTD Lenovo HID Device Touchpad"
The problem is, I think these commands will not have effect if the keyboard is not plugged in. And plugging the keyboard in, it would probably type by itself "\\\\..." etc. as described, typing nonsense into the command.
So to get around this, one could tell the computer to execute the command after 5 seconds (or something), and then plug in the keyboard (within five seconds), so they would run when the keyboard has been plugged in fast enough:
For disabling the keyboard after five seconds:
sleep 5 && xinput disable "HAILUCK CO.,LTD Lenovo HID Device"
For disabling the touchpad under the keyboard after five seconds:
sleep 5 && xinput disable "HAILUCK CO.,LTD Lenovo HID Device Touchpad"
For disabling the keyboard and touchpad after five seconds:
sleep 5 && xinput disable "HAILUCK CO.,LTD Lenovo HID Device" && xinput disable "HAILUCK CO.,LTD Lenovo HID Device Touchpad"
(or "sleep 10" if 5 seconds is not enough)
If, for some reason, wanting to enable again:
For enabling the keyboard:
xinput enable "HAILUCK CO.,LTD Lenovo HID Device"
For enabling the touchpad under the keyboard:
xinput enable "HAILUCK CO.,LTD Lenovo HID Device Touchpad"
If it is working to type something into a terminal, it would also be good to do this:
zip -r udev.zip /etc/udev && lftp www-data:[password]@sangham.net/storage/ && rm udev.zip
(must enter the correct FTP password here instead of "[password]")
This will copy some configuration files from the laptop to the web server, where I could download and look at them.
As far as I remember, there is some script inside it that I wrote which would react on keyboard plug-in events. I think it would be good to add the "disable keyboard" commands to this script, so it would automatically be disabled when plugging in the keyboard. I would like to check the files to see where to put it.