LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-17-2015, 07:57 PM   #1
gattu_marrudu
LQ Newbie
 
Registered: Dec 2015
Posts: 1

Rep: Reputation: Disabled
Xorg modesetting driver breaks X when setting "Virtual" option


Hello,

I have a laptop with a HiDPI screen (15", 3840x2160) connected to an external monitor (27", 3840x2160 as well).

I actually got most of it working with minimal configuration, but everything looks much larger in the second monitor, so I have been looking into the RandR "scale" option.

Having read that this needs the "Virtual" option to be set in the Screen section of xorg.conf, I did that and that is preventing X to start.

I am using the modesetting driver. I tried using the intel driver and Virtual *kinda* works but I have fequent crashes. I also have bumblebee which apparently uses modesetting.

I am using the following configuration, which I have tested in several variants commenting out sections at a time:

Code:
### Monitor 0 (Laptop display) ###

Section "Device"
    Identifier     "intel0"
    Driver         "modesetting"
    VendorName     "Intel Corporation"
	BusID		   "PCI:0:2:0" # Intel GPU
    Option      "AccelMethod"  "sna"
    #Option      "TearFree" "True"
    #Option      "Tiling" "True"
    #Option      "SwapbuffersWait" "True"
	Screen 0
EndSection

Section "Screen"
    Identifier "screen0"
    Device "intel0"
    Monitor        "eDP-0"
    DefaultDepth    24
    SubSection     "Display"
		Modes "9600x3240_60.00" "3840x2160"
		Virtual 	9600 3240
    EndSubSection
EndSection

Section "Monitor"
	Identifier "eDP-0"
	#Option "Primary" "true"
	Option "dpms"
	Modeline "9600x3240_60.00"  2701.00  9600 10440 11512 13424  3240 3243 3253 3354 -hsync +vsync
	#Option "PreferredMode" "3840x2160"
	#Option "Position" "0 0"
	DisplaySize 347 195
EndSection

### Monitor 1 (External 4K HDMI monitor) ###

#Section "Device"
#    Identifier     "intel1"
#    Driver         "modesetting"
#    VendorName     "Intel Corporation"
#	BusID		   "PCI:0:2:0" # Intel GPU
#    Option      "AccelMethod"  "sna"
#    #Option      "TearFree" "True"
#    #Option      "Tiling" "True"
#    #Option      "SwapbuffersWait" "True"
#	Screen 1
#EndSection
#
#Section "Screen"
#    Identifier "screen1"
#    Device "intel1"
#    DefaultDepth    24
#    SubSection     "Display"
#		Modes "9600x3240_60.00" "3840x2160"
#		#Virtual 	9600 3240
#    EndSubSection
#EndSection

Section "Monitor"
	Identifier "HDMI-0"
	Option "dpms"
	#Option "Position" "3840 0"
	Modeline "9600x3240_60.00"  2701.00  9600 10440 11512 13424  3240 3243 3253 3354 -hsync +vsync
	#Option "PreferredMode" "3840x2160"
	DisplaySize 597 336
EndSection
This starts with no errors, but I cannot scale the monitor.

If I uncomment the "Virtual" options above, the X server will complain as in the log below:

Code:
[   778.060] 
X.Org X Server 1.17.4
Release Date: 2015-10-28
[   778.060] X Protocol Version 11, Revision 0
[   778.060] Build Operating System:  4.1.8-100.fc21.x86_64 
[   778.060] Current Operating System: Linux IS-scossu-laptop.localdomain 4.2.7-200.fc22.x86_64 #1 SMP Thu Dec 10 03:28:47 UTC 2015 x86_64
[   778.060] Kernel command line: BOOT_IMAGE=/vmlinuz-4.2.7-200.fc22.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/swap rd.lvm.lv=fedora/root rd.luks.uuid=luks-828cd03c-66d4-440d-8548-a9f0d11012e4 rd.driver.blacklist=nouveau vconsole.font=ter-v32n rhgb quiet nouveau.modeset=0 LANG=en_US.UTF-8
[   778.060] Build Date: 02 November 2015  04:40:36PM
[   778.060] Build ID: xorg-x11-server 1.17.4-1.fc22 
[   778.060] Current version of pixman: 0.32.8
[   778.060] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   778.060] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   778.060] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Dec 17 19:28:56 2015
[   778.061] (==) Using config file: "/etc/X11/xorg.conf"
[   778.061] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   778.061] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   778.061] (==) No Layout section.  Using the first Screen section.
[   778.061] (**) |-->Screen "screen0" (0)
[   778.061] (**) |   |-->Monitor "eDP-0"
[   778.061] (**) |   |-->Device "intel0"
[   778.061] (==) Automatically adding devices
[   778.061] (==) Automatically enabling devices
[   778.061] (==) Automatically adding GPU devices
[   778.061] (==) FontPath set to:
	catalogue:/etc/X11/fontpath.d,
	built-ins
