How can I handle a second layout independent of the console (vt)

Alain alain.tissot at gmx.ch
Sun Sep 24 11:28:38 PDT 2006


Hello

I have a second layout for my Television, which I do not like to be connected to the console.

I have Fedora Core 5 which starts GDM via inittab
root      2878     1  0 14:39 ?        00:00:00 /bin/sh /etc/X11/prefdm -nodaemon (also tried with -noconsole)
root      2899  2878  0 14:39 ?        00:00:00 /usr/sbin/gdm-binary -nodaemon
root      2966  2899  0 14:39 ?        00:00:00 /usr/sbin/gdm-binary -nodaemon

>From here a session-login is started
root      2974  2966  0 14:39 tty7     00:00:00 /usr/bin/Xorg :0 -audit 0 -auth /var/gdm/:0.Xauth -nolisten tcp vt7
gdm       3064  2966  1 14:40 ?        00:00:01 /usr/libexec/gdmgreeter

The Television layout which I use for Myth gets started from rc.d:
root      2867     1  0 14:39 ?        00:00:00 su - mythtv -c /usr/bin/xinit /usr1/mythtv/.mythtv/mythfrontend_start_mythtv.sh -- /usr/bin/Xorg :11 -verbose 10 -audit 0 -auth /var/gdm/:11.Xauth -nolisten tcp -dpi 100 -s 0 -dpms -layout Television
mythtv    2912  2867  0 14:39 ?        00:00:00 -bash -c /usr/bin/xinit /usr1/mythtv/.mythtv/mythfrontend_start_mythtv.sh -- /usr/bin/Xorg :11 -verbose 10 -audit 0 -auth /var/gdm/:11.Xauth -nolisten tcp -dpi 100 -s 0 -dpms -layout Television
root      2976  2975  1 14:39 tty3     00:00:00 /usr/bin/Xorg :11 -verbose 10 -audit 0 -auth /var/gdm/:11.Xauth -nolisten tcp -dpi 100 -s 0 -dpms -layout Television
mythtv    2992  2987  8 14:39 ?        00:00:03 /usr/bin/mythfrontend -l /var/log/mythtv/mythfrontend.log

The mythfrontend application gets blocked when the Session on the console starts. I need to press Alt+Ctl+F3 to activate mythfrontend. As soon as change to vt7 mythfrontend gets blocked again.

Trying with void drivers for the mouse and keyboard didn't help. Using the DontVTSwitch (in layout or serverflags) is also if no help.
I did extensive reading but didn't find a solution.

How can I operate Mythfrontend independent of the console sessions ?
Is there another list I can ask for help ?

Thanks
Alain

# XFree86 4 configuration created by pyxf86config

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "ServerLayout"
        Identifier     "Television"
        Screen      0  "TV Screen" 0 0
        InputDevice    "fake Mouse driver"    "CorePointer"
        InputDevice    "fake Keyboard driver" "CoreKeyboard"
        Option         "DontVTSwitch"         "true"
        Option         "AllowMouseOpenFail"   "true"
EndSection

Section "Files"
        FontPath     "unix/:7100"
EndSection

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "type1"
        Load  "dri"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "ch"
        Option      "XkbVariant" "de_nodeadkeys"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "IMPS/2"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5"
        Option      "Emulate3Buttons" "yes"
EndSection

Section "InputDevice"
        Identifier  "fake Keyboard driver"
        Driver      "void"
EndSection

Section "InputDevice"
        Identifier  "fake Mouse driver"
        Driver      "void"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "SyncMaster"
        DisplaySize  380        310
        HorizSync    30.0 - 81.0
        VertRefresh  56.0 - 85.0
        Option      "dpms"
EndSection

Section "Monitor"
        Identifier   "PAL Monitor"
        HorizSync    30.0 - 68.0
        VertRefresh  50.0 - 120.0
        ModeLine     "720x576" 41.5 720 752 840 928 576 580 584 600 -hsync -vsync
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "i810"
        VendorName  "Videocard vendor"
        BoardName   "Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device"
EndSection

Section "Device"
                     # <-- obtain from lspci (see later)
        Identifier  "Hauppauge PVR 350 iTVC15 Framebuffer"
        Driver      "ivtvdev"
        Option      "fbdev" "/dev/fb0"      # <-- modify if using another device
        Option      "VideoOverlay" "on"
        Option      "XVideo" "on"
        BusID       "5:4:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes    "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes    "1280x1024"
        EndSubSection
EndSection

Section "Screen"
        Identifier "TV Screen"
        Device     "Hauppauge PVR 350 iTVC15 Framebuffer"
        Monitor    "PAL Monitor"
        DefaultDepth     24
        DefaultFbBPP     32
        Option      "VideoOverlay" "on"
        Option      "XVideo" "on"
        SubSection "Display"
                Depth     24
                FbBPP     32
                Modes    "720x576"
        EndSubSection
EndSection

Section "DRI"
        Group        0
        Mode         0666
EndSection






More information about the xorg mailing list