Talk:ThinkPad X6 UltraBase
Revision as of 14:40, 7 July 2011 by Jdthood (Talk | contribs) (moved Talk:X6 UltraBase to Talk:ThinkPad X6 UltraBase: Official name)
My Kernel (2.6.30.2) only generates a "change" udev-event. No "dock" or "undock" event. So I used the ATTR to find out whether docked or undocked. The udev rules in /etc/udev/rules.d/10-docking.rules look like this now:
ATTR{docked}=="1", KERNEL=="dock.0", SUBSYSTEM=="platform", RUN+="/some/script dock" ATTR{docked}=="0", KERNEL=="dock.0", SUBSYSTEM=="platform", RUN+="/some/script undock"
Cz8s 16:32, 26 July 2009 (UTC)