Łukasz Przeniosło
Łukasz Przeniosło

Reputation: 2949

Cannot use keyboard within Qt app without sudo

I have an embedded Qt application crosscompiled that runs on BeagleBone Black. It works OK, but one thing - it doesn't accept keyboard input if I won't run in directly on BeagleBone Black preceding with sudo. This is a problem because:

What can I try next?

My /etc/enviroment content is here:

QWS_MOUSE_PROTO=IntelliMouse:/dev/input/mouse0
QWS_KEYBOARD=LinuxInput:/dev/tty
TSLIB_CONFFILE=/etc/ts.conf
TSLIB_PLUGINDIR=/usr/lib/ts

Although I have tried many different configurations for QWS_KEYBOARD. The keyboard I would like to use is /dev/input/event1.

Upvotes: 0

Views: 886

Answers (1)

yp25
yp25

Reputation: 31

I also facing this issue. But in my situation, I use remote desktop from Windows OS to raspberry / beaglebone.

My solution (make sure at least you know how to configure ssh in raspberry) :

  1. install xrdp (sudo apt-get install xrdp) on raspberry / beaglebone / other embedded linux
  2. in PC instal xming (search sourceforge)
  3. open XLaunch, select multiple windows > start no client > clipboard > finish
  4. open putty >> session, enter host name / IP address, putty >> SSH >> X11 >> check 'Enable X11 forwarding' putty >> click Open button
  5. login ssh and then type qcreator

now the keyboard should be fine

Upvotes: 0

Related Questions