[ltp] Re: Dock + USB + Suspend?

David Abrahams linux-thinkpad@linux-thinkpad.org
Tue, 29 Apr 2008 16:37:10 -0400


on Mon Apr 28 2008, Richard Neill <rn214-AT-hermes.cam.ac.uk> wrote:

> 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,

Okay, Richard, I owe you a great debt.  Thinking this was a shot in the
dark, I enabled DOUBLE_CONSOLE_SWITCH in /etc/default/acpi-support, and
lo and behold, I can now resume with devices plugged into my dock!

Thank you!!!

-- 
Dave Abrahams
Boost Consulting
http://boost-consulting.com