Hi.
I recently bought port replicator II, and it works great, but i have a question. I know that there is a possibility to automatically switch view to attached display (for example) when docking, using ACPI events. I have set all the other FN+Fx events, but I don't know how to make this thing working.
Thanks in advance.
Szelek
Problem with ACPI events while docking.
Problem with ACPI events while docking.
ThinkPad T40 /2373-1U1/
-
lightweight
- Sophomore Member
- Posts: 234
- Joined: Sat Jun 30, 2007 10:56 pm
- Location: L. A.
Its a little tricky to trigger an event with docking because (at least on X60s and X61s with Ultrabase) acpi_listen doesn't return anything useable. I always have power on my dock, though, so instead I just added a check when ACPI detects the AC adapter. You could save this as, say, /etc/acpi/ac.d/90-dock.sh
There's got to be a better way to do this, I just don't know how -- anybody know the ACPI event for docking and undocking?
Code: Select all
#!/bin/sh
#requires thinkpad_acpi
STATUS=`/bin/cat /sys/devices/platform/thinkpad_acpi/subsystem/devices/dock.0/docked`
# if its docked,do this
if [ $STATUS -eq 1 ] ; then
# replace with however you enable your external monitor
/usr/bin/xrandr --output VGA --auto
# do whatever else you want.
# if its undocked, do this
else
/usr/bin/xrandr --output VGA --off
fi
Have: x60s ultralight 1705-CTO, Debian SiD, Linux 2.6.25-2 | x61s ultralight 7668-CTO, Debian SiD/Experimental, Linux 2.6.27-git5 | Model M 1391401, white label, 07-17-91
Had: x22, Debian Testing/SiD, Linux 2.6.18-22
Had: x22, Debian Testing/SiD, Linux 2.6.18-22
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Significant temperature rise while using docking station
by zoltan87 » Thu Apr 20, 2017 11:51 am » in ThinkPad T6x Series - 10 Replies
- 1004 Views
-
Last post by Dos3.1
Fri Apr 21, 2017 7:02 pm
-
-
-
Fan trouble - 3000 N200 + Type 0769 - ESG ACPI Script for NHC > NOTEBOOK HARDWARE CONTROL
by MatMor » Sun Mar 12, 2017 12:12 pm » in 3000 Series Laptops - 0 Replies
- 2613 Views
-
Last post by MatMor
Sun Mar 12, 2017 12:12 pm
-
-
-
Waking up T460 on docking station problem.
by Darrell456 » Sat Mar 04, 2017 5:35 pm » in ThinkPad T430/T530 and later Series - 0 Replies
- 1030 Views
-
Last post by Darrell456
Sat Mar 04, 2017 5:35 pm
-
-
- 25 Replies
- 700 Views
-
Last post by teppy
Sun May 21, 2017 1:25 pm
Who is online
Users browsing this forum: No registered users and 1 guest



