Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › [SOLVED] Reset DE from multi-monitor mode?
New Posts  All Forums:Forum Nav:

[SOLVED] Reset DE from multi-monitor mode?

post #1 of 5
Thread Starter 
Convoluted question I suppose. I hope someone understands what I'm getting at.

When I take my laptop to work I plug in an HDMI screen to be on the right side for server displays and scopes among other things. This changes my KDE to multi screen mode. However when I need to take my laptop somewhere else and I unplug the external screen the laptop still thinks the screen exists and is plugged in. Is there a keybind or way to re-initialize the de without completely logging out then back in to make it switch between dual screen and single screen? This way I don't lose whatever I had open on the 2nd screen, it just moves into place on the main screen somewhere?
 
Micromachine
(8 items)
 
 
CPUMotherboardGraphicsRAM
i7 4500u Inspiron 15 7000 Integrated 8gb 
Hard DriveOSMouse
120gb Samsung EVO SSD Debian Logitech m705 
CPUMotherboardRAMHard Drive
AMD 5350 Kabini AsRock AM1H-ITX 8gb Gskill Ripjaws (2x4) Samsung 120 Evo 
Hard DriveHard DriveOSCase
WD 1tb 2.5 WD 2tb USB 3.0 Ubuntu Server 16.04 Antec ISK 
  hide details  
Reply
 
Micromachine
(8 items)
 
 
CPUMotherboardGraphicsRAM
i7 4500u Inspiron 15 7000 Integrated 8gb 
Hard DriveOSMouse
120gb Samsung EVO SSD Debian Logitech m705 
CPUMotherboardRAMHard Drive
AMD 5350 Kabini AsRock AM1H-ITX 8gb Gskill Ripjaws (2x4) Samsung 120 Evo 
Hard DriveHard DriveOSCase
WD 1tb 2.5 WD 2tb USB 3.0 Ubuntu Server 16.04 Antec ISK 
  hide details  
Reply
post #2 of 5
I'm not totally sure which options to use but I think xrandr will probably be able to handle this.

https://www.x.org/archive/X11R7.5/doc/man/man1/xrandr.1.html
post #3 of 5
Thread Starter 
You sent me in the right direction Xrandr. Found this adding Xrandr to search in google. https://www.reddit.com/r/i3wm/comments/3dylpb/handling_switching_between_singlemultiple_monitors/

Gonna mark as solved. I'll work out and post the exact command when I get to work.
 
Micromachine
(8 items)
 
 
CPUMotherboardGraphicsRAM
i7 4500u Inspiron 15 7000 Integrated 8gb 
Hard DriveOSMouse
120gb Samsung EVO SSD Debian Logitech m705 
CPUMotherboardRAMHard Drive
AMD 5350 Kabini AsRock AM1H-ITX 8gb Gskill Ripjaws (2x4) Samsung 120 Evo 
Hard DriveHard DriveOSCase
WD 1tb 2.5 WD 2tb USB 3.0 Ubuntu Server 16.04 Antec ISK 
  hide details  
Reply
 
Micromachine
(8 items)
 
 
CPUMotherboardGraphicsRAM
i7 4500u Inspiron 15 7000 Integrated 8gb 
Hard DriveOSMouse
120gb Samsung EVO SSD Debian Logitech m705 
CPUMotherboardRAMHard Drive
AMD 5350 Kabini AsRock AM1H-ITX 8gb Gskill Ripjaws (2x4) Samsung 120 Evo 
Hard DriveHard DriveOSCase
WD 1tb 2.5 WD 2tb USB 3.0 Ubuntu Server 16.04 Antec ISK 
  hide details  
Reply
post #4 of 5
Thread Starter 
Commands for future reference. Change eDP1 and HDMI1 based on your setup.

To turn on:
Code:
xrandr --output HDMI1 --right-of eDP1 --auto

To turn off:
Code:
xrandr --output HDMI1 --off

Simple enough. Just needed a nudge in the right direction. thank you again.
 
Micromachine
(8 items)
 
 
CPUMotherboardGraphicsRAM
i7 4500u Inspiron 15 7000 Integrated 8gb 
Hard DriveOSMouse
120gb Samsung EVO SSD Debian Logitech m705 
CPUMotherboardRAMHard Drive
AMD 5350 Kabini AsRock AM1H-ITX 8gb Gskill Ripjaws (2x4) Samsung 120 Evo 
Hard DriveHard DriveOSCase
WD 1tb 2.5 WD 2tb USB 3.0 Ubuntu Server 16.04 Antec ISK 
  hide details  
Reply
 
Micromachine
(8 items)
 
 
CPUMotherboardGraphicsRAM
i7 4500u Inspiron 15 7000 Integrated 8gb 
Hard DriveOSMouse
120gb Samsung EVO SSD Debian Logitech m705 
CPUMotherboardRAMHard Drive
AMD 5350 Kabini AsRock AM1H-ITX 8gb Gskill Ripjaws (2x4) Samsung 120 Evo 
Hard DriveHard DriveOSCase
WD 1tb 2.5 WD 2tb USB 3.0 Ubuntu Server 16.04 Antec ISK 
  hide details  
Reply
post #5 of 5
I'm dealing with trying to get hdmi to output if the TV is turned off or the computer is turned on before the monitor. Xrandr is the key there as well, just haven't gotten around to figuring it out.

Glad you figured it out so quick.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › [SOLVED] Reset DE from multi-monitor mode?