You are not logged in.

#1 2017-06-26 10:06:28

Thomas_Ringot
Member
Registered: 2017-06-25
Posts: 6

How to set default resolution

Disclaimer: First distro and French (sorry if you see grammar mistakes).

Hi there!

I just discover arch and I'm loving it so far, but one major problem I've encountered is that I can't figure out how to set a default screen resolution.
I can change it with xrandr but I have to type this command every time.

Things I've tried:

  • Adding exec xrandr --output <my_screen> --mode <my_resolution> to my .bashrc. Result change the resolution the first time I opened a terminal.

  • Adding exec xrandr ... to my i3 config file. Result: don't work

  • Following https://wiki.archlinux.org/index.php/xo … ng_started Result: fuck up my computer, I get an error when logging and it gets back to the login prompt. It is possible that I have configured wrongly the file

Hope somebody can spare a few minutes to help me, thanks guys !

Offline

#2 2017-06-26 11:21:46

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,567

Re: How to set default resolution

Normally X detects the correct resolution by itself, what card / driver are you using ?

How do you start X ?

the output of lspci -k and xorg log ( look in /var/.log and ~/.local/share/xorg for latest one ) would also help .


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

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2017-06-26 12:38:41

Thomas_Ringot
Member
Registered: 2017-06-25
Posts: 6

Re: How to set default resolution

Yeah I don't know if X correctly guess my screen resolution but it is very small by default.

Here the output of lspci -k

00:00.0 Host bridge: Intel Corporation Device 5904 (rev 02)
	Subsystem: ASUSTeK Computer Inc. Device 16e0
00:02.0 VGA compatible controller: Intel Corporation Device 5916 (rev 02)
	Subsystem: ASUSTeK Computer Inc. Device 16e0
	Kernel driver in use: i915
	Kernel modules: i915
00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 02)
	Subsystem: ASUSTeK Computer Inc. Device 16e0
	Kernel driver in use: proc_thermal
	Kernel modules: processor_thermal_device
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
	Subsystem: ASUSTeK Computer Inc. Device 201f
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
	Subsystem: ASUSTeK Computer Inc. Device 16e0
	Kernel driver in use: intel_pch_thermal
	Kernel modules: intel_pch_thermal
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 (rev 21)
	Subsystem: ASUSTeK Computer Inc. Device 16e0
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:15.1 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #1 (rev 21)
	Subsystem: ASUSTeK Computer Inc. Device 16e0
	Kernel driver in use: intel-lpss
	Kernel modules: intel_lpss_pci
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
	Subsystem: ASUSTeK Computer Inc. Device 16e0
	Kernel driver in use: mei_me
	Kernel modules: mei_me
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
	Subsystem: ASUSTeK Computer Inc. Device 16e0
	Kernel driver in use: ahci
	Kernel modules: ahci
00:1c.0 PCI bridge: Intel Corporation Device 9d10 (rev f1)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1c.7 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #8 (rev f1)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1f.0 ISA bridge: Intel Corporation Device 9d58 (rev 21)
	Subsystem: ASUSTeK Computer Inc. Device 16e0
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
	Subsystem: ASUSTeK Computer Inc. Device 16e0
	Kernel driver in use: intel_pmc_core
00:1f.3 Audio device: Intel Corporation Device 9d71 (rev 21)
	Subsystem: ASUSTeK Computer Inc. Device 1530
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel, snd_soc_skl
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
	Subsystem: ASUSTeK Computer Inc. Device 16e0
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940MX] (rev a2)
	Subsystem: ASUSTeK Computer Inc. Device 138e
	Kernel driver in use: nouveau
	Kernel modules: nouveau
02:00.0 Network controller: Intel Corporation Wireless 8260 (rev 3a)
	Subsystem: Intel Corporation Device 0110
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi

and xorg log

