Detecting Mini Dock Plus Series 3 dock presence

Performance, hardware, software, general buying and gaming discussion..
Post Reply
Message
Author
racc
Posts: 7
Joined: Thu Feb 10, 2011 2:20 pm
Location: Tampere, Finland

Detecting Mini Dock Plus Series 3 dock presence

#1 Post by racc » Sat Mar 16, 2013 5:09 pm

I am using T410s with a ThinkPad Mini Dock Plus Series 3 dock. I want computer to select display configuration automatically based on docked/undocked status after boot.

I found a script ( http://askubuntu.com/questions/137927/u ... ng-station ) but unfortunately /sys/devices/platform/dock.0/docked in my system is always 0. On the other hand, /sys/devices/platform/dock.1/docked is always 1. Is this normal with Series 3 dock, or a kernel(?) configuration problem?

To change display configuration during dock/undock event, I use ACPI events. According to my understanding ACPI events are not generated if dock status is not changed.

Is there a clean way to detect dock presence? Currently my best idea is something like:

Code: Select all

lsusb |grep -c "ThinkPad Mini Dock Plus"
Not horribly bad, but leaves a feeling there could be a better way.

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Thinkpad - General HARDWARE/SOFTWARE questions”

Who is online

Users browsing this forum: No registered users and 4 guests