
我正在嘗試使用 2 個顯示器的 i3wm,當我第一次登入時,我的顯示器被交換了。 Gnome 3 不會發生這種情況。當我儲存變更時,它會交換顯示器並允許我在兩個顯示器上移動滑鼠,但單擊區域是相反的。
例如:如果我的左側顯示器上有鑲邊,它只會註冊右側同一區域周圍的點擊事件。
以下是我第一次登入時顯示器的螢幕截圖(DVI-D-1 應位於左側,DVI-I-1 應位於右側)。
下面是我運行的用於交換顯示器的 xrandr 命令
xrandr --output DP-1 --off --output DVI-I-1 --mode 1920x1080 --pos 1920x0 --rotate normal --output DVI-D-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-1 --off
這是GPU的輸出
lspci | grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation GK104 [GeForce GTX 680] (rev a1)
答案1
快速回答
xrandr --output DVI-I-1 --auto --output DVI-D-1 --auto --left-of DVI-I-1
詳細解答
我從 i3 IRC 聊天室得到了幫助,他們解釋說我之前的命令僅顯示在下面‘更正’不存在的偏移量。因此,我需要切換設備‘邏輯上’為了全面實施我的交換。因為我的設備已經設定了正確的分辨率,所以我只使用了該--left-of
選項,但您可能需要設定--mode
和任何其他選項。你的旅費可能會改變。
xrandr --output DP-1 --off --output DVI-I-1 --mode 1920x1080 --pos 1920x0 --rotate normal --output DVI-D-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-1 --off