Bug#832607: xrandr: crash when trying to desactivate an external screen
Package: x11-xserver-utils
Version: 7.7+7
Severity: important
Hi,
I've a laptop with its LCD driven by an integrated Intel Card and a 4k
external screen driven by an NVidia card (managed with the nouveau driver).
vdanjean@eyak:~$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0xb0 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 3 associated providers: 1 name:Intel
Provider 1: id: 0x66 cap: 0x7, Source Output, Sink Output, Source Offload crtcs: 4 outputs: 3 associated providers: 1 name:nouveau
vdanjean@eyak:~$ xrandr --current
Screen 0: minimum 8 x 8, current 3840 x 2160, maximum 32767 x 32767
eDP1 connected 1920x1080+3840+1080 (normal left inverted right x axis y axis) 340mm x 190mm
1920x1080 60.02*+ 59.93 47.99
[...]
640x360 60.00
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-3 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
3840x2160 60.00*+ 29.98
[...]
640x480 (0x88) 25.175MHz -HSync -VSync
h: width 640 start 656 end 752 total 800 skew 0 clock 31.47KHz
v: height 480 start 490 end 492 total 525 clock 59.94Hz
vdanjean@eyak:~$ uname -a
Linux eyak 4.7.0-rc7-amd64 #1 SMP Debian 4.7~rc7-1~exp1 (2016-07-14) x86_64 GNU/Linux
vdanjean@eyak:~$ apt-cache policy linux-image-4.7.0-rc7-amd64
linux-image-4.7.0-rc7-amd64:
Installed: 4.7~rc7-1~exp1
Candidate: 4.7~rc7-1~exp1
Version table:
*** 4.7~rc7-1~exp1 100
1 http://ftp.fr.debian.org/debian experimental/main amd64 Packages
100 /var/lib/dpkg/status
Somtimes, when trying to desactivate my external screen, I get a segfault:
vdanjean@eyak:~$ xrandr --output VGA1 --off --output VIRTUAL1 --off --output DP-1-1 --off --output DP-1-2 --off --output DP-1-3 --off --output eDP1 --auto --primary
Floating point exception (core dumped)
I'm not sure the bug comes from xrandr itself. Perhaps it is in an underlining driver, as
I get a very suspiscous "resolution" value from xdpyinfo for example:
vdanjean@eyak:~$ xdpyinfo | grep -B 100 -A 20 resolution
name of display: :0.0
version number: 11.0
vendor string: The X.Org Foundation
vendor release number: 11804000
X.Org version: 1.18.4
maximum request size: 16777212 bytes
motion buffer size: 256
bitmap unit, bit order, padding: 32, LSBFirst, 32
image byte order: LSBFirst
number of supported pixmap formats: 7
supported pixmap formats:
depth 1, bits_per_pixel 1, scanline_pad 32
[...]
depth 32, bits_per_pixel 32, scanline_pad 32
keycode range: minimum 8, maximum 255
focus: window 0x620211c, revert to Parent
number of extensions: 29
BIG-REQUESTS
[...]
XVideo-MotionCompensation
default screen number: 0
number of screens: 1
screen #0:
dimensions: 3840x2160 pixels (0x0 millimeters)
resolution: -2147483648x-2147483648 dots per inch
depths (7): 24, 1, 4, 8, 15, 16, 32
root window id: 0x13d
depth of root window: 24 planes
number of colormaps: minimum 1, maximum 1
default colormap: 0x8c
default number of colormap cells: 256
preallocated pixels: black 0, white 16777215
options: backing-store WHEN MAPPED, save-unders NO
largest cursor: 256x256
current input event mask: 0xfac03f
KeyPressMask KeyReleaseMask ButtonPressMask
ButtonReleaseMask EnterWindowMask LeaveWindowMask
KeymapStateMask ExposureMask StructureNotifyMask
SubstructureNotifyMask SubstructureRedirectMask FocusChangeMask
PropertyChangeMask ColormapChangeMask
number of visuals: 40
default visual id: 0x8a
visual:
visual id: 0x8a
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
[...]
Do you have any clue about this behavior? Fill free to reassign to another package
if you think the bug come from elsewhere (nouveau/intel xorg driver, kernel module, ...)
Regards
Vincent
-- System Information:
Debian Release: stretch/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armel, mipsel
Kernel: Linux 4.7.0-rc7-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages x11-xserver-utils depends on:
ii cpp 4:5.3.1-3
ii libc6 2.23-2
ii libice6 2:1.0.9-1+b1
ii libx11-6 2:1.6.3-1
ii libxaw7 2:1.0.13-1
ii libxcursor1 1:1.1.14-1+b1
ii libxext6 2:1.3.3-1
ii libxi6 2:1.7.6-1
ii libxmu6 2:1.1.2-2
ii libxmuu1 2:1.1.2-2
ii libxrandr2 2:1.5.0-1
ii libxrender1 1:0.9.9-2
ii libxt6 1:1.1.5-1
ii libxxf86vm1 1:1.1.4-1
x11-xserver-utils recommends no packages.
Versions of packages x11-xserver-utils suggests:
pn cairo-5c <none>
pn nickle <none>
ii xorg-docs-core 1:1.7.1-1
-- no debconf information
Reply to: