Go Back   DaemonForums > OpenBSD > OpenBSD General

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

Thread Tools Display Modes
  #1   (View Single Post)  
Old 13th October 2010
bruguiea bruguiea is offline
New User
Join Date: Apr 2010
Posts: 8
Default vesafb driver with machdep.allowaperture=0


I am currently running Xorg on OpenBSD 4.7. It works fine, and it's fast enough.

I would like to get rid of the dependency on aperture. It seems that it's been possible for some time:


I tried several things:
1) I leave my xorg.conf unchanged, and set the variable machdep.allowaperture to 0. However, after reboot, X11 complains, so I suspect the current driver ("vesa" in xorg.conf) does need aperture

2) I left the variable machdep.allowaperture unchanged (at 2), and tried the driver "vesafb" but it doesn't work with the message: "module does not exist"

3) After a "man Xorg" it seems that there's a module called "wsfb" (which is also talked about in the link above). Still leaving machdep.allowaperture to 2, I changed the driver, but the message is still "module does not exist".

What am I doing wrong here?

Reply With Quote
  #2   (View Single Post)  
Old 13th October 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
Join Date: May 2008
Location: USA
Posts: 6,423

You are dependent upon the aperature being open. There is no frame buffer.

OpenBSD's implementation and packaging of Xorg is called Xenocara. You are looking in the archives at a patch for an older Xorg implementation, XF4.

See the post-installation instructions in /usr/X11R6/README, where the documentation uses the words "must have" to describe the aperture setting.

For more on Xenocara, see its source tree.

Last edited by jggimi; 13th October 2010 at 11:02 PM.
Reply With Quote
  #3   (View Single Post)  
Old 19th October 2010
bruguiea bruguiea is offline
New User
Join Date: Apr 2010
Posts: 8

Thanks and sorry about looking at outdated documentation.

So what is the most secure way to enable X on OpenBSD? Is it the default way?

I don't really care about speed.
Reply With Quote
  #4   (View Single Post)  
Old 19th October 2010
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
Join Date: Jun 2010
Posts: 429

Originally Posted by bruguiea View Post
So what is the most secure way to enable X on OpenBSD?
If you're against machdep.allowaperture, you need something other than i386, amd64, alpha, cats, macppc, and sparc64.

(A bit dated, but still an excellent read, direct from Theo himself):

Last edited by rocket357; 19th October 2010 at 07:57 PM.
Reply With Quote
  #5   (View Single Post)  
Old 19th October 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223

Unfortunately, avoiding this aperture is difficult.. but once it's opened by a running X server no other process has direct access.

In the future when KMS is available for more vendors/chipsets, I believe the X aperture will no longer be required.. only drm(4).

If you're using a workstation, you can have xdm(1) run at boot to securely open the aperture device.. non-root users have no directly permissions to read/write to it either, if a user had root they could do more harm using a plethora of other methods.

For non-vesa, it's sometimes possible to set machdep.allowaperture to 1 instead of 2, this does work for some drivers/chipsets but not all, please read xf86(4) to appreciate complexity of the problem.

You have no choice other than to not use X.
Reply With Quote

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
Which mouse driver Mr-Biscuit NetBSD General 0 9th June 2010 12:43 AM
msk(4) Driver indienick FreeBSD General 4 4th May 2009 04:51 PM
FreeBSD 7.0 and the nfe driver map7 FreeBSD General 2 17th October 2008 04:44 AM
X Radeon driver sum FreeBSD Installation and Upgrading 5 28th September 2008 03:49 PM
Driver development WeakSauceIII OpenBSD General 5 31st May 2008 07:18 AM

All times are GMT. The time now is 09:02 AM.

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