Bug#822523: xorg: Xorg -configure fails: "Number of created screens does not match number of detected devices."

2016-05-01 Thread J Mo


I played around with this issue a little bit more. This is what I learned:

I booted from a fresh drive I installed Debian Testing on and it does 
not seem to be affected by this issue. That's notable.


I was not able to revert to EXA on the ZBox/Radeon HD 8250 system. The 
xorg log says that mode is not supported on this hardware.


I also tried enabling glamor on the NVida GTX 970 and that failed, 
saying something like "glamor initialization failed" in the log. I 
didn't think glamor was supported there anyway, so I'm not surprised.


I moved this installation to a system which has an Radeon HD 5770 in it 
and I am not seeing any similar issues here.


Finally, I probably won't be able to test this again in the future as I 
am planning on putting that ZBox to use and won't have access to it for 
awhile.




On 04/25/2016 04:09 AM, J Mo wrote:


Thanks for the advice. I had tried putting a config snip very similar 
to this into /etc/X11/xorg.conf.d, but now that I think about it, I 
think I included the Driver line, which might have broken it. I'll try 
it again exactly as you specified.





On 04/25/2016 02:53 AM, Julien Cristau wrote:

On Sun, Apr 24, 2016 at 21:55:12 -0700, J Mo wrote:


Package: xorg
Version: 1:7.7+15
Severity: normal

I have Zotac ZBox Nano CA320 which uses an AMD APU with a Radeon HD 
8250. It's an Intel NUC-like system, and this chip is commonly found 
on laptops.


I have X running KDE5 (sddm) successfully but am troubleshooting 
another video bug. I wanted to turn off AccelMethod glamor (the 
default) to find out if the admgpu/radeon driver was causing some 
artifacts when glamor mode was active (as opposed to EXA).


I tried shutting down sddm and then running "Xorg -configure", but 
that fails with the "Number of created screens does not match number 
of detected devices." error. I have attached the log from that 
session. The output Xorg.conf.new file looks fairly complete, but no 
configuration that I've tried works. The only thing that will get X 
working successfully is no manual configuration.


I've also tried just dropping config bits into /etc/X11/xorg.conf.d/ 
and anything short of a blank file causes Xorg to fail.


If we read here:
https://wiki.debian.org/Xorg#What_if_I_do_not_have_an_xorg_config_file.3F 



This is apparently a fairly common and well-known problem, but there 
doesn't seem to be any resolution that I was able to find. The 
advice on the wiki link above is non-helpful.


So, what now?


Yes, Xorg -configure is known broken.  Don't use that.  Just write

Section "Device"
 Identifier "glamor"
 Option "AccelMethod" "glamor"
EndSection

to /etc/X11/xorg.conf.






Bug#822523: xorg: Xorg -configure fails: "Number of created screens does not match number of detected devices."

2016-04-25 Thread J Mo


Thanks for the advice. I had tried putting a config snip very similar to 
this into /etc/X11/xorg.conf.d, but now that I think about it, I think I 
included the Driver line, which might have broken it. I'll try it again 
exactly as you specified.





On 04/25/2016 02:53 AM, Julien Cristau wrote:

On Sun, Apr 24, 2016 at 21:55:12 -0700, J Mo wrote:


Package: xorg
Version: 1:7.7+15
Severity: normal

I have Zotac ZBox Nano CA320 which uses an AMD APU with a Radeon HD 8250. It's 
an Intel NUC-like system, and this chip is commonly found on laptops.

I have X running KDE5 (sddm) successfully but am troubleshooting another video 
bug. I wanted to turn off AccelMethod glamor (the default) to find out if the 
admgpu/radeon driver was causing some artifacts when glamor mode was active (as 
opposed to EXA).

I tried shutting down sddm and then running "Xorg -configure", but that fails with the 
"Number of created screens does not match number of detected devices." error. I have 
attached the log from that session. The output Xorg.conf.new file looks fairly complete, but no 
configuration that I've tried works. The only thing that will get X working successfully is no 
manual configuration.

I've also tried just dropping config bits into /etc/X11/xorg.conf.d/ and 
anything short of a blank file causes Xorg to fail.

If we read here:
https://wiki.debian.org/Xorg#What_if_I_do_not_have_an_xorg_config_file.3F

This is apparently a fairly common and well-known problem, but there doesn't 
seem to be any resolution that I was able to find. The advice on the wiki link 
above is non-helpful.

So, what now?


Yes, Xorg -configure is known broken.  Don't use that.  Just write

Section "Device"
 Identifier "glamor"
 Option "AccelMethod" "glamor"
EndSection

to /etc/X11/xorg.conf.




Bug#822523: xorg: Xorg -configure fails: "Number of created screens does not match number of detected devices."

2016-04-25 Thread Julien Cristau
On Sun, Apr 24, 2016 at 21:55:12 -0700, J Mo wrote:

