
Originally Posted by
pete78
The above described doch/undock events are not generated on my Lenovo W510 under Ubuntu 11.04. The content of /sys/devices/platform/dock.0/docked is also fixed to 0.
Is this a bug of udev, Ubuntu, the w510 or should that not work when I press the undock button of the docking station? The docking station is a "Lenovo ThinkPad Mini Dock Series 3 - Mini-Dock".
I haven't tried this with 11.04 and I don't think I ever will because I just don't like it and find it very buggy.
To debug this run the bellow command and undock to see what you get:
Code:
udevadm monitor --environment
And see if the event you get when pressing the undock button matches your rule.
In my case when I press the undock button I get:
Code:
KERNEL[1307629733.862912] change /devices/platform/dock.0 (platform)
UDEV_LOG=3
ACTION=change
DEVPATH=/devices/platform/dock.0
SUBSYSTEM=platform
EVENT=undock
MODALIAS=platform:dock
SEQNUM=2711
And you can see how this matches the rule:
Code:
KERNEL=="dock.0", ACTION=="change", RUN+="/etc/thinkpad/dock.sh"
Bear in mind I'm doing this on 10.04 and a Thinkpad W500.
I hope this helps.
Bookmarks