Welcome to the Linux Foundation Forum!
change resolution
hoseini
Posts: 28
in Command Line
how to change resolution in terminal?(suse)
is it different in another distro ?
0
Comments
-
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.0 -
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 .0
-
xrandr talks to the x11 subsystem, it should work on all Linux based distros without root rights. The command to change it on your system should be
- xrandr --output VGA1 --size 1024x768
0 -
When i use command get this error in ubuntu.
hoseini@hoseini-HP:~$ xrandr --output VGA1 --size 1024x768
xrandr: Failed to get size of gamma for output default
warning: output VGA1 not found; ignoring0 -
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.0
-
hoseini@hoseini-HP:~$ xrandr
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
hoseini@hoseini-HP:~$
I dont know what is VGA1 replacement.0 -
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?0 -
thanks.I use this command and work for me. (xrandr --size 1024x76)
But I want to khow that there is any command for changing resolution.0 -
the xrandr command is used to change resolution via the command line. Can you please explain exactly what else you are looking to accomplish?0
-
I mean I can change resolution just with these two commands or no we have more commands.0
-
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.0
-
hoseini wrote:I mean I can change resolution just with these two commands or no we have more commands.
From the xrandr manual:- xrandr - primitive command line interface to RandR extension
There might be another programan that works with RandR but I know no other in the command line.0 -
my english is very bad, but i think:
change your xorg.conf
edit this file and you can see this, roughly:- Section "Screen"
- Identifier "Default Screen"
- Device "ATI Technologies Inc RV350 [Mobility Radeon 9600 M10]"
- Monitor "Monitor genérico"
- DefaultDepth 24
- SubSection "Display"
- Depth 1
- Modes "1024x768" "800x600" "640x480"
- EndSubSection
- SubSection "Display"
- Depth 4
- Modes "1024x768" "800x600" "640x480"
- EndSubSection
- SubSection "Display"
- Depth 8
- Modes "1024x768" "800x600" "640x480"
- EndSubSection
- SubSection "Display"
- Depth 15
- Modes "1024x768" "800x600" "640x480"
- EndSubSection
- SubSection "Display"
- Depth 16
- Modes "1024x768" "800x600" "640x480"
- EndSubSection
- SubSection "Display"
- Depth 24
- Modes "1024x768" "800x600" "640x480"
- EndSubSection
- EndSection
and then you only chage the eight line, only add "1280x800"
and your new file is it:- Section "Screen"
- Identifier "Default Screen"
- Device "ATI Technologies Inc RV350 [Mobility Radeon 9600 M10]"
- Monitor "Monitor genérico"
- DefaultDepth 24
- SubSection "Display"
- Depth 1
- Modes [u] [b]"1280x800"[/b] [/u]"1024x768" "800x600" "640x480"
- .
- .
- .
- .
0
Categories
- All Categories
- 232 LFX Mentorship
- 232 LFX Mentorship: Linux Kernel
- 812 Linux Foundation IT Professional Programs
- 365 Cloud Engineer IT Professional Program
- 183 Advanced Cloud Engineer IT Professional Program
- 82 DevOps Engineer IT Professional Program
- 151 Cloud Native Developer IT Professional Program
- 140 Express Training Courses & Microlearning
- 140 Express Courses - Discussion Forum
- Microlearning - Discussion Forum
- 6.4K Training Courses
- 48 LFC110 Class Forum - Discontinued
- 71 LFC131 Class Forum
- 47 LFD102 Class Forum
- 229 LFD103 Class Forum
- 20 LFD110 Class Forum
- 44 LFD121 Class Forum
- LFD125 Class Forum
- 18 LFD133 Class Forum
- 8 LFD134 Class Forum
- 18 LFD137 Class Forum
- 71 LFD201 Class Forum
- 5 LFD210 Class Forum
- 5 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum - Discontinued
- 2 LFD233 Class Forum
- 4 LFD237 Class Forum
- 24 LFD254 Class Forum
- 712 LFD259 Class Forum
- 111 LFD272 Class Forum - Discontinued
- 4 LFD272-JP クラス フォーラム
- 13 LFD273 Class Forum
- 202 LFS101 Class Forum
- 1 LFS111 Class Forum
- 3 LFS112 Class Forum
- 3 LFS116 Class Forum
- 7 LFS118 Class Forum
- LFS120 Class Forum
- 9 LFS142 Class Forum
- 8 LFS144 Class Forum
- 4 LFS145 Class Forum
- 3 LFS146 Class Forum
- 15 LFS148 Class Forum
- 15 LFS151 Class Forum
- 5 LFS157 Class Forum
- 49 LFS158 Class Forum
- LFS158-JP クラス フォーラム
- 10 LFS162 Class Forum
- 2 LFS166 Class Forum
- 5 LFS167 Class Forum
- 3 LFS170 Class Forum
- 2 LFS171 Class Forum
- 3 LFS178 Class Forum
- 3 LFS180 Class Forum
- 2 LFS182 Class Forum
- 5 LFS183 Class Forum
- 33 LFS200 Class Forum
- 737 LFS201 Class Forum - Discontinued
- 3 LFS201-JP クラス フォーラム - Discontinued
- 20 LFS203 Class Forum
- 135 LFS207 Class Forum
- 2 LFS207-DE-Klassenforum
- 2 LFS207-JP クラス フォーラム
- 302 LFS211 Class Forum
- 56 LFS216 Class Forum
- 52 LFS241 Class Forum
- 50 LFS242 Class Forum
- 38 LFS243 Class Forum
- 16 LFS244 Class Forum
- 5 LFS245 Class Forum
- LFS246 Class Forum
- LFS248 Class Forum
- 54 LFS250 Class Forum
- 2 LFS250-JP クラス フォーラム
- 1 LFS251 Class Forum
- 156 LFS253 Class Forum
- 1 LFS254 Class Forum
- 1 LFS255 Class Forum
- 10 LFS256 Class Forum
- 1 LFS257 Class Forum
- 1.3K LFS258 Class Forum
- 11 LFS258-JP クラス フォーラム
- 135 LFS260 Class Forum
- 160 LFS261 Class Forum
- 43 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 24 LFS267 Class Forum
- 25 LFS268 Class Forum
- 32 LFS269 Class Forum
- 6 LFS270 Class Forum
- 202 LFS272 Class Forum - Discontinued
- 2 LFS272-JP クラス フォーラム
- 4 LFS147 Class Forum
- 1 LFS274 Class Forum
- 4 LFS281 Class Forum
- 15 LFW111 Class Forum
- 262 LFW211 Class Forum
- 184 LFW212 Class Forum
- 15 SKF100 Class Forum
- 1 SKF200 Class Forum
- 2 SKF201 Class Forum
- 797 Hardware
- 199 Drivers
- 68 I/O Devices
- 37 Monitors
- 104 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 85 Storage
- 759 Linux Distributions
- 82 Debian
- 67 Fedora
- 17 Linux Mint
- 13 Mageia
- 23 openSUSE
- 148 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 354 Ubuntu
- 470 Linux System Administration
- 39 Cloud Computing
- 71 Command Line/Scripting
- Github systems admin projects
- 95 Linux Security
- 78 Network Management
- 102 System Management
- 47 Web Management
- 69 Mobile Computing
- 18 Android
- 38 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 377 Off Topic
- 115 Introductions
- 175 Small Talk
- 26 Study Material
- 807 Programming and Development
- 304 Kernel Development
- 485 Software Development
- 1.8K Software
- 263 Applications
- 183 Command Line
- 3 Compiling/Installing
- 988 Games
- 317 Installation
- 103 All In Program
- 103 All In Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)