I finally figured out how to get my display resolution fixed on LMDE Xfce so that the changes occur automatically and thought I would post the resolution here.
I used the
cvt command in a terminal to figure out the settings for the
xrandr terminal command. Type
man cvt and
man xrandr for explanations of the following which I made into a shell script and called
.xinitrc:
Code: Select all
cvt 1280 1024 60
# 1280x1024 59.89 Hz (CVT 1.31M4) hsync: 63.67 kHz; pclk: 109.00 MHz
Modeline "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync
xrandr --newmode 1280x1024 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync
xrandr --addmode VGA-1 1280x1024
xrandr --output VGA-1 --mode 1280x1024
VGA-1 was determined from the output of
xrandr entered on a line by itself in the terminal. VGA-1 was the name of the output reported as connected to my monitor. Luckily, I did not get an error report that Mint was unable to read the gamma setting on my monitor. I have had that error occur, and it can sometimes be fixed by entering this replacement on the last line:
Code: Select all
xrandr --output VGA-1 --gamma 1:1:1 --mode 1280x1024
On some Ubuntu variants (notably Bodhi Linux), I can't even use nouveau on my hardware, I must use nVidia current before I can correct the resolution using xrandr. The following is the result of lspci:
Code: Select all
$ lspci
00:00.0 RAM memory: NVIDIA Corporation MCP61 Memory Controller (rev a1)
00:01.0 ISA bridge: NVIDIA Corporation MCP61 LPC Bridge (rev a2)
00:01.1 SMBus: NVIDIA Corporation MCP61 SMBus (rev a2)
00:01.2 RAM memory: NVIDIA Corporation MCP61 Memory Controller (rev a2)
00:02.0 USB controller: NVIDIA Corporation MCP61 USB 1.1 Controller (rev a3)
00:02.1 USB controller: NVIDIA Corporation MCP61 USB 2.0 Controller (rev a3)
00:04.0 PCI bridge: NVIDIA Corporation MCP61 PCI bridge (rev a1)
00:05.0 Audio device: NVIDIA Corporation MCP61 High Definition Audio (rev a2)
00:06.0 IDE interface: NVIDIA Corporation MCP61 IDE (rev a2)
00:07.0 Bridge: NVIDIA Corporation MCP61 Ethernet (rev a2)
00:08.0 IDE interface: NVIDIA Corporation MCP61 SATA Controller (rev a2)
00:09.0 PCI bridge: NVIDIA Corporation MCP61 PCI Express bridge (rev a2)
00:0b.0 PCI bridge: NVIDIA Corporation MCP61 PCI Express bridge (rev a2)
00:0c.0 PCI bridge: NVIDIA Corporation MCP61 PCI Express bridge (rev a2)
00:0d.0 VGA compatible controller: NVIDIA Corporation C61 [GeForce 7025 / nForce 630a] (rev a2)
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Control
After I had the
.xinitrc shell script created and made executable with
chmod +x ./.xinitrc in a terminal, I tried to create an autostart entry, but this did not work when I referred to the script as
~/.xinitrc, it had to have the full path spelled out as
/home/<username>/.xinitrc to finally work.
Lots of trial and error work here, hope it helps someone else.