Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 20952  / 1 Year ago, tue, may 16, 2023, 9:56:15

I use 12.04. Till today I use it with an Acer trravelmate4070 and an LG screen in order to expand my desktop. Works great.



Till today that I decided to connect my LG screen to a KVM switch in order to share the big screen with an other PC when I need it. In the KVM switch the resolution is lower and I can not manually change it.



I read many solutions about making an .conf file but since I am new to Ubuntu I am afraid. Moreover I realized that these articles talk for the same problem but not as an extension screen but as a main screen. Any idea how to correctly configure this file?



These are the links that I consulted:




More From » 12.04

 Answers
4

I just discovered that my previous answer is not the one I'm using on my current system. That's okay. I have another solution that I've tested recently which is working. This version still changes the resolution after starting the desktop environment, but it does it using the autostart system from the freedesktop.org standard. ...



You can put a .desktop file into ~/.config/autostart to run a script that will set the right resolution for you.



In the .desktop file:




[Desktop Entry]
Name=ResFix
Comment=Fix my resolution at 1920x1080
NoDisplay=False
TryExec=ResFix.sh
Exec=ResFix.sh
Terminal=false
Type=Application
Categories=Utility;
StartupNotify=false


In the script:




#!/bin/bash
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode VGA-0 1920x1080_60.00
xrandr --output VGA-0 --mode 1920x1080_60.00


More information



My previous answer to this question has more information on what goes in the script. You can find more details and a slightly more robust version of this solution in A Better Linux Startup.


[#35394] Wednesday, May 17, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lassrake

Total Points: 400
Total Questions: 103
Total Answers: 98

Location: Netherlands
Member since Mon, Jun 22, 2020
4 Years ago
;