Discussion:
[Interest] QtLinuxFB no mouse or keyboard
yahoo pers
2013-08-29 21:58:25 UTC
Permalink
Hi all,
i have static built qt5 with linuxFB, no XCB.
Then i build a small gui app. When i run my application in another machine without window manager, the application window opens but i don't have mouse or keyboard.

This is my build configuration:

 ./configure -opensource -release -force-debug-info -confirm-license -static -qt-sql-mysql -qt-zlib -qt-libpng -qt-libjpeg -no-openssl -no-pch -qpa linuxfb -no-xcb -nomake  examples -nomake tests

A also wrote on the forum and i got help to build qt5 and run the app but couldn't get help about the mouse and keyboard problem.
http://qt-project.org/forums/viewthread/31911/
Knight Andrew
2013-08-30 05:43:01 UTC
Permalink
Post by yahoo pers
A also wrote on the forum and i got help to build qt5 and run the app but couldn't get help about the mouse and keyboard problem.
Some QPA plugins, like LinuxFB, don't load their own input handlers, so you need to do this yourself by passing additional -plugin arguments when you start your app. These are called "generic" plugins and can be found in qtbase/src/plugins/generic. For example:

./myapp -platform linuxfb -plugin EvdevMouse -plugin EvdevKeyboard

Those plugins will automatically try to open the first mouse/keyboard in /dev/input. Make sure the user has read permissions for those devices (you should see warning messages if opening fails). For specifying additional parameters that get passed to the plugin(s), please consult each individual plugin's source code.

HTH,
Andrew
yahoo pers
2013-08-30 20:03:32 UTC
Permalink
My keyboard is detected as /dev/input/event0   and my  mouse  as /dev/input/mice
In my app i have a QLineEdit and when it starts i can see the cursor blinking in it.
I tried:
export QT_QPA_EVDEV_KEYBOARD_PARAMETERS="/dev/input/event0" 
sudo ./app -platform linuxfb

but still no keyboard.


then i tried:
./app -platform linuxfb -plugin EvdevKeyboard:/dev/input/event0
but still no keyboard.



________________________________
From: Knight Andrew <***@digia.com>
To: yahoo pers <***@yahoo.com>; "***@qt-project.org" <***@qt-project.org>
Sent: Friday, August 30, 2013 7:43 AM
Subject: RE: [Interest] QtLinuxFB no mouse or keyboard
Post by yahoo pers
A also wrote on the forum and i got help to build qt5 and run the app but couldn't get help about the mouse and keyboard problem.
Some QPA plugins, like LinuxFB, don't load their own input handlers, so you need to do this yourself by passing additional -plugin arguments when you start your app. These are called "generic" plugins and can be found in qtbase/src/plugins/generic. For example:

./myapp -platform linuxfb -plugin EvdevMouse -plugin EvdevKeyboard

Those plugins will automatically try to open the first mouse/keyboard in /dev/input. Make sure the user has read permissions for those devices (you should see warning messages if opening fails). For specifying additional parameters that get passed to the plugin(s), please consult each individual plugin's source code.

HTH,
Andrew
yahoo pers
2013-08-31 15:27:24 UTC
Permalink
Does it make any difference that i have a static build?
Are the plugins supposed to work the same way or do i have to do anything else?


________________________________
From: yahoo pers <***@yahoo.com>
To: Knight Andrew <***@digia.com>; "***@qt-project.org" <***@qt-project.org>
Sent: Friday, August 30, 2013 10:03 PM
Subject: Re: [Interest] QtLinuxFB no mouse or keyboard



My keyboard is detected as /dev/input/event0   and my  mouse  as /dev/input/mice
In my app i have a QLineEdit and when it starts i can see the cursor blinking in it.
I tried:
export QT_QPA_EVDEV_KEYBOARD_PARAMETERS="/dev/input/event0" 
sudo ./app -platform linuxfb

but still no keyboard.


then i tried:
./app -platform linuxfb -plugin EvdevKeyboard:/dev/input/event0
but still no keyboard.



________________________________
From: Knight Andrew <***@digia.com>
To: yahoo pers <***@yahoo.com>; "***@qt-project.org" <***@qt-project.org>
Sent: Friday, August 30, 2013 7:43 AM
Subject: RE: [Interest] QtLinuxFB no mouse or keyboard
Post by yahoo pers
A also wrote on the forum and i got help to build qt5 and run the app but couldn't get help about the mouse and keyboard problem.
Some QPA plugins, like LinuxFB, don't load their own input handlers, so you need to do this yourself by passing additional -plugin arguments when you start your app. These are called "generic" plugins and can be found in qtbase/src/plugins/generic. For example:

./myapp -platform linuxfb -plugin EvdevMouse -plugin EvdevKeyboard

Those plugins will automatically try to open the first mouse/keyboard in /dev/input. Make sure the user has read permissions for those devices (you should see warning messages if opening fails). For specifying additional parameters that get passed to the plugin(s), please consult each
individual plugin's source code.

HTH,
Andrew
yahoo pers
2013-09-05 09:14:57 UTC
Permalink
Has anyone been able to do this?
Build Qt-static-linuxFB and deploy to a system without window manager?


________________________________
From: yahoo pers <***@yahoo.com>
To: yahoo pers <***@yahoo.com>; Knight Andrew <***@digia.com>; "***@qt-project.org" <***@qt-project.org>
Sent: Saturday, August 31, 2013 5:27 PM
Subject: Re: [Interest] QtLinuxFB no mouse or keyboard



Does it make any difference that i have a static build?
Are the plugins supposed to work the same way or do i have to do anything else?


________________________________
From: yahoo pers <***@yahoo.com>
To: Knight Andrew <***@digia.com>; "***@qt-project.org" <***@qt-project.org>
Sent: Friday, August 30, 2013 10:03 PM
Subject: Re: [Interest] QtLinuxFB no mouse or keyboard



My keyboard is detected as /dev/input/event0   and my  mouse  as /dev/input/mice
In my app i have a QLineEdit and when it starts i can see the cursor blinking in it.
I tried:
export QT_QPA_EVDEV_KEYBOARD_PARAMETERS="/dev/input/event0" 
sudo ./app -platform linuxfb

but still no keyboard.


then i tried:
./app -platform linuxfb -plugin EvdevKeyboard:/dev/input/event0
but still no keyboard.



________________________________
From: Knight Andrew <***@digia.com>
To: yahoo pers <***@yahoo.com>; "***@qt-project.org" <***@qt-project.org>
Sent: Friday, August 30, 2013 7:43 AM
Subject: RE: [Interest] QtLinuxFB no mouse or keyboard
Post by yahoo pers
A also wrote on the forum and i got help to build qt5 and run the app but couldn't get help about the mouse and keyboard problem.
Some QPA plugins, like LinuxFB, don't load their own input handlers, so you need to do this yourself by passing additional -plugin arguments when you start your app. These are called "generic" plugins and can be found in qtbase/src/plugins/generic. For example:

./myapp -platform linuxfb -plugin EvdevMouse -plugin EvdevKeyboard

Those plugins will automatically try to open the first mouse/keyboard in /dev/input. Make sure the user has read permissions for those devices (you should see warning messages if opening fails). For specifying additional parameters that get passed to the plugin(s), please consult
each
individual plugin's source code.

HTH,
Andrew

Loading...