*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The problem is this -
I installed OpenBSD 4.0 on my machine
all runs fine except when i start xorg, all the tty's show (rubbish when change ciinsole while x runs and when i shut x down they are black
the cursor shows in the second case and they react normally in both
my graphic card is Nvidia GEforce 5200 i am using the nv driver
also what i have noticed while trying the configurations is that the vesa driver does not work at all (probably unrelated and not a problem, but might help)
on Internet i did not found anything helpful except one had similar problem on netbsd byt the post was from 2002, but i found not much of use there.
Hope somebody will be able to help
First off, I must say I LOVE your signature! That is extremely funny about 'Window$ -n.'
Now... I don't use *BSD and know next to nothing about it, but I do use an nVidia GeForce card. It would be very helpful if you would post your xorg.conf file.
The VESA driver doesn't work very well, you're right. But by the sounds of things, it sounds like your frame-buffer device is misconfigured or video memory is getting corrupted/overwritten. I had a VERY similar effect as you describe when I was using a wrong depth and resolution to the console framebuffer. When I exited Xorg, all the text that was supposed to be on the screen was exploded all over the screen in different colors, and totally unreadable, and I couldn't see what I was typing.
One thing I definitely recommend is that you download and install the BSD nVidia driver from www.nvidia.com for your card. Also, what is the onboard video device on your computer?
After that, post your xorg.conf, as well as the output from the command 'lspci' (I presume BSD uses the same commands/syntax as Linux; please correct me if I'm wrong)
Section "Module"
Load "dbe" # Double buffer extension
# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
# This loads the font modules
Load "type1"
# Load "speedo"
Load "freetype"
# Load "xtt"
# This loads the GLX module
# Load "glx"
# This loads the DRI module
# Load "dri"
EndSection
# **********************************************************************
# Files section. This allows default font and rgb paths to be set
# **********************************************************************
Section "Files"
# The location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.
RgbPath "/usr/X11R6/lib/X11/rgb"
# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)
#
#
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/local/"
# FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
# FontPath "/usr/X11R6/lib/X11/fonts/TrueType/"
# FontPath "/usr/X11R6/lib/X11/fonts/freefont/"
# The module search path. The default path is shown here.
# ModulePath "/usr/X11R6/lib/modules"
EndSection
Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
# For most OSs the protocol can be omitted (it defaults to "Standard").
# When using XQUEUE (only for SVR3 and SVR4, but not Solaris),
# uncomment the following line.
# Option "Protocol" "Xqueue"
Option "AutoRepeat" "500 30"
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"
# Option "LeftAlt" "Meta"
# Option "RightAlt" "ModeShift"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc105"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# These are the default XKB settings for Xorg
# Option "XkbRules" "xorg"
# Option "XkbModel" "pc105"
# Option "XkbLayout" "us"
# Option "XkbVariant" ""
# Option "XkbOptions" ""
# Option "XkbDisable"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
# Identifier and driver
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "wsmouse" # wsmouse protocol
Option "Device" "/dev/wsmouse"
# When using XQUEUE, comment out the above two lines, and uncomment
# the following line.
# Option "Protocol" "Xqueue"
# Mouse-speed setting for PS/2 mouse.
# Option "Resolution" "256"
# Baudrate and SampleRate are only for some Logitech mice. In
# almost every case these lines should be omitted.
# Option "BaudRate" "9600"
# Option "SampleRate" "150"
# Mouse wheel mapping. Default is to map vertical wheel to buttons 4 & 5,
# horizontal wheel to buttons 6 & 7. Change if your mouse has more than
# 3 buttons and you need to map the wheel to different button ids to avoid
# conflicts.
Option "ZAxisMapping" "4 5 6 7"
# Emulate3Buttons is an option for 2-button mice
# Emulate3Timeout is the timeout in milliseconds (default is 50ms)
Option "Emulate3Buttons"
# Option "Emulate3Timeout" "50"
# ChordMiddle is an option for some 3-button Logitech mice
# Option "ChordMiddle"
# ZaxisMapping is an option for handling the wheel
# Option "ZAxisMapping" "4 5"
EndSection
Section "Monitor"
Identifier "My Monitor"
# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.
HorizSync 31.5 - 79.0
# HorizSync 30-64 # multisync
# HorizSync 31.5, 35.2 # multiple fixed sync frequencies
# HorizSync 15-25, 30-50 # multiple ranges of sync frequencies
# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.
VertRefresh 50-100
EndSection
Section "Device"
Identifier "Standard VGA"
VendorName "Unknown"
BoardName "Unknown"
# The chipset line is optional in most cases. It can be used to override
# the driver's chipset detection, and should not normally be specified.
# Chipset "generic"
# The Driver line must be present. When using run-time loadable driver
# modules, this line instructs the server to load the specified driver
# module. Even when not using loadable driver modules, this line
# indicates which driver should interpret the information in this section.
Driver "vga"
# The BusID line is used to specify which of possibly multiple devices
# this section is intended for. When this line isn't present, a device
# section can only match up with the primary video device. For PCI
# devices a line like the following could be used. This line should not
# normally be included unless there is more than one video device
# intalled.
# BusID "PCI:0:10:0"
# VideoRam 256
# Clocks 25.2 28.3
EndSection
# Device configured by xorgconfig:
Section "Device"
Identifier "** NVIDIA (generic) [nv]"
Driver "nv"
#VideoRam 131072
# Insert Clocks lines here if appropriate
EndSection
Section "Screen"
Identifier "Screen 1"
Device "** NVIDIA (generic) [nv]"
Monitor "My Monitor"
DefaultDepth 24
Subsection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
EndSection
Section "ServerLayout"
# The Identifier line must be present
Identifier "Simple Layout"
# Each Screen line specifies a Screen section name, and optionally
# the relative position of other screens. The four names after
# primary screen name are the screens to the top, bottom, left and right
# of the primary screen. In this example, screen 2 is located to the
# right of screen 1.
Screen "Screen 1"
# Each InputDevice line specifies an InputDevice section name and
# optionally some options to specify the way the device is to be
# used. Those options include "CorePointer", "CoreKeyboard" and
# "SendCoreEvents".
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection
# Section "DRI"
# Mode 0666
# EndSection
OK, that 'lspci' function gives less than desireable results. I don't specifically see the nVidia card in there, but it's extremely likely that it is the device at PCI:2:0:0. so in the device section for the nvidia card, add the line BusID "PCI:2:0:0"
There is probably no need to use your onboard device, but if you choose to load a driver for it, then you ought to figure out which of the remaining PCI locations refers to the onboard device location.
If you have a command similar to 'lshw' that may tell you; but it is NOT PCI:0:10:0 is it says in the commented out BusID line.
Or, try just commenting out the lines for the 'default vga' device.
Try that but remember, I haven't yet used *BSD at all, so if I am mistaken somewhere, like for example about needing to use the onboard device for something or not, please do correct me.
Best wishes.
OK, that 'lspci' function gives less than desireable results. I don't specifically see the nVidia card in there, but it's extremely likely that it is the device at PCI:2:0:0. so in the device section for the nvidia card, add the line BusID "PCI:2:0:0"
There is probably no need to use your onboard device, but if you choose to load a driver for it, then you ought to figure out which of the remaining PCI locations refers to the onboard device location.
If you have a command similar to 'lshw' that may tell you; but it is NOT PCI:0:10:0 is it says in the commented out BusID line.
Or, try just commenting out the lines for the 'default vga' device.
Try that but remember, I haven't yet used *BSD at all, so if I am mistaken somewhere, like for example about needing to use the onboard device for something or not, please do correct me.
Best wishes.
You are - AFAIK (so far the manual tells, there is no onboard device on this one) i got no onboard video card.
OK.... So what have you tried so far? Have you added the BusID line for PCI:2:0:0 ?
And perhaps removed the line with the vga driver?
Any other changes you have tried?
I tried the BusID but did not make any change
I am new with this also - i try it for to see which system will be better for future as i plan to buy an used sun blade 1000/2000 from ebay and slackware which i used before (and like best) has no sparc port
it is no hurrying matter (1/2 year at best)- the (re)install was forced because slackpkg made a disaster with update - too work extensive to fix it was
looks like i will see something else - other thing i have time as this is not of the errors that are too bad
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.