On 01/12/2016 10:17 PM, lee wrote:
Thanks for helping, I' try to answer in-line.
Håkon Alstadheim <ha...@alstadheim.priv.no> writes:
I have an old but good graphics card, "NVIDIA Corporation GT200GL
[Quadro FX 3800]". The proprietary driver is EOL, not supported after
kernel 3.14.*, so I'd like to switch to nouveau. I'm having trouble
getting nouveau to work at all, it is giving me a blank screen and
apparently not grabbing my keyboard (ctrl:swapcaps has no effect).
Nothing stands out as errors in Xorg.0.log, same errors are both under
nvidia and nouveau, but nvidia gives me a useable desktop. Both seem
to detect my monitor (benq) correctly.
---
$ grep '(EE)' Xorg.0.log.nvidia Xorg.0.log.nouveau | grep -v '(WW)'
Xorg.0.log.nvidia:[ 39.193] (EE) systemd-logind: failed to get
session: PID 2112 does not belong to any known session
Xorg.0.log.nouveau:[ 35.428] (EE) systemd-logind: failed to get
session: PID 2167 does not belong to any known session
Xorg.0.log.nouveau:[ 37.322] (EE) NOUVEAU(0): [COPY] failed to
allocate class.
---
The PID belongs to /usr/bin/X, see below.
---
I'm running gentoo-sources-4.3.3 kernel with experimental feature to
select Haswell architecture. The host is a virtual machine running
under app-emulation/xen-4.6.0-r6. Driver is
x11-drivers/xf86-video-nouveau-1.0.11, use-flag glamor enabled.
Have you passed the graphics card through to the VM?
Yes, it is passed through. No audio on the card, so there is only one
function, and X manages to get EDID data from the monitor, so there is
obviously some kind of connection in place.
Is the user trying to run the X server in the video group?
(pardon the LOCALE setting, should be intelligible none the less :-/ .
-----
$ ls -l /dev/dri/*
crw-rw----+ 1 root video 226, 0 jan. 13 10:05 /dev/dri/card0
crw-rw---- 1 root video 226, 64 jan. 13 10:05 /dev/dri/controlD64
crw-rw----+ 1 root video 226, 128 jan. 13 10:05 /dev/dri/renderD128
# id hakon
uid=1001(hakon) gid=1001(hakon)
grupper=1001(hakon),0(root),4(adm),7(lp),10(uucp),27(sudo),29(audio),37(operator),44(video),50(staff),60(games),100(users),1011(realtime),131(lpadmin),123(fuse),139(quaggavty),143(wireshark),162(davfs2),992(wheel),85(usb)
---
Just for completeness, some more data:
---------
gt ~ # dmesg | grep -i nou
[ 0.000000] Build-time adjustment of leaf fanout to 64.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64,
nr_cpu_ids=15
[ 14.036936] nouveau 0000:00:05.0: NVIDIA GT200 (0a0f80b1)
[ 14.146653] nouveau 0000:00:05.0: bios: version 62.00.74.00.0b
[ 14.312151] nouveau 0000:00:05.0: fb: 1024 MiB GDDR3
[ 14.483500] nouveau 0000:00:05.0: DRM: VRAM: 1024 MiB
[ 14.485210] nouveau 0000:00:05.0: DRM: GART: 1048576 MiB
[ 14.487219] nouveau 0000:00:05.0: DRM: TMDS table version 2.0
[ 14.489185] nouveau 0000:00:05.0: DRM: DCB version 4.0
[ 14.491000] nouveau 0000:00:05.0: DRM: DCB outp 00: 04000320 00000028
[ 14.493539] nouveau 0000:00:05.0: DRM: DCB outp 01: 01000322 00020030
[ 14.495835] nouveau 0000:00:05.0: DRM: DCB outp 02: 01121336 0f220e00
[ 14.498363] nouveau 0000:00:05.0: DRM: DCB outp 03: 01121332 00020e00
[ 14.501005] nouveau 0000:00:05.0: DRM: DCB outp 04: 02132336 0f220d00
[ 14.503523] nouveau 0000:00:05.0: DRM: DCB outp 05: 02132332 00020d00
[ 14.505994] nouveau 0000:00:05.0: DRM: DCB conn 00: 00001030
[ 14.507959] nouveau 0000:00:05.0: DRM: DCB conn 01: 0000a146
[ 14.510084] nouveau 0000:00:05.0: DRM: DCB conn 02: 00050246
[ 14.512625] nouveau 0000:00:05.0: DRM: DCB conn 03: 00000360
[ 14.727073] nouveau 0000:00:05.0: DRM: MM: using CRYPT for buffer
copies
[ 15.344825] nouveau 0000:00:05.0: DRM: allocated 1920x1080 fb:
0x50000, bo ffff8803ae4fb800
[ 15.349163] fbcon: nouveaufb (fb0) is primary device
[ 16.026158] nouveau 0000:00:05.0: fb0: nouveaufb frame buffer device
[ 16.140035] [drm] Initialized nouveau 1.3.0 20120801 for
0000:00:05.0 on minor 0
------------
Grepping for "nv" just gets me a sata_nv
Systemd appears to complicate things greatly. Have you tried to use
startx?
Tried it now. Nvidia drivers gives me a useable twm , nouveau gives
med no signal to the monitor (goes into sleep mode immediately).
With nvidia-drivers:
-------------
0:hakon@gt:~$ startx
xauth: file /home/hakon/.serverauth.16044 does not exist
X.Org X Server 1.17.4
Release Date: 2015-10-28
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.18.22-gentoo x86_64 Gentoo
Current Operating System: Linux gt 4.3.3-gentoo #1 SMP Mon Jan 11
15:45:22 CET 2016 x86_64
Kernel command line:
BOOT_IMAGE=/boot/kernel-genkernel-x86_64-4.3.3-gentoo
root=UUID=a202adf2-9b91-4d10-97ff-ab12aeb6009f ro intel_iommu=on
init=/usr/lib/systemd/systemd tmem net.ifnames=0 console=tty0
console=ttyS0,115200n8
Build Date: 02 November 2015 01:48:49AM
Current version of pixman: 0.32.8
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Jan 13 09:45:19 2016
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2
symbols
> Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
^Cxinit: connection to X server lost
waiting for X server to shut down xterm: fatal IO error 104
(Forbindelsen brutt i den andre enden) or KillClient on X server ":0"
xterm: fatal IO error 11 (Ressursen midlertidig utilgjengelig) or
KillClient on X server ":0"
XIO: fatal IO error 0 (Suksess) on X server ":0"
after 903 requests (903 known processed) with 0 events remaining.
xterm: fatal IO error 104 (Forbindelsen brutt i den andre enden) or
KillClient on X server ":0"
(II) Server terminated successfully (0). Closing log file.
xinit: unexpected signal 2
Couldn't get a file descriptor referring to the console
1:hakon@gt:~$
------------ with nouveau drivers: --------------
hakon@gammeltone:~$ ssh gt
0:hakon@gt:~$ startx
xauth: file /home/hakon/.serverauth.2266 does not exist
X.Org X Server 1.17.4
Release Date: 2015-10-28
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.18.22-gentoo x86_64 Gentoo
Current Operating System: Linux gt 4.3.3-gentoo #1 SMP Mon Jan 11
15:45:22 CET 2016 x86_64
Kernel command line:
BOOT_IMAGE=/boot/kernel-genkernel-x86_64-4.3.3-gentoo
root=UUID=a202adf2-9b91-4d10-97ff-ab12aeb6009f ro intel_iommu=on
init=/usr/lib/systemd/systemd tmem net.ifnames=0 console=tty0
console=ttyS0,115200n8
Build Date: 02 November 2015 01:48:49AM
Current version of pixman: 0.32.8
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Jan 13 09:49:27 2016
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
resize called 1920 1080
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2
symbols
> Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
^Cxinit: connection to X server lost
waiting for X server to shut down XIO: fatal IO error 0 (Suksess) on
X server ":0"
after 1219 requests (1219 known processed) with 0 events remaining.
xterm: fatal IO error 104 (Forbindelsen brutt i den andre enden) or
KillClient on X server ":0"
xterm: fatal IO error 104 (Forbindelsen brutt i den andre enden) or
KillClient on X server ":0"
xterm: fatal IO error 104 (Forbindelsen brutt i den andre enden) or
KillClient on X server ":0"
(II) Server terminated successfully (0). Closing log file.
xinit: unexpected signal 2
--------------
Can you attach x11vnc to the session (assuming that one does exist) to
see what would be on the screen from a remote machine?
If this issue last long enough, I'll try that. For now the proprietary
driver is working, even under recent kernels.