You are not logged in.

#1 2017-06-16 16:27:05

buntolo
Member
Registered: 2011-10-11
Posts: 202

Xorg-server set wrong display size

I've searched in the forum using as query "xorg display size" and "xorg wrong display size" but found nothing.

I'm using a 13.3" FullHD laptop with Intel HD 4600 + nVidia GTX 860M. I'm using XFCE + bumblebee.

Problem is, xorg doesn't recognise the correct screen size, which should be 294x166mm, only xrandr find near correct values. I've configured XFCE to set 168 DPI, but I'm having issue with certain programs, like mysql-workbench (https://bbs.archlinux.org/viewtopic.php?id=226561) which are unaffected by XFCE settings.

% xdpyinfo | grep -B 2 resolution

screen #0:
  dimensions:    1920x1080 pixels (508x286 millimeters)
  resolution:    96x96 dots per inch

% xrandr --prop
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
eDP1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 290mm x 170mm
	EDID: 
		00ffffffffffff000dae431300000000
		34160104a51d11780293ada9534c9625
		114f5300000001010101010101010101
		010101010101363680a0703820402e1e
		240026a510000018242480a070382040
		2e1e240026a510000018000000fe0043
		4d4e0a202020202020202020000000fe
		004e3133334853452d4541310a2000b2
	BACKLIGHT: 244 
		range: (0, 2441)
	Backlight: 244 
		range: (0, 2441)
	scaling mode: Full aspect 
		supported: None, Full, Center, Full aspect
	Broadcast RGB: Automatic 
		supported: Automatic, Full, Limited 16:235
	audio: auto 
		supported: force-dvi, off, auto, on
   1920x1080     60.00*+  40.00  
   1400x1050     59.98  
   1600x900      60.00  
   1280x1024     60.02  
   1280x960      60.00  
   1368x768      60.00  
   1280x720      60.00  
   1024x768      60.00  
   1024x576      60.00  
   960x540       60.00  
   800x600       60.32    56.25  
   864x486       60.00  
   640x480       59.94  
   720x405       60.00  
   640x360       60.00  
DP1 disconnected (normal left inverted right x axis y axis)
	Broadcast RGB: Automatic 
		supported: Automatic, Full, Limited 16:235
	audio: auto 
		supported: force-dvi, off, auto, on
HDMI1 disconnected (normal left inverted right x axis y axis)
	aspect ratio: Automatic 
		supported: Automatic, 4:3, 16:9
	Broadcast RGB: Automatic 
		supported: Automatic, Full, Limited 16:235
	audio: auto 
		supported: force-dvi, off, auto, on
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

I've followed this wiki article: https://wiki.archlinux.org/index.php/Xo … ze_and_DPI
This is my monitor.conf:

% cat /etc/X11/xorg.conf.d/20-monitor.conf 
Section "Monitor"
    Identifier             "Monitor0"
   # DisplaySize             294 166    # 168 @ 1920x1080 # These should be the correct values.
    DisplaySize            290 170 # These are the value found by xrandr --prop
    Option                 "DPI" "168 x 168"
    Option                 "NoDDC"
    Option                 "DDCMode" "false"

After shutting down, display size is still wrong, and so DPI.

I've this problem since summer 2014, I've never solved it, now I'm using xorg-server 1.19.3-2 but it's 3 years I've this problem.

Offline

#2 2017-06-16 16:44:01

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,972

Re: Xorg-server set wrong display size

Check man xrandr for the fbmm option (introduced in randr 1.2 ) .

It will override just the display size so X will calculate the correct DPI and be able to use all other data from EDID, DDC etc .

I have had it in my ~/.xinitrc for years now  ( radeon card, no idea how well it will work with proprietary nvidia driver) .

Last edited by Lone_Wolf (2017-06-16 16:44:21)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2017-06-16 17:43:14

buntolo
Member
Registered: 2011-10-11
Posts: 202

Re: Xorg-server set wrong display size

I've just learn that I'm using xrandr -fbmm since the beginning, in 2014: https://bbs.archlinux.org/viewtopic.php?id=185874

My .xinitrc:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
  for f in /etc/X11/xinit/xinitrc.d/?*.sh; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

#[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources &

#xrandr --fbmm 294x166
xrandr --fbmm 290x170

# exec gnome-session
# exec startkde
exec startxfce4
# ...or the Window Manager of your choice

Nothing has changed:

% xdpyinfo | grep -B 2 resolution                   :(
screen #0:
  dimensions:    1920x1080 pixels (508x286 millimeters)
  resolution:    96x96 dots per inch

Last edited by buntolo (2017-06-17 11:20:18)

Offline

#4 2017-06-16 20:21:39

seth
Member
Registered: 2012-09-03
Posts: 51,826

Re: Xorg-server set wrong display size

Well, no wonder xrandr finds the accurate values then ;-)

The DPI config would belong into some Section "Device"" or maybe "Screen" and i'm not sure whether the blanks are legal.
You could "fix" that along the xrandr call in your xinitrc:

xrandr --fbmm 290x170 --dpi 168

Please provide your xorg log for more insight on what's going wrong here. Also any /etc/X11/xorg.conf* stuff (completely, monitor stuff looks capped).

Offline

#5 2017-06-17 11:27:45

buntolo
Member
Registered: 2011-10-11
Posts: 202

Re: Xorg-server set wrong display size

I don't understand 2 things:

1) Do you mean I should edit my 20-monitor.conf adding a new Device or Screen section where I should put the real size?
2) What does "blanks are legal" mean?

I've add --dpi 168 in .xinitrc but nothing seem changed, what should I look for confirmation?

These are all of my /etc/X11/xorg.conf.d/ config files:

% cat /etc/X11/xorg.conf.d/00-keyboard.conf
# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "gb"
        Option "XkbModel" "pc105"
        Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
% cat /etc/X11/xorg.conf.d/05-nvidia.conf.disabled
Section "ServerLayout"
	Identifier "layout"
	Screen 0 "nvidia"
	Inactive "intel
EndSection

Section "Device"
	Identifier "nvidia"
	Driver "nvidia"
	BusID "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "nvidia"
	Device "nvidia"
	Option "AllowEmptyInitialConfiguration" "Yes"
EndSection

Section "Device"
	Identifier "intel"
	Driver "modesetting"
	BusID "PCI:0:2:0"
	Option "AccelMethod" "sna"
#	Option "AccelMethod" "none"
#	Option "TearFree" "True"
#	Option "Tiling" "True"
#	Option "SwapbuffersWait" "True"
EndSection

Section "Screen"
	Identifier "intel"
	Device "intel"
EndSection
% cat /etc/X11/xorg.conf.d/20-monitor.conf
Section "Monitor"
    Identifier             "Monitor0"
   # DisplaySize             294 166    # 168 @ 1920x1080 # These should be the correct values.
    DisplaySize            290 170 # These are the value found by xrandr --prop
    Option                 "DPI" "168 x 168"
    Option                 "NoDDC"
    Option                 "DDCMode" "false"
EndSection
 /etc/X11/xorg.conf.d/30-intel.conf
# Posizione originale /etc/X11/xorg.conf.d/30-intel.conf

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "TearFree"    "true"
EndSection

#Section "Device"
#    Identifier "nvidiagpu1"
#    Driver "nvidia"
#    BusID "PCI:01:00.0"
#EndSection
% cat /etc/X11/xorg.conf.d/50-joystick.conf
# Disabilita il controllo del mouse da parte del joystick/gamepad/controller/stoca

Section "InputClass"
        Identifier "joystick catchall"
        MatchIsJoystick "on"
        MatchDevicePath "/dev/input/event*"
        Driver "joystick"
        Option "StartKeysEnabled" "False"       #Disable mouse
        Option "StartMouseEnabled" "False"      #support
EndSection
% cat /var/log/Xorg.8.log
[    70.098] 
X.Org X Server 1.19.3
Release Date: 2017-03-15
[    70.098] X Protocol Version 11, Revision 0
[    70.098] Build Operating System: Linux 4.9.11-1-ARCH x86_64 
[    70.098] Current Operating System: Linux trasportabile 4.11.5-1-ARCH #1 SMP PREEMPT Wed Jun 14 16:19:27 CEST 2017 x86_64
[    70.098] Kernel command line: \vmlinuz-linux ro root=UUID=5e5ecd52-77a7-42c7-a997-0aef9d5cd654 quiet intel_pstate=disable libahci.ignore_sss=1 initrd=\initramfs-linux.img
[    70.098] Build Date: 07 April 2017  05:42:48PM
[    70.098]  
[    70.098] Current version of pixman: 0.34.0
[    70.098] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    70.098] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    70.098] (==) Log file: "/var/log/Xorg.8.log", Time: Fri Jun 16 20:42:43 2017
[    70.098] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
[    70.098] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
[    70.098] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    70.099] (==) ServerLayout "Layout0"
[    70.099] (==) No screen section available. Using defaults.
[    70.099] (**) |-->Screen "Default Screen Section" (0)
[    70.099] (**) |   |-->Monitor "<default monitor>"
[    70.099] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[    70.099] (**) |   |-->Device "DiscreteNvidia"
[    70.099] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[    70.099] (**) Option "AutoAddDevices" "false"
[    70.099] (**) Option "AutoAddGPU" "false"
[    70.099] (**) Not automatically adding devices
[    70.099] (==) Automatically enabling devices
[    70.099] (**) Not automatically adding GPU devices
[    70.099] (==) Automatically binding GPU devices
[    70.099] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    70.099] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[    70.099] 	Entry deleted from font path.
[    70.099] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[    70.099] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[    70.099] 	Entry deleted from font path.
[    70.099] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[    70.099] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/Type1/
[    70.099] (++) ModulePath set to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules"
[    70.099] (==) |-->Input Device "<default pointer>"
[    70.099] (==) |-->Input Device "<default keyboard>"
[    70.099] (==) The core pointer device wasn't specified explicitly in the layout.
	Using the default mouse configuration.
[    70.099] (==) The core keyboard device wasn't specified explicitly in the layout.
	Using the default keyboard configuration.
[    70.099] (II) Loader magic: 0x822d60
[    70.099] (II) Module ABI versions:
[    70.099] 	X.Org ANSI C Emulation: 0.4
[    70.099] 	X.Org Video Driver: 23.0
[    70.099] 	X.Org XInput driver : 24.1
[    70.099] 	X.Org Server Extension : 10.0
[    70.100] (--) using VT number 1

