Het gaat over de Gembird SIS-PMS Silvershield Programmeerbare Stekkerdoos met overspanningsbeveiliging
die via sispmctl kan gebruik worden om stopcontacten op de contactdoos te activeren en deactiveren met de commando's :
sudo sispmctl -t 1
'h' - print this usage information
's' - scan for supported GEMBIRD devices
'b' - switch buzzer on or off
'o' - switch outlet(s) on
'f' - switch outlet(s) off
't' - toggle outlet(s) on/off
'g' - get status of outlet(s)
'm' - get power supply status outlet(s) on/off
'd' - apply to device
'n' - show result numerically
'q' - quiet mode, no explanations - but errors
Helaas werk dit dus enkel als sudo, maak ik wil dit als gewone gebruiker kunnen, ik zou dus ergens permitie's moeten kunnen geven aan mijn account om naar dit apparaat te kunnen schrijven.
Dit is de identificatie van het apparaat
Gembird #0 is USB device 004.This device is a 4-socket SiS-PM.
Accessing Gembird #0 USB device 004
This device has a serial number of 01:01:4b:3f:0e
Op de website van sispmctl vond ik het volgende maar blijkbaar heeft ubuntu geen resmgrd
Hopelijk wel iets anders ?
Per default, only root is allowed to use devices directly, therefor the SiS-PM
also only works as root. If you use a Linux distribution that is using the
ressource manager package (resmgrd), you can add a line to /etc/resmgr.conf.
The following line is an example for SuSE 10.0. It MAY be different on your system.
add usb:vendor=0x04b4,product=0xfd11 usb
This adds the SiS-PM device to the USB class which can be used by logged in users on SuSE 10.0.
If you are using a mSiS-PM device you need to use the product ID of 0xFD10 or 0xFD12 (dependant
on hardware revision, see output of /sbin/lsusb -v).
Actually this solution works for all kinds of USB devices, that you want to directly
access as normal user, i.e. your USB handheld, USB scanner etc.
Instead of identifying the device by vendor and product ID, you can also use the
Bus/device addressing scheme (see also man resmgr.conf)!
Mvg Jonas