Advertising

Author Topic: xrandr script is not exactly working for screen resolution and positions.  (Read 1576 times)

Offline MH

  • Newbie
  • *
  • Posts: 5
Hi,
xrandr script is not exactly working for screen resolution and positions.

This script works but see yourself. There is a change in data necessay.  don't know .

Here is the script :
Code: [Select]
  #!/bin/bash

xrandr --newmode  "1280x1024_60.00"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync

xrandr --addmode DVI-I-1 "1280x1024_60.00"

xrandr --output DVI-I-1 --mode "1280x1024_60.00"
 

Sorry , upload of a screenshot is not possible. I have tried 5 times.
So you can SEE the error of this script when you start the bash script from sparky terminal with    ./scriptname.
The screen resolution starts but the sparky bottom Task bar is in the middle of the screen.
It seems that the resolution is overrunning.

https://sparkylinux.org/media/hans/HAMA/screenclip.jpg
« Last Edit: July 09, 2019, 11:18:42 pm by MH »

Offline MH

  • Newbie
  • *
  • Posts: 5
Hello , i have solved the problem and found a description for Sparky too.

Here is the complete script code :

Code: [Select]
   #!/bin/bash

xrandr --newmode  "1280x1024_60.00"  108.88  1280 1360 1496 1712  1024 1025 1028 1060  -HSync +Vsync

xrandr --addmode DVI-I-1 "1280x1024_60.00"

xrandr --output DVI-I-1 --mode "1280x1024_60.00"

 



Here is the LINK for complete description Mnitor Resolution Setting :

   http://sparkylinux.org/how-to-set-monitor-resolution/

My Monitor Name is  DVI-I-1 .    I use the "gtf" command from the description url.     It works.
« Last Edit: July 10, 2019, 11:44:28 pm by MH »