Guys i solved the problem. Today i reinstalled openbsd and made an update to 7,9 version. I did the same procedure and now i am on fvwm 1. What i did is the following...
Create a sysctl.conf inside /etc/ with the following: `kern.shminfo.shmall=6291456
kern.shminfo.shmmax=999999999
kern.shminfo.shmmni=2048
kern.shminfo.shmseg=2048
kern.seminfo.semmns=4096
kern.seminfo.semmni=1024
kern.maxproc=3250
kern.maxfiles=8192
hw.smt=1
machdep.allowaperture=1
kern.audio.record=1
kern.video.record=1
net.inet.udp.recvspace=262144
net.inet.udp.sendspace=262144
net.inet.icmp.errppslimit=1000`
Then using vi editor i just typed: :%s/rw,/rw,softdep,noatime,/g inside fstab
Installed pico editor for faster results pkg_add pico
I also add my user to the following groups: usermod -L staff user (operator and wheel as well).
Enabled apmd (i am using a hp prodesk) with the following commands:
rcctl enable apmd
rcctl set apmd flags -A
rcctl start apmd
Since i was using su - i switched to doas editing the /etc/doas.conf
Inside this file i add: permit nopass keepenv :wheel
Lastly i fixed my sound: sndioctl output.level=1
Now my computer won't switch off suddenly.
I have to add an .Xsession file and install fvwm3 with some configs i found on the net.
Any suggestions on what to do next are wellcome.