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
>Organization:
>Environment:
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
>Description:
attempting to set a different resolution with xrandr fails in the following manner (not recoverable): http://i.imgur.com/HM19J3Q.jpg

somewhat related, I am unable to see the console: http://i.imgur.com/4f6rFVs.jpg - 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)
 
 	aprint_naive("\n");
 	aprint_normal("\n");
+	
+	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: http://i.imgur.com/A4ngweK.jpg
it doesn't make the monitor resolution(?) different.
starting X in this situation uses the default 1440x900.
>How-To-Repeat:

>Fix:
yes please



Home | Main Index | Thread Index | Old Index