[    70.100] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    70.101] (II) xfree86: Adding drm device (/dev/dri/card0)
[    70.101] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[    70.103] (--) PCI:*(0:1:0:0) 10de:1392:1558:2300 rev 162, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[    70.103] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    70.103] (II) LoadModule: "glx"
[    70.103] (II) Loading /usr/lib/nvidia/xorg/libglx.so
[    70.142] (II) Module glx: vendor="NVIDIA Corporation"
[    70.142] 	compiled for 4.0.2, module version = 1.0.0
[    70.142] 	Module class: X.Org Server Extension
[    70.143] (II) NVIDIA GLX Module  381.22  Thu May  4 00:17:15 PDT 2017
[    70.143] (II) LoadModule: "nvidia"
[    70.143] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[    70.147] (II) Module nvidia: vendor="NVIDIA Corporation"
[    70.147] 	compiled for 4.0.2, module version = 1.0.0
[    70.147] 	Module class: X.Org Video Driver
[    70.148] (II) LoadModule: "mouse"
[    70.148] (WW) Warning, couldn't open module mouse
[    70.148] (II) UnloadModule: "mouse"
[    70.148] (II) Unloading mouse
[    70.148] (EE) Failed to load module "mouse" (module does not exist, 0)
[    70.148] (II) LoadModule: "kbd"
[    70.148] (WW) Warning, couldn't open module kbd
[    70.148] (II) UnloadModule: "kbd"
[    70.148] (II) Unloading kbd
[    70.148] (EE) Failed to load module "kbd" (module does not exist, 0)
[    70.148] (II) NVIDIA dlloader X Driver  381.22  Wed May  3 23:53:41 PDT 2017
[    70.148] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    70.149] (II) Loading sub module "fb"
[    70.149] (II) LoadModule: "fb"
[    70.149] (II) Loading /usr/lib/xorg/modules/libfb.so
[    70.150] (II) Module fb: vendor="X.Org Foundation"
[    70.150] 	compiled for 1.19.3, module version = 1.0.0
[    70.150] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    70.150] (II) Loading sub module "wfb"
[    70.150] (II) LoadModule: "wfb"
[    70.150] (II) Loading /usr/lib/xorg/modules/libwfb.so
[    70.151] (II) Module wfb: vendor="X.Org Foundation"
[    70.151] 	compiled for 1.19.3, module version = 1.0.0
[    70.151] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    70.151] (II) Loading sub module "ramdac"
[    70.151] (II) LoadModule: "ramdac"
[    70.151] (II) Module "ramdac" already built-in
[    70.152] (II) NVIDIA(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[    70.152] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[    70.152] (==) NVIDIA(0): RGB weight 888
[    70.152] (==) NVIDIA(0): Default visual is TrueColor
[    70.152] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[    70.153] (**) NVIDIA(0): Option "ProbeAllGpus" "false"
[    70.153] (**) NVIDIA(0): Option "UseEDID" "false"
[    70.153] (**) NVIDIA(0): Option "UseDisplayDevice" "none"
[    70.153] (**) NVIDIA(0): Enabling 2D acceleration
[    70.153] (**) NVIDIA(0): Ignoring EDIDs
[    70.153] (**) NVIDIA(0): Option "UseDisplayDevice" set to "none"; enabling NoScanout
[    70.153] (**) NVIDIA(0):     mode
[    71.184] (II) NVIDIA(0): NVIDIA GPU GeForce GTX 860M (GM107-A) at PCI:1:0:0 (GPU-0)
[    71.184] (--) NVIDIA(0): Memory: 2097152 kBytes
[    71.184] (--) NVIDIA(0): VideoBIOS: 82.07.27.00.0a
[    71.184] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[    71.184] (II) NVIDIA(0): Validated MetaModes:
[    71.184] (II) NVIDIA(0):     "NULL"
[    71.184] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[    71.185] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[    71.185] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[    71.185] (--) Depth 24 pixmap format is 32 bpp
[    71.185] (II) NVIDIA: Using 12288.00 MB of virtual memory for indirect memory
[    71.185] (II) NVIDIA:     access.
[    71.192] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[    71.192] (II) NVIDIA(0):     may not be running or the "AcpidSocketPath" X
[    71.192] (II) NVIDIA(0):     configuration option may not be set correctly.  When the
[    71.192] (II) NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
[    71.192] (II) NVIDIA(0):     try to use it to receive ACPI event notifications.  For
[    71.192] (II) NVIDIA(0):     details, please see the "ConnectToAcpid" and
[    71.192] (II) NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
[    71.192] (II) NVIDIA(0):     Config Options in the README.
[    71.251] (II) NVIDIA(0): Setting mode "NULL"
[    71.263] (==) NVIDIA(0): Disabling shared memory pixmaps
[    71.263] (==) NVIDIA(0): Backing store enabled
[    71.263] (==) NVIDIA(0): Silken mouse enabled
[    71.263] (==) NVIDIA(0): DPMS enabled
[    71.263] (WW) NVIDIA(0): Option "NoLogo" is not used
[    71.263] (II) Loading sub module "dri2"
[    71.263] (II) LoadModule: "dri2"
[    71.263] (II) Module "dri2" already built-in
[    71.263] (II) NVIDIA(0): [DRI2] Setup complete
[    71.263] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[    71.264] (--) RandR disabled
[    71.270] (II) Initializing extension GLX
[    71.270] (II) Indirect GLX disabled.
[    71.376] (II) LoadModule: "mouse"
[    71.377] (WW) Warning, couldn't open module mouse
[    71.377] (II) UnloadModule: "mouse"
[    71.377] (II) Unloading mouse
[    71.377] (EE) Failed to load module "mouse" (module does not exist, 0)
[    71.377] (EE) No input driver matching `mouse'
[    71.377] (II) Falling back to input driver `libinput'
[    71.377] (II) LoadModule: "libinput"
[    71.377] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[    71.379] (II) Module libinput: vendor="X.Org Foundation"
[    71.379] 	compiled for 1.19.3, module version = 0.25.1
[    71.379] 	Module class: X.Org XInput Driver
[    71.379] 	ABI class: X.Org XInput driver, version 24.1
[    71.379] (II) Using input driver 'libinput' for '<default pointer>'
[    71.379] (**) Option "CorePointer" "on"
[    71.379] (**) <default pointer>: always reports core events
[    71.379] (EE) PreInit returned 2 for "<default pointer>"
[    71.379] (II) UnloadModule: "libinput"
[    71.379] (II) LoadModule: "kbd"
[    71.380] (WW) Warning, couldn't open module kbd
[    71.380] (II) UnloadModule: "kbd"
[    71.380] (II) Unloading kbd
[    71.380] (EE) Failed to load module "kbd" (module does not exist, 0)
[    71.380] (EE) No input driver matching `kbd'
[    71.380] (II) Falling back to input driver `libinput'
[    71.380] (II) Using input driver 'libinput' for '<default keyboard>'
[    71.380] (**) Option "CoreKeyboard" "on"
[    71.380] (**) <default keyboard>: always reports core events
[    71.380] (EE) PreInit returned 2 for "<default keyboard>"
[    71.380] (II) UnloadModule: "libinput"
[    71.392] (II) config/udev: Adding input device Power Button (/dev/input/event4)
[    71.393] (II) AutoAddDevices is off - not adding device.
[    71.393] (II) config/udev: Adding input device Video Bus (/dev/input/event9)
[    71.393] (II) AutoAddDevices is off - not adding device.
[    71.394] (II) config/udev: Adding input device Video Bus (/dev/input/event8)
[    71.394] (II) AutoAddDevices is off - not adding device.
[    71.394] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[    71.395] (II) AutoAddDevices is off - not adding device.
[    71.395] (II) config/udev: Adding input device Lid Switch (/dev/input/event3)
[    71.395] (II) AutoAddDevices is off - not adding device.
[    71.396] (II) config/udev: Adding input device Sleep Button (/dev/input/event2)
[    71.396] (II) AutoAddDevices is off - not adding device.
[    71.396] (II) config/udev: Adding drm device (/dev/dri/card0)
[    71.396] (II) xfree86: Adding drm device (/dev/dri/card0)
[    71.396] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[    71.397] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=3 (/dev/input/event12)
[    71.397] (II) AutoAddDevices is off - not adding device.
[    71.397] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=7 (/dev/input/event13)
[    71.397] (II) AutoAddDevices is off - not adding device.
[    71.398] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=8 (/dev/input/event14)
[    71.398] (II) AutoAddDevices is off - not adding device.
[    71.398] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=9 (/dev/input/event15)
[    71.398] (II) AutoAddDevices is off - not adding device.
[    71.399] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=10 (/dev/input/event16)
[    71.399] (II) AutoAddDevices is off - not adding device.
[    71.399] (II) config/udev: Adding input device BisonCam, NB Pro (/dev/input/event11)
[    71.399] (II) AutoAddDevices is off - not adding device.
[    71.400] (II) config/udev: Adding input device HDA Digital PCBeep (/dev/input/event5)
[    71.400] (II) AutoAddDevices is off - not adding device.
[    71.400] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event6)
[    71.400] (II) AutoAddDevices is off - not adding device.
[    71.401] (II) config/udev: Adding input device HDA Intel PCH Front Headphone (/dev/input/event7)
[    71.401] (II) AutoAddDevices is off - not adding device.
[    71.401] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[    71.401] (II) AutoAddDevices is off - not adding device.
[    71.402] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event10)
[    71.402] (II) AutoAddDevices is off - not adding device.
[    71.402] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse0)
[    71.403] (II) AutoAddDevices is off - not adding device.
[    75.384] (II) NVIDIA(GPU-0): Deleting GPU-0
[    75.385] (II) Server terminated successfully (0). Closing log file.

Last edited by buntolo (2017-06-17 11:33:31)

Offline

#6 2017-06-17 12:01:34

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,972

Re: Xorg-server set wrong display size

