New Posts  All Forums:Forum Nav:

USB HID Commands

post #1 of 7
Thread Starter 
I'm working on this simple usb device as a first step to something more complex.

Basically it has one button and when you press the button the primary monitor goes into standby.
I would like it to work for both Windows and Linux.

I'm still researching, but does anyone know if there is an HID command that can do that.
If I have to have a program do it then the idea is a bust. It has to be a recognized command as part of HID compliance.
Core i7
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 @ 2.93 GHZ (OC) Asus P6T Deluxe X58 Powercolor 2GB 7870 (TAHITI LE) 6GB Crucial DDR3-1333 (OC) (CT12864BA1067 X 6) 
Hard DriveOptical DriveOSMonitor
Intel G2 80GB SSD & WD Caviar Green 640GB X 2 LG GGC-H20LK: Blu-ray & HD-DVD Windows 7 Pro 64-bit 24" Westinghouse L2410NM 1920x1200 
KeyboardPowerCaseMouse
Logitech 967740-0403 Corsair CMPSU-550VX Antec Nine Hundred Logitech G400 
Mouse Pad
BELKIN F8E089-BLU 
  hide details  
Reply
Core i7
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 @ 2.93 GHZ (OC) Asus P6T Deluxe X58 Powercolor 2GB 7870 (TAHITI LE) 6GB Crucial DDR3-1333 (OC) (CT12864BA1067 X 6) 
Hard DriveOptical DriveOSMonitor
Intel G2 80GB SSD & WD Caviar Green 640GB X 2 LG GGC-H20LK: Blu-ray & HD-DVD Windows 7 Pro 64-bit 24" Westinghouse L2410NM 1920x1200 
KeyboardPowerCaseMouse
Logitech 967740-0403 Corsair CMPSU-550VX Antec Nine Hundred Logitech G400 
Mouse Pad
BELKIN F8E089-BLU 
  hide details  
Reply
post #2 of 7
There isnt a HID command to do that.

Basically all you get out of HID (unless you want to write drivers) is Keyboard, Mouse and Gamepad(Joystick). If what you are trying to do cant be done via one of those devices, its not possible.
Blacky
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 ASUS Maximus Formual SE ATi 4870 512mb 4GB DDR2 
Hard DriveOptical DriveOSMonitor
2x 80GB Intel SSD Raid 0, 3x 1TB Raid 5 Blueray+hd-dvd Windows 7 x64 24" Acer 1900x1200 
KeyboardPowerCaseMouse
Deck Green fullsize SilverStone SST-ST60F 600w LanLi PC-61B Logitech MX revolution 
  hide details  
Reply
Blacky
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 ASUS Maximus Formual SE ATi 4870 512mb 4GB DDR2 
Hard DriveOptical DriveOSMonitor
2x 80GB Intel SSD Raid 0, 3x 1TB Raid 5 Blueray+hd-dvd Windows 7 x64 24" Acer 1900x1200 
KeyboardPowerCaseMouse
Deck Green fullsize SilverStone SST-ST60F 600w LanLi PC-61B Logitech MX revolution 
  hide details  
Reply
post #3 of 7
Surely could could chip the USB to be recognized as a keyboard / mouse. Might need to sacrifice some keyboards as an experiment though wink.gif
Struggle
(13 items)
 
  
CPUMotherboardGraphicsRAM
QX9650 @ 3.6GHz XFX 790i Ultra SLI GTX280 702/1405/2468 2 x 2GB DDR3 Corsair Dominator 1,333MHz 
Hard DriveOptical DriveOSMonitor
60GB OCZ Summit SSD, WD VelociRaptor, Seagate 1TB LG DVD R/W Windows 7 Pro 64-bit Dell 24" (1920x1200) 
KeyboardPowerCaseMouse
Logitech G19 Fujitech 800W Asus Vento 3600 (Black) Razor Mamba 
  hide details  
Reply
Struggle
(13 items)
 
  
CPUMotherboardGraphicsRAM
QX9650 @ 3.6GHz XFX 790i Ultra SLI GTX280 702/1405/2468 2 x 2GB DDR3 Corsair Dominator 1,333MHz 
Hard DriveOptical DriveOSMonitor
60GB OCZ Summit SSD, WD VelociRaptor, Seagate 1TB LG DVD R/W Windows 7 Pro 64-bit Dell 24" (1920x1200) 
KeyboardPowerCaseMouse
Logitech G19 Fujitech 800W Asus Vento 3600 (Black) Razor Mamba 
  hide details  
Reply
post #4 of 7
Quote:
Originally Posted by GreddyGo View Post

Surely could could chip the USB to be recognized as a keyboard / mouse. Might need to sacrifice some keyboards as an experiment though wink.gif

It's easy enough to get a custom USB device to be recognised as a keyboard. The point it that there is no native instruction to switch the monitor off. You might be able to put the whole PC to sleep though by emulating the sleep button.
Daily
(16 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600K @ 4.8GHz, 1.4V Maximus IV Extreme GTX 560 DCII TOP 4x4GB Kingston HyperX 1866MHz CL11 
Hard DriveHard DriveCoolingCooling
Kingston HyperX 3K 120GB Samsung 640GB Thermochill PA120.2 Jingway DB-1 Pump 
CoolingCoolingOSMonitor
2x Kaze Jyuni 1900RPM EK Supreme HF Copper plexi Arch Linux x64 Acer X223HQ 1920x1080 
KeyboardPowerCaseMouse
Microsoft Sidewinder X4 Corsair HX750 Modded Corsair Carbide 500R Logitech M500 
  hide details  
Reply
Daily
(16 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600K @ 4.8GHz, 1.4V Maximus IV Extreme GTX 560 DCII TOP 4x4GB Kingston HyperX 1866MHz CL11 
Hard DriveHard DriveCoolingCooling
Kingston HyperX 3K 120GB Samsung 640GB Thermochill PA120.2 Jingway DB-1 Pump 
CoolingCoolingOSMonitor
2x Kaze Jyuni 1900RPM EK Supreme HF Copper plexi Arch Linux x64 Acer X223HQ 1920x1080 
KeyboardPowerCaseMouse
Microsoft Sidewinder X4 Corsair HX750 Modded Corsair Carbide 500R Logitech M500 
  hide details  
Reply
post #5 of 7
Thread Starter 
Quote:
Originally Posted by ARandomOWl View Post

It's easy enough to get a custom USB device to be recognised as a keyboard. The point it that there is no native instruction to switch the monitor off. You might be able to put the whole PC to sleep though by emulating the sleep button.
Thanks, I was thinking about this. The original idea was a sensor that can detect a person and turn on/off the monitor based on that. I've decided to move to my second idea, which is more interesting. A working pip-boy mapping device! thumb.gif
Sorry, no radiation or anything else, just mapping. wink.gif
Core i7
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 @ 2.93 GHZ (OC) Asus P6T Deluxe X58 Powercolor 2GB 7870 (TAHITI LE) 6GB Crucial DDR3-1333 (OC) (CT12864BA1067 X 6) 
Hard DriveOptical DriveOSMonitor
Intel G2 80GB SSD & WD Caviar Green 640GB X 2 LG GGC-H20LK: Blu-ray & HD-DVD Windows 7 Pro 64-bit 24" Westinghouse L2410NM 1920x1200 
KeyboardPowerCaseMouse
Logitech 967740-0403 Corsair CMPSU-550VX Antec Nine Hundred Logitech G400 
Mouse Pad
BELKIN F8E089-BLU 
  hide details  
Reply
Core i7
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7 920 @ 2.93 GHZ (OC) Asus P6T Deluxe X58 Powercolor 2GB 7870 (TAHITI LE) 6GB Crucial DDR3-1333 (OC) (CT12864BA1067 X 6) 
Hard DriveOptical DriveOSMonitor
Intel G2 80GB SSD & WD Caviar Green 640GB X 2 LG GGC-H20LK: Blu-ray & HD-DVD Windows 7 Pro 64-bit 24" Westinghouse L2410NM 1920x1200 
KeyboardPowerCaseMouse
Logitech 967740-0403 Corsair CMPSU-550VX Antec Nine Hundred Logitech G400 
Mouse Pad
BELKIN F8E089-BLU 
  hide details  
Reply
post #6 of 7
That's a good idea. The software to make it work shouldn't be too hard to implement. I might have a go at this as a future project smile.gif
Daily
(16 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600K @ 4.8GHz, 1.4V Maximus IV Extreme GTX 560 DCII TOP 4x4GB Kingston HyperX 1866MHz CL11 
Hard DriveHard DriveCoolingCooling
Kingston HyperX 3K 120GB Samsung 640GB Thermochill PA120.2 Jingway DB-1 Pump 
CoolingCoolingOSMonitor
2x Kaze Jyuni 1900RPM EK Supreme HF Copper plexi Arch Linux x64 Acer X223HQ 1920x1080 
KeyboardPowerCaseMouse
Microsoft Sidewinder X4 Corsair HX750 Modded Corsair Carbide 500R Logitech M500 
  hide details  
Reply
Daily
(16 items)
 
  
CPUMotherboardGraphicsRAM
i7 2600K @ 4.8GHz, 1.4V Maximus IV Extreme GTX 560 DCII TOP 4x4GB Kingston HyperX 1866MHz CL11 
Hard DriveHard DriveCoolingCooling
Kingston HyperX 3K 120GB Samsung 640GB Thermochill PA120.2 Jingway DB-1 Pump 
CoolingCoolingOSMonitor
2x Kaze Jyuni 1900RPM EK Supreme HF Copper plexi Arch Linux x64 Acer X223HQ 1920x1080 
KeyboardPowerCaseMouse
Microsoft Sidewinder X4 Corsair HX750 Modded Corsair Carbide 500R Logitech M500 
  hide details  
Reply
post #7 of 7
Quote:
Originally Posted by ShamrockMan View Post

There isnt a HID command to do that.
Basically all you get out of HID (unless you want to write drivers) is Keyboard, Mouse and Gamepad(Joystick). If what you are trying to do cant be done via one of those devices, its not possible.

It can though. There are keyboard shortcuts to turn the screen off in Windows (thanks to MS epically breaking ACPI). As for Linux, well that would depend on the desktop environment / window manager and it's configuration.

The safest way would be to write device drivers though
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming