1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ラズパイでデュアルディスプレイ( Xineramaで )

Last updated at Posted at 2018-06-10

DisplayLinkのUSB2.0と、ラズパイ本体のHDMI両方を使ってデュアルディスプレイしたくなった。
昨今はRandR(xrandr, Arandrなどのツール)を使ってセットアップするのが良さそう、と思いつつも、どうにもうまく動かなかったのでXineramaでデュアルディスプレイしてる。

環境としては

xorg.confで指定する方法はハードウェアの動的変更に対応できないので、あまりオススメはできない。老害ぽい。
( Xinerama自体が話題になったのって、そういえばいつぐらいだろうか... XFree86 4.0が出たあたり? 20年くらい前か )

/etc/X11/xorg.conf
Section "Device"
  Identifier "Raspberry Pi RBDEV"
  Driver "fbturbo"
  Option "fbdev" "/dev/fb0"
  Option "SwapbuffersWait" "true"
  Option "ShadowFB" "off"
EndSection

Section "Device"
  Identifier "displaylink"
  Driver "fbturbo"
  Option "fbdev" "/dev/fb1"
  Option "ShadowFB" "off"
EndSection

Section "Monitor"
  Identifier "Monitor0"
EndSection

Section "Monitor"
  Identifier "Monitor1"
EndSection

Section "Screen"
  Identifier "Screen0"
  Device "Raspberry Pi RBDEV"
  Monitor "Monitor0"
EndSection

Section "Screen"
  Identifier "Screen1"
  Device "displaylink"
  Monitor "Monitor1"
  DefaultDepth            16
EndSection

Section "ServerLayout"
  Identifier "Default Layout"
  Screen 0 "Screen0" 0 0
  Screen 1 "Screen1" RightOf "Screen0"
  Option         "Xinerama" "1"
EndSection
1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?