LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-30-2014, 11:13 PM   #1
krasl
Member
 
Registered: Nov 2005
Distribution: Fedora 4
Posts: 40

Rep: Reputation: 15
Extending desktop using xrandr causes display corruption


Hello! I have been searching for some time to set up a virtual display to share with VNC in order to extend my FC21 desktop to a second device (android tablet). I finally found this post (https://bbs.archlinux.org/viewtopic.php?id=180904) and it got me started, but I am running into display corruption.
Here's the scenario:

Laptop with 1280x800 main display "LVDS"
Android tablet with 1280x80 display and VNC viewer app.
Want to extend my laptop display to the tablet via VNC.

I almost have it working. I used xrandr to enable one of the unused display ports (VGA-0) on my laptop:

Code:
xrandr --addmode VGA-0 1280x800
xrandr --output VGA-0 --mode 1280x800 --left-of LVDS
Then I enable x11vnc server:
Code:
x11vnc -clip 1280x800-1280+0
This would work perfectly, but as soon as I issue the second xrandr command, the right third of my main LVDS display is corrupted, and the left two-thirds is "squashed". However, I can still drag/drop windows between the main display and the VNC-connected tablet! and the mouse pointer is ablet to move between the two displays as well.

I tried placing the virtual screen "below" the main screen, and this works perfectly without screen corruption, but is not intuitive for use, and also GNOME crashes after a short time of usage, requiring the whole process to be repeated to re-establish the multi-monitor setup.

Does anyone have suggestions for avoiding the screen corruption? FYI The BIOS does not have options for increasing the amount of display memory.

Thanks!
 
Old 12-31-2014, 07:12 PM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
Have you tried this?
Code:
xrandr --output LVDS --auto --output VGA-0 --auto --left-of LVDS
Works for me.
 
Old 12-31-2014, 08:50 PM   #3
krasl
Member
 
Registered: Nov 2005
Distribution: Fedora 4
Posts: 40

Original Poster
Rep: Reputation: 15
Hi@allend, thanks for your reply. I tried this but it doesn't enable VGA-0 output. After executing this command, then running xrandr with no arguments shows VGA-0 disabled. I have to first add the mode (xrandr --addmode VGA-0 1280x800) then assign it with (xrandr --output LVDS --auto --output VGA-0 --mode 1280x800 --left-of LVDS). And this is when the display corruption occurs.

I have also noticed that if I change the size of the framebuffer using xrandr --fb, if I start at a width greater than 2000, I get the bar of corrupted display on the main LVDS. Then as I resize the screen and approach 2000px width, the bar shrinks until at 2000px width, it is gone. So is this indicative of an issue or incorrect allocation of video ram? It's seeming to be overwriting used video ram addresses and causing that corruption.

thanks!
 
Old 01-01-2015, 06:17 PM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
From 'man xrandr'
Quote:
Forces to use a 1024x768 mode on an output called VGA:
xrandr --newmode "1024x768" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
xrandr --addmode VGA 1024x768
xrandr --output VGA --mode 1024x768
You can use cvt to generate what is required for the --newmode option for xrandr.
Code:
bash-4.3$ cvt 1280 800
# 1280x800 59.81 Hz (CVT 1.02MA) hsync: 49.70 kHz; pclk: 83.50 MHz
Modeline "1280x800_60.00"   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync
 
  


Reply

Tags
desktop, multi graphics, screen resolution



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using xrandr to turn screen off/on like mate-display-properties Lop3 Linux - Software 3 11-08-2013 10:48 AM
CentOS Display Problems, your display needs tweaking, here you go, no xrandr needed.. damiank Linux - Desktop 0 08-09-2012 02:14 AM
xrandr NOT Detecting My Laptop's Internal Display? mrm5102 Linux - Newbie 2 04-30-2012 08:28 AM
Extending the KDE Panel across a dual head display comcastuser Linux - Software 1 05-09-2010 10:22 AM
Help with xrandr display rotation vbenares Linux - Software 0 09-09-2003 10:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration