CentOS 7 ~ gnome screen resolution #192. Closed WibbleNZ opened this Issue Sep 9. EL5/generic RPM spec file so that the Xorg build pre-reqs can be installed.
I have problems to change resolution. I tryed via editing the file /etc/default/grub and adding this line GRUBGFXMODE='1280x1024x32' But it doesn't change.The KrandTry crashes after it stars to load, i didn't found the Xorg since my fedora is Verne, and some of the main solutions i found are quite old. Note: My monitor supports that resolution. Xrandr output is: Screen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096 VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 1024x768 60.0. 800x600 60.3 56.2 848x480 60.0 640x480 59.9. Create a file in /etc/X11/xorg.conf.d/ 40-monitor.conf Section 'Monitor' Identifier 'VGA1' Option 'PreferredMode' '1280x1024' EndSection Restart your X system.
If it doesn't work try creating the next two files in the same path, and restarting again: 30-graphic.conf Section 'Device' Identifier 'Intel Integrated' Driver 'intel' EndSection 50-screen.conf Section 'Screen' Identifier 'Default Screen' DefaultDepth 24 SubSection 'Display' Depth 24 Modes '1280x1024' '1024x768' '640x480' EndSubSection EndSection Undetected resolution If your monitor supports a resolution, but it's not published correctly, you can add it manually. Look at the following link (section Adding undetected resolution) Once you get it working make the changes persistent in a file inside /etc/X11/xorg.conf.d/ Persistent new modeline After you added the new resolution for your monitor, you must save it. Execute: cvt 1280 1024 You will get something as: 1280x1024 59.89 Hz (CVT 1.31M4) hsync: 63.67 kHz; pclk: 109.00 MHz Modeline '1280x102460.00' 1 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync The interesting bit is the modeline. Copy it and paste in a file: /etc/X11/xorg.conf.d/40-monitor.conf Section 'Monitor' Identifier 'VGA1' Modeline '1280x102460.00' 1 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync Option 'PreferredMode' '1280x102460.00' EndSection Restart X11 and there you go. If the above doesn't make persistent your new configuration try adding the xrandr magic in a file read by xorg, by example gdm or kdm configuration: gdm edit /etc/gdm/Init/default add the xrandr commands after PATH=/usr/bin:$PATH OLDIFS=$IFS xrandr -newmode.
Xrandr -addmode YOURMONITOR YOURNEWMODE xrandr -output YOURMONITOR -mode NEWMODE kdm You can add the xrandr lines in /etc/kde/kdm/Xsetup or in /etc/kde/kdm/Xsession but with full path: /usr/bin/xrandr -newmode. /usr/bin/xrandr -addmode YOURMONITOR YOURNEWMODE /usr/bin/xrandr -output YOURMONITOR -mode NEWMODE If someone knows why saving the modeline in the xorg config doesn't get it applied, please let me know, I'm pretty curious (and the xorg webpage seems down at the moment). I have a MS Surface Pro 3 and a Samsung U28D UHD monitor. The intel chipset won't push the 60Hz 3840x2160 to this single panel monitor, so you have to go with 30Hz, which means you have to add a new mode as above. Turns out it needs to be around 28Hz. To get this to work by default I added a /etc/X11/xorg.conf.d/10-monitor.conf which just contains the monitor bit: Section 'Monitor' Identifier 'DP2' Modeline '3840x216028.00' 3 4072 4480 5120 2160 2163 2168 2197 -hsync +vsync Option 'PreferredMode' '3840x216028.00' EndSection Then I edited /.config/monitors.xml and changed the DP2 SAM entry to have a rate of 28.
Heres the section: SAM 0x0b80 0x000 21 0 normal no no no Ah, this is for the surface pro 3 dock display port, for the internal display port change DP2 to DP1. Hope that helps.
I use VNC to connect to a Linux workstation at work. At work I have a 20' monitor that runs at 1600x1200, while at home I use my laptop with its resolution of 1440x900. If I set the vncserver to run at 1440x900 I miss out on a lot of space on my monitor, whereas if I set it to run at 1600x1200 it doesn't fit on the laptop's screen, and I have to scroll it all the time. Is there any good way to resize a VNC session on the fly?
My VNC server is RealVNC E4.x (I don't remember the exact version) running on SuSE64. @DimitryK I had tightvncserver and doesn't work it. I purged it and installed real VNC. I recommend it. All landscape resolutions: 320x240,480x320,482x320,560x360,576x360,640x480,640x482,648x486,720x480,720x486,720x540,720x576,768x576,800x480,800x600,1024x600,1024x768,1280x720,1280x800,1280x1024,1366x768,1400x1050,1440x900,1600x900,1600x1024,1600x1200,1680x1050,1920x1080,1920x1200,2048x1024,2048x1152,2048x1536,2560x1080,2560x1440,2560x1600,2560x2048,3072x1536,3072x1728,3840x2160,4096x2048,4096x2304,7680x4320,8192x4096,8192x4608.
– Apr 11 '15 at 20:05. Found out that the vnc4server (4.1.1) shipped with Ubuntu (10.04) is patched to also support changing the resolution on the fly via xrandr. Unfortunately the feature was hard to find because it is undocumented.
So here it is. Start the server with multiple 'geometry' instances, like: vnc4server -geometry 1280x1024 -geometry 800x600 From a terminal in a vncviewer (with: 'allow dymanic desktop resizing' enabled) use xrandr to view the available modes: xrandr to change the resulution, for example use: xrandr -s 800x600 Thats it. @Pat, the problem with your solution is that I can't easily move a window from one VNC session to another. If I'm in the middle of some debug when I have to leave, I want to be able to pick up where I left off (maybe with the windows moved around a little bit due to resizing). If I have two separate sessions, I won't be able to continue the same as before, because I'll have to close windows from one session and re-open them in another one. On the other hand, if there's a way to move an existing window from one X-server to another, that might solve the problem.
– Jul 1 '09 at 12:40. I'm running on my Linux server, which has basic randr support.
I just start vncserver without any -randr or multiple -geometry options. As this question comes up first on Google I thought I'd share a solution using TigerVNC which is the default these days. Xrandr allows selecting the display modes (a.k.a resolutions) however due to modelines being any additional modeline such as '2560x1600' or '1600x900' would need to be. I think the developers who wrote the code are much smarter and the hard coded list is just a sample of values. It leads to the conclusion that there must be a way to add custom modelines and man xrandr confirms it.
With that background if the goal is to share a VNC session between two computers with the above resolutions and assuming that the VNC server is the computer with the resolution of '1600x900':. Start a VNC session with a geometry matching the physical display: $ vncserver -geometry 1600x900:1.
On the '2560x1600' computer start the VNC viewer (I prefer Remmina) and connect to the remote VNC session: host:5901. Once inside the VNC session start up a terminal window. Confirm that the new geometry is available in the VNC session: $ xrandr Screen 0: minimum 32 x 32, current 1600 x 900, maximum 32768 x 32768 VNC-0 connected 1600x900+0+0 0mm x 0mm 1600x900 60.00 + 1920x1200 x1080 x1200 x1050 x1050 x768 x1024 x960 x800 x720 x768 60.00 800x600 60.00 640x480 60.00 and you'll notice the screen being quite small. Perhaps the most ignorant answer I've posted but here goes: Use TigerVNC client/viewer and check 'Resize remote session to local window' under Screen tab of options. I don't know what the $%#@ TigerVNC client tells remote vncserver or xrandr or Xvnc or gnome. But it resizes when I change the TigerVNC Client window.
My setup:. Tiger VNC Server running on CentOS 6. Hosting GNOME desktop.
(Works with RHEL 6.6 too). Windows some version with Tiger VNC Client. With this the resolution changes to fit the size of the client window no matter what it is, and it's not zooming, it's actual resolution change (I can see the new resolution in xrandr output). I tried all I could to add a new resolution to the xrandr, but to no avail, always end up with 'xrandr: Failed to get size of gamma for output default' error. Versions with which it works for me right now (although I've not had issues with ANY versions in the past, I just install the latest using yum install gnome-. tigervnc-server and works fine): OS: RHEL 6.6 (Santiago) VNC Server: Name: tigervnc-server Arch: x8664 Version: 1.1.0 Release: 16.el6 # May be this is relevant.