Gå til innhold

xorg.conf og nvidia


Anbefalte innlegg

Bruker Gentoo, og har emerget nvidia-kernel og nvidia-glx. Forandret Driver i Xorg.conf fra "NV" til "NVIDIA". Det som skjer når jeg starter Gnome pånytt, er at LCD skjermen min slokner, så kommer bildet på TV skjermen istedet.

 

Noen som ser noe rart med xorg.conf som skulle tilsi at når jeg starter Gnome, så kommer bildet på TV istedet for på LCD skjerm? TV-out vil jeg skal fungere, men ikke på denne måten ;)

 

Her er min xorg.conf

 

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

Section "Files"
  RgbPath      "/usr/X11R6/lib/X11/rgb"
  ModulePath   "/usr/X11R6/lib/modules"
  FontPath     "/usr/share/fonts/misc/"
  FontPath     "/usr/share/fonts/TTF/"
  FontPath     "/usr/share/fonts/Type1/"
  FontPath     "/usr/share/fonts/CID/"
  FontPath     "/usr/share/fonts/75dpi/"
  FontPath     "/usr/share/fonts/100dpi/"
#   FontPath     "/usr/share/fonts/lfp-fix/"
EndSection

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

Section "InputDevice"
  Identifier  "Keyboard0"
  Driver      "kbd"
  Option "XkbLayout" "no-latin1"
EndSection

Section "InputDevice"
  Identifier  "Mouse0"
  Driver      "mouse"
  Option       "Protocol" "IMPS/2"
  Option       "Device"   "/dev/usbmouse"
       Option      "Buttons"  "7"
       Option      "ZAxisMapping"  "4 5"
     # Option      "Resolution"    "100"
EndSection

Section "Monitor"
  Identifier   "Monitor0"
  VendorName   "Monitor Vendor"
  ModelName    "Monitor Model"
       #HorizSync 30-70
       #VertRefresh 50-160
EndSection

Section "Device"
       ### Available Driver options are:-
       ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
       ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
       ### [arg]: arg optional
       #Option     "SWcursor"              # [<bool>]
       #Option     "HWcursor"              # [<bool>]
       #Option     "NoAccel"               # [<bool>]
       #Option     "ShadowFB"              # [<bool>]
       #Option     "UseFBDev"              # [<bool>]
       #Option     "Rotate"                # [<str>]
       #Option     "VideoKey"              # <i>
       #Option     "FlatPanel"             # [<bool>]
       #Option     "FPDither"              # [<bool>]
       #Option     "CrtcNumber"            # <i>
  Identifier  "Card0"
  Driver      "nv"
  #BusID "PCI:2:0:0"
  VendorName  "nVidia Corporation"
  BoardName   "GeForce FX 5200"
EndSection

Section "Screen"
  Identifier "Screen0"
  Device     "Card0"
  Monitor    "Monitor0"
       DefaultDepth 24
  SubSection "Display"
     Depth     24
              #Modes "1024x768"
               Modes "1280x1024"
               Viewport 0 0
  EndSubSection
#   SubSection "Display"
#      Viewport   0 0
#      Depth     4
#   EndSubSection
#   SubSection "Display"
#      Viewport   0 0
#      Depth     8
#   EndSubSection
#   SubSection "Display"
#      Viewport   0 0
#      Depth     15
#   EndSubSection
#   SubSection "Display"
#      Viewport   0 0
#      Depth     16
#   EndSubSection
#   SubSection "Display"
#      Viewport   0 0
#      Depth     24
#   EndSubSection
EndSection 

Videoannonse
Annonse

Vet ikke med det der TV og LCD problemet ditt, men i nvidia-readme-en står det i hverfall at

 

Section "Module"

Load "extmod"

Load "dri"

Load "dbe"

Load "record"

Load "xtrap"

Load "glx"

Load "type1"

Load "freetype"

EndSection

 

Skal bli:

 

Section "Module"

Load "extmod"

#Load "dri"

Load "dbe"

Load "record"

Load "xtrap"

Load "glx"

Load "type1"

Load "freetype"

EndSection

 

Altså skal modulen dri deaktiveres. :)

Endret av art3mis

Med Option "IgnoreDisplayDevices" "TV"

virket det. Men vil ikke dette ødelegge for nå som jeg skal konfe tv-out ?

 

xorg.conf:

 

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

Section "Files"
RgbPath      "/usr/X11R6/lib/X11/rgb"
ModulePath   "/usr/X11R6/lib/modules"
FontPath     "/usr/share/fonts/misc/"
FontPath     "/usr/share/fonts/TTF/"
FontPath     "/usr/share/fonts/Type1/"
FontPath     "/usr/share/fonts/CID/"
FontPath     "/usr/share/fonts/75dpi/"
FontPath     "/usr/share/fonts/100dpi/"
#	FontPath     "/usr/share/fonts/lfp-fix/"
EndSection

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

Section "InputDevice"
Identifier  "Keyboard0"
Driver      "kbd"
Option "XkbLayout" "no-latin1"
EndSection

Section "InputDevice"
Identifier  "Mouse0"
Driver      "mouse"
Option     "Protocol" "IMPS/2"
Option     "Device"   "/dev/usbmouse"
       Option      "Buttons"  "7"
       Option      "ZAxisMapping"  "4 5"
     # Option      "Resolution"    "100"
EndSection

######### MONITORS #########

Section "Monitor"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
       #HorizSync 30-70
       #VertRefresh 50-160
EndSection

 #### TV SCREEN ####
Section "Monitor"
       Identifier      "TV-monitor"
       VendorName      "Sanyo"
       ModelName       "Television"
       Option       "ConnectedMonitor" "TV"
       HorizSync       30-50
       VertRefresh     60
  Option      "dpms"
EndSection 

######### Graphics cards ###########


Section "Device"
       ### Available Driver options are:-
       ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
       ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
       ### [arg]: arg optional
       #Option     "SWcursor"            # [<bool>]
       #Option     "HWcursor"            # [<bool>]
       #Option     "NoAccel"            	# [<bool>]
       #Option     "ShadowFB"            # [<bool>]
       #Option     "UseFBDev"            # [<bool>]
       #Option     "Rotate"              # [<str>]
       #Option     "VideoKey"            # <i>
       #Option     "FlatPanel"          	# [<bool>]
       #Option     "FPDither"            # [<bool>]
       #Option     "CrtcNumber"          # <i>
Identifier  "Videocard0"
Option "IgnoreDisplayDevices" "TV"
Driver      "nvidia"
Option       "NvAGP" "3"
VendorName  "nVidia Corporation"
BoardName   "GeForce FX 5200"
       VideoRam    128000
EndSection

 #### TV-OUT ####
Section "Device"
       Identifier      "TV-device"
       Driver          "nvidia"
       VendorName      "nVidia Corporation"
       BoardName       "GeForce FX 5200"
       VideoRam        128000
       Option          "NoLogo" "true"
       Option          "NvAGP" "3"
       Option          "RenderAccel" "On"
       Option          "AllowGLXWithComposite" "true"
       Screen          0
       Option          "TVStandard" "PAL-B"
   Option          "TVOutFormat" "COMPOSITE"   
   Option          "ConnectedMonitor" "TV"
EndSection 




########### Screens ###########

Section "Screen"
Identifier "Screen0"
Device     "Videocard0"
Monitor    "Monitor0"
       DefaultDepth 24 
SubSection "Display"
 Depth     24
              #Modes "1024x768"
               Modes "1280x1024"
               Viewport 0 0
EndSubSection
#	SubSection "Display"
#  Viewport   0 0
#  Depth     4
#	EndSubSection
#	SubSection "Display"
#  Viewport   0 0
#  Depth     8
#	EndSubSection
#	SubSection "Display"
#  Viewport   0 0
#  Depth     15
#	EndSubSection
#	SubSection "Display"
#  Viewport   0 0
#  Depth     16
#	EndSubSection
#	SubSection "Display"
#  Viewport   0 0
#  Depth     24
#	EndSubSection
EndSection

  #### TV SCREEN ####
Section "Screen"
      Identifier   "TV"
      Device      "TV-device"
      Monitor      "TV-monitor"
      DefaultDepth   24
      SubSection "Display"
               Depth      24
               Modes        "800x600"
      EndSubSection
EndSection 

Jeg satte opp en egen section for hver skjerm (crt og tc). Da kan du bl.a endre hz på skjermene hver for seg. Tv-ut funker fint, og det er for tiden extended desktop. Dersom du vil ha twinview tror jeg du må endre

 

Screen  	1 "screen2" RightOf "screen1"

 

til

 

Screen 1 "clone"

 

Dette må noen bekrefte, eller du må lese readme, er svært usikker. Du kan jo bare prøve deg frem, bare pass på å ta backup.

 

 

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands:
#
#   cp /etc/X11/xorg.conf /etc/X11/xorg.conf.custom
#   sudo sh -c 'md5sum /etc/X11/xorg.conf >/var/lib/xfree86/xorg.conf.md5sum'
#   sudo dpkg-reconfigure xserver-xorg

Section "Files"
FontPath	"unix/:7100"  	# local font server
# if the local font server has problems, we can fall back on these
FontPath	"/usr/lib/X11/fonts/misc"
FontPath	"/usr/lib/X11/fonts/cyrillic"
FontPath	"/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath	"/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath	"/usr/lib/X11/fonts/Type1"
FontPath	"/usr/lib/X11/fonts/CID"
FontPath	"/usr/lib/X11/fonts/100dpi"
FontPath	"/usr/lib/X11/fonts/75dpi"
       # paths to defoma fonts
FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection

Section "Module"
Load	"bitmap"
Load	"dbe"
Load	"ddc"
Load	"extmod"
Load	"freetype"
Load	"glx"
Load	"int10"
Load	"record"
Load	"type1"
Load	"vbe"
EndSection

Section "InputDevice"
Identifier	"Generic Keyboard"
Driver  "keyboard"
Option  "CoreKeyboard"
Option  "XkbRules"	"xorg"
Option  "XkbModel"	"pc105"
Option  "XkbLayout"	"no"
EndSection

Section "InputDevice"
Identifier	"Configured Mouse"
Driver  "mouse"
Option  "CorePointer"
Option  "Device"  "/dev/input/mice"
Option  "Protocol"  "ImPS/2"
Option  "Emulate3Buttons"	"true"
Option  "ZAxisMapping"  "4 5"
EndSection


Section "Device"
Identifier	"device1"
Driver  "nvidia"
BusID  "PCI:1:0:0"

Option  	"RenderAccel" "true"
Screen  	0
EndSection


Section "Device"
Identifier	"device2"
Driver  "nvidia"
BusID  "PCI:1:0:0"

Option  	"RenderAccel" "true"
Option  "TVOutFormat" "SVIDEO"
Option "ConnectedMonitor" "TV"
Option "TVStandard" "PAL-B"
Screen  1
EndSection

Section "Monitor"
Identifier	"Monitor1"
Option  "DPMS"
HorizSync	31-70
VertRefresh	50-99
EndSection

Section "Monitor"
Identifier	"Monitor2"
HorizSync	30-50
VertRefresh	60
EndSection


Section "Screen"
Identifier	"screen1"
Device  "device1"
Monitor  "monitor1"
DefaultDepth	24
SubSection "Display"
 Depth  1
 Modes  "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
 Depth  4
 Modes  "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
 Depth  8
 Modes  "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
 Depth  15
 Modes  "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
 Depth  16
 Modes  "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
 Depth  24
 Modes  "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
EndSection


Section "Screen"
Identifier	"screen2"
Device  "device2"
Monitor  "monitor2"
DefaultDepth  24
SubSection "Display"
 Depth  24
 Modes  "800x600" "640x480"
EndSubSection
EndSection



Section "ServerLayout"
Identifier	"Layout"
InputDevice	"Generic Keyboard"
InputDevice	"Configured Mouse"
Screen  	0 "screen1"
Screen  	1 "screen2" RightOf "screen1"
EndSection

Section "DRI"
Mode	0666
EndSection

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
×
×
  • Opprett ny...