[    31.504] 
X.Org X Server 1.19.3
Release Date: 2017-03-15
[    31.504] X Protocol Version 11, Revision 0
[    31.504] Build Operating System: Linux 4.9.11-1-ARCH x86_64 
[    31.505] Current Operating System: Linux arch-laptop 4.11.6-3-ARCH #1 SMP PREEMPT Thu Jun 22 12:21:46 CEST 2017 x86_64
[    31.505] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=657829b5-5879-4e64-9d34-c6fec3732888 rw quiet
[    31.505] Build Date: 07 April 2017  05:42:48PM
[    31.505]  
[    31.505] Current version of pixman: 0.34.0
[    31.505] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    31.505] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    31.505] (==) Log file: "/home/thomas/.local/share/xorg/Xorg.0.log", Time: Mon Jun 26 08:58:02 2017
[    31.506] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    31.506] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    31.507] (==) No Layout section.  Using the first Screen section.
[    31.507] (==) No screen section available. Using defaults.
[    31.507] (**) |-->Screen "Default Screen Section" (0)
[    31.507] (**) |   |-->Monitor "<default monitor>"
[    31.507] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[    31.507] (==) Automatically adding devices
[    31.507] (==) Automatically enabling devices
[    31.507] (==) Automatically adding GPU devices
[    31.507] (==) Automatically binding GPU devices
[    31.507] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    31.510] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[    31.510] 	Entry deleted from font path.
[    31.510] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[    31.510] 	Entry deleted from font path.
[    31.510] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[    31.510] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[    31.510] 	Entry deleted from font path.
[    31.510] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[    31.510] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/
[    31.510] (==) ModulePath set to "/usr/lib/xorg/modules"
[    31.510] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    31.510] (II) Loader magic: 0x822d60
[    31.510] (II) Module ABI versions:
[    31.510] 	X.Org ANSI C Emulation: 0.4
[    31.510] 	X.Org Video Driver: 23.0
[    31.510] 	X.Org XInput driver : 24.1
[    31.510] 	X.Org Server Extension : 10.0
[    31.512] (++) using VT number 1

[    31.512] (--) controlling tty is VT number 1, auto-enabling KeepTty
[    31.513] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[    31.513] (II) xfree86: Adding drm device (/dev/dri/card0)
[    31.513] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0
[    31.514] (II) xfree86: Adding drm device (/dev/dri/card1)
[    31.514] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 12 paused 0
[    31.515] (--) PCI:*(0:0:2:0) 8086:5916:1043:16e0 rev 2, Mem @ 0xed000000/16777216, 0xc0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[    31.515] (--) PCI: (0:1:0:0) 10de:134d:1043:138e rev 162, Mem @ 0xee000000/16777216, 0xd0000000/268435456, 0xe0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[    31.515] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    31.515] (II) LoadModule: "glx"
[    31.517] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    31.524] (II) Module glx: vendor="X.Org Foundation"
[    31.524] 	compiled for 1.19.3, module version = 1.0.0
[    31.524] 	ABI class: X.Org Server Extension, version 10.0
[    31.524] (==) Matched intel as autoconfigured driver 0
[    31.524] (==) Matched nouveau as autoconfigured driver 1
[    31.524] (==) Matched nv as autoconfigured driver 2
[    31.524] (==) Matched intel as autoconfigured driver 3
[    31.524] (==) Matched modesetting as autoconfigured driver 4
[    31.524] (==) Matched fbdev as autoconfigured driver 5
[    31.524] (==) Matched vesa as autoconfigured driver 6
[    31.524] (==) Assigned the driver to the xf86ConfigLayout
[    31.524] (II) LoadModule: "intel"
[    31.524] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[    31.527] (II) Module intel: vendor="X.Org Foundation"
[    31.527] 	compiled for 1.19.3, module version = 2.99.917
[    31.527] 	Module class: X.Org Video Driver
[    31.527] 	ABI class: X.Org Video Driver, version 23.0
[    31.527] (II) LoadModule: "nouveau"
[    31.527] (WW) Warning, couldn't open module nouveau
[    31.527] (II) UnloadModule: "nouveau"
[    31.527] (II) Unloading nouveau
[    31.527] (EE) Failed to load module "nouveau" (module does not exist, 0)
[    31.527] (II) LoadModule: "nv"
[    31.527] (WW) Warning, couldn't open module nv
[    31.527] (II) UnloadModule: "nv"
[    31.527] (II) Unloading nv
[    31.527] (EE) Failed to load module "nv" (module does not exist, 0)
[    31.527] (II) LoadModule: "modesetting"
[    31.527] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    31.528] (II) Module modesetting: vendor="X.Org Foundation"
[    31.528] 	compiled for 1.19.3, module version = 1.19.3
[    31.528] 	Module class: X.Org Video Driver
[    31.528] 	ABI class: X.Org Video Driver, version 23.0
[    31.528] (II) LoadModule: "fbdev"
[    31.528] (WW) Warning, couldn't open module fbdev
[    31.528] (II) UnloadModule: "fbdev"
[    31.528] (II) Unloading fbdev
[    31.528] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    31.528] (II) LoadModule: "vesa"
[    31.528] (WW) Warning, couldn't open module vesa
[    31.528] (II) UnloadModule: "vesa"
[    31.528] (II) Unloading vesa
[    31.528] (EE) Failed to load module "vesa" (module does not exist, 0)
[    31.528] (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
[    31.528] (II) intel: Driver for Intel(R) HD Graphics
[    31.528] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[    31.528] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[    31.528] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    31.528] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[    31.529] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20170123
[    31.529] (II) intel(0): SNA compiled from 2.99.917-777-g6babcf15
[    31.529] (WW) Falling back to old probe method for modesetting
[    31.529] (II) modeset(G0): using drv /dev/dri/card1
[    31.529] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    31.530] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 620
[    31.530] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx, avx2; using a maximum of 2 threads
[    31.530] (II) intel(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[    31.530] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[    31.530] (==) intel(0): RGB weight 888
[    31.530] (==) intel(0): Default visual is TrueColor
[    31.530] (II) intel(0): Output eDP1 has no monitor section
[    31.531] (**) intel(0): Found backlight control interface intel_backlight (type 'raw') for output eDP1
[    31.531] (II) intel(0): Enabled output eDP1
[    31.531] (II) intel(0): Output DP1 has no monitor section
[    31.531] (II) intel(0): Enabled output DP1
[    31.531] (II) intel(0): Output HDMI1 has no monitor section
[    31.531] (II) intel(0): Enabled output HDMI1
[    31.531] (II) intel(0): Output HDMI2 has no monitor section
[    31.531] (II) intel(0): Enabled output HDMI2
[    31.531] (--) intel(0): Using a maximum size of 256x256 for hardware cursors
[    31.531] (II) intel(0): Output VIRTUAL1 has no monitor section
[    31.531] (II) intel(0): Enabled output VIRTUAL1
[    31.531] (--) intel(0): Output eDP1 using initial mode 1920x1080 on pipe 0
[    31.531] (==) intel(0): TearFree disabled
[    31.531] (==) intel(0): Using gamma correction (1.0, 1.0, 1.0)
[    31.531] (==) intel(0): DPI set to (96, 96)
[    31.531] (II) Loading sub module "dri3"
[    31.531] (II) LoadModule: "dri3"
[    31.531] (II) Module "dri3" already built-in
[    31.531] (II) Loading sub module "dri2"
[    31.531] (II) LoadModule: "dri2"
[    31.531] (II) Module "dri2" already built-in
[    31.531] (II) Loading sub module "present"
[    31.531] (II) LoadModule: "present"
[    31.531] (II) Module "present" already built-in
[    31.547] (==) modeset(G0): Depth 24, (==) framebuffer bpp 32
[    31.547] (==) modeset(G0): RGB weight 888
[    31.547] (==) modeset(G0): Default visual is TrueColor
[    31.547] (II) Loading sub module "glamoregl"
[    31.548] (II) LoadModule: "glamoregl"
[    31.548] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    31.553] (II) Module glamoregl: vendor="X.Org Foundation"
[    31.553] 	compiled for 1.19.3, module version = 1.0.0
[    31.553] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    31.553] (II) glamor: OpenGL accelerated X.org driver based.
[    31.882] (II) glamor: EGL version 1.4 (DRI2):
[    31.893] (II) modeset(G0): glamor initialized
[    31.893] (==) modeset(G0): Using gamma correction (1.0, 1.0, 1.0)
[    31.893] (==) modeset(G0): DPI set to (96, 96)
[    31.893] (II) Loading sub module "fb"
[    31.893] (II) LoadModule: "fb"
[    31.893] (II) Loading /usr/lib/xorg/modules/libfb.so
[    31.894] (II) Module fb: vendor="X.Org Foundation"
[    31.894] 	compiled for 1.19.3, module version = 1.0.0
[    31.894] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    31.894] (==) Depth 24 pixmap format is 32 bpp
[    31.916] (==) modeset(G0): Backing store enabled
[    31.916] (==) modeset(G0): Silken mouse enabled
[    31.916] (II) modeset(G0): RandR 1.2 enabled, ignore the following RandR disabled message.
[    31.917] (==) modeset(G0): DPMS enabled
[    31.917] (II) modeset(G0): [DRI2] Setup complete
[    31.917] (II) modeset(G0): [DRI2]   DRI driver: nouveau
[    31.917] (II) modeset(G0): [DRI2]   VDPAU driver: nouveau
[    31.918] (II) intel(0): SNA initialized with Kabylake (gen9) backend
[    31.918] (==) intel(0): Backing store enabled
[    31.918] (==) intel(0): Silken mouse enabled
[    31.918] (II) intel(0): HW Cursor enabled
[    31.918] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[    31.918] (==) intel(0): DPMS enabled
[    31.918] (==) intel(0): Display hotplug detection enabled
[    31.919] (II) intel(0): [DRI2] Setup complete
[    31.919] (II) intel(0): [DRI2]   DRI driver: i965
[    31.919] (II) intel(0): [DRI2]   VDPAU driver: va_gl
[    31.919] (II) intel(0): direct rendering: DRI2 DRI3 enabled
[    31.919] (II) intel(0): hardware support for Present enabled
[    31.919] (--) RandR disabled
[    31.938] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[    31.938] (II) AIGLX: enabled GLX_ARB_create_context
[    31.938] (II) AIGLX: enabled GLX_ARB_create_context_profile
[    31.938] (II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile
[    31.938] (II) AIGLX: enabled GLX_INTEL_swap_event
[    31.938] (II) AIGLX: enabled GLX_SGI_swap_control
[    31.938] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[    31.938] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[    31.938] (II) AIGLX: enabled GLX_EXT_fbconfig_packed_float
[    31.938] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[    31.938] (II) AIGLX: enabled GLX_ARB_create_context_robustness
[    31.938] (II) AIGLX: Loaded and initialized i965
[    31.938] (II) GLX: Initialized DRI2 GL provider for screen 0
[    31.941] (II) modeset(G0): Damage tracking initialized
[    31.944] (II) intel(0): switch to mode 1920x1080@60.0 on eDP1 using pipe 0, position (0, 0), rotation normal, reflection none
[    31.950] (II) intel(0): Setting screen physical size to 508 x 285
[    31.986] (II) config/udev: Adding input device Power Button (/dev/input/event5)
[    31.986] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    31.986] (**) Power Button: Applying InputClass "system-keyboard"
[    31.986] (II) LoadModule: "libinput"
[    31.987] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[    31.990] (II) Module libinput: vendor="X.Org Foundation"
[    31.990] 	compiled for 1.19.3, module version = 0.25.1
[    31.990] 	Module class: X.Org XInput Driver
[    31.990] 	ABI class: X.Org XInput driver, version 24.1
[    31.990] (II) Using input driver 'libinput' for 'Power Button'
[    31.990] (II) systemd-logind: got fd for /dev/input/event5 13:69 fd 26 paused 0
[    31.990] (**) Power Button: always reports core events
[    31.990] (**) Option "Device" "/dev/input/event5"
[    31.990] (**) Option "_source" "server/udev"
[    31.990] (II) event5  - (II) Power Button: (II) is tagged by udev as: Keyboard
[    31.990] (II) event5  - (II) Power Button: (II) device is a keyboard
[    31.990] (II) event5  - (II) Power Button: (II) device removed
[    31.990] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input5/event5"
[    31.990] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[    31.990] (**) Option "xkb_layout" "fr"
[    32.004] (II) event5  - (II) Power Button: (II) is tagged by udev as: Keyboard
[    32.004] (II) event5  - (II) Power Button: (II) device is a keyboard
[    32.005] (II) config/udev: Adding input device Asus Wireless Radio Control (/dev/input/event2)
[    32.005] (**) Asus Wireless Radio Control: Applying InputClass "libinput keyboard catchall"
[    32.005] (**) Asus Wireless Radio Control: Applying InputClass "system-keyboard"
[    32.005] (II) Using input driver 'libinput' for 'Asus Wireless Radio Control'
[    32.005] (II) systemd-logind: got fd for /dev/input/event2 13:66 fd 29 paused 0
[    32.005] (**) Asus Wireless Radio Control: always reports core events
[    32.005] (**) Option "Device" "/dev/input/event2"
[    32.005] (**) Option "_source" "server/udev"
[    32.005] (II) event2  - (II) Asus Wireless Radio Control: (II) is tagged by udev as: Keyboard
[    32.005] (II) event2  - (II) Asus Wireless Radio Control: (II) device is a keyboard
[    32.005] (II) event2  - (II) Asus Wireless Radio Control: (II) device removed
[    32.005] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/ATK4002:00/input/input2/event2"
[    32.005] (II) XINPUT: Adding extended input device "Asus Wireless Radio Control" (type: KEYBOARD, id 7)
[    32.005] (**) Option "xkb_layout" "fr"
[    32.006] (II) event2  - (II) Asus Wireless Radio Control: (II) is tagged by udev as: Keyboard
[    32.006] (II) event2  - (II) Asus Wireless Radio Control: (II) device is a keyboard
[    32.006] (II) config/udev: Adding input device Video Bus (/dev/input/event9)
[    32.006] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[    32.006] (**) Video Bus: Applying InputClass "system-keyboard"
[    32.006] (II) Using input driver 'libinput' for 'Video Bus'
[    32.006] (II) systemd-logind: got fd for /dev/input/event9 13:73 fd 30 paused 0
[    32.006] (**) Video Bus: always reports core events
[    32.006] (**) Option "Device" "/dev/input/event9"
[    32.006] (**) Option "_source" "server/udev"
[    32.006] (II) event9  - (II) Video Bus: (II) is tagged by udev as: Keyboard
[    32.007] (II) event9  - (II) Video Bus: (II) device is a keyboard
[    32.007] (II) event9  - (II) Video Bus: (II) device removed
[    32.007] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input9/event9"
[    32.007] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[    32.007] (**) Option "xkb_layout" "fr"
[    32.007] (II) event9  - (II) Video Bus: (II) is tagged by udev as: Keyboard
[    32.007] (II) event9  - (II) Video Bus: (II) device is a keyboard
[    32.007] (II) config/udev: Adding input device Lid Switch (/dev/input/event1)
[    32.007] (II) No input driver specified, ignoring this device.
[    32.007] (II) This device may have been added with another device file.
[    32.007] (II) config/udev: Adding input device Video Bus (/dev/input/event10)
[    32.007] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[    32.007] (**) Video Bus: Applying InputClass "system-keyboard"
[    32.007] (II) Using input driver 'libinput' for 'Video Bus'
[    32.007] (II) systemd-logind: got fd for /dev/input/event10 13:74 fd 31 paused 0
[    32.007] (**) Video Bus: always reports core events
[    32.007] (**) Option "Device" "/dev/input/event10"
[    32.007] (**) Option "_source" "server/udev"
[    32.008] (II) event10 - (II) Video Bus: (II) is tagged by udev as: Keyboard
[    32.008] (II) event10 - (II) Video Bus: (II) device is a keyboard
[    32.008] (II) event10 - (II) Video Bus: (II) device removed
[    32.008] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:23/LNXVIDEO:01/input/input10/event10"
[    32.008] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 9)
[    32.008] (**) Option "xkb_layout" "fr"
[    32.008] (II) event10 - (II) Video Bus: (II) is tagged by udev as: Keyboard
[    32.008] (II) event10 - (II) Video Bus: (II) device is a keyboard
[    32.008] (II) config/udev: Adding input device Power Button (/dev/input/event4)
[    32.008] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    32.008] (**) Power Button: Applying InputClass "system-keyboard"
[    32.008] (II) Using input driver 'libinput' for 'Power Button'
[    32.008] (II) systemd-logind: got fd for /dev/input/event4 13:68 fd 32 paused 0
[    32.008] (**) Power Button: always reports core events
[    32.008] (**) Option "Device" "/dev/input/event4"
[    32.008] (**) Option "_source" "server/udev"
[    32.009] (II) event4  - (II) Power Button: (II) is tagged by udev as: Keyboard
[    32.009] (II) event4  - (II) Power Button: (II) device is a keyboard
[    32.009] (II) event4  - (II) Power Button: (II) device removed
[    32.009] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input4/event4"
[    32.009] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 10)
[    32.009] (**) Option "xkb_layout" "fr"
[    32.009] (II) event4  - (II) Power Button: (II) is tagged by udev as: Keyboard
[    32.009] (II) event4  - (II) Power Button: (II) device is a keyboard
[    32.009] (II) config/udev: Adding input device Sleep Button (/dev/input/event3)
[    32.009] (**) Sleep Button: Applying InputClass "libinput keyboard catchall"
[    32.009] (**) Sleep Button: Applying InputClass "system-keyboard"
[    32.009] (II) Using input driver 'libinput' for 'Sleep Button'
[    32.009] (II) systemd-logind: got fd for /dev/input/event3 13:67 fd 33 paused 0
[    32.009] (**) Sleep Button: always reports core events
[    32.009] (**) Option "Device" "/dev/input/event3"
[    32.009] (**) Option "_source" "server/udev"
[    32.010] (II) event3  - (II) Sleep Button: (II) is tagged by udev as: Keyboard
[    32.010] (II) event3  - (II) Sleep Button: (II) device is a keyboard
[    32.010] (II) event3  - (II) Sleep Button: (II) device removed
[    32.010] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input3/event3"
[    32.010] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 11)
[    32.010] (**) Option "xkb_layout" "fr"
[    32.010] (II) event3  - (II) Sleep Button: (II) is tagged by udev as: Keyboard
[    32.010] (II) event3  - (II) Sleep Button: (II) device is a keyboard
[    32.010] (II) config/udev: Adding input device USB2.0 HD UVC WebCam (/dev/input/event7)
[    32.010] (**) USB2.0 HD UVC WebCam: Applying InputClass "libinput keyboard catchall"
[    32.010] (**) USB2.0 HD UVC WebCam: Applying InputClass "system-keyboard"
[    32.010] (II) Using input driver 'libinput' for 'USB2.0 HD UVC WebCam'
[    32.011] (II) systemd-logind: got fd for /dev/input/event7 13:71 fd 34 paused 0
[    32.011] (**) USB2.0 HD UVC WebCam: always reports core events
[    32.011] (**) Option "Device" "/dev/input/event7"
[    32.011] (**) Option "_source" "server/udev"
[    32.011] (II) event7  - (II) USB2.0 HD UVC WebCam: (II) is tagged by udev as: Keyboard
[    32.011] (II) event7  - (II) USB2.0 HD UVC WebCam: (II) device is a keyboard
[    32.011] (II) event7  - (II) USB2.0 HD UVC WebCam: (II) device removed
[    32.011] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/input/input7/event7"
[    32.011] (II) XINPUT: Adding extended input device "USB2.0 HD UVC WebCam" (type: KEYBOARD, id 12)
[    32.011] (**) Option "xkb_layout" "fr"
[    32.011] (II) event7  - (II) USB2.0 HD UVC WebCam: (II) is tagged by udev as: Keyboard
[    32.011] (II) event7  - (II) USB2.0 HD UVC WebCam: (II) device is a keyboard
[    32.012] (II) config/udev: Adding input device ELAN1200:00 04F3:3022 Touchpad (/dev/input/event18)
[    32.012] (**) ELAN1200:00 04F3:3022 Touchpad: Applying InputClass "libinput touchpad catchall"
[    32.012] (II) Using input driver 'libinput' for 'ELAN1200:00 04F3:3022 Touchpad'
[    32.117] (II) systemd-logind: got fd for /dev/input/event18 13:82 fd 35 paused 0
[    32.117] (**) ELAN1200:00 04F3:3022 Touchpad: always reports core events
[    32.117] (**) Option "Device" "/dev/input/event18"
[    32.117] (**) Option "_source" "server/udev"
[    32.117] (II) event18 - (II) ELAN1200:00 04F3:3022 Touchpad: (II) is tagged by udev as: Touchpad
[    32.117] (II) event18 - (II) ELAN1200:00 04F3:3022 Touchpad: (II) device is a touchpad
[    32.117] (II) event18 - (II) ELAN1200:00 04F3:3022 Touchpad: (II) device removed
[    32.117] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-10/i2c-ELAN1200:00/0018:04F3:3022.0001/input/input19/event18"
[    32.117] (II) XINPUT: Adding extended input device "ELAN1200:00 04F3:3022 Touchpad" (type: TOUCHPAD, id 13)
[    32.117] (**) Option "AccelerationScheme" "none"
[    32.117] (**) ELAN1200:00 04F3:3022 Touchpad: (accel) selected scheme none/0
[    32.117] (**) ELAN1200:00 04F3:3022 Touchpad: (accel) acceleration factor: 2.000
[    32.117] (**) ELAN1200:00 04F3:3022 Touchpad: (accel) acceleration threshold: 4
[    32.118] (II) event18 - (II) ELAN1200:00 04F3:3022 Touchpad: (II) is tagged by udev as: Touchpad
[    32.118] (II) event18 - (II) ELAN1200:00 04F3:3022 Touchpad: (II) device is a touchpad
[    32.118] (II) config/udev: Adding input device ELAN1200:00 04F3:3022 Touchpad (/dev/input/mouse0)
[    32.118] (II) No input driver specified, ignoring this device.
[    32.118] (II) This device may have been added with another device file.
[    32.118] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event11)
[    32.118] (II) No input driver specified, ignoring this device.
[    32.118] (II) This device may have been added with another device file.
[    32.118] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event12)
[    32.118] (II) No input driver specified, ignoring this device.
[    32.118] (II) This device may have been added with another device file.
[    32.118] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event13)
[    32.118] (II) No input driver specified, ignoring this device.
[    32.118] (II) This device may have been added with another device file.
[    32.119] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=7 (/dev/input/event14)
[    32.119] (II) No input driver specified, ignoring this device.
[    32.119] (II) This device may have been added with another device file.
[    32.119] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=8 (/dev/input/event15)
[    32.119] (II) No input driver specified, ignoring this device.
[    32.119] (II) This device may have been added with another device file.
[    32.119] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=9 (/dev/input/event16)
[    32.119] (II) No input driver specified, ignoring this device.
[    32.119] (II) This device may have been added with another device file.
[    32.119] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=10 (/dev/input/event17)
[    32.119] (II) No input driver specified, ignoring this device.
[    32.119] (II) This device may have been added with another device file.
[    32.119] (II) config/udev: Adding input device Asus WMI hotkeys (/dev/input/event8)
[    32.119] (**) Asus WMI hotkeys: Applying InputClass "libinput keyboard catchall"
[    32.119] (**) Asus WMI hotkeys: Applying InputClass "system-keyboard"
[    32.119] (II) Using input driver 'libinput' for 'Asus WMI hotkeys'
[    32.120] (II) systemd-logind: got fd for /dev/input/event8 13:72 fd 36 paused 0
[    32.120] (**) Asus WMI hotkeys: always reports core events
[    32.120] (**) Option "Device" "/dev/input/event8"
[    32.120] (**) Option "_source" "server/udev"
[    32.120] (II) event8  - (II) Asus WMI hotkeys: (II) is tagged by udev as: Keyboard
[    32.120] (II) event8  - (II) Asus WMI hotkeys: (II) device is a keyboard
[    32.120] (II) event8  - (II) Asus WMI hotkeys: (II) device removed
[    32.120] (**) Option "config_info" "udev:/sys/devices/platform/asus-nb-wmi/input/input8/event8"
[    32.120] (II) XINPUT: Adding extended input device "Asus WMI hotkeys" (type: KEYBOARD, id 14)
[    32.120] (**) Option "xkb_layout" "fr"
[    32.120] (II) event8  - (II) Asus WMI hotkeys: (II) is tagged by udev as: Keyboard
[    32.120] (II) event8  - (II) Asus WMI hotkeys: (II) device is a keyboard
[    32.121] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[    32.121] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[    32.121] (**) AT Translated Set 2 keyboard: Applying InputClass "system-keyboard"
[    32.121] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[    32.121] (II) systemd-logind: got fd for /dev/input/event0 13:64 fd 37 paused 0
[    32.121] (**) AT Translated Set 2 keyboard: always reports core events
[    32.121] (**) Option "Device" "/dev/input/event0"
[    32.121] (**) Option "_source" "server/udev"
[    32.121] (II) event0  - (II) AT Translated Set 2 keyboard: (II) is tagged by udev as: Keyboard
[    32.121] (II) event0  - (II) AT Translated Set 2 keyboard: (II) device is a keyboard
[    32.121] (II) event0  - (II) AT Translated Set 2 keyboard: (II) device removed
[    32.121] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
[    32.121] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 15)
[    32.121] (**) Option "xkb_layout" "fr"
[    32.122] (II) event0  - (II) AT Translated Set 2 keyboard: (II) is tagged by udev as: Keyboard
[    32.122] (II) event0  - (II) AT Translated Set 2 keyboard: (II) device is a keyboard
[    32.122] (II) config/udev: Adding input device PC Speaker (/dev/input/event6)
[    32.122] (II) No input driver specified, ignoring this device.
[    32.122] (II) This device may have been added with another device file.
[    33.532] (II) intel(0): EDID vendor "CMN", prod id 5330
[    33.532] (II) intel(0): Printing DDC gathered Modelines:
[    33.532] (II) intel(0): Modeline "1920x1080"x0.0  152.84  1920 2000 2060 2250  1080 1086 1094 1132 -hsync -vsync (67.9 kHz eP)
[    33.532] (II) intel(0): Modeline "1920x1080"x0.0  101.88  1920 2000 2060 2250  1080 1086 1094 1132 -hsync -vsync (45.3 kHz e)
[   143.294] (II) config/udev: Adding input device USB Optical Mouse (/dev/input/mouse1)
[   143.294] (II) No input driver specified, ignoring this device.
[   143.294] (II) This device may have been added with another device file.
[   143.398] (II) config/udev: Adding input device USB Optical Mouse (/dev/input/event19)
[   143.398] (**) USB Optical Mouse: Applying InputClass "libinput pointer catchall"
[   143.398] (II) Using input driver 'libinput' for 'USB Optical Mouse'
[   143.454] (II) systemd-logind: got fd for /dev/input/event19 13:83 fd 51 paused 0
[   143.454] (**) USB Optical Mouse: always reports core events
[   143.454] (**) Option "Device" "/dev/input/event19"
[   143.454] (**) Option "_source" "server/udev"
[   143.456] (II) event19 - (II) USB Optical Mouse: (II) is tagged by udev as: Mouse
[   143.456] (II) event19 - (II) USB Optical Mouse: (II) device is a pointer
[   143.456] (II) event19 - (II) USB Optical Mouse: (II) device removed
[   143.456] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:1BCF:0005.0002/input/input20/event19"
[   143.456] (II) XINPUT: Adding extended input device "USB Optical Mouse" (type: MOUSE, id 16)
[   143.457] (**) Option "AccelerationScheme" "none"
[   143.457] (**) USB Optical Mouse: (accel) selected scheme none/0
[   143.457] (**) USB Optical Mouse: (accel) acceleration factor: 2.000
[   143.457] (**) USB Optical Mouse: (accel) acceleration threshold: 4
[   143.459] (II) event19 - (II) USB Optical Mouse: (II) is tagged by udev as: Mouse
[   143.459] (II) event19 - (II) USB Optical Mouse: (II) device is a pointer
[   327.150] (II) intel(0): resizing framebuffer to 1600x900
[   327.151] (II) intel(0): switch to mode 1600x900@60.0 on eDP1 using pipe 0, position (0, 0), rotation normal, reflection none
[  2902.092] (**) Option "fd" "35"
[  2902.092] (II) event18 - (II) ELAN1200:00 04F3:3022 Touchpad: (II) device removed
[  2917.398] (II) event18 - (II) ELAN1200:00 04F3:3022 Touchpad: (II) is tagged by udev as: Touchpad
[  2917.398] (II) event18 - (II) ELAN1200:00 04F3:3022 Touchpad: (II) device is a touchpad

