[ltp] Re: Dock + USB + Suspend?

Richard Neill linux-thinkpad@linux-thinkpad.org
Mon, 28 Apr 2008 17:43:05 +0100


David Abrahams wrote:
>>
>>> It only takes having my external keyboard plugged in there to cause the
>>> problem.  You can't unmount a keyboard, can you?
>> Hm, your'e right.
>>

Something I just discovered recently may help here. If you have custom
xorg.conf rules for your input devices and don't just use /dev/mice (and
the kbd equivalent), then if you unplug one of the devices, and then
re-plug it, xorg will still be trying to use the open file-pointer from
the dead device. Normally, you'd have to restart X to get it back.

BUT, chvt 1, chvt 7  seems to make X re-initialise all its hardware. So,
if you do this, you probably can get away with "unmounting" the keyboard.

HTH,

Richard