Re: graphics acceleration, DRI2, DRM problem

2016-08-19 Thread Lampshade
I think that actual, real job is done by: aml_evalname(sc, node, "_OFF", 0, NULL, &res2) or aml_evalinteger(sc, node, "_OFF", 0, NULL, &val2) inside acpi.c file. The only good thing about this patch is that it works for me.

Re: graphics acceleration, DRI2, DRM problem

2016-08-19 Thread Lampshade
> > +filedev/pci/nvdsbl.c > > can you include this file? and any new .h files as well? I think that this was just for registering a dummy driver for that Nvidia device. It does nothing useful itself. # cat /usr/src/sys/dev/pci/nvdsbl.c /* $OpenBSD: nvdsbl.c,v 0.1 2015/07/28 12:00:01 some

Re: graphics acceleration, DRI2, DRM problem

2016-08-19 Thread Ted Unangst
Lampshade wrote: > This is totally fucked up code, but if you like hazard... > I mean that I really just called some random ACPI (aml) methods > not knowing what they should do. > +#Acer Optimus nvdsbl disable nvidia gpu PCI > +device nvdsbl > +attach nvdsbl at pci > +filedev/pci/nvdsbl.c

Re: graphics acceleration, DRI2, DRM problem

2016-08-19 Thread Lampshade
This is totally fucked up code, but if you like hazard... I mean that I really just called some random ACPI (aml) methods not knowing what they should do. Additionally this code is for my laptop. I have GEFORCE 620M GPU, so I added this to pcidevs. Another thing is that patched code recognizes my

Re: graphics acceleration, DRI2, DRM problem

2016-08-16 Thread EdaSky
A year ago I have written ugly hack to disable Nvidia GPU year ago for power saving. Is this patch available somewhere?

Re: graphics acceleration, DRI2, DRM problem

2016-08-14 Thread L.R. D.S.
Not a dev, but it may have something to do with pledge. Try to change your aperture driver (check man xf86) and reboot. Also, try ffplay instead of mpv just to check if it's not a software specific problem.

Re: graphics acceleration, DRI2, DRM problem

2016-08-14 Thread Lampshade
I have trimmed lspci output, but actually it was important. I have not only Intel GPU but also Nvidia GPU. A year ago I have written ugly hack to disable Nvidia GPU year ago for power saving. I am sure that is too ugly to commit to repository and I am not programming professional so I need a lot o

graphics acceleration, DRI2, DRM problem

2016-08-14 Thread Lampshade
Hello I have: $ sysctl kern.version kern.version=OpenBSD 6.0-current (GENERIC.MP) #2353: Sat Aug 13 11:34:33 MDT 2016 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP # sysctl hw.model hw.model=Intel(R) Pentium(R) CPU B960 @ 2.20GHz # lspci -nn | grep VGA 00:02.0 VGA compati