LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
Search this Thread
Old 05-27-2007, 08:05 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,385

Rep: Reputation: 52
X window problem


Hi folks,


OpenBSD 4.1 i386
Vedio card - Maxi Gamer Voodoo Banshee, 16MB memory
LCD display - NEC MultiSync LCD1560NX


Just installed OBSD 4.1 on a old P-II box. OBSD starts w/o problem but the LCD monitor can't display correctly (w/o /etc/X11/xorg.conf).

Ran "xorgconf" to create /etc/X11/xorg.conf. X server fails to start.

driver - vga


Please advise how to fix the problem. TIA


B.R.
satimis
 
Old 05-27-2007, 08:44 AM   #2
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543
Sounds like the 'configurator' that created the xorg.conf file for you, didn't do a very good job.
Likely you need to do some manual editing of the file to set it up properly for the monitor, video card, driver, screen resolution, etc..
 
Old 05-27-2007, 11:43 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,385

Original Poster
Rep: Reputation: 52
Quote:
Originally Posted by GrapefruiTgirl
Sounds like the 'configurator' that created the xorg.conf file for you, didn't do a very good job.
Likely you need to do some manual editing of the file to set it up properly for the monitor, video card, driver, screen resolution, etc..
Hi GrapefruiTgirl,


I found it needs "vesa" driver NOT "vga" driver. Now X Window starts with correct resolution but the mouse pointer jumps around on screen beyond my control.


# cat /etc/X11/xorg.conf
Code:
Section "Module"

# This loads the DBE extension module.

    Load        "dbe"   # Double buffer extension

    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"

EndSection


Section "Files"

    RgbPath     "/usr/X11R6/lib/X11/rgb"

    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"

#    Option     "Protocol"      "Xqueue"

    Option "AutoRepeat" "500 30"


    Option "XkbRules"   "xorg"
    Option "XkbModel"   "pc101"
    Option "XkbLayout"  "us"

EndSection


Section "InputDevice"

# Identifier and driver

    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "IMPS/2"       # IntelliMouse PS/2
    Option "Device"      "/dev/wsmouse"
    Option "ZAxisMapping"   "4 5"

EndSection


Section "Monitor"

    Identifier  "My Monitor"

     HorizSync   31.5 - 60

     VertRefresh 56.2 - 75.1

EndSection

#
**********************************************************************
# Graphics device section
#
**********************************************************************

# Standard VGA Device:

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"

    Driver     "seva"

EndSection

# Device configured by xorgconfig:

Section "Device"
    Identifier  "My Video Card"
    Driver      "seva"
    # unsupported card
    VideoRam    16384
EndSection


Section "Screen"
    Identifier  "Screen 1"
    Device      "My Video Card"
    Monitor     "My Monitor"
    DefaultDepth 24

    Subsection "Display"
        Depth       16
        Modes       "1024x768"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1024x768"
        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

Any advice? TIA


B.R.
satimis
 
Old 05-27-2007, 11:56 AM   #4
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543
check the spelling there, of VESA.. then try it!

Also, why is it using the '/dev/wsmouse' ? What is that? Perhaps '/dev/mouse' or 'dev/psaux' might work better, dependinf if/what 'wsmouse' is.

Last edited by GrapefruiTgirl; 05-27-2007 at 12:03 PM.
 
Old 05-27-2007, 12:25 PM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,385

Original Poster
Rep: Reputation: 52
Quote:
Originally Posted by GrapefruiTgirl
check the spelling there, of VESA.. then try it!
Sorry for my typing mistake on posting. It should read "vesa".

Quote:
Also, why is it using the '/dev/wsmouse' ? What is that? Perhaps '/dev/mouse' or 'dev/psaux' might work better, dependinf if/what 'wsmouse' is.
/dev/wsmouse was generated automatically on running "xorgconf"

/dev/psaux can't work. X window failed to start
Code:
(EE) xf86OpenSerial: Cannot open device /dev/psaux
     Operation not permitted.
(EE) Mouse1: cannot open input device
(EE) PreInit failed for input device "Mouse1"
No core pointer

Fatal server error:
failed to initialize core devices
......
B.R.
satimis
 
