[mythtv-users] xrandr opensource radeon using xorg.conf

Dan Smith mrplowdan at gmail.com
Tue Jan 19 23:15:30 UTC 2010


First off I'm not real sure if this is a bug or a configuration error
on my part, also I'm not sure if its X, gnome, or mythtv thats causing
me grief.

I'm trying to get a dual screen setup working for my mythfrontend. I'm
using a compaq laptop with radeon graphics
mrplow at 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:

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
mrplow at 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
mrplow at 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 mythfrontend starts on the laptop screen no
matter what I try.
mrplow at 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

I tried devilspie to force mythtv to start at 0,0 but doesn't seem to help.
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.


More information about the mythtv-users mailing list