DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 15th September 2011
kasumi kasumi is offline
New User
 
Join Date: Mar 2011
Posts: 8
Default ATI Driver + Dual Monitor?

Hello.

I freshly installed OpenBSD 4.9 i386 on my Pentium4-machine. The things I miss are, as already said, dual head support and the ATI drivers.

Code:
$ uname -a
OpenBSD deneb.my.domain 4.9 GENERIC.MP#794 i386
$
How do I get ATI drivers? Is the source available somewhere which makes it possible to compile it myself? Can I use my two 19" monitors without the drivers? Currently, both show the same picture, using a ATI HD3650.

Please help, I couldn't find anything.

Thanks in advance.
Reply With Quote
  #2   (View Single Post)  
Old 15th September 2011
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 429
Default

My setup. Works like a charm with two Dell 22" LCD's. (Edit - Note: this is running OpenBSD-CURRENT. There has been a lot of work going into radeon lately, so I'm not sure if 4.9 has everything you need for this to work).

Code:
$ dmesg | grep ATI
vga1 at pci1 dev 0 function 0 "ATI Radeon HD 3450" rev 0x00
Code:
Section "Device"
        Identifier  "Card0"
        Driver      "radeonhd"
        BusID       "PCI:1:0:0"
        Option     "LVDSProbePLL"    "true"
        Option     "monitor-DVI-0" "Monitor0"
        Option     "monitor-DVI-1" "Monitor1"
        Option     "Int10"    "true"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        DefaultDepth 24
        SubSection "Display"
                Depth 24
                Modes "1680x1050"
                Virtual 3840 3840
        EndSubSection
EndSection
Code:
$ cat .xinitrc
xrandr --output DVI-I_1/digital --right-of DVI-I_2/digital
__________________
Linux/Network-Security Engineer by Profession. OpenBSD user by choice.
Reply With Quote
  #3   (View Single Post)  
Old 15th September 2011
kasumi kasumi is offline
New User
 
Join Date: Mar 2011
Posts: 8
Default

Thank you very much. I haven't done anything (except for fetching ports and installing gimp, feh and wget) important so far, I actually don't have any Xorg.conf.

Code:
# dmesg | grep ATI                                                             
vga1 at pci1 dev 0 function 0 "ATI Radeon HD 3650" rev 0x00
azalia0 at pci1 dev 0 function 1 "ATI Radeon HD 3600 HD Audio" rev 0x00: apic 2 int 17 (irq 3)
#
This output pretty looks the same like yours. Is it possible, that open source drivers are already included?

Code:
# pwd
/etc/X11
# ls -a
.            app-defaults twm          xinit        xsm
..           fs           xdm          xkb
#
And here's my home directory:

Code:
$ pwd
/home/kasumi
$ ls -a
.                                       .mailrc
..                                      .profile
.Xauthority-n                           .ssh
.Xdefaults                              .xsession-errors
.cshrc                                  openbsd_by_nicolasvergoz-d3b9hrr.jpg
.login
$
I used wget for downloading this .jpg file, which is going to be my wallpaper.

How do I generate an xorg.conf file?
How do I have to configure it in order to use both screens?

Thanks again.
Reply With Quote
  #4   (View Single Post)  
Old 15th September 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

FAQ 11 is all about the X Windows system on OpenBSD; you should probably take the time to read through it.

You can create an xorg.conf with # X -configure -- See FAQ 11.3 on the recommended process.
Reply With Quote
  #5   (View Single Post)  
Old 15th September 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by kasumi View Post
How do I get ATI drivers? Is the source available somewhere which makes it possible to compile it myself?
Clearing up a few misconceptions:
  • The OpenBSD project does not allow third-party drivers to be integrated into its system. To ensure both security & stability concerns, the developers have to see the code & be able to correct it as needed. Drivers from other operating systems such as Windows or Linux drivers thus cannot be directly integrated into OpenBSD.
  • Source for all available OpenBSD drivers can be found in the project's CVS repository. Information on building can be found in Section 5 of the project's FAQ. "xenocara" is the name of OpenBSD's flavor of X11.
