You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



Dual Monitors & Power Loss on Main Monitor

Author (Read 2864 times)

0 Members and 1 Guest are viewing this topic.

Re: Dual Monitors & Power Loss on Main Monitor
« Reply #5 on: September 27, 2016, 09:16:18 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8778
    Posts
  • Reputation: 802
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Excellent :)
 

Re: Dual Monitors & Power Loss on Main Monitor
« Reply #4 on: September 27, 2016, 09:12:13 PM »
 

JmaCWQ

  • Forum Regular
  • ***
  • 227
    Posts
  • Reputation: 44
    • View Profile
You are welcome Jerry  8)
Sure good to know work can be saved & shutdown performed correctly next time it happens.
 

Re: Dual Monitors & Power Loss on Main Monitor
« Reply #3 on: September 27, 2016, 07:39:04 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8778
    Posts
  • Reputation: 802
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Thank you for sharing this JmaCWQ.
 

Re: Dual Monitors & Power Loss on Main Monitor
« Reply #2 on: September 27, 2016, 01:21:44 PM »
 

JmaCWQ

  • Forum Regular
  • ***
  • 227
    Posts
  • Reputation: 44
    • View Profile
Forgot about this until the power went out again earlier & l lost more work  :(

The solution is simple, create an application shortcut in the keyboard settings to run the xrandr command that enables the notebook's monitor.

What I found was when using monitors of 2 different resolutions, if the larger external display is used as the primary & xrandr is used to start the disabled smaller one, the smaller one will try to display at the same resolution as the primary/larger one, in my case I had 1280x1024 as the primary & the smaller one is 1024x600.
When the smaller one was started I found the panel was off the screen, couldn't be used etc.
I know there are parameters for resolution etc. that can be used in the xrandr commands but I couldn't make them work, instead I found that disabling the signal being sent to the larger monitor made the smaller one display correctly.

To find what displays are connected on the system open Terminal, type in xrandr and hit Enter.
You should get something appearing that looks similar to this:

Code: [Select]
home@debian:~$ xrandr
Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 4096 x 4096
LVDS1 connected (normal left inverted right x axis y axis)
   1024x600      60.00 +
   800x600       60.32    56.25 
   640x480       59.94 
VGA1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 337mm x 270mm
   1280x1024     60.02*+  75.02 
   1280x960      60.00 
   1152x864      75.00 
   1024x768      75.08    70.07    60.00 
   832x624       74.55 
   800x600       72.19    75.00    60.32    56.25 
   640x480       75.00    72.81    66.67    60.00 
   720x400       70.08

On my setup LVDS1 is the smaller notebook monitor, while VGA1 is the larger external monitor.

The command for the application shortcut to enable the notebook's monitor using xrandr is:

Code: [Select]
xrandr --output LVDS1 --auto
The command for the application shortcut to disable the signal to the larger external monitor is:

Code: [Select]
xrandr --output VGA1 --off
To run both of those in one action from the Terminal it's:

Code: [Select]
xrandr --output LVDS1 --auto && xrandr --output VGA1 --off
Unfortunately that single command doesn't work with the application shortcuts  (if it does I couldn't figure out how), 2 seperate entries have to be created.
One using xrandr --output LVDS1 --auto to enable the notebook's monitor and the 2nd, xrandr --output VGA1 --off to disable the signal to the external monitor.

 8)


 

Dual Monitors & Power Loss on Main Monitor
« Reply #1 on: June 12, 2016, 10:45:21 AM »
 

JmaCWQ

  • Forum Regular
  • ***
  • 227
    Posts
  • Reputation: 44
    • View Profile
I have an MSI L1350D Notebook that has a 10" screen of 1024x600 resolution & it also has an external monitor port from which I run a Phillips 17" 1280x1024 monitor.
The Phillips 17" is used as the main monitor with the notebook's monitor disabled.
Just had a thunderstorm roll through & was half way into installing an OS in Virtualbox & the power went out.
As the main monitor was on external power it also went out, the notebook runs via it's own battery when mains power goes out so it was still powered on ok but had no display working so I couldn't do anything with it.

Is there a way to access/start a disabled monitor if the main monitor loses power?
Function keys don't seem to work unfortunately, which would be great if they did as they're supposed to toggle between running either external monitor or built in monitor or both, but regardless if they're both set to being used or not in Display settings nothing happens when the Fn switch combination is pressed.

I can run them both at once but it causes issues with screen tearing, video playback etc. & I was wondering if anyone knows a way to start a disabled monitor if the main monitor goes down for some reason.
Once a monitor has been disabled the only way to enable it again that I know of is using another monitor to view things & change the settings again, ok if there's power to both but useless if one is disabled & the other has no power.
Booting into a live distro both monitors will work provided they have power & the original notebook monitor works regardless as it's on battery, but to get there from the above scenario it leaves the problem of improper shutdown & any unsaved work before the power down will most likely be lost.
« Last Edit: September 27, 2016, 01:22:41 PM by JmaCWQ »
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section