国产毛片a精品毛-国产毛片黄片-国产毛片久久国产-国产毛片久久精品-青娱乐极品在线-青娱乐精品

電子工程網(wǎng)

標(biāo)題: 研發(fā)課堂丨帶你配置瑞芯微3399-C開(kāi)發(fā)板Ubuntu雙屏顯示&異觸 [打印本頁(yè)]

作者: 哦哈喲    時(shí)間: 2021-2-1 10:41
標(biāo)題: 研發(fā)課堂丨帶你配置瑞芯微3399-C開(kāi)發(fā)板Ubuntu雙屏顯示&異觸
本文以飛凌嵌入式RK3399開(kāi)發(fā)板為基礎(chǔ)講解,主要介紹了ubuntu系統(tǒng)下雙屏顯示及異觸,其它RK3399平臺(tái)請(qǐng)參考使用!
文章目錄
xrandr命令
雙屏擴(kuò)展顯示
xinput命令
雙屏異觸

xrandr命令
“xrandr”是一款官方的 RandR擴(kuò)展配置工具,它可以設(shè)置屏幕顯示的大小、方向、鏡像等。對(duì)于多屏幕顯示的情況,可以使用xrandr進(jìn)行管理。

參考鏈接:https://wiki.archlinux.org/index.php/xrandr_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)

