具有多個 x 螢幕的觸控螢幕分配

具有多個 x 螢幕的觸控螢幕分配

當桌面分為多個 X 螢幕時,我在將觸控輸入分配給特定顯示器時遇到問題,因為 xinput 似乎沒有指定正確 X 螢幕的選項。

> xrandr -q --screen 0
Screen 0:
*****
DP-1 connected
DP-2 disconnected

> xrandr -q --screen 1
Screen 1:
*****
DP-3 connected
DP-4 ....

現在,我想將觸控控制器(xinput id 10)分配給 DP-1,但 xinput 只知道螢幕 1 上的內容:

> xinput map-to-output 10 DP-1
Unable to find output 'DP-1'. Output may not be connected.

我該如何告訴 xinput 在螢幕 0 上尋找特定輸出?

答案1

我會嘗試類似的東西

DISPLAY=:0.1 xinput map-to-output 10 DP-1

您也可以匯出 DISPLAY 變數

編輯:這對我的用例不起作用..抱歉浪費了時間:/

相關內容