hrvach / deskhop

Fast Desktop Switching Device
GNU General Public License v3.0
5.96k stars 166 forks source link

Keyboard/Mouse work with 2 active devices, but only one peripheral works with 1 active device #101

Closed Francommit closed 2 weeks ago

Francommit commented 3 weeks ago

Using two devices, the device works perfectly. As soon as I turn off one of the devices, I've found that I either only get the mouse OR the keyboard functionality.

As soon as I turn on the other device, the device that was previously not working, begins to work.

techge commented 3 weeks ago

You may choose a "main" device (either A or B) and put both - mouse and keyboard - on a hub and connect it on the side of this "main" device. Then you can use mouse and keyboard without the other port used.

See also #9

Francommit commented 3 weeks ago

Sorry what do you mean by 'connect it on the side' ?

Should I put the USB hub into the keyboard or mouse slot?

Francommit commented 3 weeks ago

Just read this - https://github.com/hrvach/deskhop/issues/9#issuecomment-1895703975

Trying...

Francommit commented 3 weeks ago

Actually not sure I do understand. What's putting a USB Hub going to do at all?

techge commented 3 weeks ago

The thing is that normally the mouse is powered by device B and the keyboard by device A. So when one of the devices is powered off, the corresponding hid device is powered down, too. Therefore, the deskhop was re-configured so that one pico can power and control both when they are attached with a usb hub. So if you connect the deskhop to device A and connect both - the mouse and the keyboard - to a usb hub and the usb hub to the "keyboard" port, then both are always powered when device A is connected.

I hope this explanation was of help.

hrvach commented 2 weeks ago

Sorry for being late to the party, @techge summarized it very well. I didn't really expect this scenario to be a thing, and I wanted to keep it as simple as possible. Will try to provide an alternative in future board revision.