Hi...

I'm rather stubborn and I've installed o'bsd with an only slice.

It remembers me when I took the decision of removing the windows
partition and only use linux... it has shown to really pay off. i've
learnt a lot. Now it's the turn for o'bsd

I have followed your advice, woodchuck and it compiles fine but it
doesn't want to run.

Logging as su and without X running I get

1280pgm 30 1280 768
Unable to open /dev/mem: Operation not permitted

This sounds like a security thing, maybe the securelevel

In any case, 915resolution is not working either:

Running it as root and without X:

------------------------------------------------------------------------
# 915resolution -l
Intel 800/900 Series VBIOS Hack : version 0.5.2

Unable to open the BIOS file: Operation not permitted
------------------------------------------------------------------------

I know that it must be added to /etc/rc.securelevel

----------------------------------------------------------------------------------------
$ cat /etc/rc.securelevel
#       $OpenBSD: rc.securelevel,v 1.16 2004/07/06 04:05:03 deraadt Exp $
#
# site-specific startup actions, daemons, and other things which
# can be done BEFORE your system goes into securemode.  For actions
# which should be done AFTER your system has gone into securemode
# please see /etc/rc.local

# This is the desired security level
# XXX
# XXX it is not really acceptable to put this value in a configuration
# XXX file, because locking it down requires immutability on about
# XXX 5 files instead of 2 (the kernel and init)
# XXX

securelevel=1

echo -n 'starting pre-securelevel daemons:'

#
# Place local actions here.
#
# 915resolution

if [ -x /usr/local/sbin/915resolution ]; then
       echo -n ' 915resolution'
       /usr/local/sbin/915resolution 3d 1920 1440 > /dev/null


echo '.'
----------------------------------------------------------------------------------------

3d 1920 1440 is one mode I don't want to use; you have to overwrite
one of them like that
I "guessed" that one because I have a logbook from my experimentations
with the same laptop
and Linux + 915resolution. In linux it was working like that

any hint?

Cheers,

Pau


Try compiling the code like this:

cc -D__NetBSD__ -o 1280pgm  1280patch-845g-855gm-865g.c -li386

that compiles without error,  It will produce an executable named
"1280pgm".  Gods know what it will do when you run it, though.

(OpenBSD is kinda-sorta like NetBSD.)

See man i386_iopl before running it, about setting your sysctls
properly.  (They probably are already set OK if you are running X).

Let us know if smoke rises from your screen.

Reply via email to