Talk:ThinkPad X6 UltraBase

From ThinkWiki
(Redirected from Talk:X6 UltraBase)
Jump to: navigation, search

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)