Thank you very much for your help.

Offline

#4 2017-06-26 13:01:07

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,545
Website

Re: How to set default resolution

Putting the xrandr command in a shellrc file would not only be unreliable, but will also cause problems.

Putting the xrandr command in your ~/.xinitrc on the other hand would do just what you want - assuming your start X in a way that reads ~/.xinitrc which is likely why you were asked how you start X.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2017-06-26 13:12:34

Thomas_Ringot
Member
Registered: 2017-06-25
Posts: 6

Re: How to set default resolution

Keep in mind that this is first ever Linux distrib, so I'm still learning.

How can I know how X is started?

Offline

#6 2017-06-26 13:15:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,545
Website

Re: How to set default resolution

Eh ... how did you install your current system?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2017-06-26 13:41:19

Thomas_Ringot
Member
Registered: 2017-06-25
Posts: 6

Re: How to set default resolution

With the wiki to install it, once I was able to log in a friend help me install gnome and i3.

Is this a good response for "How do you start X "?

/usr/lib/xorg-server/Xorg.wrap

Offline

#8 2017-06-26 14:10:58

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

Re: How to set default resolution

No, you'd usually be using xinit, startx or some DM. Also gnome defaults to wayland.
Finally: you xorg log says a 1920x1080 modeline is added and ultimately 1600x900 is used on eDP1 what sounds like a pretty normal notebook display.

So I'd challenge your observations itfp.
=> What's the output of "xrandr -q" and what did your vendor advertise to sell you?

Offline

#9 2017-06-26 14:13:48

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,545
Website

Re: How to set default resolution

No that's not a very helpful response.  You should probably ask your friend for help as not only do we not know how your system is configured, you don't even know how your system is configured.  It will be very difficult for you to get any support on these forums (now or in the future).  Your "friend" did you a great disservice.  Either they should now commit to doing your system maintenance for you indefinitely - or you should go back a few steps and learn what you are doing so you can maintain your own system.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2017-06-26 14:46:17

Thomas_Ringot
Member
Registered: 2017-06-25
Posts: 6

Re: How to set default resolution

seth wrote:

No, you'd usually be using xinit, startx or some DM. Also gnome defaults to wayland.
Finally: you xorg log says a 1920x1080 modeline is added and ultimately 1600x900 is used on eDP1 what sounds like a pretty normal notebook display.

So I'd challenge your observations itfp.
=> What's the output of "xrandr -q" and what did your vendor advertise to sell you?

Yes by default it is 1920x1080 and I need to switch to 1600x900 by myself using xrandr in a terminal. I want 1600x900 to be the default screen resolution. I use startx I think.

Here is xrandr -q

Screen 0: minimum 8 x 8, current 1600 x 900, maximum 32767 x 32767
eDP1 connected primary 1600x900+0+0 (normal left inverted right x axis y axis) 310mm x 170mm
   1920x1080     60.01 +  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)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
Trilby wrote:

No that's not a very helpful response.  You should probably ask your friend for help as not only do we not know how your system is configured, you don't even know how your system is configured.  It will be very difficult for you to get any support on these forums (now or in the future).  Your "friend" did you a great disservice.  Either they should now commit to doing your system maintenance for you indefinitely - or you should go back a few steps and learn what you are doing so you can maintain your own system.

Thanks for your advice, I'm here to learned and not afraid to spend countless hours. Just asking help when I'm stuck, for this problem I've tried many things.

Offline

#11 2017-06-26 14:54:36

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

Re: How to set default resolution

This looks like an xy problem - why would you want to use a upscaled, probably blurry, output?
W/o setting the resolution:

xdpyinfo | grep resolution

Is the physical monitor about 31cm x 17cm of size (I mean: in doubt use a ruler to figure that)

And figure how you start X11. Regardless of starting X11, you can configure it like /etc/X11/xorg.conf.d/20-myblurrymonitor.conf

Section "Monitor"
   Identifier "eDP1"
   Option "PreferredMode" "1600x900"
EndSection

Notice that the forum is not meant to ask yourself through what you should have looked up in the wiki first. Notably installation and basic configuration.

edit: far too many blanks ... ;-)

Last edited by seth (2017-06-26 14:55:14)

Offline

#12 2017-06-26 14:59:47

Thomas_Ringot
Member
Registered: 2017-06-25
Posts: 6

Re: How to set default resolution

Thanks for your help I will look into this and come back tomorrow.

Last edited by Thomas_Ringot (2017-06-26 15:04:25)

Offline

Board footer

Powered by FluxBB