[    70.098] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
[    70.098] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
[    70.098] (==) Using system config directory "/usr/share/X11/xorg.conf.d"

Looks like X on your system doesn't use etc/X11/ , what config files are in those etc/bumblebee folders ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2017-06-17 12:20:06

seth
Member
Registered: 2012-09-03
Posts: 51,826

Re: Xorg-server set wrong display size

Something terrible - the only thing loaded asinde the nvidia blob is the framebuffer driver. The nvidia blob calculates the DPI, but it's 75, so some junk config will hardcode the 96dpi into the server config - in doubt the fb driver ...

If the xrandr call applies, you'll get that resolution in xdpyinfo.
I'm not gonna ask what nonsense tutorial you followed to setup the bumblebee system, but the result is rubbish.
https://wiki.archlinux.org/index.php/Bumblebee

Offline

#8 2017-06-19 15:39:52

buntolo
Member
Registered: 2011-10-11
Posts: 202

Re: Xorg-server set wrong display size

I've never followed anything else than the archwiki, so I've configured Bumblebee using the article you posted.

EDIT: inside the archwiki article about bumblebee, I don't see any indication for where xorg config files should be located: /etc/xorg.conf.d or /etc/bumblebee/xorg.conf.d?

I don't think /etc/X11/xorg.conf.d is being totally ignored, as 00-keyboard.conf and 50-joystick.conf are being used (the first set UK keyboard layout, the second prevent my xbox joypad from controlling mouse).

Here are the files in /etc/bumblebee:

% cat /etc/bumblebee/bumblebee.conf
# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d

## Client options. Will take effect on the next optirun executed.
[optirun]
# Acceleration/ rendering bridge, possible values are auto, virtualgl and
# primus.
Bridge=auto
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# List of paths which are searched for the primus libGL.so.1 when using
# the primus bridge
PrimusLibraryPath=/usr/lib/primus:/usr/lib32/primus
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false


# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
#         bbswitch - new in BB 3, recommended if available
#       switcheroo - vga_switcheroo method, use at your own risk
#             none - disable PM completely
# https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia:/usr/lib32/nvidia:/usr/lib:/usr/lib32
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia/xorg,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau
%cat /etc/bumblebee/xorg.conf.nouveau
Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddDevices" "false"
    Option      "AutoAddGPU" "false"
EndSection

Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nouveau"

#   If the X server does not automatically detect your VGA device,
#   you can manually set it here.
#   To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
#   as you see in the commented example.
#   This Setting is needed on Ubuntu 13.04.
#   BusID "PCI:01:00:0"

EndSection
% cat /etc/bumblebee/xorg.conf.nvidia
Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddDevices" "false"
    Option      "AutoAddGPU" "false"
EndSection

Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"

#   If the X server does not automatically detect your VGA device,
#   you can manually set it here.
#   To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
#   as you see in the commented example.
#   This Setting may be needed in some platforms with more than one
#   nvidia card, which may confuse the proprietary driver (e.g.,
#   trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
#   BusID "PCI:01:00:0"

#   Setting ProbeAllGpus to false prevents the new proprietary driver
#   instance spawned to try to control the integrated graphics card,
#   which is already being managed outside bumblebee.
#   This option doesn't hurt and it is required on platforms running
#   more than one nvidia graphics card with the proprietary driver.
#   (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
#   If this option is not set, the new Xorg may blacken the screen and
#   render it unusable (unless you have some way to run killall Xorg).
    Option "ProbeAllGpus" "false"

    Option "NoLogo" "true"
    Option "UseEDID" "false"
    Option "UseDisplayDevice" "none"
EndSection

/etc/bumblebee/xorg.conf.d contains only an empty 10-dummy.conf file.

Last edited by buntolo (2017-06-19 15:59:48)

Offline

#9 2017-06-19 20:32:45

seth
Member
Registered: 2012-09-03
Posts: 51,826

Re: Xorg-server set wrong display size

Ok, let's check something different: how exactly do you start X11?
That implies the method (xinit, startx, some DM? which?) as well as the actual Xorg call, notably any "-config*" parameter.

Also "pacman -Qi xf86-video-intel"?

Offline

#10 2017-06-19 22:13:09

buntolo
Member
Registered: 2011-10-11
Posts: 202

Re: Xorg-server set wrong display size

Thank you very much for your help!
Question: I'm using Italian language, how do I output a specific terminal command in English without changing locale? Like having the result of 'pacman -Qi foo' in Egnlish.

I use .xinitrc to start X:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
  for f in /etc/X11/xinit/xinitrc.d/?*.sh; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

#[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources &

#xrandr --fbmm 294x166
xrandr --fbmm 290x170 --dpi 168

# exec gnome-session
# exec startkde
exec startxfce4
# ...or the Window Manager of your choice
% pacman -Qi xf86-video-intel
Nome                      : xf86-video-intel
Versione                  : 1:2.99.917+777+g6babcf15-1
Descrizione               : X.org Intel i810/i830/i915/945G/G965+ video drivers
Architettura              : x86_64
URL                       : https://01.org/linuxgraphics
Licenze                   : custom
Gruppi                    : xorg-drivers
Fornisce                  : xf86-video-intel-uxa  xf86-video-intel-sna
Dipenda da                : mesa-dri  libxvmc  pixman  xcb-util>=0.3.9
                            libsystemd
Dipendenze opzionali      : libxrandr: for intel-virtual-output [installato]
                            libxinerama: for intel-virtual-output [installato]
                            libxcursor: for intel-virtual-output [installato]
                            libxtst: for intel-virtual-output [installato]
                            libxss: for intel-virtual-output [installato]
Richiesto da              : Nessuno
Opzionale per             : Nessuno
Conflitti con             : xorg-server<1.19  X-ABI-VIDEODRV_VERSION<23
                            X-ABI-VIDEODRV_VERSION>=24  xf86-video-intel-sna
                            xf86-video-intel-uxa  xf86-video-i810
                            xf86-video-intel-legacy
Sostituisce               : xf86-video-intel-uxa  xf86-video-intel-sna
Spazio richiesto          : 2,20 MiB
Pacchettizzatore          : Andreas Radke <andyrtr@archlinux.org>
Data di creazione         : gio 08 giu 2017 15:41:03 EEST
Data di installazione     : ven 16 giu 2017 20:35:56 EEST
Motivo dell'installazione : Installato esplicitamente
Script di install         : Sì
Convalidato da            : Firma

Offline

#11 2017-06-19 22:18:47

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: Xorg-server set wrong display size

buntolo wrote:

Question: I'm using Italian language, how do I output a specific terminal command in English without changing locale? Like having the result of 'pacman -Qi foo' in Egnlish.

https://wiki.archlinux.org/index.php/Co … s_and_code


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#12 2017-06-20 05:38:41

seth
Member
Registered: 2012-09-03
Posts: 51,826

Re: Xorg-server set wrong display size

