# Pi Keyboard in case of two Keyboards are mounted on Raspberry Pi

**URL:** <https://discourse.nodered.org/t/pi-keyboard-in-case-of-two-keyboards-are-mounted-on-raspberry-pi/92705>\
**Category:** Developing Nodes\
**Tags:** dashboard, raspberry-pi\
**Created:** [26 October 2024 23:41 UTC](https://discourse.nodered.org/t/pi-keyboard-in-case-of-two-keyboards-are-mounted-on-raspberry-pi/92705 "2024-10-26T23:41:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![averino](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/averino/32/95807_2.png) [@averino](https://discourse.nodered.org/u/averino)\
**Post date:** [26 October 2024 23:41 UTC](https://discourse.nodered.org/t/pi-keyboard-in-case-of-two-keyboards-are-mounted-on-raspberry-pi/92705/1 "2024-10-26T23:41:50Z")

</div>

Hello,

I'm Stuck ! My flow manage the input from two Keyboards (actually one is a real keyboard, the second one is a presenter that emulates a set of keyboard keys such ad "page up", "page down", etc).  
My flow work perfect if I attach the keyboard or if i attach the presenter, but I neet to work with them attached at same time. The devices work for the Operating System, but only one for Node Red. Only one is used as "Pi Keyboard".

Can you help me to solve this problem?  
I started using Node-Red 12 and I tried also Node-Red 18, but the problem persist.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [27 October 2024 08:41 UTC](https://discourse.nodered.org/t/pi-keyboard-in-case-of-two-keyboards-are-mounted-on-raspberry-pi/92705/2 "2024-10-27T08:41:20Z")

</div>

The Pi node code only expects to see one keyboard so is hardcoded for that as it is picking up the low level hardware events from /dev/input/by-path/kbd  
so in short you're out of luck with the default node.  
I guess some of the USB / HID nodes may work at a higher level but they tend to need the app to have focus - or the PI node source could be modified I guess.

---

<div class="post-metadata">

**Author:** ![averino](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/averino/32/95807_2.png) [@averino](https://discourse.nodered.org/u/averino)\
**Post date:** [27 October 2024 08:59 UTC](https://discourse.nodered.org/t/pi-keyboard-in-case-of-two-keyboards-are-mounted-on-raspberry-pi/92705/3 "2024-10-27T08:59:14Z")

</div>

Can you suggest any node that can help in my case? I'm working around using a presenter that emulates a mouse.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [27 October 2024 09:17 UTC](https://discourse.nodered.org/t/pi-keyboard-in-case-of-two-keyboards-are-mounted-on-raspberry-pi/92705/4 "2024-10-27T09:17:02Z")

</div>

I’d look on [flows.modered.org](http://flows.modered.org) for usb or hid nodes.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [26 December 2024 09:17 UTC](https://discourse.nodered.org/t/pi-keyboard-in-case-of-two-keyboards-are-mounted-on-raspberry-pi/92705/5 "2024-12-26T09:17:23Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
