1 |
On Mon, Jan 11, 2016 at 6:40 PM, Håkon Alstadheim <hakon@×××××××××××××××.no> |
2 |
wrote: |
3 |
|
4 |
> I have an old but good graphics card, "NVIDIA Corporation GT200GL [Quadro |
5 |
> FX 3800]". The proprietary driver is EOL, not supported after kernel |
6 |
> 3.14.*, so I'd like to switch to nouveau. I'm having trouble getting |
7 |
> nouveau to work at all, it is giving me a blank screen and apparently not |
8 |
> grabbing my keyboard (ctrl:swapcaps has no effect). |
9 |
> |
10 |
> Nothing stands out as errors in Xorg.0.log, same errors are both under |
11 |
> nvidia and nouveau, but nvidia gives me a useable desktop. Both seem to |
12 |
> detect my monitor (benq) correctly. |
13 |
> |
14 |
> --- |
15 |
> $ grep '(EE)' Xorg.0.log.nvidia Xorg.0.log.nouveau | grep -v '(WW)' |
16 |
> Xorg.0.log.nvidia:[ 39.193] (EE) systemd-logind: failed to get session: |
17 |
> PID 2112 does not belong to any known session |
18 |
> Xorg.0.log.nouveau:[ 35.428] (EE) systemd-logind: failed to get |
19 |
> session: PID 2167 does not belong to any known session |
20 |
> Xorg.0.log.nouveau:[ 37.322] (EE) NOUVEAU(0): [COPY] failed to allocate |
21 |
> class. |
22 |
> --- |
23 |
> The PID belongs to /usr/bin/X, see below. |
24 |
> --- |
25 |
> I'm running gentoo-sources-4.3.3 kernel with experimental feature to |
26 |
> select Haswell architecture. The host is a virtual machine running under |
27 |
> app-emulation/xen-4.6.0-r6. Driver is |
28 |
> x11-drivers/xf86-video-nouveau-1.0.11, use-flag glamor enabled. |
29 |
> |
30 |
> I've run emerge -e @world after installing the kernel, just in case some |
31 |
> part of the system was incompatible with the kernel. Specifically pam has |
32 |
> been recompiled several times. I have jiggled countless other knobs, to no |
33 |
> effect. |
34 |
> |
35 |
> -- systemctl log for kdm (disabled means it is loaded manually, autologin |
36 |
> into fluxbox works) : --- |
37 |
> # systemctl status -l kdm |
38 |
> ● kdm.service - KDM Display Manager |
39 |
> Loaded: loaded (/etc/systemd/system/kdm.service; disabled; vendor |
40 |
> preset: enabled) |
41 |
> Active: active (running) since ma. 2016-01-11 16:56:11 CET; 28min ago |
42 |
> Main PID: 2157 (kdm) |
43 |
> CGroup: /system.slice/kdm.service |
44 |
> ├─2157 /usr/bin/kdm -debug 0x108 -nodaemon |
45 |
> └─2167 /usr/bin/X -br -novtswitch -quiet :0 vt7 -nolisten tcp |
46 |
> -auth /var/run/xauth/A:0-y7Kmbb |
47 |
> |
48 |
> jan. 11 16:56:18 gt kdm[2157]: receiving command from sub-daemon for |
49 |
> display :0 ... |
50 |
> jan. 11 16:56:18 gt kdm[2157]: -> 1 |
51 |
> jan. 11 16:56:18 gt kdm[2157]: receiving int from sub-daemon for display |
52 |
> :0 ... |
53 |
> jan. 11 16:56:18 gt kdm[2157]: -> 1001 (0x3e9) |
54 |
> jan. 11 16:56:18 gt kdm[2157]: receiving string from sub-daemon for |
55 |
> display :0 ... |
56 |
> jan. 11 16:56:18 gt kdm[2157]: -> 6 bytes |
57 |
> jan. 11 16:56:18 gt kdm[2157]: -> "hakon" |
58 |
> jan. 11 16:56:18 gt kdm[2157]: receiving string from sub-daemon for |
59 |
> display :0 ... |
60 |
> jan. 11 16:56:18 gt kdm[2157]: -> 8 bytes |
61 |
> jan. 11 16:56:18 gt kdm[2157]: -> "fluxbox" |
62 |
> ------ |
63 |
> -- |
64 |
> The [COPY] message is supposed to be harmless according to a discussion |
65 |
> with the developers I found on some website, since my card does not support |
66 |
> that feature. |
67 |
> |
68 |
> I'm using this script to switch graphics-driver, before rebooting and |
69 |
> launching kdm with autologin: |
70 |
> ---- |
71 |
> cat `which graphics-nvidia ` |
72 |
> #!/bin/bash |
73 |
> NEW=`basename $0` |
74 |
> case $NEW in |
75 |
> graphics-nouveau) |
76 |
> eselect opengl set xorg-x11 |
77 |
> eselect opencl set mesa |
78 |
> rm -f /etc/modprobe.d/blacklist.conf.gml |
79 |
> mv /etc/modprobe.d/blacklist.conf /etc/modprobe.d/blacklist.conf.gml |
80 |
> perl -pe 's(^ *blacklist nouveau)(#$&);s(^ *# *blacklist |
81 |
> nvidia$)(blacklist nvidia)' /etc/modprobe.d/blacklist.conf.gml > |
82 |
> /etc/modprobe.d/blacklist.conf |
83 |
> # dummy empty nvidia.rules |
84 |
> touch /etc/udev/rules.d/99-nvidia.rules |
85 |
> cat <<XORGX11 > /etc/X11/xorg.conf.d/10device.conf |
86 |
> Section "Device" |
87 |
> Identifier "noveau device" |
88 |
> |
89 |
|
90 |
Typo here. This should read 'nouveau'. |
91 |
|
92 |
What is the output of 'grep NOUVEAU /path/to/your/kernel/sources/.config'? |
93 |
|
94 |
|
95 |
|
96 |
> Driver "nouveau" |
97 |
> EndSection |
98 |
> XORGX11 |
99 |
> ;; |
100 |
> graphics-nvidia) |
101 |
> rm -f /etc/modprobe.d/blacklist.conf.gml |
102 |
> mv /etc/modprobe.d/blacklist.conf /etc/modprobe.d/blacklist.conf.gml |
103 |
> perl -pe 's(^ *blacklist nvidia$)(#$&);s(^ *# *blacklist |
104 |
> nouveau)(blacklist nouveau)' /etc/modprobe.d/blacklist.conf.gml > |
105 |
> /etc/modprobe.d/blacklist.conf |
106 |
> eselect opengl set nvidia |
107 |
> eselect opencl set nvidia |
108 |
> # remove dummy empty nvidia.rules |
109 |
> rm /etc/udev/rules.d/99-nvidia.rules |
110 |
> cat <<XORGNV > /etc/X11/xorg.conf.d/10device.conf |
111 |
> Section "Device" |
112 |
> Identifier "nvidia device" |
113 |
> Driver "nvidia" |
114 |
> EndSection |
115 |
> XORGNV |
116 |
> |
117 |
> ;; |
118 |
> esac |
119 |
> --- |
120 |
> |
121 |
> The script is not pretty, I know :-/ |
122 |
> |
123 |
> So, it seems everything is working with nouveau, except there is no |
124 |
> picture and no keyboard. |
125 |
> |
126 |
> |