I use .xinitrc to start X:I use .xinitrc to start X

No, xinit, startx or xdm use ~/.xinitrc
The "problem" could be

Using config file: "/etc/bumblebee/xorg.conf.nvidia"

- and the intel driver, despite being installed and there's even a config snippet, isn't considered at all.
So I assume there's some "Xorg -config /etc/bumblebee/xorg.conf.nvidia" or "Xorg -configdir /etc/bumblebee" call being made.

xinitrc starts your session, but not X11.
Also it doesn't answer the question whether you're eg. attempting a rootless Xorg process.

Offline

#13 2017-06-20 21:52:53

buntolo
Member
Registered: 2011-10-11
Posts: 202

Re: Xorg-server set wrong display size

I shouldn't have a rootless Xorg. Probably I'm starting X via .zprofile:

% cat .zprofileent 
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx

I don't know why it's different from what reported in the archwiki (https://wiki.archlinux.org/index.php/Xi … X_at_login).

Here's the previous command for xf86-video-intel:

% LC_ALL=C pacman -Qi xf86-video-intel
Name            : xf86-video-intel
Version         : 1:2.99.917+777+g6babcf15-1
Description     : X.org Intel i810/i830/i915/945G/G965+ video drivers
Architecture    : x86_64
URL             : https://01.org/linuxgraphics
Licenses        : custom
Groups          : xorg-drivers
Provides        : xf86-video-intel-uxa  xf86-video-intel-sna
Depends On      : mesa-dri  libxvmc  pixman  xcb-util>=0.3.9  libsystemd
Optional Deps   : libxrandr: for intel-virtual-output [installed]
                  libxinerama: for intel-virtual-output [installed]
                  libxcursor: for intel-virtual-output [installed]
                  libxtst: for intel-virtual-output [installed]
                  libxss: for intel-virtual-output [installed]
Required By     : None
Optional For    : None
Conflicts With  : xorg-server<1.19  X-ABI-VIDEODRV_VERSION<23
                  X-ABI-VIDEODRV_VERSION>=24  xf86-video-intel-sna
                  xf86-video-intel-uxa  xf86-video-i810
                  xf86-video-intel-legacy
Replaces        : xf86-video-intel-uxa  xf86-video-intel-sna
Installed Size  : 2.20 MiB
Packager        : Andreas Radke <andyrtr@archlinux.org>
Build Date      : Thu Jun 8 15:41:03 2017
Install Date    : Fri Jun 16 20:35:56 2017
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : Signature

EDIT:

After a linux upgrade, I couldn't use bumblebee due to a Screen 0 detection error (no screen found).

I've decided to remove any config file for '/etc/bumblebee' and '/etc/xorg.conf.d' and start from scratch, here are the result:
I only need '/etc/bumblebee/bumblebee.conf' and '/etc/bumblebee/xorg.conf.nvidia' for a minimal bumblebee working, while any file inside '/etc/bumblebee/xorg.conf.d' seem being ignored.

Infact I was getting heavy screen tearing and after creating a specific Intel config file in '/etc/bumblebee/xorg.conf.d/' the issue wasn't solved, I solved it (no more screen tearing) only after moving this config file from '/etc/bumblebee/xorg.conf.d/' to '/etc/X11/xorg.conf.d'.

I'm still trying to figure out how to get correct DPI for X.

Last edited by buntolo (2017-06-21 15:19:47)

Offline

#14 2017-06-22 19:00:49

seth
Member
Registered: 2012-09-03
Posts: 51,826

Re: Xorg-server set wrong display size

Ok, can you share an updated Xorg log?

Offline

#15 2017-06-23 22:38:03

buntolo
Member
Registered: 2011-10-11
Posts: 202

Re: Xorg-server set wrong display size

% cat ~/.local/share/xorg/Xorg.0.log
[    63.990] 
X.Org X Server 1.19.3
Release Date: 2017-03-15
[    63.991] X Protocol Version 11, Revision 0
[    63.991] Build Operating System: Linux 4.9.11-1-ARCH x86_64 
[    63.991] Current Operating System: Linux trasportabile 4.11.6-1-ARCH #1 SMP PREEMPT Sat Jun 17 08:19:42 CEST 2017 x86_64
[    63.991] Kernel command line: \vmlinuz-linux ro root=UUID=5e5ecd52-77a7-42c7-a997-0aef9d5cd654 quiet intel_pstate=disable libahci.ignore_sss=1 initrd=\initramfs-linux.img
[    63.991] Build Date: 07 April 2017  05:42:48PM
[    63.991]  
[    63.991] Current version of pixman: 0.34.0
[    63.991] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    63.991] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    63.991] (==) Log file: "/home/archio/.local/share/xorg/Xorg.0.log", Time: Sat Jun 24 01:36:32 2017
[    63.994] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    63.994] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    63.995] (==) No Layout section.  Using the first Screen section.
[    63.995] (==) No screen section available. Using defaults.
[    63.995] (**) |-->Screen "Default Screen Section" (0)
[    63.995] (**) |   |-->Monitor "<default monitor>"
[    63.995] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[    63.995] (**) |   |-->Device "Intel Graphics"
[    63.995] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[    63.995] (==) Automatically adding devices
[    63.995] (==) Automatically enabling devices
[    63.995] (==) Automatically adding GPU devices
[    63.995] (==) Automatically binding GPU devices
[    63.995] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    63.997] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[    63.997] 	Entry deleted from font path.
[    63.997] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[    63.997] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[    63.997] 	Entry deleted from font path.
[    63.997] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[    63.997] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/Type1/
[    63.997] (==) ModulePath set to "/usr/lib/xorg/modules"
[    63.997] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    63.997] (II) Loader magic: 0x822d60
[    63.997] (II) Module ABI versions:
[    63.997] 	X.Org ANSI C Emulation: 0.4
[    63.997] 	X.Org Video Driver: 23.0
[    63.997] 	X.Org XInput driver : 24.1
[    63.997] 	X.Org Server Extension : 10.0
[    63.998] (++) using VT number 1