> Package: xorg
> Version: 1:7.7+15
> Severity: normal
> 
> I have Zotac ZBox Nano CA320 which uses an AMD APU with a Radeon HD 8250. 
> It's an Intel NUC-like system, and this chip is commonly found on laptops.
> 
> I have X running KDE5 (sddm) successfully but am troubleshooting another 
> video bug. I wanted to turn off AccelMethod glamor (the default) to find out 
> if the admgpu/radeon driver was causing some artifacts when glamor mode was 
> active (as opposed to EXA).
> 
> I tried shutting down sddm and then running "Xorg -configure", but that fails 
> with the "Number of created screens does not match number of detected 
> devices." error. I have attached the log from that session. The output 
> Xorg.conf.new file looks fairly complete, but no configuration that I've 
> tried works. The only thing that will get X working successfully is no manual 
> configuration.
> 
> I've also tried just dropping config bits into /etc/X11/xorg.conf.d/ and 
> anything short of a blank file causes Xorg to fail.
> 
> If we read here:
> https://wiki.debian.org/Xorg#What_if_I_do_not_have_an_xorg_config_file.3F
> 
> This is apparently a fairly common and well-known problem, but there doesn't 
> seem to be any resolution that I was able to find. The advice on the wiki 
> link above is non-helpful.
> 
> So, what now?
> 
Yes, Xorg -configure is known broken.  Don't use that.  Just write

Section "Device"
Identifier "glamor"
Option "AccelMethod" "glamor"
EndSection

to /etc/X11/xorg.conf.



Bug#822523: xorg: Xorg -configure fails: "Number of created screens does not match number of detected devices."

2016-04-24 Thread J Mo
Package: xorg
Version: 1:7.7+15
Severity: normal

I have Zotac ZBox Nano CA320 which uses an AMD APU with a Radeon HD 8250. It's 
an Intel NUC-like system, and this chip is commonly found on laptops.

I have X running KDE5 (sddm) successfully but am troubleshooting another video 
bug. I wanted to turn off AccelMethod glamor (the default) to find out if the 
admgpu/radeon driver was causing some artifacts when glamor mode was active (as 
opposed to EXA).

I tried shutting down sddm and then running "Xorg -configure", but that fails 
with the "Number of created screens does not match number of detected devices." 
error. I have attached the log from that session. The output Xorg.conf.new file 
looks fairly complete, but no configuration that I've tried works. The only 
thing that will get X working successfully is no manual configuration.

I've also tried just dropping config bits into /etc/X11/xorg.conf.d/ and 
anything short of a blank file causes Xorg to fail.

If we read here:
https://wiki.debian.org/Xorg#What_if_I_do_not_have_an_xorg_config_file.3F

This is apparently a fairly common and well-known problem, but there doesn't 
seem to be any resolution that I was able to find. The advice on the wiki link 
above is non-helpful.

So, what now?




-- Package-specific info:
/etc/X11/X does not exist.
/etc/X11/X is not a symlink.
/etc/X11/X is not executable.

VGA-compatible devices on PCI bus:
--
00:01.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. 
[AMD/ATI] Temash [Radeon HD 8250/8280G] [1002:983d]

/etc/X11/xorg.conf does not exist.

Contents of /etc/X11/xorg.conf.d:
-
total 0

/etc/modprobe.d contains no KMS configuration files.

Kernel version (/proc/version):
---
Linux version 4.5.0-1-amd64 (debian-ker...@lists.debian.org) (gcc version 5.3.1 
20160409 (Debian 5.3.1-14) ) #1 SMP Debian 4.5.1-1 (2016-04-14)

Xorg X server log files on system:
--
-rw-r--r-- 1 root root 21210 Apr 12 20:00 /var/log/Xorg.1.log
-rw-r--r-- 1 root root 53197 Apr 24 21:29 /var/log/Xorg.0.log

Contents of most recent Xorg X server log file (/var/log/Xorg.0.log):
-
[ 5.166] (--) Log file renamed from "/var/log/Xorg.pid-704.log" to 
"/var/log/Xorg.0.log"
[ 5.167] 
X.Org X Server 1.18.3
Release Date: 2016-04-04
[ 5.168] X Protocol Version 11, Revision 0
[ 5.168] Build Operating System: Linux 3.16.0-4-amd64 x86_64 Debian
[ 5.168] Current Operating System: Linux panic 4.5.0-1-amd64 #1 SMP Debian 
4.5.1-1 (2016-04-14) x86_64
[ 5.168] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.5.0-1-amd64 
root=UUID=bf908df3-15d5-4683-839e-2dbea668e58d ro ipv6.disable=1 quiet
[ 5.168] Build Date: 05 April 2016  07:00:43AM
[ 5.168] xorg-server 2:1.18.3-1 (http://www.debian.org/support) 
[ 5.168] Current version of pixman: 0.33.6
[ 5.168]Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 5.168] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 5.168] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Feb 11 08:29:12 
2016
[ 5.172] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 5.174] (==) No Layout section.  Using the first Screen section.
[ 5.175] (==) No screen section available. Using defaults.
[ 5.175] (**) |-->Screen "Default Screen Section" (0)
[ 5.175] (**) |   |-->Monitor ""
[ 5.176] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 5.176] (==) Automatically adding devices
[ 5.176] (==) Automatically enabling devices
[ 5.176] (==) Automatically adding GPU devices
[ 5.176] (==) Max clients allowed: 256, resource mask: 0x1f
[ 5.179] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 5.179]Entry deleted from font path.
[ 5.182] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
built-ins
[ 5.182] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 5.182] (II) The server relies on udev to provide the list of input 
devices.
If no devices become available, reconfigure udev or disable 
AutoAddDevices.
[ 5.182] (II) Loader magic: 0x555b7a019dc0
[ 5.182] (II) Module ABI versions:
[ 5.182]X.Org ANSI C Emulation: 0.4
[ 5.182]X.Org Video Driver: 20.0
[ 5.183]X.Org XInput driver : 22.1
[ 5.183]X.Org Server Extension : 9.0
[ 5.185] (++) using VT number 7

[ 5.185]