QT porting support for USB mouse keyboard, touch screen

Source: Internet
Author: User

, USB keyboard

After a search, we found that support for the QT keyboard is mainly related to two aspects:

1. The keyboard type determines:
      4.7 Previous QT version, if is PS2 round hole keyboard, QT compiles to add the option:-qt-kbd-vr41xx (not tested), if is a USB keyboard, need to add -qt-kbd-usb option. 
      Qt4.7.3 The default is TTY, which is available for USB keyboards and does not need to be configured.
2. Environment variable setting:

Then porting to the target board, you also need to set the environment variable Qws_keyboard:

$export qws_keyboard= "Usb:/dev/input/event0"

For QT Mouse Keyboard transplant problem, still a little puzzled.

$export set qws_keyboard= "Tty:/dev/tty1"
& nbsp; Depending on the development Board, this seems different. my:
        $export  set qws_keyboard= "tty:/dev/input/event4"
QT program has keyboard input values, but is a lot of irregular character sets, do not know why.
       $./qt -qws 
Cou ld not initialize virtual console switching.

The problem solved:

Do not use Qws_keyboard, this setting is suitable for you to do the key, using Qws_usb_keyboard, this is supported by USB standard keyboard.

$export Qws_usb_keyboard=/dev/input/event4

3. Description:

Tip: You can use the $cat/dev/input/event to unplug the USB keyboard to see which is your keyboard device node. There are two device nodes that can be used

$cat/dev/input/event4 or $cat/dev/input/event5 Enter, and then press the keyboard to see if the terminal has character output that can determine the available device nodes.

Recommended Posts:

Http://www.qtcn.org/bbs/simple/?t47670.html

Second, USBs Mouse: Look at the big online comrades with:tslib_qws_mouse_proto= "Tpanel:/dev/event0 usb:/dev/mouse0
Threesome: tslib_qws_mouse_proto= "Tslib:/dev/event0 itellimouse:/dev/mouse0
tslib_qws_mouse_proto= "Tslib:/dev/event0 mousemap:/dev/mouse0
1. Environment variable setting:1.1 Microsoft Mouse (USB wireless)different settings for mouse environment variables may vary. Mine is Microsoft's:tslib_qws_mouse_proto= "microsoft:/dev/input/event6 tslib:/dev/input/touchsreen0"
 $export tslib_qws_mouse_proto= "linuxtp:/dev/input/event6 tslib:/dev/input/touchsreen0" This setting, opens the QT program, starts the visible mouse arrow, disappears after the mouse clicks.  $export tslib_qws_mouse_proto= "mouseman:/dev/input/event6 tslib:/dev/input/touchsreen0" This setting, open QT program, start visible mouse arrow, mouse can move a bit under. $./qt-qwsHidraw:pid 1884 passed too short reportHidraw:pid 1884 passed too short report
Hidraw:pid 1884 passed too short report
Hidraw:pid 1884 passed too short report
Hidraw:pid 1884 passed too short report
Hidraw:pid 1884 passed too short report
Hidraw:pid 1884 passed too short report
 1.2 Reggae Mouse (USB wireless)I use the Zhou Rapoo USB wireless Mouse:$export qws_mouse_proto= "linuxtp:/dev/hidraw3 tslib:/dev/input/touchsreen0" mouse can be certain, but the movement is very confusing. You cannot click the target you want to select.  solved the problem that the mouse is not available, I have not had time to study, wrote first. 1.3 Latest progress, mouse availableto configure the kernel, recompile the kernel:#vim Arm/arch/omap3_stalker_defconfig config_input_mousedev=y

Config_input_mouse=y

No configuration of Qws_mouse_proto, CONFIGURED

#export qws_mouse_proto= ""

so the mouse touch screen can be used, the mouse is normal, touch can be used, but everywhere jumping.  The following three configuration parameters are not found, I also do not configure, can also be used. config_input_mousedev_psaux=y
config_input_mousedev_screen_x=1024
config_input_mousedev_screen_y=768 1.4 Simultaneous use of mouse and touch screen Export qws_mouse_proto= "Tslib:/dev/input/touchscreen0 Mouseman:/dev/input/mice"
3. Description:Recommended Posts:http://www.linuxforum.net/forum/showflat.php?Cat=&Board=TI&Number=728763&view=&sb=&o=&vc=1
The previous validation is useful.http://topic.csdn.net/u/20120722/17/222d09dd-a46f-4748-b936-61dbed26729d.html?seed=1054718373&r= 79200954#r_79200954
http://blog.21ic.com/user1/2177/archives/2006/32818.html =====================================sno:/usr/etc/ Configuration in the ts.conf.
Today is mainly completed tslib in the mini210 Development Board of the transplant, the traditional transplant method in this above simply does not work, have to say, do not know the insider, you will never understand, a black box will be difficult to die how many brain cells ah, in the fortunately we have Sir Chen, hehe, write down the main process and focus:
The first is Ts.conf,module_raw input modified to Module_raw Friendlyarm-ts-input, the rest is the same. Next is the friendlyarm-ts-input.so, in the friendly arm of the file system/usr/lib/ts directory, you can replace the entire TS directory copy tslib to form the Lib/ts directory. Then copy the corresponding libts-1.0.so.0 to your own file system/lib, and finally configure the environment variable to add in/etc/profile
Export T_root=/opt/tslib
Export ld_library_path= $T _root/lib//Specify Tslib library file path
Export Tslib_consoledevice=none//tslib Run the required console, here is the LCD screen, set the console device is none, otherwise the default is/dev/tty,
Export TSLIB_FBDEVICE=/DEV/FB0//Specify frame buffer device
Export tslib_conffile= $TSLIB _root/etc/ts.conf
Export tslib_plugindir= $TSLIB _root/lib/ts
Export Tslib_tsdevice=/dev/touchscreen-1wire//Specify Touch screen device node file
Export tslib_calibfile=/etc/pointercal//Specify touch screen calibration file pintercal storage location Export qws_mouse_proto=tslib:/dev/ Touchscreen-1wire
Executes the Ts_calibrate calibration program.

QT porting support for USB mouse keyboard, touch screen

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.