[    63.998] (--) controlling tty is VT number 1, auto-enabling KeepTty
[    63.999] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[    63.999] (II) xfree86: Adding drm device (/dev/dri/card0)
[    63.999] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0
[    64.001] (--) PCI:*(0:0:2:0) 8086:0416:1558:2300 rev 6, Mem @ 0xf7400000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[    64.001] (--) PCI: (0:1:0:0) 10de:1392:1558:2300 rev 162, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[    64.001] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    64.001] (II) LoadModule: "glx"
[    64.003] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    64.008] (II) Module glx: vendor="X.Org Foundation"
[    64.008] 	compiled for 1.19.3, module version = 1.0.0
[    64.008] 	ABI class: X.Org Server Extension, version 10.0
[    64.008] (II) LoadModule: "intel"
[    64.008] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[    64.010] (II) Module intel: vendor="X.Org Foundation"
[    64.011] 	compiled for 1.19.3, module version = 2.99.917
[    64.011] 	Module class: X.Org Video Driver
[    64.011] 	ABI class: X.Org Video Driver, version 23.0
[    64.011] (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
[    64.011] (II) intel: Driver for Intel(R) HD Graphics
[    64.011] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[    64.011] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[    64.011] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[    64.011] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20170123
[    64.011] (II) intel(0): SNA compiled from 2.99.917-777-g6babcf15
[    64.012] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    64.012] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 4600
[    64.012] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx, avx2; using a maximum of 4 threads
[    64.012] (II) intel(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[    64.012] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[    64.012] (==) intel(0): RGB weight 888
[    64.012] (==) intel(0): Default visual is TrueColor
[    64.012] (**) intel(0): Option "TearFree" "true"
[    64.012] (II) intel(0): Output eDP1 has no monitor section
[    64.013] (**) intel(0): Found backlight control interface intel_backlight (type 'raw') for output eDP1
[    64.013] (II) intel(0): Enabled output eDP1
[    64.014] (II) intel(0): Output DP1 has no monitor section
[    64.014] (II) intel(0): Enabled output DP1
[    64.014] (II) intel(0): Output HDMI1 has no monitor section
[    64.014] (II) intel(0): Enabled output HDMI1
[    64.014] (--) intel(0): Using a maximum size of 256x256 for hardware cursors
[    64.014] (II) intel(0): Output VIRTUAL1 has no monitor section
[    64.014] (II) intel(0): Enabled output VIRTUAL1
[    64.014] (--) intel(0): Output eDP1 using initial mode 1920x1080 on pipe 0
[    64.014] (**) intel(0): TearFree enabled
[    64.014] (==) intel(0): Using gamma correction (1.0, 1.0, 1.0)
[    64.014] (==) intel(0): DPI set to (96, 96)
[    64.014] (II) Loading sub module "dri3"
[    64.014] (II) LoadModule: "dri3"
[    64.014] (II) Module "dri3" already built-in
[    64.014] (II) Loading sub module "dri2"
[    64.014] (II) LoadModule: "dri2"
[    64.014] (II) Module "dri2" already built-in
[    64.014] (II) Loading sub module "present"
[    64.014] (II) LoadModule: "present"
[    64.014] (II) Module "present" already built-in
[    64.014] (==) Depth 24 pixmap format is 32 bpp
[    64.016] (II) intel(0): SNA initialized with Haswell (gen7.5, gt2) backend
[    64.016] (==) intel(0): Backing store enabled
[    64.016] (==) intel(0): Silken mouse enabled
[    64.017] (II) intel(0): HW Cursor enabled
[    64.017] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[    64.017] (==) intel(0): DPMS enabled
[    64.017] (==) intel(0): Display hotplug detection enabled
[    64.017] (II) intel(0): [DRI2] Setup complete
[    64.017] (II) intel(0): [DRI2]   DRI driver: i965
[    64.017] (II) intel(0): [DRI2]   VDPAU driver: va_gl
[    64.017] (II) intel(0): direct rendering: DRI2 DRI3 enabled
[    64.017] (II) intel(0): hardware support for Present enabled
[    64.017] (--) RandR disabled
[    64.052] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[    64.052] (II) AIGLX: enabled GLX_ARB_create_context
[    64.052] (II) AIGLX: enabled GLX_ARB_create_context_profile
[    64.052] (II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile
[    64.052] (II) AIGLX: enabled GLX_INTEL_swap_event
[    64.052] (II) AIGLX: enabled GLX_SGI_swap_control
[    64.052] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[    64.052] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[    64.052] (II) AIGLX: enabled GLX_EXT_fbconfig_packed_float
[    64.052] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[    64.052] (II) AIGLX: enabled GLX_ARB_create_context_robustness
[    64.052] (II) AIGLX: Loaded and initialized i965
[    64.052] (II) GLX: Initialized DRI2 GL provider for screen 0
[    64.055] (II) intel(0): switch to mode 1920x1080@60.0 on eDP1 using pipe 0, position (0, 0), rotation normal, reflection none
[    64.069] (II) intel(0): Setting screen physical size to 508 x 285
[    64.129] (II) config/udev: Adding input device Power Button (/dev/input/event4)
[    64.130] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    64.130] (**) Power Button: Applying InputClass "system-keyboard"
[    64.130] (II) LoadModule: "libinput"
[    64.130] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[    64.139] (II) Module libinput: vendor="X.Org Foundation"
[    64.139] 	compiled for 1.19.3, module version = 0.25.1
[    64.139] 	Module class: X.Org XInput Driver
[    64.139] 	ABI class: X.Org XInput driver, version 24.1
[    64.139] (II) Using input driver 'libinput' for 'Power Button'
[    64.140] (II) systemd-logind: got fd for /dev/input/event4 13:68 fd 21 paused 0
[    64.141] (**) Power Button: always reports core events
[    64.141] (**) Option "Device" "/dev/input/event4"
[    64.141] (**) Option "_source" "server/udev"
[    64.141] (II) event4  - (II) Power Button: (II) is tagged by udev as: Keyboard
[    64.141] (II) event4  - (II) Power Button: (II) device is a keyboard
[    64.141] (II) event4  - (II) Power Button: (II) device removed
[    64.141] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input8/event4"
[    64.141] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[    64.141] (**) Option "xkb_model" "pc105"
[    64.141] (**) Option "xkb_layout" "gb"
[    64.141] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[    64.197] (II) event4  - (II) Power Button: (II) is tagged by udev as: Keyboard
[    64.197] (II) event4  - (II) Power Button: (II) device is a keyboard
[    64.197] (II) config/udev: Adding input device Video Bus (/dev/input/event9)
[    64.197] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[    64.197] (**) Video Bus: Applying InputClass "system-keyboard"
[    64.197] (II) Using input driver 'libinput' for 'Video Bus'
[    64.198] (II) systemd-logind: got fd for /dev/input/event9 13:73 fd 24 paused 0
[    64.198] (**) Video Bus: always reports core events
[    64.198] (**) Option "Device" "/dev/input/event9"
[    64.198] (**) Option "_source" "server/udev"
[    64.199] (II) event9  - (II) Video Bus: (II) is tagged by udev as: Keyboard
[    64.199] (II) event9  - (II) Video Bus: (II) device is a keyboard
[    64.199] (II) event9  - (II) Video Bus: (II) device removed
[    64.199] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input15/event9"
[    64.199] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[    64.199] (**) Option "xkb_model" "pc105"
[    64.199] (**) Option "xkb_layout" "gb"
[    64.199] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[    64.199] (II) event9  - (II) Video Bus: (II) is tagged by udev as: Keyboard
[    64.199] (II) event9  - (II) Video Bus: (II) device is a keyboard
[    64.200] (II) config/udev: Adding input device Video Bus (/dev/input/event8)
[    64.200] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[    64.200] (**) Video Bus: Applying InputClass "system-keyboard"
[    64.200] (II) Using input driver 'libinput' for 'Video Bus'
[    64.201] (II) systemd-logind: got fd for /dev/input/event8 13:72 fd 25 paused 0
[    64.201] (**) Video Bus: always reports core events
[    64.201] (**) Option "Device" "/dev/input/event8"
[    64.201] (**) Option "_source" "server/udev"
[    64.201] (II) event8  - (II) Video Bus: (II) is tagged by udev as: Keyboard
[    64.201] (II) event8  - (II) Video Bus: (II) device is a keyboard
[    64.201] (II) event8  - (II) Video Bus: (II) device removed
[    64.201] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:4c/LNXVIDEO:00/input/input14/event8"
[    64.201] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[    64.201] (**) Option "xkb_model" "pc105"
[    64.201] (**) Option "xkb_layout" "gb"
[    64.201] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[    64.202] (II) event8  - (II) Video Bus: (II) is tagged by udev as: Keyboard
[    64.202] (II) event8  - (II) Video Bus: (II) device is a keyboard
[    64.202] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[    64.202] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    64.202] (**) Power Button: Applying InputClass "system-keyboard"
[    64.202] (II) Using input driver 'libinput' for 'Power Button'
[    64.203] (II) systemd-logind: got fd for /dev/input/event1 13:65 fd 26 paused 0
[    64.203] (**) Power Button: always reports core events
[    64.203] (**) Option "Device" "/dev/input/event1"
[    64.203] (**) Option "_source" "server/udev"
[    64.203] (II) event1  - (II) Power Button: (II) is tagged by udev as: Keyboard
[    64.203] (II) event1  - (II) Power Button: (II) device is a keyboard
[    64.203] (II) event1  - (II) Power Button: (II) device removed
[    64.203] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input5/event1"
[    64.203] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 9)
[    64.203] (**) Option "xkb_model" "pc105"
[    64.203] (**) Option "xkb_layout" "gb"
[    64.203] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[    64.204] (II) event1  - (II) Power Button: (II) is tagged by udev as: Keyboard
[    64.204] (II) event1  - (II) Power Button: (II) device is a keyboard
[    64.204] (II) config/udev: Adding input device Lid Switch (/dev/input/event3)
[    64.204] (II) No input driver specified, ignoring this device.
[    64.204] (II) This device may have been added with another device file.
[    64.205] (II) config/udev: Adding input device Sleep Button (/dev/input/event2)
[    64.205] (**) Sleep Button: Applying InputClass "libinput keyboard catchall"
[    64.205] (**) Sleep Button: Applying InputClass "system-keyboard"
[    64.205] (II) Using input driver 'libinput' for 'Sleep Button'
[    64.206] (II) systemd-logind: got fd for /dev/input/event2 13:66 fd 27 paused 0
[    64.206] (**) Sleep Button: always reports core events
[    64.206] (**) Option "Device" "/dev/input/event2"
[    64.206] (**) Option "_source" "server/udev"
[    64.206] (II) event2  - (II) Sleep Button: (II) is tagged by udev as: Keyboard
[    64.206] (II) event2  - (II) Sleep Button: (II) device is a keyboard
[    64.206] (II) event2  - (II) Sleep Button: (II) device removed
[    64.206] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input6/event2"
[    64.206] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 10)
[    64.206] (**) Option "xkb_model" "pc105"
[    64.206] (**) Option "xkb_layout" "gb"
[    64.206] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[    64.207] (II) event2  - (II) Sleep Button: (II) is tagged by udev as: Keyboard
[    64.207] (II) event2  - (II) Sleep Button: (II) device is a keyboard
[    64.208] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=3 (/dev/input/event10)
[    64.208] (II) No input driver specified, ignoring this device.
[    64.208] (II) This device may have been added with another device file.
[    64.209] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=7 (/dev/input/event11)
[    64.209] (II) No input driver specified, ignoring this device.
[    64.209] (II) This device may have been added with another device file.
[    64.209] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=8 (/dev/input/event12)
[    64.209] (II) No input driver specified, ignoring this device.
[    64.209] (II) This device may have been added with another device file.
[    64.210] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=9 (/dev/input/event13)
[    64.210] (II) No input driver specified, ignoring this device.
[    64.210] (II) This device may have been added with another device file.
[    64.210] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=10 (/dev/input/event14)
[    64.210] (II) No input driver specified, ignoring this device.
[    64.210] (II) This device may have been added with another device file.
[    64.211] (II) config/udev: Adding input device BisonCam, NB Pro (/dev/input/event15)
[    64.211] (**) BisonCam, NB Pro: Applying InputClass "libinput keyboard catchall"
[    64.211] (**) BisonCam, NB Pro: Applying InputClass "system-keyboard"
[    64.211] (II) Using input driver 'libinput' for 'BisonCam, NB Pro'
[    64.213] (II) systemd-logind: got fd for /dev/input/event15 13:79 fd 28 paused 0
[    64.213] (**) BisonCam, NB Pro: always reports core events
[    64.213] (**) Option "Device" "/dev/input/event15"
[    64.213] (**) Option "_source" "server/udev"
[    64.213] (II) event15 - (II) BisonCam, NB Pro: (II) is tagged by udev as: Keyboard
[    64.213] (II) event15 - (II) BisonCam, NB Pro: (II) device is a keyboard
[    64.214] (II) event15 - (II) BisonCam, NB Pro: (II) device removed
[    64.214] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-8/3-8:1.0/input/input21/event15"
[    64.214] (II) XINPUT: Adding extended input device "BisonCam, NB Pro" (type: KEYBOARD, id 11)
[    64.214] (**) Option "xkb_model" "pc105"
[    64.214] (**) Option "xkb_layout" "gb"
[    64.214] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[    64.215] (II) event15 - (II) BisonCam, NB Pro: (II) is tagged by udev as: Keyboard
[    64.215] (II) event15 - (II) BisonCam, NB Pro: (II) device is a keyboard
[    64.215] (II) config/udev: Adding input device HDA Digital PCBeep (/dev/input/event5)
[    64.215] (II) No input driver specified, ignoring this device.
[    64.215] (II) This device may have been added with another device file.
[    64.216] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event6)
[    64.216] (II) No input driver specified, ignoring this device.
[    64.216] (II) This device may have been added with another device file.
[    64.217] (II) config/udev: Adding input device HDA Intel PCH Front Headphone (/dev/input/event7)
[    64.217] (II) No input driver specified, ignoring this device.
[    64.217] (II) This device may have been added with another device file.
[    64.217] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[    64.217] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[    64.217] (**) AT Translated Set 2 keyboard: Applying InputClass "system-keyboard"
[    64.217] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[    64.218] (II) systemd-logind: got fd for /dev/input/event0 13:64 fd 29 paused 0
[    64.219] (**) AT Translated Set 2 keyboard: always reports core events
[    64.219] (**) Option "Device" "/dev/input/event0"
[    64.219] (**) Option "_source" "server/udev"
[    64.219] (II) event0  - (II) AT Translated Set 2 keyboard: (II) is tagged by udev as: Keyboard
[    64.219] (II) event0  - (II) AT Translated Set 2 keyboard: (II) device is a keyboard
[    64.219] (II) event0  - (II) AT Translated Set 2 keyboard: (II) device removed
[    64.219] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
[    64.219] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 12)
[    64.219] (**) Option "xkb_model" "pc105"
[    64.219] (**) Option "xkb_layout" "gb"
[    64.219] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[    64.220] (II) event0  - (II) AT Translated Set 2 keyboard: (II) is tagged by udev as: Keyboard
[    64.220] (II) event0  - (II) AT Translated Set 2 keyboard: (II) device is a keyboard
[    64.221] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event16)
[    64.221] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "libinput touchpad catchall"
[    64.221] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "touchpad catchall"
[    64.221] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "Default clickpad buttons"
[    64.221] (II) LoadModule: "synaptics"
[    64.221] (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so
[    64.227] (II) Module synaptics: vendor="X.Org Foundation"
[    64.227] 	compiled for 1.19.0, module version = 1.9.0
[    64.227] 	Module class: X.Org XInput Driver
[    64.227] 	ABI class: X.Org XInput driver, version 24.1
[    64.227] (II) Using input driver 'synaptics' for 'SynPS/2 Synaptics TouchPad'
[    64.228] (II) systemd-logind: got fd for /dev/input/event16 13:80 fd 30 paused 0
[    64.228] (**) SynPS/2 Synaptics TouchPad: always reports core events
[    64.228] (**) Option "Device" "/dev/input/event16"
[    64.228] (II) synaptics: SynPS/2 Synaptics TouchPad: ignoring touch events for semi-multitouch device
[    64.228] (--) synaptics: SynPS/2 Synaptics TouchPad: x-axis range 1472 - 5692 (res 66)
[    64.228] (--) synaptics: SynPS/2 Synaptics TouchPad: y-axis range 1408 - 4680 (res 102)
[    64.228] (--) synaptics: SynPS/2 Synaptics TouchPad: pressure range 0 - 255
[    64.228] (--) synaptics: SynPS/2 Synaptics TouchPad: finger width range 0 - 15
[    64.228] (--) synaptics: SynPS/2 Synaptics TouchPad: buttons: left right double triple
[    64.228] (--) synaptics: SynPS/2 Synaptics TouchPad: Vendor 0x2 Product 0x7
[    64.228] (--) synaptics: SynPS/2 Synaptics TouchPad: touchpad found
[    64.228] (**) SynPS/2 Synaptics TouchPad: always reports core events
[    64.229] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio2/input/input10/event16"
[    64.229] (II) XINPUT: Adding extended input device "SynPS/2 Synaptics TouchPad" (type: TOUCHPAD, id 13)
[    64.229] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) MinSpeed is now constant deceleration 2.5
[    64.229] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) MaxSpeed is now 1.75
[    64.229] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) AccelFactor is now 0.037
[    64.229] (**) SynPS/2 Synaptics TouchPad: (accel) keeping acceleration scheme 1
[    64.229] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration profile 1
[    64.229] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration factor: 2.000
[    64.229] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration threshold: 4
[    64.229] (--) synaptics: SynPS/2 Synaptics TouchPad: touchpad found
[    64.230] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse0)
[    64.230] (**) SynPS/2 Synaptics TouchPad: Ignoring device from InputClass "touchpad ignore duplicates"
[    64.511] (II) intel(0): EDID vendor "CMN", prod id 4931
[    64.511] (II) intel(0): Printing DDC gathered Modelines:
[    64.511] (II) intel(0): Modeline "1920x1080"x0.0  138.78  1920 1966 1996 2080  1080 1082 1086 1112 -hsync -vsync (66.7 kHz eP)
[    64.511] (II) intel(0): Modeline "1920x1080"x0.0   92.52  1920 1966 1996 2080  1080 1082 1086 1112 -hsync -vsync (44.5 kHz e)

