Difference between revisions of "Talk:ThinkPad X6 UltraBase"
(â†Created page with '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/...') |
|||
Line 4: | Line 4: | ||
ATTR{docked}=="1", KERNEL=="dock.0", SUBSYSTEM=="platform", RUN+="/some/script dock" | ATTR{docked}=="1", KERNEL=="dock.0", SUBSYSTEM=="platform", RUN+="/some/script dock" | ||
ATTR{docked}=="0", KERNEL=="dock.0", SUBSYSTEM=="platform", RUN+="/some/script undock" | ATTR{docked}=="0", KERNEL=="dock.0", SUBSYSTEM=="platform", RUN+="/some/script undock" | ||
+ | |||
+ | [[User:Cz8s|Cz8s]] 16:32, 26 July 2009 (UTC) |
Revision as of 17:32, 26 July 2009
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)