D
D
Denis2015-09-11 16:40:32
linux
Denis, 2015-09-11 16:40:32

How to identify usb lamp in linux?

There is a usb lamp. (Cornyly, several diodes hang on the power supply)
How to identify it in order to control it?
Inclusion

# echo 0 > /sys/bus/usb/devices/DEVICE/authorized
# echo on > /sys/bus/usb/devices/DEVICE/power/level

Shutdown
# echo auto > /sys/bus/usb/devices/DEVICE/power/level
# echo 1 > /sys/bus/usb/devices/DEVICE/authorized

(The on-off algorithm was found by poke and google unfortunately)
Linux notebook 3.16.0-49-generic #65~14.04.1-Ubuntu SMP Wed Sep 9 10:03:23 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan Fedoseev, 2015-09-11
@prototype_denis

lsusb and writing rules for udev to fix the device name?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question