Offline

#16 2017-06-24 07:04:09

seth
Member
Registered: 2012-09-03
Posts: 51,826

Re: Xorg-server set wrong display size

Ok, the intel driver is loaded - the entire thing looks more like a bumblebee setup.

Interestingly there's

[    64.014] (==) intel(0): DPI set to (96, 96)

before

[    64.055] (II) intel(0): switch to mode 1920x1080@60.0 on eDP1 using pipe 0, position (0, 0), rotation normal, reflection none
[    64.069] (II) intel(0): Setting screen physical size to 508 x 285

What does the present intel.conf look like and what happens if you add

Option                 "DPI" "168x168"

to it?

Offline

#17 2017-06-28 17:06:25

buntolo
Member
Registered: 2011-10-11
Posts: 202

Re: Xorg-server set wrong display size

I've added that Option for DPI and xdpyinfo still shows 96x96 DPI.:

% cat /etc/X11/xorg.conf.d/30-intel.conf 
# Posizione originale /etc/X11/xorg.conf.d/30-intel.conf

Section "Device"
    Identifier  "Intel Graphics"
    Driver      "intel"
    Option      "TearFree"    "true"
    Option      "DPI" "168x168"
EndSection

However I've discovered that if I run "xrandr --fbmm 290x170" DPI get adjusted:

