Depending on the size and/or resolution of your screen you can add a vga=XXX cheat code to your kernel line during boot. If you want to make it permanent, add it to the kernel line in you grub conf. This link explains a bit: http://www.damnsmalllinux.org/wiki/index.php/Vga%3Dxxx
BTW - vga=791 or 792 has worked on normal size monitors for me. See different resolutions in the link.
i dont have root password.in my user i change display of 1024*768 to 800*600 and hurt desktop view . when log in my user nothing is visible .i cant see pointer or windows but they work.i want to comeback resolution 1024*768 with terminal.open terminal with shortcut such as alt+ctrl+t restore resolution with command.i hear about xrandr but i dont know does it work or work in suse enterprise .
[email protected]:~$ xrandr --output VGA1 --size 1024x768
xrandr: Failed to get size of gamma for output default
warning: output VGA1 not found; ignoring
If you just run the xrandr command without any arguments it will show what displays are connected. You can replace vga1 with the designation of your connected monitor.
that is an interesting output, what I got from xrandr without arguments is:
matt:~$xrandr
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
VGA1 disconnected (normal left inverted right x axis y axis)
LVDS1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1366x768 60.0*+
1024x768 60.0
800x600 60.3 56.2
640x480 59.9
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
TV1 disconnected (normal left inverted right x axis y axis)
in my case LVDS1 is my laptop monitor. I am thinking that you have a single connection, which I have not dealt with before.
Have you tried running "xrandr --size 1024x768" to see if it will automatically push to your default display?
I do not know of another cli based command that changes the x11 display properties, however xrandr has plenty of options which you can combine to get your desired video configuration. you can view the manual page at http://www.manpagez.com/man/1/xrandr/ to review the other options.
Comments
http://www.damnsmalllinux.org/wiki/index.php/Vga%3Dxxx
BTW - vga=791 or 792 has worked on normal size monitors for me. See different resolutions in the link.
[email protected]:~$ xrandr --output VGA1 --size 1024x768
xrandr: Failed to get size of gamma for output default
warning: output VGA1 not found; ignoring
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 320 x 175, current 1366 x 768, maximum 1366 x 768
default connected 1366x768+0+0 0mm x 0mm
1366x768 50.0*
1024x768 51.0 52.0
960x540 53.0
840x525 54.0
832x624 55.0
800x600 56.0 57.0 58.0 59.0 60.0
800x512 61.0
720x450 62.0
720x400 63.0
700x525 64.0
680x384 65.0 66.0
640x512 67.0 68.0
640x480 69.0 70.0 71.0 72.0 73.0
640x400 74.0
640x350 75.0
576x432 76.0 77.0 78.0 79.0 80.0 81.0
512x384 82.0 83.0 84.0 85.0 86.0
416x312 87.0
400x300 88.0 89.0 90.0 91.0 92.0
360x200 93.0
320x240 94.0 95.0 96.0 97.0
320x200 98.0
320x175 99.0
[email protected]:~$
I dont know what is VGA1 replacement.
in my case LVDS1 is my laptop monitor. I am thinking that you have a single connection, which I have not dealt with before.
Have you tried running "xrandr --size 1024x768" to see if it will automatically push to your default display?
But I want to khow that there is any command for changing resolution.
From the xrandr manual:
There might be another programan that works with RandR but I know no other in the command line.
change your xorg.conf
edit this file and you can see this, roughly:
and then you only chage the eight line, only add "1280x800"
and your new file is it: