You are not logged in.

#1 2016-11-07 09:16:40

Dexxt
Member
From: ES, FR, IT
Registered: 2014-02-25
Posts: 26
Website

Wayland and Xrandr: how to permanently fix my resolution?

Hi everyone, I have been searching since two days for a solution to my issue.
At first boot, I realized that my gdm screen had large fonts and icons.
Since my screen has 2560x1440 resolution, I set this resolution to GNOME.
After a while, the screen timeout locked the screeen, so I could see that changes
in the screen resolution were successuful for gdm too.

The point is, every time I reboot, I still have low resolution on my gdm,
until I log in and start my gnome session where everything seems to be ok.

I am using Wayland on X server, so if I type xrandr, I get:

 $ xrandr
Screen 0: minimum 320 x 200, current 2560 x 1440, maximum 8192 x 8192
XWAYLAND0 connected 2560x1440+0+0 310mm x 170mm 2560x1440     59.96*+
 

After a set of searches, I found that I could set xrandr mode at boot.
I tried to change the resolution by using xrandr, as suggested on the wiki.

xrandr -s 2560x1440

But nothing happens, and it's not clear where I should put this directive to let it start at boot.

Offline

#2 2016-11-07 13:10:59

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: Wayland and Xrandr: how to permanently fix my resolution?

> I am using Wayland on X server,
No, you're not. You're using wayland. And you can certainly not control wayland with xrandr.
Neither in a gnome session, nor at gdm.

You'll either have to make GDM use the Xorg backend or attempt to control it with monitors.xml, see https://wiki.archlinux.org/index.php/GD … gin_screen

Offline

#3 2016-11-07 15:54:16

Dexxt
Member
From: ES, FR, IT
Registered: 2014-02-25
Posts: 26
Website

Re: Wayland and Xrandr: how to permanently fix my resolution?

Ok, so I tried the following:

# cp ~/.config/monitors.xml /var/lib/gdm/.config/monitors.xml

where my monitors.xml file is the following:

<monitors version="1">
  <configuration>
    <clone>no</clone>
    <output name="eDP-1">
      <vendor>LGD</vendor>
      <product>0x049a</product>
      <serial>0x00000000</serial>
      <width>2560</width>
      <height>1440</height>
      <rate>60.004940032958984</rate>
      <x>0</x>
      <y>0</y>
      <rotation>normal</rotation>
      <reflect_x>no</reflect_x>
      <reflect_y>no</reflect_y>
      <primary>yes</primary>
      <presentation>no</presentation>
      <underscanning>no</underscanning>
    </output>
  </configuration>
</monitors>

I changed X server access permissions

# xhost +SI:localuser:gdm

then in my /etc/gdm/Init/Default I added:

xrandr --output XWAYLAND0 --mode 2560x1440

Given that none of them seem to work, I wiould like to try to let gdm use the Xorg backend, can anyone help me?

Last edited by Dexxt (2016-11-07 16:00:07)

Offline

#4 2016-11-07 15:59:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: Wayland and Xrandr: how to permanently fix my resolution?

Sorry, missed your edit.

-----

> I changed X server access permissions

This. Is. Pointless.
Unless you do https://wiki.archlinux.org/index.php/GD … rg_backend

The only relevant question is whether gdm/wayland respects your monitors.xml - everything X11 related has no effect as long as GDM uses wayland as display server. There is no X11 server, so X11 clients cannot talk to it.

Last edited by seth (2016-11-07 15:59:44)

Offline

#5 2016-11-07 16:11:51

Dexxt
Member
From: ES, FR, IT
Registered: 2014-02-25
Posts: 26
Website

Re: Wayland and Xrandr: how to permanently fix my resolution?

I don't really know wether my Gdm/wayland does not seem to respect my monitor config, or if it just doesn't get selected at boot.

I tried to uncomment from /etc/gdm/custom.conf the line

#WaylandEnable=false

but then the gdm simply did not start and the boot stopped with a white blinking underscore.

I logged in tty2 and re-commented the line, so that now I'm back to wayland, but the problem is still there.

Last edited by Dexxt (2016-11-07 16:12:16)

Offline

#6 2016-11-07 16:21:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: Wayland and Xrandr: how to permanently fix my resolution?

