I would like to control a usb lamp with linux by switching its current on and off.
Basically any solution comes with inserting values in
/sys/bus/usb/devices/..../power/level
This would be a great idea but there is no way to find which device my device is. I tried lsusb, exploring /proc.bus/input/devices, even a bit a C code [4] but nothing seems related to my device.
To give more information it is a rotating lamp with a on/off switch but it does not seem to have any interaction with the computer except for the current.
Note : I have already looked for solution in SO on [1], [2] and even for windows ([3])
[1] : Controlling a USB power supply (on/off) with linux
[2] : Linux USB: turning the power on and off?
[3] : USB Device Connected