Hello everybody,
I've just installed Artix for the first time, and it looks like everything works really very well by default (base system ISO, with runit, currently updated).
I have only just a major problem (or annoyance) as of now:
My laptop integrated monitor is quite small (12.5"), and the default (and optimal) screen resolution is 1920 x 1080, correctly detected by Artix.
But the text looks too small for me (readability issues, e.g. with st maximized I strike almost 8-9 Ctrl+Shift+PageUp), and so I'd like to decrease the screen resolution.
Since the system boots in text mode, and I run X only when I need it (startx + dwm, and I'm happy with it), I need to properly configure:
- the virtual consoles
- the X server
- GRUB (its text is also too small)
About the X server, I've found a working solution:
X -configure
generated /etc/X11/xorg.conf via xorg.conf.new ; below the part of interest I edited by hand (with the help of xrandr)
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1368x768"
EndSubSection
GRUB too is ok:
/etc/default/grub
#GRUB_GFXMODE=auto
GRUB_GFXMODE=800x600x32
# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=800x600
grub-mkconfig -o /boot/grub/grub.cfg
The problem is the virtual consoles (I'd like to have 800x600 like in GRUB): I'm not able to configure them: I've done several trial and errors about them; below I write only the commands that (I hope) changed something:
/etc/grub.d/10_linux
Original:
linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} rw ${args}
Edited:
linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} rw ${args} nomodeset i915.modeset=0
grub-mkconfig -o /boot/grub/grub.cfg
With the original configuration startx works correctly (but the text in the virtual console is too small).
With the edited configuration the text on the virtual console (after GRUB and before startx) looks big (as I want), but startx doesn't work anymore.
My ~/.xinitrc contains:
exec dwm
startx (launched in the not-working mode (edited configurtion), as a normal user)
...
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Oct 27 08:12:47 2020
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory: "/usr/share/X11/xorg.conf.d"
for additional information.(EE) (EE) Server terminated with error (1). Closing log file.Xorg.0.log
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Some other lines from the error file mentioned above:
[ 91.339] (WW) Failed to open protocol names file lib/xorg/protocol.txt
...
[ 91.349] Current Operating System: Linux rtx 5.9.1-artix1-1 #1 SMP PREEMPT Sat, 17 Oct 2020 18:30:26 +0000 x86_64
[ 91.349] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=a8a19bcc-e563-4cc8-9bd5-4fb6f9f980fb rw vga=0x002 loglevel=3 quiet
...
[ 91.372] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 91.373] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 91.375] (==) ServerLayout "X.org Configured"
[ 91.375] (**) |-->Screen "Screen0" (0)
[ 91.375] (**) | |-->Monitor "Monitor0"
[ 91.375] (**) | |-->Device "Card0"
[ 91.375] (**) |-->Input Device "Mouse0"
[ 91.375] (**) |-->Input Device "Keyboard0"
[ 91.375] (==) Automatically adding devices
[ 91.375] (==) Automatically enabling devices
...
[ 91.382] (**) FontPath set to:
/usr/share/fonts/100dpi,
/usr/share/fonts/75dpi,
/usr/share/fonts/100dpi,
/usr/share/fonts/75dpi
...
[ 91.382] X.Org ANSI C Emulation: 0.4
[ 91.382] X.Org Video Driver: 24.1
[ 91.382] X.Org XInput driver : 24.1
[ 91.382] X.Org Server Extension : 10.0
[ 91.383] (++) using VT number 1
...
[ 91.384] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
...
[ 92.116] (II) event5 - DELL Wireless hotkeys: device is a keyboard
[ 7296.409] (EE)
Fatal server error:
[ 7296.481] (EE) systemd-logind disappeared (stopped/restarted?)
[ 7296.481] (EE)
[ 7296.481] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 7296.481] (EE) Please also check the log file at "/home/user/.local/share/xorg/Xorg.0.log" for additional information.
[ 7296.481] (EE)
[ 7296.483] (II) AIGLX: Suspending AIGLX clients for VT switch
[ 7296.484] (WW) xf86CloseConsole: KDSETMODE failed: Input/output error
[ 7296.484] (WW) xf86CloseConsole: VT_GETMODE failed: Input/output error
[ 7296.484] (WW) xf86CloseConsole: VT_ACTIVATE failed: Input/output error
[ 7296.484] (EE) systemd-logind: ReleaseControl failed: Connection was disconnected before a reply was received
[ 7296.484] (EE) Server terminated with error (1). Closing log file.
If I revert to the original configuration (without nomodeset i915.modeset=0) startx works again (wih text too small).
Some other details about GRUB...
grub> videoinfo
List of supported video modes:
Legend: mask/position=red/green/blue/reserved
Adapter: `Cirrus CLGD 5446 PCI Video Driver':
No info available
Adapter: `Bochs PCI Video Driver':
No info available
Adapter: `EFI GOP Driver':
0x000 1920 x 1080 x 32 (7680) Direct color, mask: 8/8/8/8 pos: 16/8/0/24
0x001 640 x 480 x 32 (2560) Direct color, mask: 8/8/8/8 pos: 16/8/0/24
* 0x002 800 x 600 x 32 (3200) Direct color, mask: 8/8/8/8 pos: 16/8/0/24
0x003 1024 x 768 x 32 (4096) Direct color, mask: 8/8/8/8 pos: 16/8/0/24
0x004 1280 x 1024 x 32 (5120) Direct color, mask: 8/8/8/8 pos: 16/8/0/24
EDID version: 1.4
Preferred mode: 1920x1080
grub>
... about my video card...
lspci -v | egrep -i --color "vga|3d|2d"
00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07) (prog-if 00 [VGA controller])
lspci -v -s 00:02.0
00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07) (prog-if 00 [VGA controller])
DeviceName: Onboard IGD
Subsystem: Dell Device 06db
Flags: bus master, fast devsel, latency 0, IRQ 131
Memory at e0000000 (64-bit, non-prefetchable) [size=16M]
Memory at d0000000 (64-bit, prefetchable) [size=256M]
I/O ports at f000 [size=64]
Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
Capabilities: [40] Vendor Specific Information: Len=0c <?>
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [100] Process Address Space ID (PASID)
Capabilities: [200] Address Translation Service (ATS)
Capabilities: [300] Page Request Interface (PRI)
Kernel driver in use: i915
Kernel modules: i915
... and about the framebuffer (without nomodeset i915.modeset=0, when startx works and with resolution too high and text too small):
grep buffer /var/log/dmesg.log
[ 0.142264] TAA: Mitigation: Clear CPU buffers
[ 0.142268] MDS: Mitigation: Clear CPU buffers
[ 0.324070] e820: reserve RAM buffer [mem 0x00058000-0x0005ffff]
[ 0.324072] e820: reserve RAM buffer [mem 0x0009e000-0x0009ffff]
[ 0.324073] e820: reserve RAM buffer [mem 0x9d5fc000-0x9fffffff]
[ 0.324074] e820: reserve RAM buffer [mem 0xa8e77000-0xabffffff]
[ 0.324075] e820: reserve RAM buffer [mem 0xab414000-0xabffffff]
[ 0.324076] e820: reserve RAM buffer [mem 0xac500000-0xafffffff]
[ 0.324077] e820: reserve RAM buffer [mem 0x44e000000-0x44fffffff]
[ 0.447378] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[ 0.461982] efifb: framebuffer at 0xd0000000, using 1920k, total 1920k
[ 0.462035] fb0: EFI VGA frame buffer device
[ 1.717538] Console: switching to colour frame buffer device 100x37
[ 5.520098] Console: switching to colour frame buffer device 240x67
[ 5.544038] i915 0000:00:02.0: [drm] fb0: i915drmfb frame buffer device
How can I achieve my goals?
Also, if anyone thinks there are better ways to achieve my goals, please feel free to suggest other solutions.
And if you think I provided too little information, please feel free to ask me to submit more.
Many thanks in advance.