As other responders have already pointed out, generating & tweaking xorg.conf is the first thing you should pursue.
Reply With Quote
  #6   (View Single Post)  
Old 15th September 2011
kasumi kasumi is offline
New User
 
Join Date: Mar 2011
Posts: 8
Default

That's the information I've expected. So I'll read it.

And, I like to read it. I want to Use OpenBSD, not Ubuntu.
Reply With Quote
  #7   (View Single Post)  
Old 15th September 2011
kasumi kasumi is offline
New User
 
Join Date: Mar 2011
Posts: 8
Default

Here I am again. I read the whole Guide now, and it seems that I have to enable the driver.

Code:
# X -configure 

X.Org X Server 1.9.3
Release Date: 2010-12-13
X Protocol Version 11, Revision 0
Build Operating System: OpenBSD 4.9 i386 
Current Operating System: OpenBSD deneb.my.domain 4.9 GENERIC.MP#794 i386
Build Date: 01 March 2011  10:38:27AM
 
Current version of pixman: 0.20.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Sep 15 21:40:51 2011
List of video drivers:
        apm
        ark
        ati
        chips
        cirrus
        dummy
        geode
        glint
        i128
        i740
        intel
        mach64
        mga
        neomagic
        nv
        openchrome
        r128
        radeon
        radeonhd
        rendition
        s3
        s3virge
        savage
        siliconmotion
        sis
        tdfx
        trident
        tseng
        wsudl
        vmware
        vmwlegacy
        voodoo
        vesa
X:/usr/X11R6/lib/modules/drivers/radeonhd_drv.so: /usr/X11R6/lib/modules/drivers/radeon_drv.so : WARNING: symbol(AtomBiosRequestList) size mismatch, relink your program
(EE) Failed to load module "vmwgfx" (module does not exist, 0)
(EE) vmware: Please ignore the above warnings about not being able to to load module/driver vmwgfx
(++) Using config file: "/root/xorg.conf.new"


Xorg detected your mouse at device /dev/wsmouse.
Please check your config if the mouse is still not
operational, as by default Xorg tries to autodetect
the protocol.

Your xorg.conf file is /root/xorg.conf.new

To test the server, run 'X -config /root/xorg.conf.new'

#
This is what "X -configure" gave me. The module vmwgfx does not exist so .. where do I get it? How can I install and use it?

EDIT: When testing X, I've the same results, just like before.

Last edited by ocicat; 15th September 2011 at 07:51 PM. Reason: Please use [code] & [/code] tags when posting command output.
Reply With Quote
  #8   (View Single Post)  
Old 15th September 2011
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Default

Ignore the error about vmwgfx. You don't need it. Once you have generated an xorg.conf file with 'Xorg -configure' you still have to modify it to enable both monitors. I suggest taking a look at:

http://www.thinkwiki.org/wiki/Xorg_RandR_1.2
http://wiki.debian.org/XStrikeForce/HowToRandR12

Basically, you'll edit your xorg.conf file to have two monitor sections, give them the identifiers that 'xrandr' uses, and set one of them to be to the left or right of the other.

Something like so:

Code:
Section "Monitor"
	Identifier   "DVI-0"
EndSection

Section "Monitor"
	Identifier   "DVI-1"	
	Option "RightOf" "DVI-0"
EndSection
Your Identifiers may be different, depending on the driver you are using (radeon vs. radeonhd) and the types of monitors involved.
Reply With Quote
  #9   (View Single Post)  
Old 15th September 2011
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Default

Oh, and for further reference, here is my xorg.conf that I use to drive 1600x900 and 1680x1050 monitors with the 'radeon' driver:

Code:
Section "Monitor"
        Identifier "DVI-0"      
        Option "RightOf" "DVI-1"        
        Option "PreferredMode" "1680x1050"
EndSection

Section "Monitor"
        Identifier "DVI-1"
EndSection

Section "Screen"
        Identifier "Radeon"
        SubSection "Display"
                Viewport   0 0
                Depth     24    
                Virtual 3600 3600
        EndSubSection
