How do I set correct screen resolution, permanently

Message
Author
uxer
Posts: 3
Joined: Sun Nov 14, 2021 12:45 pm

How do I set correct screen resolution, permanently

#1 Post by uxer »

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

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"
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

Code: Select all

~/.profile

Code: Select all

~/.xprofile

Code: Select all

~/.xsessionrc
and

Code: Select all

/etc/profile.d/external_monitor_resolution.sh
(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.

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 
Silenced by censorship count: 2. Posts count: 3. Liberty doesn't live here. Facepalm

User avatar
Eadwine Rose
Administrator
Posts: 14976
Joined: Wed Jul 12, 2006 2:10 am

Re: How do I set correct screen resolution, permanently

#2 Post by Eadwine Rose »

Moderator: Mini comment removed. Behave normally, and we will get along. Get going like that again, and we will not get along.
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

Huckleberry Finn

Re: How do I set correct screen resolution, permanently

#3 Post by Huckleberry Finn »

This is not the "Quick System Info". It's edited. (Please just paste it, directly, as it is. (No need to hide "repos" if you didn't add Ppas ... ))

Till then, delete if there is such a file: /etc/X11/xorg.conf

uxer
Posts: 3
Joined: Sun Nov 14, 2021 12:45 pm

Re: How do I set correct screen resolution, permanently

#4 Post by uxer »

Huckleberry Finn wrote: Sun Nov 14, 2021 2:00 pm This is not the "Quick System Info". It's edited. (Please just paste it, directly, as it is. (No need to hide "repos" if you didn't add Ppas ... ))
Why post non-related stuff? For the question asked, the "Quick System Info" is barely needed at all AFAIK. Please correct me if I am not aware of all the intricacies.
Huckleberry Finn wrote: Sun Nov 14, 2021 2:00 pm Till then, delete if there is such a file: /etc/X11/xorg.conf
No such file
Silenced by censorship count: 2. Posts count: 3. Liberty doesn't live here. Facepalm

Huckleberry Finn

Re: How do I set correct screen resolution, permanently

#5 Post by Huckleberry Finn »

uxer wrote: Mon Nov 15, 2021 4:32 am
Huckleberry Finn wrote: Sun Nov 14, 2021 2:00 pm This is not the "Quick System Info". It's edited. (Please just paste it, directly, as it is. (No need to hide "repos" if you didn't add Ppas ... ))
Why post non-related stuff?
All are related. (Otherwise we already wouldn't ask for such a thing).

uxer
Posts: 3
Joined: Sun Nov 14, 2021 12:45 pm

Re: How do I set correct screen resolution, permanently

#6 Post by uxer »

I tried 3 other distros - the same issue, so this is not MX' fault but Linux' in general.
Having found no solution, I have installed Windows.
Silenced by censorship count: 2. Posts count: 3. Liberty doesn't live here. Facepalm

User avatar
anticapitalista
Developer
Posts: 4308
Joined: Sat Jul 15, 2006 10:40 am

Re: How do I set correct screen resolution, permanently

#7 Post by anticapitalista »

uxer wrote: Tue Nov 16, 2021 3:20 pm I tried 3 other distros - the same issue, so this is not MX' fault but Linux' in general.
Having found no solution, I have installed Windows.

Silenced by censorship count: 2. Posts count: 3. Liberty doesn't live here. Facepalm
LOL Liberty exists in Windows!
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX with runit - lean and mean.
https://antixlinux.com

User avatar
Eadwine Rose
Administrator
Posts: 14976
Joined: Wed Jul 12, 2006 2:10 am

Re: How do I set correct screen resolution, permanently

#8 Post by Eadwine Rose »

User banned for misconduct here and antix forum.
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

Locked

Return to “Hardware /Configuration”