Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't swich monitor input. #404

Closed
WaflanCZ opened this issue Apr 9, 2024 · 6 comments
Closed

Can't swich monitor input. #404

WaflanCZ opened this issue Apr 9, 2024 · 6 comments
Labels
input source VCP feature x60

Comments

@WaflanCZ
Copy link

WaflanCZ commented Apr 9, 2024

Uploading sudo_ddcutil_interrogate.txt…
Hi, I am trying to swich monitor input but it just dosent work. First I had a problem with plasma 6, that I resolved with --disable-cross-instance-locks. But it still dosent work.

ddcutil --bus 6 capabilities --disable-cross-instance-locks
Unable to open directory /sys/devices/pci0000:00/0000:00:03.2/0000:0c:00.0/drm: No such file or directory
Model: WK95U
MCCS version: 2.1
Commands:
   Op Code: 01 (VCP Request)
   Op Code: 02 (VCP Response)
   Op Code: 03 (VCP Set)
   Op Code: 0C (Save Settings)
   Op Code: E3 (Capabilities Reply)
   Op Code: F3 (Capabilities Request)
VCP Features:
   Feature: 02 (New control value)
   Feature: 04 (Restore factory defaults)
   Feature: 05 (Restore factory brightness/contrast defaults)
   Feature: 08 (Restore color defaults)
   Feature: 10 (Brightness)
   Feature: 12 (Contrast)
   Feature: 14 (Select color preset)
      Values:
         05: 6500 K
         08: 9300 K
         0b: User 1
   Feature: 16 (Video gain: Red)
   Feature: 18 (Video gain: Green)
   Feature: 1A (Video gain: Blue)
   Feature: 52 (Active control)
   Feature: 60 (Input Source)
      Values:
         11: HDMI-1
         12: HDMI-2
         0f: DisplayPort-1
         10: DisplayPort-2
   Feature: AC (Horizontal frequency)
   Feature: AE (Vertical frequency)
   Feature: B2 (Flat panel sub-pixel layout)
   Feature: B6 (Display technology type)
   Feature: C0 (Display usage time)
   Feature: C6 (Application enable key)
   Feature: C8 (Display controller type)
   Feature: C9 (Display firmware level)
   Feature: D6 (Power mode)
      Values:
         01: DPM: On,  DPMS: Off
         04: DPM: Off, DPMS: Off
   Feature: DF (VCP Version)
   Feature: 62 (Audio speaker volume)
   Feature: 8D (Audio Mute)
   Feature: F4 (Manufacturer specific feature)
   Feature: F5 (Manufacturer specific feature)
      Values: 01 02 03 04 (interpretation unavailable)
   Feature: F6 (Manufacturer specific feature)
      Values: 00 01 02 (interpretation unavailable)
   Feature: 4D (Unrecognized feature)
   Feature: 4E (Unrecognized feature)
   Feature: 4F (Unrecognized feature)
   Feature: 15 (Unrecognized feature)
      Values: 01 06 11 13 14 15 18 19 20 22 23 24 28 29 32 48 (interpretation unavailable)
   Feature: F7 (Manufacturer specific feature)
      Values: 00 01 02 03 (interpretation unavailable)
   Feature: F8 (Manufacturer specific feature)
      Values: 00 01 (interpretation unavailable)
   Feature: F9 (Manufacturer specific feature)
   Feature: EF (Manufacturer specific feature)
   Feature: FA (Manufacturer specific feature)
      Values: 00 01 (interpretation unavailable)
   Feature: FD (Manufacturer specific feature)
      Values: 00 01 (interpretation unavailable)
   Feature: FE (Manufacturer specific feature)
      Values: 00 01 02 (interpretation unavailable)
   Feature: FF (Manufacturer specific feature)
❯ ddcutil --bus 6 getvcp 60 --verbose --noverify --disable-cross-instance-locks
Unable to open directory /sys/devices/pci0000:00/0000:00:03.2/0000:0c:00.0/drm: No such file or directory
Feature definition file not found: GSM-LG_ULTRAGEAR-23507.mccs

Getting data for non-table VCP code 0x60 - Input Source:
Raw value: opcode=0x60, mh=0x00, ml=0x12, sh=0x00, sl=0x0f, max_val=18 (0x0012), cur_val=15 (0x000f)
VCP code 0x60 (Input Source                  ): DisplayPort-1 (sl=0x0f)

~
❯ ddcutil --bus 6 setvcp 60 0x11 --verbose --noverify --disable-cross-instance-locks
Unable to open directory /sys/devices/pci0000:00/0000:00:03.2/0000:0c:00.0/drm: No such file or directory
Feature definition file not found: GSM-LG_ULTRAGEAR-23507.mccs
@rockowitz
Copy link
Owner

Please run sudo ddcutil interrogate and submit it as an attachment. Do not paste it inline.

@WaflanCZ
Copy link
Author

Please run sudo ddcutil interrogate and submit it as an attachment. Do not paste it inline.

Here it is.
sudo_ddcutil_interrogate.txt

@WaflanCZ
Copy link
Author

Please run sudo ddcutil interrogate and submit it as an attachment. Do not paste it inline.

HI, could you remove the label? I already added the info.

@p0ryae
Copy link

p0ryae commented Feb 19, 2025

Bump. Happens for me as well.

My interrogate output: output.txt

Running on Wayland and Arch Linux. It seems like this issue exists only when switching between display ports or power modes. Changing brightness and RGB colors work just fine.

@rockowitz any thoughts?

@WaflanCZ
Copy link
Author

Hi @p0ryae,
I am sorry, but I completely forgot about posting this issiue. I already resolved it. I found out that LG dosent follow the standard so you need to use different codes. The wiki of this repo containes notes on it. https://github.com/rockowitz/ddcutil/wiki/Switching-input-source-on-LG-monitors

Bellow I am also including commands that I use for swiching monitors. (I recommend using bus numbers instead of display numbers if you are using multiple monitors, becouse some times they swich their numbers.)

DP-1
ddcutil -b 6 setvcp xF4 x00D0 --i2c-source-addr=x50 --noverify

HDMI-1
ddcutil -b 6 setvcp xF4 x0090 --i2c-source-addr=x50 --noverify

@p0ryae
Copy link

p0ryae commented Feb 24, 2025

Thanks for this @WaflanCZ! Seemed to do something. Although sadly, I have a blinking issue when running either of those commands. The screen only blinks with no input switch. I decided to follow through with someone who seemed to have similar issue to me: #100 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
input source VCP feature x60
Projects
None yet
Development

No branches or pull requests

3 participants