chess: detect device removal and attachment