EndSection
If I don't use the PreferredMode option, the DVI-0 defaults to 1440x900 for some reason.

Adam
Reply With Quote
Old 30th September 2011
kasumi kasumi is offline
New User
 
Join Date: Mar 2011
Posts: 8
Default

Hey, it's me again. I'm still using OpenBSD; but replaced the two monitors by one FullHD-screen with 1920x1080.

Thank you very much for help so far, but I still don't get how to use the radeon drivers. And, what's the difference between radeon and radeonhd? Are there any included by default? Which one is the easier to configure and use?
Reply With Quote
Old 30th September 2011
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Default

I'm not sure what you mean by not knowing how to use the radeon drivers. If you're using a single monitor, there's not much to know. Are you having a specific problem now?

The radeon driver will be used by default. It's also the only driver you should really use. radeonhd is no longer developed or supported by anyone.
Reply With Quote
Old 1st October 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

The key difference between the drivers is the underlying video bus architecture. The man pages provide details.
Reply With Quote
Old 1st October 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

As adamk said, the radeonhd driver is no longer developed.. but OpenBSD contains both an older radeon driver along with radeonhd, at one point the radeonhd driver supported newer GPU chipsets but that is no longer the case.

There are some problems preventing the upgrade of the radeon driver in OpenBSD, so both drivers are kept.. but eventually when the radeon driver gets updated, I suspect the radeonhd driver will be removed.
Reply With Quote
Old 1st October 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Heh. Tha abandonment is not noted in the source code (other than no updates in a couple of years), nor in the man page, but it is noted ... sort of ... on the official X.Org radeonhd wiki. Sorry I missed it.
Quote:
Status 09/2010: Linux distributions, including Novell's openSUSE, have now abandoned radeonhd as the default driver, instead using the radeon driver. radeon has more features, including Kernel Mode-Setting support and more 3D support, and it supports all Radeon generation from original R100 Radeons to R800 Radeons (HD 5000 series). Radeonhd can be continued to be updated as long as there are people find it useful.
Reply With Quote
Old 1st October 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

There was a commit by one of the radeonhd developers that was made months after any activity which was humourous.

TerryP posted it here for me, I figured it was common knowledge now that Novell's radeonhd driver was deprecated.. articles at phoronix and mailing lists have indicated so for quite some time.

It started out as a cooperation between Novell and AMD to add support for the R500 series GPU's which were quite different. AMD also released NDA-free GPU documentation and information about AtomBIOS to the public which allowed the radeon developers to add support to their driver.

http://developer.amd.com/documentati....aspx#open_gpu
http://www.x.org/docs/AMD/

The radeonhd driver became pointless. AMD now has paid developers working on the radeon driver, and nobody has committed to the radeonhd driver since 2010.
Reply With Quote
Old 1st October 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

It may be common knowledge, but I have a middle aged memory.
Reply With Quote
Old 1st October 2011
adamk adamk is offline
Spam Deminer
 
Join Date: May 2008
Posts: 250
Default

At the time that radeonhd development was stopped, the only thing that driver supported, which radeon was missing, was HDMI audio support. radeon does now support that, but only via KMS. As a result, if you have an HD4xxx or HD5xxx GPU on FreeBSD/OpenBSD, radeonhd is the only way to get audio from the sound card. That's the only time I would recommend radeonhd over radeon any more.

Adam
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VMT driver (VMware Tools driver) on OpenBSD 4.8 xinform3n OpenBSD General 7 9th December 2010 10:48 PM
dual monitor ATI issues whomever OpenBSD General 16 27th August 2010 07:43 PM
Syslog-ng Monitor plexter OpenBSD Packages and Ports 8 5th February 2010 09:38 PM
gdm/ new monitor issue jimbus FreeBSD General 3 4th August 2009 07:39 PM
What is best way to monitor for bad sectors? PeterSteele FreeBSD General 9 16th August 2008 02:41 AM


All times are GMT. The time now is 12:01 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick