Date: Thu, 30 Jun 2011 10:53:47 -0400 (EDT) From: sizemj@lavabit.com To: freebsd-questions@freebsd.org Subject: Re: Attempting to get an X11 server running Message-ID: <36900.205.152.158.201.1309445627.squirrel@lavabit.com> In-Reply-To: <alpine.BSF.2.00.1106300706350.33308@wonkity.com> References: <20110630001249.219420@gmx.com> <alpine.BSF.2.00.1106300706350.33308@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is what I use in my xorg.conf see below Notice the mode line for resolution, and HorizSync 30-107 VertRefresh 48-120 Also in my /etc/rc.conf I put these lines hald_enable="YES" dbus_enable="YES" This sets up X for me every time and works great. Section "ServerLayout" Identifier "X.org Configured" Screen 0 "Screen0" 0 0 InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "Files" ModulePath "/usr/lib/xorg/modules" FontPath "/usr/share/fonts/local" FontPath "/usr/share/fonts/TTF" FontPath "/usr/share/fonts/OTF" FontPath "/usr/share/fonts/Type1" FontPath "/usr/share/fonts/misc" FontPath "/usr/share/fonts/CID" FontPath "/usr/share/fonts/75dpi/:unscaled" FontPath "/usr/share/fonts/100dpi/:unscaled" FontPath "/usr/share/fonts/75dpi" FontPath "/usr/share/fonts/100dpi" FontPath "/usr/share/fonts/cyrillic" EndSection Section "Module" Load "extmod" Load "dri2" Load "glx" Load "dbe" Load "dri" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "kbd" EndSection Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/input/mice" Option "ZAxisMapping" "4 5 6 7" EndSection Section "Monitor" Identifier "Monitor0" VendorName "Monitor Vendor" ModelName "Monitor Model" HorizSync 30-107 VertRefresh 48-120 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 "ShadowFB" # [<bool>] #Option "DefaultRefresh" # [<bool>] #Option "ModeSetClearScreen" # [<bool>] Identifier "Card0" Driver "vesa" VendorName "Unknown Vendor" BoardName "Unknown Board" BusID "PCI:0:2:0" EndSection Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 1 Modes "1280x1024" "1152x864" "1024x768" EndSubSection SubSection "Display" Depth 4 Modes "1280x1024" "1152x864" "1024x768" EndSubSection SubSection "Display" Depth 8 Modes "1280x1024" "1152x864" "1024x768" EndSubSection SubSection "Display" Depth 15 Modes "1280x1024" "1152x864" "1024x768" EndSubSection SubSection "Display" Depth 16 Modes "1280x1024" "1152x864" "1024x768" EndSubSection SubSection "Display" Viewport 0 0 Depth 24 Modes "1280x1024" "1152x864" "1024x768" EndSubSection EndSection > On Thu, 30 Jun 2011, Dieter BSD wrote: > >> google found >> http://www.daemonforums.org/showthread.php?p=27601 >> which suggests using moused instead of hald. moused runs, >> but I think I have to get Xorg to use a config file to set >> Option "AllowEmptyInput" "off" >> Option "AutoAddDevices" "off" >> so that it will work without hald. > > That is incorrect. Don't set AllowEmptyInput, just turn off > AutoAddDevices. > http://www.wonkity.com/~wblock/docs/html/aei.html > >> Question 1: why does "Xorg -configure" create a config file >> that doesn't work the same way as just running "Xorg" ? > > The defaults assumed when run are different from those in the generated > config file. I don't know why. > >> Question 2: how do I get a usable config file? > > Look for examples on the net. Realize that most of xorg.conf is > optional now, and you can leave out sections where the defaults are > correct. > >> Question 3: how do I get complete modeline info for what >> it is currently running? > > Please don't mess with modelines, it should not be needed any more. > Just set the resolutions desired in the Screen/Display section. If > modelines are really required, get them out of /var/log/Xorg.0.log. But > they almost certainly are not. > >> Question 5: how do I get hald to work? > > It's not used if you turn off AutoAddDevices or build the xorg-server > port with the HAL option disabled. > > ____________________________________________________________________________________ > Learn more about Free hosting web here! > http://click.lavabit.com/bb55ie6fuepogc991stquo4wimf15odaskf4w43gft7r9en3g5rb/ > ____________________________________________________________________________________ > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36900.205.152.158.201.1309445627.squirrel>