% xrandr --fbmm 290x170
% xdpyinfo | grep -B 2 resolution       
screen #0:
  dimensions:    1920x1080 pixels (290x170 millimeters)
  resolution:    168x161 dots per inch

However I can't get it to work adding it in .xinitrc, I'm using zsh and I can't understand if it's an issue.
Also I wonder if this isn't just a workaround.

Offline

#18 2017-06-28 19:28:08

seth
Member
Registered: 2012-09-03
Posts: 51,826

Re: Xorg-server set wrong display size

And if you bring back /etc/X11/xorg.conf.d/20-monitor.conf

Section "Monitor"
    Identifier             "eDP1"
    DisplaySize          290 170
EndSection

?

Offline

#19 2017-07-06 21:37:40

buntolo
Member
Registered: 2011-10-11
Posts: 202

Re: Xorg-server set wrong display size

Nothing changes:

 % cat /etc/X11/xorg.conf.d/20-monitor.conf 
Section "Monitor"
    Identifier             "eDP1"
    DisplaySize            290 170 # These are the value found by xrandr --prop
EndSection

% xdpyinfo | grep -B 2 resolution
screen #0:
  dimensions:    1920x1080 pixels (508x285 millimeters)
  resolution:    96x96 dots per inch

Offline

Board footer

Powered by FluxBB