mirror of https://github.com/pikvm/pikvm.git
				
				
				
			fix
This commit is contained in:
		
							parent
							
								
									51b37a0e3f
								
							
						
					
					
						commit
						41ad041cc6
					
				|  | @ -16,6 +16,7 @@ to temporarily disable already configured existing emulated devices. | ||||||
|     that can bring devices back to life after a timeout of a few minutes. |     that can bring devices back to life after a timeout of a few minutes. | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | ----- | ||||||
| ## Command-line utility | ## Command-line utility | ||||||
| 
 | 
 | ||||||
| The `kvmd-otgconf` utility allows you to view and modify the USB configuration on the fly. | The `kvmd-otgconf` utility allows you to view and modify the USB configuration on the fly. | ||||||
|  | @ -50,14 +51,16 @@ Enabling the device: | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | ----- | ||||||
| ## Web UI menu | ## Web UI menu | ||||||
| 
 | 
 | ||||||
| Using the pseudo-GPIO driver, you can also control devices via the menu in the web interface. | Using the pseudo-GPIO driver, you can also control devices via the menu in the web interface. | ||||||
| Read about GPIO basics [here](gpio.md). | Read about GPIO basics [here](gpio.md). | ||||||
| 
 | 
 | ||||||
| To setup the menu, use `kvmd-otgconf --make-gpio-config` to generate the configuration, and combine it | To setup the menu, use `kvmd-otgconf --make-gpio-config` to generate the configuration, and merge it | ||||||
| with your existing one in `/etc/kvmd/override.yaml` in a usual way. | with your existing one in `/etc/kvmd/override.yaml` in a usual way. | ||||||
| 
 | 
 | ||||||
|  | ??? example "The example of `kvmd-otgconf --make-gpio-config` output`" | ||||||
|     ```yaml |     ```yaml | ||||||
|     # kvmd-otgconf --make-gpio-config |     # kvmd-otgconf --make-gpio-config | ||||||
|     kvmd: |     kvmd: | ||||||
|  | @ -70,38 +73,26 @@ kvmd: | ||||||
|                     driver: otgconf |                     driver: otgconf | ||||||
|                     mode: output |                     mode: output | ||||||
|                     pin: hid.usb0 |                     pin: hid.usb0 | ||||||
|                 pulse: |                     pulse: false | ||||||
|                     delay: 0 |  | ||||||
|                 hid.usb1: |                 hid.usb1: | ||||||
|                     driver: otgconf |                     driver: otgconf | ||||||
|                     mode: output |                     mode: output | ||||||
|                     pin: hid.usb1 |                     pin: hid.usb1 | ||||||
|                 pulse: |                     pulse: false | ||||||
|                     delay: 0 |  | ||||||
|                 hid.usb2: |                 hid.usb2: | ||||||
|                     driver: otgconf |                     driver: otgconf | ||||||
|                     mode: output |                     mode: output | ||||||
|                     pin: hid.usb2 |                     pin: hid.usb2 | ||||||
|                 pulse: |                     pulse: false | ||||||
|                     delay: 0 |  | ||||||
|                 mass_storage.usb0: |                 mass_storage.usb0: | ||||||
|                     driver: otgconf |                     driver: otgconf | ||||||
|                     mode: output |                     mode: output | ||||||
|                     pin: mass_storage.usb0 |                     pin: mass_storage.usb0 | ||||||
|                 pulse: |                     pulse: false | ||||||
|                     delay: 0 |  | ||||||
|             view: |             view: | ||||||
|                 table: |                 table: | ||||||
|             -   - '#Keyboard' |                     - ["#Keyboard", "#hid.usb0", hid.usb0] | ||||||
|                 - '#hid.usb0' |                     - ["#Absolute Mouse", "#hid.usb1", hid.usb1] | ||||||
|                 - hid.usb0 |                     - ["#Relative Mouse", "#hid.usb2", hid.usb2] | ||||||
|             -   - '#Absolute Mouse' |                     - ["#Mass Storage Drive", "#mass_storage.usb0", mass_storage.usb0] | ||||||
|                 - '#hid.usb1' |  | ||||||
|                 - hid.usb1 |  | ||||||
|             -   - '#Relative Mouse' |  | ||||||
|                 - '#hid.usb2' |  | ||||||
|                 - hid.usb2 |  | ||||||
|             -   - '#Mass Storage Drive' |  | ||||||
|                 - '#mass_storage.usb0' |  | ||||||
|                 - mass_storage.usb0 |  | ||||||
|     ``` |     ``` | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue