diff mbox

Qt mouse, keyboard, touchscreen

Message ID 20121127163037.3f619184@skate
State Not Applicable
Headers show

Commit Message

Thomas Petazzoni Nov. 27, 2012, 3:30 p.m. UTC
Dear Zoran Djordjevic,

On Mon, 26 Nov 2012 23:46:15 -0800 (PST), Zoran Djordjevic wrote:

> My /dev/input node has event0, event1, mouse0 and mice.
> When I give: export QWS_MOUSE_PROTO=tslib:/dev/input/event0, 
> touch screen works fine. However, tried different options for
> USB mouse, and neither one works (cat /dev/input/mouse0 or mice gives
> terminal "garbage"). Regarding keyboard, I gave: export
> QWS_KEYBOARD=linuxinput:/dev/input/event1 Keyboard (USB) does work,
> but from that moment my terminal connected keyboard (via COM port) -
> doesn't work (Ctrl-C). When exiting application, I can't give
> commands via terminal. Any help ? 

Apply the attached patch to Qt.

Thomas

Comments

Zoran Djordjevic Nov. 28, 2012, 11:36 a.m. UTC | #1
I've tried patch, you submitted, and then make qt-reconfigure and
receive strange error about include folders. Same error I had 
earlier when trying with deleting stamp files (when added some
options regarding Qt in Buildroot's menuconfig), and in that case 
I had to do make clean all. But if I do so, now, I think I will loose my 
patched files (am I right ?)
What to do then ?
Thomas Petazzoni Nov. 28, 2012, 1 p.m. UTC | #2
Dear Zoran Djordjevic,

On Wed, 28 Nov 2012 03:36:44 -0800 (PST), Zoran Djordjevic wrote:
> I've tried patch, you submitted, and then make qt-reconfigure and

qt-reconfigure will not re-extract the source code and apply the
patches, so it is not appropriate. If you want to rebuild a package
from scratch, including extracting the package and applying the
patches, do:

	make qt-dirclean

> receive strange error about include folders. Same error I had 
> earlier when trying with deleting stamp files (when added some
> options regarding Qt in Buildroot's menuconfig), and in that case 
> I had to do make clean all. But if I do so, now, I think I will loose my 
> patched files (am I right ?)

If you made changes to output/build/<something>/, yes, you will loose
your changes. But you shouldn't be making any change in
output/build/<something>/

Thomas
Zoran Djordjevic Nov. 28, 2012, 5:11 p.m. UTC | #3
Probably, because of being unfamiliar with svn, I made
some mistake. I directly changed the source code, according
to patch file, you submitted (it is easy to understand the procedure)
, and then do qt-reconfigure.
Also, the only one file qkbdlinuxinput_qws.cpp, after building
root file system is at .../output/build... directory, so what file
should I change ?
If I made a mistake with such procedure, can you tell me
what is regular procedure ?
 
Regards
diff mbox

Patch

--- qt-4.7.3.orig/src/gui/embedded/qkbdlinuxinput_qws.cpp	2011-03-30 07:19:04.000000000 +0200
+++ qt-4.7.3/src/gui/embedded/qkbdlinuxinput_qws.cpp	2011-09-12 18:22:52.978846803 +0200
@@ -127,7 +127,7 @@ 
 
         // play nice in case we are started from a shell (e.g. for debugging)
         m_tty_fd = isatty(0) ? 0 : -1;
-
+#if 0
         if (m_tty_fd >= 0) {
             // save tty config for restore.
             tcgetattr(m_tty_fd, &m_tty_attr);
@@ -154,6 +154,7 @@ 
             cfsetospeed(&termdata, 9600);
             tcsetattr(m_tty_fd, TCSANOW, &termdata);
         }
+#endif
     } else {
         qWarning("Cannot open keyboard input device '%s': %s", qPrintable(dev), strerror(errno));
         return;