Lenovo X230 Dual Monitor / Docking Station Problems
*SOLVED* See Post #2
I'm having problems with getting my X230 to work properly with my dual monitors when docking into a ThinkPad Mini Dock Series 3. The docking station has a DVI out and VGA out, there is an option for a display port but I do not have the adapter, nor will work purchase one for that matter. One thing to note is that the X230 *WILL NOT* do three simultaneous screens without using the display port. So Laptop LCD and a VGA LCD with a DVI connected LCD will not work, however Laptop LCD and a VGA or DVI connected LCD along side a DisplayPort Connected LCD *WILL* work.. allegedly. I'm posting because I've searched endlessly and have looked at the think wiki ( http://www.thinkwiki.org/wiki/ThinkWiki - Specifically http://www.thinkwiki.org/wiki/Docking_Solutions ) but either I don't understand it fully, which may be the case as this is my first foray into Linux, or it's not working properly ( Newer series 3 docks no longer register themselves as a dock, but instead behave like a port replicator, as such the below method does not work. They do however cause a key event on dock and undock which could be used as a trigger, but for now these key events are not exposed by the thinkpad-acpi driver before kernel 3.0 ) Surely there are X220 or X230 users here with docking stations that have ran into the problems that I am having? My setup is _almost_ working. Currently I have the DVI cable unplugged from the docking station so that the laptop LCD is working and the one VGA external LCD is on. So here's what I've done thus far: As root: X -configure && mv /root/xorg.conf.new /etc/X11/xorg.conf vim /etc/X11/xorg.conf (I did notice a xorg.conf-vesa as well) Code:
Section "ServerLayout" So far so good. I can use output to turn off the LVDS1 properly, move it left-of or right-of so that's all good. To replicate this I powered down the laptop, unplugged the VGA cable and plugged back in the DVI, booted up. Both screens come up just like the previous method, xrandr -q provides with LVDS1 (laptop lcd) and HDMI1 (dell 23" 1920x1080) again, I can use output to turn off the LVDS1 properly, move it left-of or right-of so that's all good. Layout (Left -> Right | Laptop, Dell VGA, Dell DVI) Now I'm running XFCE as my window manager, by default there is no .xinitrc in the home directory. I setup my .xinitrc as follows: Code:
/usr/bin/xrandr --output VGA1 --auto --output HDMI1 --auto --right-of VGA1 I don't know if I've made the problem clear or not but this is what I'm in the middle of trying to figure out while still green to Slackware and Linux in general. |
Got it working! Here's the solution:
I went all the way back to the beginning and took a new approach, I removed /etc/X11/xorg.conf && ~/.xinitrc ( I'm using the defaults ) from the original post. I then opened terminal and did an acpi_listen; I docked / un-docked the X230 to find the following hotkeys: ibm/hotkey HKEY 00000080 00004010 *DOCK ibm/hotkey HKEY 00000080 00004011 *UN-DOCK From here I changed directory to /etc/acpi/events/ I created two files: *Note:replace $SUDO_USER with an account that can change X settings, example user: OscarMike thinkpad-dock Code:
event=ibm/hotkey HKEY 00000080 00004010 Code:
event=ibm/hotkey HKEY 00000080 00004011 I created two files: *Note: You will want to change around your xrand -q information appropriately for your monitor layout thinkpad-dock.sh Code:
#!/bin/sh Code:
chmod a+x /etc/acpi/thinkpad-dock.sh Code:
#!/bin/sh Code:
chmod a+x /etc/acpi/thinkpad-undock.sh I simply added the following: *Note:replace $SUDO_USER with an account that can change X settings, example user: OscarMike /etc/acpi/acpi_handler.sh Code:
#!/bin/sh DONE & DONE Docking / Un-Docking works like a champ! |
All times are GMT -5. The time now is 09:50 PM. |