forlinx@forlinx:~$ xrandr --helpusage: xrandr [options]  where options are:  --display or -d   --help  -o             or --orientation   -q        or --query  -s /x or --size /x  -r or --rate or --refresh   -v        or --version  -x        (reflect in x)  -y        (reflect in y)  --screen   --verbose  --current  --dryrun  --nograb  --prop or --properties  --fb x  --fbmm x  --dpi /  --output       --auto      --mode       --preferred      --pos x      --rate or --refresh       --reflect normal,x,y,xy      --rotate normal,inverted,left,right      --left-of       --right-of       --above       --below       --same-as       --set       --scale x      --scale-from x      --transform ,,,,,,,,      --off      --crtc       --panning x[++[/x++[////]]]      --gamma ::      --brightness       --primary  --noprimary  --newmode <clock MHz>                                      [flags...]            Valid flags: +HSync -HSync +VSync -VSync                         +CSync -CSync CSync Interlace DoubleScan  --rmmode   --addmode   --delmode   --listproviders  --setprovideroutputsource   --setprovideroffloadsink   --listmonitors  --listactivemonitors  --setmonitor {auto|/x/++} {none|,,...}  --delmonitor

雙屏擴(kuò)展顯示
OK3399-C Ubuntu系統(tǒng)支持xrandr命令管理多屏擴(kuò)展顯示。同時(shí)接入eDP屏幕和HDMI屏幕,系統(tǒng)會(huì)默認(rèn)非熱插拔顯示設(shè)備作為主屏,所以eDP會(huì)被識(shí)別為primary screen。默認(rèn)會(huì)設(shè)置兩個(gè)屏幕為擴(kuò)展顯示。



forlinx@forlinx:~$ xrandrScreen 0: minimum 320 x 200, current 2560 x 1440, maximum 8192 x 8192eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 276mm x 156mm   1920x1080     60.00*+HDMI-1 connected 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm   2560x1440     59.95*    1920x1080     60.00    50.00    59.94     1680x1050     59.88     1280x1024     75.02    60.02     1440x900      59.90     1280x960      60.00     1280x720      60.00    50.00    59.94     1024x768      75.03    70.07    60.00     832x624       74.55     800x600       72.19    75.00    60.32    56.25     720x576       50.00     720x480       60.00    59.94     640x480       75.00    72.81    66.67    60.00    59.94     720x400       70.08
可以使用xrandr在兩個(gè)屏幕中選擇哪個(gè)做主屏,哪個(gè)做副屏。

xrandr --output eDP-1 --right-of HDMI-1 --auto也可以將兩個(gè)屏幕設(shè)置成同顯
xrandr --output HDMI-1 --same-as eDP-1 --auto
xinput命令
xinput命令用于管理系統(tǒng)的輸入設(shè)備。

forlinx@forlinx:~$ xinput --helpusage :        xinput get-feedbacks         xinput set-ptr-feedback         xinput set-integer-feedback         xinput get-button-map         xinput set-button-map [ [...]]        xinput set-pointer [ ]        xinput set-mode ABSOLUTE|RELATIVE        xinput list [--short || --long || --name-only || --id-only] [...]        xinput query-state         xinput test [-proximity]         xinput create-master [] []        xinput remove-master [Floating|AttachToMaster (dflt:Floating)] [] []        xinput reattach         xinput float         xinput set-cp         xinput test-xi2 [--root]         xinput map-to-output         xinput list-props [ ...]        xinput set-int-prop [ ...]        xinput set-float-prop [ ...]        xinput set-atom-prop [ ...]        xinput watch-props         xinput delete-prop         xinput set-prop [--type=atom|float|int] [--format=8|16|32] [ ...]        xinput disable         xinput enable

分別插入了“wch.cn USB2IIC CTPCONTROL”和“ILITEK ILITEK-TP”兩個(gè)USB電容觸摸屏。

forlinx@forlinx:~$ xinput⎡ Virtual core pointer                          id=2    [master pointer  (3)]⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]⎜   ↳ wch.cn USB2IIC_CTP_CONTROL                id=9    [slave  pointer  (2)]⎜   ↳ ILITEK ILITEK-TP                          id=6    [slave  pointer  (2)]⎣ Virtual core keyboard                         id=3    [master keyboard (2)]    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]    ↳ rk_headset                                id=7    [slave  keyboard (3)]    ↳ rk29-keypad                               id=8    [slave  keyboard (3)]    ↳ InputEmulator                             id=10   [slave  keyboard (3)]
雙屏異觸
使用xinput對(duì)觸摸設(shè)備和顯示設(shè)備進(jìn)行綁定。ILITEK ILITEK-TP觸摸設(shè)備的id是6,將其與eDP-1綁定。wch.cn USB2IIC CTPCONTROL觸摸設(shè)備的id是9,將其與HDMI-1綁定。

forlinx@forlinx:~$ xinput map-to-output 6 eDP-1forlinx@forlinx:~$ xinput map-to-output 9 HDMI-1
這樣就可以實(shí)現(xiàn)RK3399下雙屏異觸了。測(cè)試了一下,兩個(gè)屏幕各自的觸摸效果還不錯(cuò)。
▼效果如下:

以上就是小編給大家分享的內(nèi)容,希望能夠幫到您。
進(jìn)入飛凌嵌入式官網(wǎng)https://www.forlinx.com/,了解關(guān)于OK3399-C開(kāi)發(fā)板的更多信息。






歡迎光臨 電子工程網(wǎng) (http://m.qingdxww.cn/) Powered by Discuz! X3.4
主站蜘蛛池模板: 国产卡一卡二卡3卡4卡无卡视频 | 中文字幕一区二区在线播放 | 韩国福利一区二区三区高清视频 | 在线观看黄日本高清视频 | 日本高清视频成人网www | 甜甜的肉禽系统小说娱乐圈 | 91欧美精品综合在线观看 | 亚洲永久免费网站 | 香焦伊人 | 国产成在线人视频免费视频 | 麻豆观看| 亚洲日本高清 | 黄色成人影视 | 久久99视频免费 | 国产精品国产三级国产普通 | www.黄色片 | 手机看片国产永久1204 | 日韩国产第一页 | 日韩极品视频 | 999成人精品视频在线 | 亚洲精品中文字幕乱码影院 | 麻豆污视频 | 五月婷婷丁香花 | 免费观看一级毛片 | 三角眉毛的男人好不好 | 花季传媒3.0.3每天免费3次 | a级黄韩国免费播放 | 亚洲精品永久www忘忧草 | 成人免费在线视频网 | 午夜激情福利 | 日本福利在线观看 | 亚洲综合成人网在线观看 | 国产精品成人网红女主播 | 8008app幸福宝隐藏入选集 | 欧美日韩精品高清一区二区 | 不卡欧美 | 国产亚洲精品一品区99热 | 免费在线观看亚洲 | 妖精视频国产精品 | 热99久久 | 国内永久第一免费福利视频 |