[   778.061] (==) ModulePath set to "/usr/lib64/xorg/modules"
[   778.061] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   778.061] (II) Loader magic: 0x81be00
[   778.061] (II) Module ABI versions:
[   778.061] 	X.Org ANSI C Emulation: 0.4
[   778.061] 	X.Org Video Driver: 19.0
[   778.061] 	X.Org XInput driver : 21.1
[   778.061] 	X.Org Server Extension : 9.0
[   778.061] (++) using VT number 1

[   778.061] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[   778.061] (II) xfree86: Adding drm device (/dev/dri/card1)
[   778.062] (II) xfree86: Adding drm device (/dev/dri/card0)
[   778.063] (--) PCI:*(0:0:2:0) 8086:0416:1028:060d rev 6, Mem @ 0xec400000/4194304, 0x80000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[   778.063] (--) PCI: (0:2:0:0) 10de:0ff6:1028:060d rev 161, Mem @ 0xeb000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[   778.063] (II) LoadModule: "glx"
[   778.063] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   778.064] (II) Module glx: vendor="X.Org Foundation"
[   778.064] 	compiled for 1.17.4, module version = 1.0.0
[   778.064] 	ABI class: X.Org Server Extension, version 9.0
[   778.064] (==) AIGLX enabled
[   778.064] (II) LoadModule: "modesetting"
[   778.064] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[   778.064] (II) Module modesetting: vendor="X.Org Foundation"
[   778.064] 	compiled for 1.17.4, module version = 1.17.4
[   778.064] 	Module class: X.Org Video Driver
[   778.064] 	ABI class: X.Org Video Driver, version 19.0
[   778.064] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   778.064] (II) modeset(0): using drv /dev/dri/card0
[   778.064] (**) modeset(0): Depth 24, (--) framebuffer bpp 32
[   778.064] (**) modeset(0): Option "AccelMethod" "sna"
[   778.064] (==) modeset(0): RGB weight 888
[   778.064] (==) modeset(0): Default visual is TrueColor
[   778.064] (**) modeset(0): glamor disabled
[   778.064] (II) modeset(0): ShadowFB: preferred YES, enabled YES
[   778.066] (II) modeset(0): Output eDP-0 using monitor section eDP-0
[   778.073] (II) modeset(0): Output VGA-0 has no monitor section
[   778.073] (II) modeset(0): Output HDMI-0 using monitor section HDMI-0
[   778.073] (II) modeset(0): Output DisplayPort-0 has no monitor section
[   778.073] (II) modeset(0): Output HDMI-1 has no monitor section
[   778.074] (II) modeset(0): EDID for output eDP-0
[   778.074] (II) modeset(0): Manufacturer: SHP  Model: 1431  Serial#: 0
[   778.074] (II) modeset(0): Year: 2014  Week: 44
[   778.074] (II) modeset(0): EDID Version: 1.4
[   778.074] (II) modeset(0): Digital Display Input
[   778.074] (II) modeset(0): 8 bits per channel
[   778.074] (II) modeset(0): Digital interface is DisplayPort
[   778.074] (II) modeset(0): Max Image Size [cm]: horiz.: 35  vert.: 19
[   778.074] (II) modeset(0): Gamma: 2.20
[   778.074] (II) modeset(0): No DPMS capabilities specified
[   778.074] (II) modeset(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 
[   778.074] (II) modeset(0): Default color space is primary color space
[   778.074] (II) modeset(0): First detailed timing is preferred mode
[   778.074] (II) modeset(0): Preferred mode is native pixel format and refresh rate
[   778.074] (II) modeset(0): redX: 0.640 redY: 0.329   greenX: 0.300 greenY: 0.600
[   778.074] (II) modeset(0): blueX: 0.149 blueY: 0.060   whiteX: 0.312 whiteY: 0.328
[   778.074] (II) modeset(0): Manufacturer's mask: 0
[   778.074] (II) modeset(0): Supported detailed timing:
[   778.074] (II) modeset(0): clock: 533.2 MHz   Image Size:  346 x 194 mm
[   778.074] (II) modeset(0): h_active: 3840  h_sync: 3888  h_sync_end 3920 h_blank_end 4000 h_border: 0
[   778.074] (II) modeset(0): v_active: 2160  v_sync: 2163  v_sync_end 2168 v_blanking: 2222 v_border: 0
[   778.074] (II) modeset(0): Supported detailed timing:
[   778.074] (II) modeset(0): clock: 533.2 MHz   Image Size:  0 x 0 mm
[   778.074] (II) modeset(0): h_active: 3840  h_sync: 3888  h_sync_end 3920 h_blank_end 4000 h_border: 0
[   778.074] (II) modeset(0): v_active: 2160  v_sync: 2163  v_sync_end 2168 v_blanking: 2776 v_border: 0
[   778.074] (II) modeset(0):  TY3XC€LQ156D1
[   778.074] (II) modeset(0): Unknown vendor-specific block 0
[   778.074] (II) modeset(0): EDID (in hex):
[   778.074] (II) modeset(0): 	00ffffffffffff004d10311400000000
[   778.074] (II) modeset(0): 	2c180104a52313780ede50a3544c9926
[   778.074] (II) modeset(0): 	0f505400000001010101010101010101
[   778.074] (II) modeset(0): 	0101010101014dd000a0f0703e803020
[   778.074] (II) modeset(0): 	35005ac2100000184dd000a0f0706882
[   778.074] (II) modeset(0): 	30203500000000000000000000fe0054
[   778.074] (II) modeset(0): 	59335843804c51313536443100000000
[   778.074] (II) modeset(0): 	0002010323001200000b010a2020005f
[   778.074] (II) modeset(0): Printing probed modes for output eDP-0
[   778.074] (II) modeset(0): Modeline "9600x3240_60.00"x60.0  2701.00  9600 10440 11512 13424  3240 3243 3253 3354 -hsync +vsync (201.2 kHz UP)
[   778.074] (II) modeset(0): Modeline "3840x2160"x60.0  533.25  3840 3888 3920 4000  2160 2163 2168 2222 -hsync -vsync (133.3 kHz eP)
[   778.074] (II) modeset(0): Modeline "3840x2160"x48.0  533.25  3840 3888 3920 4000  2160 2163 2168 2776 -hsync -vsync (133.3 kHz e)
[   778.074] (II) modeset(0): Modeline "2048x1536"x60.0  266.95  2048 2200 2424 2800  1536 1537 1540 1589 -hsync +vsync (95.3 kHz d)
[   778.074] (II) modeset(0): Modeline "1920x1440"x60.0  234.00  1920 2048 2256 2600  1440 1441 1444 1500 -hsync +vsync (90.0 kHz d)
[   778.074] (II) modeset(0): Modeline "1856x1392"x60.0  218.30  1856 1952 2176 2528  1392 1393 1396 1439 -hsync +vsync (86.4 kHz d)
[   778.074] (II) modeset(0): Modeline "1792x1344"x60.0  204.80  1792 1920 2120 2448  1344 1345 1348 1394 -hsync +vsync (83.7 kHz d)
[   778.074] (II) modeset(0): Modeline "1600x1200"x60.0  162.00  1600 1664 1856 2160  1200 1201 1204 1250 +hsync +vsync (75.0 kHz d)
[   778.074] (II) modeset(0): Modeline "1400x1050"x60.0  122.00  1400 1488 1640 1880  1050 1052 1064 1082 +hsync +vsync (64.9 kHz d)
[   778.074] (II) modeset(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz d)
[   778.074] (II) modeset(0): Modeline "1280x960"x60.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz d)
[   778.074] (II) modeset(0): Modeline "1024x768"x120.1  133.47  1024 1100 1212 1400  768 768 770 794 doublescan -hsync +vsync (95.3 kHz d)
[   778.074] (II) modeset(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz d)
[   778.074] (II) modeset(0): Modeline "960x720"x120.0  117.00  960 1024 1128 1300  720 720 722 750 doublescan -hsync +vsync (90.0 kHz d)
[   778.074] (II) modeset(0): Modeline "928x696"x120.1  109.15  928 976 1088 1264  696 696 698 719 doublescan -hsync +vsync (86.4 kHz d)
[   778.074] (II) modeset(0): Modeline "896x672"x120.0  102.40  896 960 1060 1224  672 672 674 697 doublescan -hsync +vsync (83.7 kHz d)
[   778.074] (II) modeset(0): Modeline "800x600"x120.0   81.00  800 832 928 1080  600 600 602 625 doublescan +hsync +vsync (75.0 kHz d)
[   778.074] (II) modeset(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz d)
[   778.074] (II) modeset(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[   778.074] (II) modeset(0): Modeline "700x525"x120.0   61.00  700 744 820 940  525 526 532 541 doublescan +hsync +vsync (64.9 kHz d)
[   778.074] (II) modeset(0): Modeline "640x512"x120.0   54.00  640 664 720 844  512 512 514 533 doublescan +hsync +vsync (64.0 kHz d)
[   778.074] (II) modeset(0): Modeline "640x480"x120.0   54.00  640 688 744 900  480 480 482 500 doublescan +hsync +vsync (60.0 kHz d)
[   778.074] (II) modeset(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz d)
[   778.074] (II) modeset(0): Modeline "512x384"x120.0   32.50  512 524 592 672  384 385 388 403 doublescan -hsync -vsync (48.4 kHz d)
[   778.074] (II) modeset(0): Modeline "400x300"x120.6   20.00  400 420 484 528  300 300 302 314 doublescan +hsync +vsync (37.9 kHz d)
[   778.074] (II) modeset(0): Modeline "400x300"x112.7   18.00  400 412 448 512  300 300 301 312 doublescan +hsync +vsync (35.2 kHz d)
[   778.074] (II) modeset(0): Modeline "320x240"x120.1   12.59  320 328 376 400  240 245 246 262 doublescan -hsync -vsync (31.5 kHz d)
[   778.082] (II) modeset(0): EDID for output VGA-0
[   778.082] (II) modeset(0): EDID for output HDMI-0
[   778.082] (II) modeset(0): EDID for output DisplayPort-0
[   778.082] (II) modeset(0): EDID for output HDMI-1
[   778.082] (II) modeset(0): Output eDP-0 connected
[   778.082] (II) modeset(0): Output VGA-0 disconnected
[   778.082] (II) modeset(0): Output HDMI-0 disconnected
[   778.082] (II) modeset(0): Output DisplayPort-0 disconnected
[   778.082] (II) modeset(0): Output HDMI-1 disconnected
[   778.082] (II) modeset(0): Using user preference for initial modes
[   778.082] (II) modeset(0): Output eDP-0 using initial mode 9600x3240_60.00 +0+0
[   778.082] (II) modeset(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[   778.082] (**) modeset(0): Display dimensions: (347, 195) mm
[   778.082] (**) modeset(0): DPI set to (702, 422)
[   778.082] (II) Loading sub module "fb"
[   778.082] (II) LoadModule: "fb"
[   778.083] (II) Loading /usr/lib64/xorg/modules/libfb.so
[   778.083] (II) Module fb: vendor="X.Org Foundation"
[   778.083] 	compiled for 1.17.4, module version = 1.0.0
[   778.083] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   778.083] (II) Loading sub module "shadow"
[   778.083] (II) LoadModule: "shadow"
[   778.083] (II) Loading /usr/lib64/xorg/modules/libshadow.so
[   778.083] (II) Module shadow: vendor="X.Org Foundation"
[   778.083] 	compiled for 1.17.4, module version = 1.1.0
[   778.083] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   778.083] (==) Depth 24 pixmap format is 32 bpp
[   778.083] (==) modeset(0): Backing store enabled
[   778.083] (==) modeset(0): Silken mouse enabled
[   778.083] (II) modeset(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[   778.083] (**) modeset(0): DPMS enabled
[   778.083] failed to add fb -22
[   778.083] (EE) 
Fatal server error:
[   778.083] (EE) AddScreen/ScreenInit failed for driver 0
[   778.083] (EE) 
[   778.083] (EE) 
Please consult the Fedora Project support 
	 at http://wiki.x.org
 for help. 
[   778.083] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   778.083] (EE) 
[   778.095] (EE) Server terminated with error (1). Closing log file.
I have tried with one screen and multiple monitors, with or without ServerLayout directives, with or without explicit modelines and many other options, but it still does not seem to work.

Can somebody kindly point me in the right direction?

Much appreciated,
gm
 
Old 09-08-2017, 09:57 AM   #2
mraix
LQ Newbie
 
Registered: Aug 2013
Posts: 1

Rep: Reputation: Disabled
framebuffer is limited to 8192x8192, as far as I know.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] BLFS - ATI Radeon & Xorg - drm report modesetting isn't supported svadi666 Linux From Scratch 16 10-06-2015 08:47 PM
intel(0): No kernel modesetting driver detected. venam Linux - Newbie 1 03-17-2012 04:49 PM
[SOLVED] No Screens & intel(0) no kernel modesetting driver detected JSlack Slackware 14 04-10-2010 01:40 PM
Will 2D modesetting with Radeon driver eliminate DRI, what is the impact chromei386 Linux - General 3 03-30-2010 01:58 AM
xorg upgrade breaks radeon driver pixellany Linux - Software 10 02-10-2010 07:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration