Unsolved

1 Rookie

 • 

1 Message

1995

July 18th, 2024 10:13

Dell Display Manager keyboard shortcuts for KVM switch on Linux / Ubuntu for U3821DW monitor

Up to now I have been using windows machines with my dell monitor / KVM hub.

I rebuilt one of my laptops with Ubuntu 20.4 and then found out that there is no Dell Display manager for Linux.

My requirements are fairly simple, I just want to type Ctl-Shift-S to switch to my other laptop which is the USB-C connection. It works to both laptops so switching is consistent.

Some searching led me to an article on this site it is great and gave me the answer that i needed but the answer is simpler if you are using gnome.

Install the "ddcutil" so from a terminal type:

sudo apt install ddcutil

Then you can see the capabilities of the monitor (change the number to match your monitor)

sudo ddcutil capabilities -d 1

This gives you a bunch of output, I am interested in Feature 60 input sources:

..   Feature: 60 (Input Source)      Values:         1b: Unrecognized value         0f: DisplayPort-1         11: HDMI-1         12: HDMI-2..

Once you have this you can use the values (apparently USB-C is 1b) to switch to your input source from the terminal thus:

ddcutil setvcp 60 0x1b

Try it out, if it works you just need to setup the keyboard shortcut with the exact same command.

The link covers this but here are the instructions just to keep it all together:

  1. Open Settings and select Keyboard from the list
  2. Scroll down to the Keyboard Shortcuts section and select View and Customize Shortcuts
  3. Click on the Custom Shortcuts menu and click Add Shortcut or +
  4. Enter the following information in the Add Custom Shortcut window
    1. A Name (mine was SwitchToUsbC)
    2. The command which is exactly as you typed in the terminal above i.e. ddcutil setvcp 60 0x1b
    3. Then click Set Shortcut
    4. Enter your keyboard shortcut i.e. Ctl-Shift-S
    5. Click Add

This is not original, it is all based on other peoples work but it was simpler for me to use the built in functionality than to create scripts or c programs.

If you have more computers attached, you can be slightly more imaginative say Ctl-Shift-W to switch to your work computer or whatever you will remember.

1 Message

August 12th, 2024 04:25

Thank you! Just what I needed for my Linux Mint PC and Dell U2722DE Monitor. Now I can switch easily between Windows 11 (USB-C), MacOS (HDMI) and Linux (DP). Yay!

1 Rookie

 • 

2 Posts

October 30th, 2024 21:23

Thank you for this. I was able to set a common hotkey to switch between my Linux and Windows laptops. This is so much easier and faster than using the physical joystick on the back of the monitor!

I do have a related question: which "feature" code is for switching the USB control (i.e., for switching control in PIP/PBP mode)? It's hard to tell which of the features in the long list of capabilities corresponds with "USB Switch." Any help would be appreciated.

1 Rookie

 • 

2 Posts

October 30th, 2024 21:44

Never mind! I found and tested the solution. The command I was looking for is as follows:

ddcutil setvcp E7 0xFF00

1 Rookie

 • 

1 Message

February 6th, 2025 16:46

andrew - What does FF00 mean in the command mean? I see E7 has 4 values - 00, 01, 02 and 03. I have PBP for 2 computers (Linux and Windows). The common KBD and Mouse currently attached to the monitor. The procedure by the OP does not help me as it switches the panel entirely to the windows. Does your command transfer only the input devices to Windows machine from Linux while maintaining the PBP?

No Events found!

Top