![]() Registered Member ![]()
|
I have a monitor, which I want to user as an external monitor on my laptop. What I want is:
When I connect it, the LVDS should be automatically "killed" and the external monitor should be connected at it's max resolution (it's the default). Needless to say - I want to get the LVDS back when I unplug the monitor. Is this possible in KDE44? if not, does anyone know how to script this this? Again, I want this to be done automatically (hey, win7 does it! linux should be able to do it as well!) |
![]() Administrator ![]()
|
Whilst I am not sure if KDE offers the ability to turn the LVDS panel off and on depending on if a monitor is connected, I do know that the "xrandr" tool will be able to help you do these tasks.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
ok, this means writing a shell script. OK.
Do you konw which "event" gets fired when I connect a monitor? How can I run a script when this happens? (does hal send a dbus event? ) |
![]() Administrator ![]()
|
I gather that HAL ( or udev ) must send an event, since storage media appears immediately upon connection also and hardware appearing is a universal mechanism.
Unfortunately I don't know which one, however whichever Solid listens to is likely the appropriate one ( although you will need to filter by UDI to ensure that you only trigger for this monitor ) Alternately, you could use KHotKeys to setup a hotkey to alternate between modes ( probably simpler and less prone to failure also )
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Last night I plugged in a old laptop with kde 4.4.3 to an external monitor. The laptop has intel video (my main laptop has nvidia).
To my surprise, after connection ... "KDE Daemon has detected that an external monitor has been connected" (or something like that). I was then taken to the multiple displays settings. This never happens on my nvidia laptop, running identical software (both use sidux). By the way, I have a script which I run on my main laptop. I have it mapped to a key. It toggles the external monitor on and off. It probably only works with exactly my configuration, and it is nvidia specific so it's way off topic, but it may help someone. Obviously I have the correct modes already setup.
|
![]() Administrator ![]()
|
This is because the Intel drivers support the RandR specification fully, whilst the NVidia ones do not support it properly.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
I just happened to see this - hope it's not too late.
Here is a script that I put in my .kde4/env directory so it fires off before KDE loads. The if statement detects whether there is an external monitor plugged in. I have an Acer "emachine" laptop, with an LG external monitor, and this works well for me.
I also have various scripts for changing monitor configs on the fly. This is for Laptop monitor only:
And this for VGA only:
I also have scripts for Left Xinerama:
and Right Cinerama:
I put all these in a folderview folder and keep that on one of my virtual desktops. The only one I have set to a hotkey is the one for Laptop monitor only, just in case there is a blackout, so I can turn my laptop monitor back on without rebooting. Hope this helps someone. |
![]() Administrator ![]()
|
@Thailandian: Some people will definitely find that helpful. Perhaps you could post it in Tutorials & Tips so that it can be found more easily?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]