How do I set correct screen resolution, permanently
Posted: Sun Nov 14, 2021 1:29 pm
Freshly installed MX 21 XFCE on
Dell OptiPlex 7010 Ultra Small Form Factor (desktop, not laptop as Quick System Info says).
Integrated GPU Intel HD 4000, no other GPUs and will never be as the motherboard has no slots.
The max resolution available is 1024x768. Having done `xrandr` and `cvt 1680 1050 60`, when I do
manually in the terminal, I do get my correct resolution, but for current boot only.
With various internet guides, I have tried to put those commands into and (without `sudo` in the last file). After a reboot I have either 1024x768 again or 1680x1050 but frozen screen.
So what is the correct way?
Moreover, from boot to boot, the device appears either `VGA1` or `VGA-1`, so I'd need some `grep`ping and `sed`ding.
Furthermore, this is not my machine and I have to return it to its owner, who is going to use it for watching internet videos, having a TV plugged in place of a monitor.
The owner had OptiPlex with no storage device which I have added and having no operating system I thought Linux would do fine for the task.
I don't know the TV specifications as it is currently being repaired, so I don't know the resolution. Ideally, the MX should be configured such a way that they plug the TV and everything works, and on successive boots as well.
At least, I need to know where and what configurations have to be done.
With such hardships I hesitate on my choice and think wouldn't Windows be easier.
Dell OptiPlex 7010 Ultra Small Form Factor (desktop, not laptop as Quick System Info says).
Integrated GPU Intel HD 4000, no other GPUs and will never be as the motherboard has no slots.
The max resolution available is 1024x768. Having done `xrandr` and `cvt 1680 1050 60`, when I do
Code: Select all
sudo xrandr --newmode "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
sudo xrandr --addmode VGA1 "1680x1050_60.00"
xrandr --output VGA1 --mode "1680x1050_60.00"
With various internet guides, I have tried to put those commands into
Code: Select all
~/.profile
Code: Select all
~/.xprofile
Code: Select all
~/.xsessionrc
Code: Select all
/etc/profile.d/external_monitor_resolution.sh
So what is the correct way?
Moreover, from boot to boot, the device appears either `VGA1` or `VGA-1`, so I'd need some `grep`ping and `sed`ding.
Furthermore, this is not my machine and I have to return it to its owner, who is going to use it for watching internet videos, having a TV plugged in place of a monitor.
The owner had OptiPlex with no storage device which I have added and having no operating system I thought Linux would do fine for the task.
I don't know the TV specifications as it is currently being repaired, so I don't know the resolution. Ideally, the MX should be configured such a way that they plug the TV and everything works, and on successive boots as well.
At least, I need to know where and what configurations have to be done.
With such hardships I hesitate on my choice and think wouldn't Windows be easier.
Code: Select all
System: Host: <filter> Kernel: 5.10.0-9-amd64 x86_64 bits: 64 compiler: N/A
parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-9-amd64
root=UUID=<filter> ro quiet splash
Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm4 dm: LightDM 1.26.0
Distro: MX-21_x64 Wildflower October 20 2021 base: Debian GNU/Linux 11 (bullseye)
Machine: Type: Laptop System: Dell product: OptiPlex 7010 v: 01 serial: <filter> Chassis:
type: 16 serial: <filter>
Mobo: Dell model: 0MN1TX v: A01 serial: <filter> BIOS: Dell v: A29 date: 06/28/2018
CPU: Topology: Quad Core model: Intel Core i7-3770S bits: 64 type: MT MCP arch: Ivy Bridge
family: 6 model-id: 3A (58) stepping: 9 microcode: 21 L2 cache: 8192 KiB
flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 49486
Speed: 1596 MHz min/max: 1600/3900 MHz Core speeds (MHz): 1: 1597 2: 1597 3: 1597
4: 1596 5: 1607 6: 1596 7: 1597 8: 1603
Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW,
STIBP: conditional, RSB filling
Type: srbds status: Vulnerable: No microcode
Type: tsx_async_abort status: Not affected
Graphics: Device-1: Intel Xeon E3-1200 v2/3rd Gen Core processor Graphics vendor: Dell
driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:0162
Display: x11 server: X.Org 1.20.11 driver: modesetting unloaded: fbdev,vesa
resolution: 1024x768~60Hz
OpenGL: renderer: Mesa DRI Intel HD Graphics 4000 (IVB GT2) v: 4.2 Mesa 20.3.5
compat-v: 3.0 direct render: Yes
Audio: Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: Dell
driver: snd_hda_intel v: kernel bus ID: 00:1b.0 chip ID: 8086:1e20
Sound Server: ALSA v: k5.10.0-9-amd64
Network: Device-1: Intel 82579LM Gigabit Network vendor: Dell driver: e1000e v: kernel
port: f080 bus ID: 00:19.0 chip ID: 8086:1502
IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives: Local Storage: total: 238.47 GiB used: 18.12 GiB (7.6%)
ID-1: /dev/sda vendor: Transcend model: TS256GSSD230S size: 238.47 GiB block size:
physical: 512 B logical: 512 B speed: 6.0 Gb/s serial: <filter> rev: 7GN1 scheme: MBR
Partition: ID-1: / raw size: 35.16 GiB size: 34.31 GiB (97.59%) used: 17.03 GiB (49.6%) fs: ext4
dev: /dev/sda1
ID-2: /home raw size: 186.72 GiB size: 182.73 GiB (97.86%) used: 1.09 GiB (0.6%)
fs: ext4 dev: /dev/sda3
ID-3: swap-1 size: 16.60 GiB used: 0 KiB (0.0%) fs: swap swappiness: 15 (default 60)
cache pressure: 100 (default) dev: /dev/sda2
Info: Processes: 224 Uptime: 20m Memory: 7.66 GiB used: 1.01 GiB (13.2%) Init: SysVinit
v: 2.96 runlevel: 5 default: 5 Compilers: gcc: 10.2.1 alt: 10 Shell: quick-system-in
running in: quick-system-in inxi: 3.0.36