Check /var/log/Xorg.0.log for why it failed (you do have xorg-server installed?)

Offline

#7 2016-11-07 16:28:29

Dexxt
Member
From: ES, FR, IT
Registered: 2014-02-25
Posts: 26
Website

Re: Wayland and Xrandr: how to permanently fix my resolution?

Yes, I have:

sudo pacman -Q xorg-server
xorg-server 1.18.4-1

At the moment I just have a /var/log/Xorg.1.log but I will redo the trick of commenting and let you know.

Offline

#8 2016-11-07 16:43:26

Dexxt
Member
From: ES, FR, IT
Registered: 2014-02-25
Posts: 26
Website

Re: Wayland and Xrandr: how to permanently fix my resolution?

OK, the Xorg.0.log was not generated on reboot, but as suggested at the end of the Xorg.1.log I ran:

X -config /root/xorg.conf.new

my /root/xorg.conf.new file is the following:

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/misc/"
	FontPath     "/usr/share/fonts/TTF/"
	FontPath     "/usr/share/fonts/OTF/"
	FontPath     "/usr/share/fonts/Type1/"
	FontPath     "/usr/share/fonts/100dpi/"
	FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
	Load  "glx"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"              	# [<bool>]
        #Option     "AccelMethod"        	# <str>
        #Option     "Backlight"          	# <str>
        #Option     "CustomEDID"         	# <str>
        #Option     "DRI"                	# <str>
        #Option     "Present"            	# [<bool>]
        #Option     "ColorKey"           	# <i>
        #Option     "VideoKey"           	# <i>
        #Option     "Tiling"             	# [<bool>]
        #Option     "LinearFramebuffer"  	# [<bool>]
        #Option     "HWRotation"         	# [<bool>]
        #Option     "VSync"              	# [<bool>]
        #Option     "PageFlip"           	# [<bool>]
        #Option     "SwapbuffersWait"    	# [<bool>]
        #Option     "TripleBuffer"       	# [<bool>]
        #Option     "XvPreferOverlay"    	# [<bool>]
        #Option     "HotPlug"            	# [<bool>]
        #Option     "ReprobeOutputs"     	# [<bool>]
        #Option     "XvMC"               	# [<bool>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "VirtualHeads"       	# <i>
        #Option     "TearFree"           	# [<bool>]
        #Option     "PerCrtcPixmaps"     	# [<bool>]
        #Option     "FallbackDebug"      	# [<bool>]
        #Option     "DebugFlushBatches"  	# [<bool>]
        #Option     "DebugFlushCaches"   	# [<bool>]
        #Option     "DebugWait"          	# [<bool>]
        #Option     "BufferCache"        	# [<bool>]
	Identifier  "Card0"
	Driver      "intel"
	BusID       "PCI:0:2:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

But then there were errors, and the file Xorg.0.log was generated. It states as follows:

[   280.487] 
X.Org X Server 1.18.4
Release Date: 2016-07-19
[   280.490] X Protocol Version 11, Revision 0
[   280.491] Build Operating System: Linux 4.5.4-1-ARCH x86_64 
[   280.492] Current Operating System: Linux ThinkpadT460s 4.8.6-1-ARCH #1 SMP PREEMPT Mon Oct 31 18:51:30 CET 2016 x86_64
[   280.492] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=603bdcab-d8ca-4257-bcad-5b673d855842 rw quiet
[   280.495] Build Date: 19 July 2016  05:54:24PM
[   280.496]  
[   280.497] Current version of pixman: 0.34.0
[   280.500] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   280.500] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   280.504] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Nov  7 17:34:39 2016
[   280.507] (++) Using config file: "/root/xorg.conf.new"
[   280.508] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   280.509] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   280.509] (==) ServerLayout "X.org Configured"
[   280.509] (**) |-->Screen "Screen0" (0)
[   280.509] (**) |   |-->Monitor "Monitor0"
[   280.509] (**) |   |-->Device "Device0"
[   280.509] (**) |   |-->GPUDevice "Card0"
[   280.509] (**) |-->Input Device "Mouse0"
[   280.509] (**) |-->Input Device "Keyboard0"
[   280.509] (==) Automatically adding devices
[   280.509] (==) Automatically enabling devices
[   280.509] (==) Automatically adding GPU devices
[   280.509] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   280.509] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[   280.509] 	Entry deleted from font path.
[   280.509] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[   280.509] 	Entry deleted from font path.
[   280.509] (**) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/100dpi/,
	/usr/share/fonts/75dpi/,
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/100dpi/,
	/usr/share/fonts/75dpi/
[   280.509] (**) ModulePath set to "/usr/lib/xorg/modules"
[   280.509] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[   280.509] (WW) Disabling Mouse0
[   280.509] (WW) Disabling Keyboard0
[   280.509] (II) Loader magic: 0x821d40
[   280.509] (II) Module ABI versions:
[   280.509] 	X.Org ANSI C Emulation: 0.4
[   280.509] 	X.Org Video Driver: 20.0
[   280.509] 	X.Org XInput driver : 22.1
[   280.509] 	X.Org Server Extension : 9.0
[   280.510] (--) using VT number 1

[   280.510] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[   280.510] (II) xfree86: Adding drm device (/dev/dri/card0)
[   280.521] (--) PCI:*(0:0:2:0) 8086:1916:17aa:2233 rev 7, Mem @ 0xf0000000/16777216, 0xe0000000/268435456, I/O @ 0x0000e000/64, BIOS @ 0x????????/131072
[   280.521] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   280.521] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[   280.521] (II) LoadModule: "glx"
[   280.521] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   280.522] (II) Module glx: vendor="X.Org Foundation"
[   280.522] 	compiled for 1.18.4, module version = 1.0.0
[   280.522] 	ABI class: X.Org Server Extension, version 9.0
[   280.522] (==) AIGLX enabled
[   280.522] (II) LoadModule: "vesa"
[   280.522] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[   280.522] (II) Module vesa: vendor="X.Org Foundation"
[   280.522] 	compiled for 1.18.0, module version = 2.3.4
[   280.522] 	Module class: X.Org Video Driver
[   280.522] 	ABI class: X.Org Video Driver, version 20.0
[   280.522] (II) LoadModule: "intel"
[   280.522] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[   280.525] (II) Module intel: vendor="X.Org Foundation"
[   280.525] 	compiled for 1.18.4, module version = 2.99.917
[   280.525] 	Module class: X.Org Video Driver
[   280.525] 	ABI class: X.Org Video Driver, version 20.0
[   280.525] (II) VESA: driver for VESA chipsets: vesa
[   280.525] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
	i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
	915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
	Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
	GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[   280.525] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[   280.525] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[   280.525] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[   280.542] (II) Loading sub module "vbe"
[   280.542] (II) LoadModule: "vbe"
[   280.542] (II) Loading /usr/lib/xorg/modules/libvbe.so
[   280.542] (II) Module vbe: vendor="X.Org Foundation"
[   280.542] 	compiled for 1.18.4, module version = 1.1.0
[   280.542] 	ABI class: X.Org Video Driver, version 20.0
[   280.542] (II) Loading sub module "int10"
[   280.542] (II) LoadModule: "int10"
[   280.542] (II) Loading /usr/lib/xorg/modules/libint10.so
[   280.542] (II) Module int10: vendor="X.Org Foundation"
[   280.542] 	compiled for 1.18.4, module version = 1.0.0
[   280.542] 	ABI class: X.Org Video Driver, version 20.0
[   280.542] (II) VESA(0): initializing int10
[   280.542] (EE) VESA(0): V_BIOS address 0xb8480 out of range
[   280.542] (II) UnloadModule: "vesa"
[   280.542] (II) UnloadSubModule: "int10"
[   280.542] (II) Unloading int10
[   280.542] (II) UnloadSubModule: "vbe"
[   280.542] (II) Unloading vbe
[   280.542] (EE) Screen(s) found, but none have a usable configuration.
[   280.542] (EE) 
Fatal server error:
[   280.543] (EE) no screens found(EE) 
[   280.543] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   280.543] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   280.543] (EE) 
[   280.618] (EE) Server terminated with error (1). Closing log file.

In case you are wondering, I have xf86-video-intel

sudo pacman -Q xf86-video-intel
xf86-video-intel 1:2.99.917+725+gbf7316a-1

Last edited by Dexxt (2016-11-07 16:47:50)

Offline

Board footer

Powered by FluxBB