ผู้เยี่ยมชมจอภาพคู่ linux ใน virtualbox


8

ฉันอ่านว่า VirtualBox รุ่นใหม่รองรับแขกที่มี Linux ด้วยจอภาพสองจอ ฉันสามารถรับจอภาพสองจอเพื่อเริ่มต้นเมื่อฉันเริ่มต้น Arch VM ของฉัน แต่ฉันไม่สามารถให้ Xorg ขยายไปยังจอภาพที่สองได้ พวกเขาแสดงอย่างต่อเนื่องในโหมดโคลน มีใครทำเช่นนี้สำเร็จหรือไม่ ถ้าเป็นเช่นนั้นคุณช่วยแบ่งปัน xorg.conf ของคุณได้ไหม?

แก้ไข: xorg.conf ของฉัน (ฉันลอง BusID ที่เพิ่มขึ้นเป็นแบบทดสอบ แต่เคยทดสอบมาก่อน)

Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        Screen      1  "Screen1" RightOf "Screen0"
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "/usr/share/fonts/misc/"
        FontPath     "/usr/share/fonts/TTF/"
        FontPath     "/usr/share/fonts/OTF/"
        FontPath     "/usr/share/fonts/Type1/"
        FontPath     "/usr/share/fonts/100dpi/"
        FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
        Load  "record"
        Load  "dbe"
        Load  "dri2"
        Load  "glx"
        Load  "extmod"
        Load  "dri"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Monitor"
        Identifier   "Monitor1"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        Identifier  "Card0"
        Screen      0
        Driver      "vboxvideo"
        BusID       "PCI:0:2:0"
EndSection

Section "Device"
        Identifier  "Card1"
        Screen      1
        Driver      "vboxvideo"
        BusID       "PCI:0:2:1"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen1"
        Device     "Card1"
        Monitor    "Monitor1"
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

1
อัปเดต: ฉันสามารถใช้งานได้จาก Xrandr ดังนั้นจึงต้องเป็นข้อผิดพลาดในการกำหนดค่า ฉันทำให้มันทำงานโดยใช้ xrandr - เอาท์พุท VBOX1 - ถูกต้องของ VBOX0
Kyle Smith


ฉันรู้ว่านี่คือโพสต์เก่า แต่อันนี้ทำเคล็ดลับสำหรับฉัน xrandr - เอาท์พุท VBOX1 - ได้ตรงจาก VBOX0 ขอบคุณ
benzebuth

คำตอบ:


5

ฉันใช้ randr เป็นวิธีแก้ปัญหา

xrandr --output VBOX1 --right-of VBOX0

ฉันใส่ไว้ใน autostart ของฉัน มันจะทำงานหลังจากที่คุณเข้าสู่ระบบ


2

ในไฟล์ conf ของคุณคืออะไร? หากคุณยังไม่ได้แจ้งอย่างชัดเจนว่าคุณมีจอภาพหลายจอมันจะทำการโคลนผลลัพธ์ หากคุณไม่แน่ใจวิธีการแก้ไข conf การทำเช่นนี้มีบทเรียนที่ดีหลายรอบดังกล่าวเป็นหนึ่งในที่xorg ArchWiki

โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.