OpenSolaris HTPC: xorg.conf 1080p

October 19, 2008 8:05 pm


So today I decided to utilize my OpenSolaris/ZFS file server as an HTPC. I recently picked up a Sony Bravia KDL-42V4100 42″ (1080p) LCD TV. I have an NVidia GeForce 6200 LE with 256 MB 16x PCI-E video card which is fully support by OpenSolaris including nVidia control panel; seen here:

Here is my /etc/X11/xorg.conf configuration:

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

Section "Files"
    RgbPath      "/usr/X11/lib/X11/rgb"
    ModulePath   "/usr/X11/lib/modules/amd64"
    FontPath     "/usr/X11/lib/X11/fonts/TrueType/"
    FontPath     "/usr/X11/lib/X11/fonts/Type1/"
    FontPath     "/usr/X11/lib/X11/fonts/Type1/sun/"
    FontPath     "/usr/X11/lib/X11/fonts/F3bitmaps/"
    FontPath     "/usr/X11/lib/X11/fonts/misc/"
    FontPath     "/usr/X11/lib/X11/fonts/100dpi/"
    FontPath     "/usr/X11/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
    Load  "IA"
    Load  "dbe"
    Load  "extmod"
    Load  "record"
    Load  "xtrap"
    Load  "GLcore"
    Load  "glx"
    Load  "dri"
    Load  "xtsol"
    Load  "freetype"
EndSection

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

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

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

    HorizSync 30-80
    VertRefresh 60
    Option "DPMS"

    ModeLine "1920x1080" 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync

EndSection

Section "Device"
    Identifier  "Card0"
    Driver      "nvidia"
    VendorName  "nVidia Corporation"
    BoardName   "NV44 [GeForce 6200 LE]"
    BusID       "PCI:4:0:0"

        Option      "RenderAccel" "true"
        Option      "AllowGLXWithComposite" "true"

EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    DefaultDepth 24

    SubSection "Display"
        Viewport   0 0
        Depth     1
        Modes    "1920x1080"
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
        Modes    "1920x1080"
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
        Modes    "1920x1080"
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
        Modes    "1920x1080"
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
        Modes    "1920x1080"
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
        Modes    "1920x1080"
    EndSubSection
EndSection

Section "DRI"
        Mode         0666
EndSection

Then I had to fix gdm to play well with opensolaris
/etc/X11/gdm/gdm.conf

SystemMenu=true
RebootCommand=/usr/sbin/init 6
HaltCommand=/usr/sbin/init 5

I Switched from dtlogin to gdm for graphical login

# /usr/dt/bin/dtconfig -d
# svccfg
svc:> select gdm
svc:/application/graphical-login/gdm> setprop general/enabled = boolean: "true"
svc:/application/graphical-login/gdm> listprop general/enabled
general/enabled  boolean  true
svc:/application/graphical-login/gdm>
# usr/dt/bin/dtconfig -d
# /usr/dt/bin/dtconfig -d & svcadm enable gdm2-login

Add the following to /etc/X11/gdm/custom.conf under the “[daemon]” to enable auto-login for “media” user account
# sudo vi /etc/X11/gdm/custom.conf

AutomaticLoginEnable=true
AutomaticLogin=media

I had to add the following to the end of /etc/pam.conf to allow user “media” to be allowed local graphical auto-login

gdm-autologin auth required pam_unix_cred.so.1
gdm-autologin auth sufficient pam_allow.so.1
gdm-autologin account sufficient pam_allow.so.1
gdm-autologin session sufficient pam_allow.so.1
gdm-autologin password sufficient pam_allow.so.1

Add the following to the end of ~media/.dmrc to let gdm know the default window manager for user “media”

[Desktop]
Session=gnome

No Responses to “OpenSolaris HTPC: xorg.conf 1080p”

Care to comment?

You must be logged in to post a comment.

Creative Commons License tek-ops.com by Michael Schenck is licensed under a Creative Commons Attribution 3.0 United States License.