NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/51181: nouveau can't set monitor resolution

>Number:         51181
>Category:       kern
>Synopsis:       nouveau can't set monitor resolution
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 29 12:45:00 +0000 2016
>Originator:     coypu
>Release:        NetBSD 7.99.29
NetBSD  7.99.29 NetBSD 7.99.29 (GENERIC) #1: Thu May 26 20:42:53 IDT 2016  fly%net.Home@localhost:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
attempting to set a different resolution with xrandr fails in the following manner (not recoverable):

somewhat related, I am unable to see the console: - it appears to have incorrect stride:
nouveaufb0: framebuffer at 0xffff80011e632000, size 1440x900, depth 32, stride 5760.

attempting to hard-code a different resolution (possibly incorrect method?) in nouveaufb as follows:

diff --git a/sys/external/bsd/drm2/nouveau/nouveaufb.c b/sys/external/bsd/drm2/nouveau/nouveaufb.c
index 1b0f639..a647adc 100644
--- a/sys/external/bsd/drm2/nouveau/nouveaufb.c
+++ b/sys/external/bsd/drm2/nouveau/nouveaufb.c
@@ -96,6 +96,9 @@ nouveaufb_attach(device_t parent, device_t self, void *aux)
+	sc->sc_nfa.nfa_fb_sizes.surface_width = 640;
+	sc->sc_nfa.nfa_fb_sizes.surface_height = 480;
 	nouveau_pci_task_init(&sc->sc_attach_task, &nouveaufb_attach_task);
 	error = nouveau_pci_task_schedule(parent, &sc->sc_attach_task);

only changes the portion of the screen which is displayed, as seen in this picture:
it doesn't make the monitor resolution(?) different.
starting X in this situation uses the default 1440x900.

yes please

Home | Main Index | Thread Index | Old Index