Old 05-27-2007, 12:36 PM   #6
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543
OK, has the mouse EVER worked? If so, have you got another OS on this machine, or maybe a LiveCD you can run, wherein the mouse works properly? (I understand if you can't due to memory constraints or something). What type of mouse is it exactly -- make & model ?
 
Old 05-27-2007, 12:44 PM   #7
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,385

Original Poster
Rep: Reputation: 52
Quote:
Originally Posted by GrapefruiTgirl
OK, has the mouse EVER worked? If so, have you got another OS on this machine, or maybe a LiveCD you can run, wherein the mouse works properly? (I understand if you can't due to memory constraints or something). What type of mouse is it exactly -- make & model ?
The mouse has no problem. If removing xorg.conf to start X, the mouse works seamlessly. Scrolling also works.


satimis
 
Old 05-27-2007, 12:52 PM   #8
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543
OK, well I don't know what driver the machine would use when there is no xorg.conf file, but apparently, the mouse likes whatever it is! If you can perhaps determine what is the 'default' mouse driver it would probably work in place of the "IMPS/2" driver. One of the defaults if I am not mistaken, is driver "mouse" which will maybe work for you. Maybe even commenting out the mouse Driver line would do the job.
 
Old 05-27-2007, 01:21 PM   #9
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
GrapefruiTgirl... /dev/wsmouse is the correct device for OpenBSD. Although the protocol should also be wsmouse. The BSDs are not linux.

If he wants to go completely direct to the hardware device (and have a non-working mouse at the console) he should be looking at dmesg to determine what device the physical mouse is on... and put that device in there.

Satimis, if you post your dmesg output, I will try and help you with the correct device. But why did you change the default from "wsmouse" for the protocol?
 
Old 05-27-2007, 01:33 PM   #10
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543
Thank you for that information, frob23
I realize the BDS's aren't Linux, but also am not sure where the line blurs. I have Open BSD here and look forward to trying it out one of these days, if I can pry myself away from Slackware

Thanks again.
And continuing good luck, satimis!
 
Old 05-27-2007, 09:10 PM   #11
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,385

Original Poster
Rep: Reputation: 52
Solved

Hi frob23,


Tks for your advice.

Quote:
Satimis, if you post your dmesg output, I will try and help you with the correct device. But why did you change the default from "wsmouse" for the protocol?
I did not change it. It was automatically generated on running "xorgconfig".


Problem solved. I'm now posting on this old P-II box.

Code:
Identifier and driver

     Identifier  "Mouse1"
     Driver      "mouse"
     Option "Protocol"    "IMPS/2"       # IntelliMouse PS/2
		           ^^^^^^^
The trick is here. After changing it as "wsmouse", mouse pointer stops jumping around on the screen. Mouse scrolling also works.


BTW
Where shall I look at on "dmesg"?


Which line on xorg.conf in OBSD controls mouse scrolling?


What command shall I run on console to display current screen resolution? Tks


B.R.
satimis
 
Old 05-27-2007, 09:38 PM   #12
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
You won't need to look at dmesg if you got the problem solved.

If mouse scrolling works and the mouse is not jumping around, you are fine. I don't need any other information. Those were your only problems right?

Quote:
Which line on xorg.conf in OBSD controls mouse scrolling?
Code:
    Option "ZAxisMapping"   "4 5"
Quote:
What command shall I run on console to display current screen resolution? Tks
xrandr

The one with the "*" on it is the current one.
 
Old 05-27-2007, 09:42 PM   #13
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
Quote:
Originally Posted by GrapefruiTgirl
Thank you for that information, frob23
I realize the BDS's aren't Linux, but also am not sure where the line blurs.
Well, most /dev files that directly related to hardware can be expected to be different across different Unix and Unix-like systems. Hard drives, network cards, io devices, etc.

Of course, lots of other things vary... also.
 
Old 05-27-2007, 10:17 PM   #14
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,385

Original Poster
Rep: Reputation: 52
Hi frob23

Quote:
xrandr

The one with the "*" on it is the current one.
I got it. Tks.

# xrandr
Code:
 SZ:    Pixels          Physical       Refresh
*0   1024 x 768    ( 302mm x 232mm )  *76  
 1    800 x 600    ( 302mm x 232mm )   73  
 2    640 x 480    ( 302mm x 232mm )   73  
Current rotation - normal
Current reflection - none
Rotations possible - normal 
Reflections possible - none
Just read "man xrandr"
Code:
xrandr  - primitive command line interface to RandR 
extension
....
RandR is new to me.


Others noted with tks.


B.R.
satimis
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
another X window problem xiekke Red Hat 0 02-10-2006 05:31 PM
Problem in x-window MSafty Suse/Novell 1 11-09-2005 12:49 AM
X Window Problem estman Linux - Software 2 09-26-2004 08:06 AM
x window problem midnightrider Debian 4 12-29-2003 11:19 PM
x window problem webboss Linux - General 1 02-11-2003 06:54 AM


All times are GMT -5. The time now is 12:30 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration