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

Re: trouble reconfiguring xserver-xorg



On 2015-08-20 21:17 +0200, Haines Brown wrote:

> Startx on a jessie desktop machine goes to a VESA display instead of the
> higher resolution supported by my video card.

That could be a kernel bug, or the sign of a failing monitor (it might
no longer give correct EDID information, for instance).  Running
"dmesg | grep nouveau" might give some hints.

> In Xorg log is the error:
>
>   (EE) NOUVEAU(0): [COPY] failed to allocate class
>
>   I searched on line for what this means without luck. Only a hint that
>   it might be a harmless errpr. Anyone know? 

It probably means that you have a Tesla card which does not have a copy
engine, in which case the error message is indeed harmless.  From a chat
I had last year on IRC[1] with upstream (zwenna is me, imirkin_ is
Nouveau developer Ilia Mirkin):

,----
| 12:08 #nouveau: < zwenna> xf86-video-nouveau 1.0.11 prints an an X_ERROR message in the X log file
| 12:08 #nouveau: < zwenna> (EE) NOUVEAU(0): [COPY] failed to allocate class.
| 12:08 #nouveau: < zwenna> it seems to work fine though
| 12:09 #nouveau: < imirkin_> zwenna: mind uploading your xorg log + dmesg to pastebin?
| 12:13 #nouveau: < zwenna> imirkin_: Xorg log at http://pastebin.com/Z4MJitRT
| 12:14 #nouveau: < imirkin_> zwenna: ah yeah. G86 doesn't have a copy engine...
| 12:14 #nouveau: < zwenna> dmesg is probably not that useful, I booted over two weeks ago
| 12:14 #nouveau: < imirkin_> yeah, the xorg log is enough
| 12:14 #nouveau: < imirkin_> let me take a look at the code...
| 12:14 #nouveau: < imirkin_> it shouldn't even be trying to create a copy engine...
| 12:16 #nouveau: < imirkin_> zwenna: it's harmless. there should be a check in the TESLA bit of nouveau_copy.c...
| 12:19 #nouveau: < imirkin_> (although i wonder if pcrypt2 can be used for this...)
| 12:20 #nouveau: < imirkin_> i forget if it can do rects or just straight up copies...
| 12:22 #nouveau: < imirkin_> nope, no rects. so it's stuck with m2mf. which is fine.
| 12:29 #nouveau: < imirkin_> zwenna: i sent a patch to the list: http://lists.freedesktop.org/archives/nouveau/2014-September/018641.html
| 12:34 #nouveau: < zwenna> imirkin_: thanks 
`----

The patch was committed to git[2], but no new release has been made yet.

> I decided to reconfigure xserver-xorg
>
>   # dpkg-reconfigure -phigh xserver-xorg
>
>   This only returned me to the # prompt without asking any
>   questions. Should it not be asking questions even if the nouveau
>   driver does not allocate class?

No, dpkg-reconfigure xserver-xorg is not supposed to do anything these
days.  If you want to try a different video driver (say, the modesetting
driver), you can try this 4-line /etc/X11/xorg.conf:

--8<---------------cut here---------------start------------->8---
Section "Device"
	Identifier	"n"
	Driver		"modesetting"
EndSection
--8<---------------cut here---------------end--------------->8---

Cheers,
       Sven


1. http://people.freedesktop.org/~cbrill/dri-log/?channel=nouveau&date=2014-09-04
2. http://cgit.freedesktop.org/nouveau/xf86-video-nouveau/commit/?id=02c1aee91ae22b58e777716ffd38397f9df0a087


Reply to: