Announcement

Collapse
No announcement yet.

xorg.conf help - xrandr works

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • xorg.conf help - xrandr works

    Hi, I'm trying to get a dual screen setup working for my mythfrontend. I'm using a compaq laptop with radeon graphics
    Code:
    mrplow@compaq-desktop:~$ lspci|grep VGA
    01:05.0 VGA compatible controller: ATI Technologies Inc Radeon XPRESS 200M 5955 (PCIE)
    I'm using the open source radeon driver in Ubuntu 9.10. At first I had my xorg.conf setup with bare minimum content as such:
    Code:
    Section "Screen"
            Identifier "Screen0"
            Device     "Card0"
            SubSection "Display"
                    Depth     24
                    Virtual 2080 800
            EndSubSection
    EndSection
    
    Section "Device"
            Identifier  "Card0"
            Driver      "radeon"
            VendorName  "ATI Technologies Inc"
            BoardName   "Radeon XPRESS 200M 5955 (PCIE)"
            BusID       "PCI:1:5:0"
    EndSection
    then running this script following gdm login
    Code:
    mrplow@compaq-desktop:~$ cat xrandr.sh
    #!/bin/sh
    
    xrandr --output S-video --addmode S-video 800x600
    xrandr --output S-video --mode 800x600 --pos 0x0 --primary --output LVDS  --mode 1280x800 --pos 800x0 --right-of S-video
    however s-video wasn't always switching over, sometimes the tv monitor would remain blue but it would flicker like the v-hold was off on the tv.
    When it did work, it worked well, mythtv would start on the tv monitor every time and video played fine.

    My goal was to integrate the tv into xorg.conf so it would switch over earlier and be more reliable.
    After reading and many failed attempts I came up with this xorg.conf which works great
    Code:
    mrplow@compaq-desktop:~$ cat /etc/X11/xorg.conf
    Section "Monitor"
            Identifier  "TV-monitor"
            Option      "Left Of" "LVDS-monitor"
            Option      "DPMS"
            Option      "Position" "0 0"
    EndSection
    
    Section "Monitor"
            Identifier  "LVDS-monitor"
            Option      "DPMS"
            Option      "Position" "800 0"
    EndSection
    
    Section "Screen"
            Identifier "Screen0"
            Device     "Card0"
            SubSection "Display"
                    Depth     24
                    Virtual 2080 800
            EndSubSection
    EndSection
    
    Section "Device"
            Option      "ForceTVOut" "true"
            Option      "TVStandard" "ntsc"
            Option      "monitor-LVDS" "LVDS-monitor"
            Option      "monitor-S-video" "TV-monitor"
            Identifier  "Card0"
            Driver      "radeon"
            VendorName  "ATI Technologies Inc"
            BoardName   "Radeon XPRESS 200M 5955 (PCIE)"
            BusID       "PCI:1:5:0"
    EndSection
    The only problem is that all programs start on the laptop screen no matter what I try.
    Code:
    mrplow@compaq-desktop:~$ mythfrontend.real -geometry 800x600+0+0
    2010-01-19 10:38:58.460 mythfrontend version: branches/release-0-22-fixes [23167          ] www.mythtv.org
    2010-01-19 10:38:58.482 AudioPulseUtil: Suspend Success
    2010-01-19 10:38:58.484 Overriding GUI size: width=800 height=600
    2010-01-19 10:38:58.484 Overriding GUI offset: x=0 y=0
    2010-01-19 10:38:58.484 Using runtime prefix = /usr
    2010-01-19 10:38:58.485 Using configuration directory = /home/mrplow/.mythtv
    2010-01-19 10:38:58.945 Empty LocalHostName.
    2010-01-19 10:38:58.945 Using localhost value of compaq-desktop
    2010-01-19 10:38:58.946 Testing network connectivity to '192.168.1.2'
    2010-01-19 10:38:58.966 New DB connection, total: 1
    2010-01-19 10:38:58.999 Connected to database 'mythconverg' at host: 192.168.1.2
    2010-01-19 10:38:59.001 Closing DB connection named 'DBManager0'
    2010-01-19 10:38:59.016 DPMS is active.
    2010-01-19 10:38:59.020 Primary screen: 0.
    2010-01-19 10:38:59.023 Connected to database 'mythconverg' at host: 192.168.1.2
    2010-01-19 10:38:59.045 Using screen 0, 800x600 at 800,0
    2010-01-19 10:38:59.079 MythUI Image Cache size set to 20971520 bytes
    2010-01-19 10:38:59.080 Enabled verbose msgs:  important general
    2010-01-19 10:38:59.122 Connecting to lcd server: localhost:6545 (try 1 of 10)
    2010-01-19 10:38:59.129 New DB connection, total: 2
    2010-01-19 10:38:59.132 Connected to database 'mythconverg' at host: 192.168.1.2
    2010-01-19 10:38:59.139 Primary screen: 0.
    2010-01-19 10:38:59.143 Using screen 0, 800x600 at 800,0
    its not just mythtv, all programs have this behavior. I tried devilspie to force mythtv to start at 0,0 but doesn't work.
    I don't want to use compiz to move the window because it seems silly to enable compiz just to get a program to start in the right position.

    If I change the virtual screen size to 2079x800 (1 pixel smaller than it should be) programs start in 0,0.
    Although the laptop screen is half borked, not ideal as I would like to have a conky instance on the laptop screen with upcoming recordings info and I need the full 1280x800 res.
    Right now I'm running it with a virtual screen of 1600x600 which lowers the laptop res to 800x600 but at least programs start in the right position.

    running my xrandr.sh script along with the proper xorg.conf with the added monitor sections still doesn't solve programs starting in the correct position.

  • #2
    sorry for replying to my own post but I thought I'd add xrandr output in case it helps
    Code:
    mrplow@compaq-desktop:~$ xrandr -q
    Screen 0: minimum 320 x 200, current 2080 x 800, maximum 2080 x 800
    VGA-0 disconnected (normal left inverted right x axis y axis)
    LVDS connected 1280x800+800+0 (normal left inverted right x axis y axis) 330mm x 210mm
       1280x800       60.1*+
       1280x720       59.9
       1152x768       59.8
       1024x768       59.9
       800x600        59.9
       640x480        59.4
    S-video connected 800x600+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
       800x600        59.9*+

    Comment

    Working...
    X