You are not logged in.

#1 2010-01-22 02:33:36

rWarrior
Member
Registered: 2008-12-28
Posts: 26

[Solved] Plug and Play Monitor

Currently, when I plug a monitor into my laptop, I need to restart my window manager (dwm).

I have disabled hot-plugging because it does not work with my system.
Is there a command I can run to setup the plugged in monitor and project the screen to my monitor without restarting X? Or does this depending on the window manager?

I have no idea where to start. Anything would help.

Thanks

Last edited by rWarrior (2010-01-23 03:33:55)

Offline

#2 2010-01-22 07:47:04

tlvb
Member
From: Sweden
Registered: 2008-10-06
Posts: 297
Website

Re: [Solved] Plug and Play Monitor

It might depend on what graphics card manufacturer and drivers you are using. I'm using an nvidia card with the nvidia drivers, and have a program; nvidia-settings where I can detect and configure screens/resolution without restarting X. Generally, you are probably interested in twinview and xinerama as search words.


I need a sorted list of all random numbers, so that I can retrieve a suitable one later with a binary search instead of having to iterate through the generation process every time.

Offline

#3 2010-01-22 11:29:36

sasek
Member
From: Poland
Registered: 2009-12-26
Posts: 10

Re: [Solved] Plug and Play Monitor

Doesn't xrandr do that? Or graphical version - arandr?

Offline

#4 2010-01-22 18:21:54

hampusw
Member
From: Sweden
Registered: 2010-01-22
Posts: 3

Re: [Solved] Plug and Play Monitor

I agree, usually something like xrandr --auto should do it. See man xrandr for more info.

Last edited by hampusw (2010-01-22 18:22:48)

Offline

#5 2010-01-23 03:34:44

rWarrior
Member
Registered: 2008-12-28
Posts: 26

Re: [Solved] Plug and Play Monitor

xrandr does the job beautifully.
Thanks guy.

Offline

Board footer

Powered by FluxBB