LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-06-2013, 01:39 AM   #1
Lop3
Member
 
Registered: Aug 2013
Posts: 48

Rep: Reputation: Disabled
Question using xrandr to turn screen off/on like mate-display-properties


I've got 2 monitors connected to my laptop.

One is connected via HDMI and one is connected via USB displaylink.

When I boot up my computer linux thinks my DL monitor is on, but the screen is black (DL is not initialized properly for some reason).

The mate-display-properties fix
Its easy to fix using mate's display properties widget. (similar to gnome-display-properties)

Turn off DL monitor
I select the DL monitor, click off, apply

Turn on DL monitor
Then I select the monitor, click on, move it to where I want it, click apply.

Perfect!
Now lets try it with the command line after a fresh reboot.

Turn off DL monitor with command line
xrandr --output DVI-0 --off

Perfect. Now lets turn it back on...

Turn on using xrandr --mode (fails)
xrandr --output DVI-0 --mode 1920x1080
My system gets completely messed up and I have to reboot.
The DL monitor seems to mirror my LVDS monitor. I can move the mouse around but can't click on anything or make windows get focus.

Turn on using xrandr --auto (fails)
xrandr --output DVI-0 --auto
My system gets completely messed up and I have to reboot.
The DL monitor turns on but the graphics go all corrupt, black mixed with the picture, wherever I move the mouse redraws that part of the screen. It seems to have its own space rather than mirroring.
Its weird.

Solution?
If mate-display-properties could produce a commandline output or log for me to see what its doing I could just use the same commands?

verbose xrandr output (both screens positioned and working properly)
http://codepad.org/jJccaANW

Last edited by Lop3; 11-06-2013 at 02:18 AM.
 
Old 11-07-2013, 06:30 PM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
You say:
Quote:
Originally Posted by Lop3 View Post
...One is connected via HDMI...
and then you are passing commands to DVI, don't it should be HDMI ?
as your xranr info shows:
Code:
HDMI1 connected 1920x1080...
Try to run mate-display-properties from a terminal, you might get some output there when setting up the monitors.

Regards
 
Old 11-08-2013, 02:28 AM   #3
Lop3
Member
 
Registered: Aug 2013
Posts: 48

Original Poster
Rep: Reputation: Disabled
Okay I tried running mate-display-properties from a console window inside the mate session and then turning monitors on and off with mate-display-properties.
I got a segmentation fault every time. and mate-display-properties ended. I tried running it in the foreground and background (without ampersand and with).
Besides the segmentation fault message, nothing else is shown.

[0] % mate-display-properties&
[1] 6209

[0] %
[1] + 6209 segmentation fault mate-display-properties

===================

Regarding HDMI vs DVI.

HDMI is the native HDMI graphics output on my laptop. When I boot up that works properly.

The DVI-0 is the Displaylink adapter. When I boot up the Displaylink monitor is on, but its black. It needs to be turned off and on again with mate-display-properties to get it to function normally.

This is what my setup looks like in mate-display-properties
http://i.imgur.com/gdZTQbI.jpg

Last edited by Lop3; 11-08-2013 at 02:31 AM.
 
Old 11-08-2013, 10:48 AM   #4
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
Do you have a xorg.conf file in /etc/X11 ?(if you do please post it) If not it could be a good thing to have it there with all monitor settings you need, so then there is no need to set it up everytime the machine is turned on.

Regards
 
  


Reply



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
How to remove black bars (change screen position) on TV display using xrandr? tacooo Ubuntu 0 12-25-2012 10:44 PM
CentOS Display Problems, your display needs tweaking, here you go, no xrandr needed.. damiank Linux - Desktop 0 08-09-2012 02:14 AM
The screen isn't turn on after stand by when openning the laptop display nadavvin Linux - Laptop and Netbook 1 11-18-2007 11:46 PM
Display properties windows off screen? Bill Johns Linux - Software 2 03-27-2005 06:59 PM
Help with xrandr display rotation vbenares Linux - Software 0 09-09-2003 10:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:39 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