Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
Diskdoc
Posts: 3
Joined: 12 May 2021, 10:02

Samsung Syncmaster 940UX, need help

Post by Diskdoc » 12 May 2021, 10:24

Hi! I'm sure glad there is a forum!

Apparently 940UX isn't supported in Windows 10 anymore:
Up until 2009, a few devices based on DisplayLink technology included an auto install driver feature. This required the DisplayLink USB driver to switch the device from being a mass storage device to a video device. On Windows 10, we use the Microsoft USB driver, and this does not support the switching between a mass storage device and a video device.
Therefore it is not possible to support these DisplayLink enabled devices on Windows 10.
https://support.displaylink.com/knowled ... windows-10

But I'd rather see it work in Linux anyway! Yesterday I spent hours trying to get the udl driver (that's supposed to support the DisplayLink-chipset in the monitors) to work properly, but it wouldn't create the framebuffer device for xrasndr like it's supposed to.

I suspect the problem is the same as in Windows - the devices needs to be modeswitched to what the udl driver needs to see.

I started messing around with usb_modeswitch myself but I'm pretty nooby at this so I need help. I tried using standard eject on 14e5:0401. Indeed one of the two entries ejected (here's the output):

Code: Select all

root@gullan:~# usb_modeswitch -v 14e5 -p 0401 -K
Look for default devices ...
 Found devices in default mode (2)
Access device 022 on bus 001
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
 with class 8
Use endpoints 0x02 (out) and 0x81 (in)
Sending standard EJECT sequence
Looking for active drivers ...
 OK, driver detached
Set up interface 0
Use endpoint 0x02 for message sending ...
Trying to send message 1 to endpoint 0x02 ...
 OK, message successfully sent
Read the response to message 1 (CSW) ...
 Response successfully read (13 bytes), status 0
Trying to send message 2 to endpoint 0x02 ...
 OK, message successfully sent
Read the response to message 2 (CSW) ...
 Response successfully read (13 bytes), status 0
Trying to send message 3 to endpoint 0x02 ...
 OK, message successfully sent
Read the response to message 3 (CSW) ...
 Response successfully read (13 bytes), status 0
Trying to send message 4 to endpoint 0x02 ...
 OK, message successfully sent
Read the response to message 4 (CSW) ...
 Response successfully read (13 bytes), status 0
Reset response endpoint 0x81
Reset message endpoint 0x02
-> Run lsusb to note any changes. Bye!
..but after the eject the vendor:id is still the same. Maybe it's the other device (17e9:0101) that should be ejected? I think that is the one the udl driver is supposed to work with, judging from the output under "Load the framebuffer device", here:

https://wiki.archlinux.org/title/DisplayLink

So, uh, can anyone guide me through this?

dmesg output when plugging in:

Code: Select all

[ 2358.932518] usb 1-6: new high-speed USB device number 21 using ehci-pci
[ 2359.088932] usb 1-6: New USB device found, idVendor=0424, idProduct=2514, bcdDevice= 0.00
[ 2359.088936] usb 1-6: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2359.089223] hub 1-6:1.0: USB hub found
[ 2359.089299] hub 1-6:1.0: 4 ports detected
[ 2359.376514] usb 1-6.1: new high-speed USB device number 22 using ehci-pci
[ 2359.489428] usb 1-6.1: New USB device found, idVendor=14e5, idProduct=0401, bcdDevice= 0.00
[ 2359.489432] usb 1-6.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2359.489435] usb 1-6.1: Product: SUSB2020
[ 2359.489437] usb 1-6.1: Manufacturer: SAIN INFOCOM 
[ 2359.489440] usb 1-6.1: SerialNumber: 600016
[ 2359.490534] usb-storage 1-6.1:1.0: USB Mass Storage device detected
[ 2359.490795] scsi host4: usb-storage 1-6.1:1.0
[ 2359.572507] usb 1-6.2: new high-speed USB device number 23 using ehci-pci
[ 2359.685929] usb 1-6.2: New USB device found, idVendor=17e9, idProduct=0101, bcdDevice= 0.14
[ 2359.685934] usb 1-6.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2359.685936] usb 1-6.2: Product: Samsung UbiSync Monitor
[ 2359.685938] usb 1-6.2: Manufacturer: DisplayLink
[ 2359.685940] usb 1-6.2: SerialNumber: 0101-000000HMCQ600167
[ 2359.768517] usb 1-6.3: new high-speed USB device number 24 using ehci-pci
[ 2359.876806] usb 1-6.3: New USB device found, idVendor=0424, idProduct=2514, bcdDevice= 0.00
[ 2359.876810] usb 1-6.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2359.877090] hub 1-6.3:1.0: USB hub found
[ 2359.877173] hub 1-6.3:1.0: 4 ports detected
[ 2360.164508] usb 1-6.3.1: new high-speed USB device number 25 using ehci-pci
[ 2360.273429] usb 1-6.3.1: New USB device found, idVendor=14e5, idProduct=0401, bcdDevice= 0.00
[ 2360.273433] usb 1-6.3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2360.273436] usb 1-6.3.1: Product: SUSB2020
[ 2360.273438] usb 1-6.3.1: Manufacturer: SAIN INFOCOM 
[ 2360.273440] usb 1-6.3.1: SerialNumber: 600019
[ 2360.273855] usb-storage 1-6.3.1:1.0: USB Mass Storage device detected
[ 2360.274773] scsi host5: usb-storage 1-6.3.1:1.0
[ 2360.352527] usb 1-6.3.2: new high-speed USB device number 26 using ehci-pci
[ 2360.465929] usb 1-6.3.2: New USB device found, idVendor=17e9, idProduct=0101, bcdDevice= 0.14
[ 2360.465933] usb 1-6.3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2360.465936] usb 1-6.3.2: Product: Samsung UbiSync Monitor
[ 2360.465938] usb 1-6.3.2: Manufacturer: DisplayLink
[ 2360.465940] usb 1-6.3.2: SerialNumber: 0101-000000HMEQB00272
[ 2360.521205] scsi 4:0:0:0: CD-ROM            SUSB2010 SAIN-ONENANDCD   0.20 PQ: 0 ANSI: 0
[ 2360.523563] sr 4:0:0:0: [sr1] scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
[ 2360.544928] sr 4:0:0:0: Attached scsi CD-ROM sr1
[ 2360.545105] sr 4:0:0:0: Attached scsi generic sg2 type 5
[ 2360.754307] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 2360.755407] ISOFS: changing to secondary root
[ 2361.289070] scsi 5:0:0:0: CD-ROM            SUSB2010 SAIN-ONENANDCD   0.20 PQ: 0 ANSI: 0
[ 2361.293438] sr 5:0:0:0: [sr2] scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
[ 2361.300886] sr 5:0:0:0: Attached scsi CD-ROM sr2
[ 2361.300982] sr 5:0:0:0: Attached scsi generic sg3 type 5
[ 2361.503430] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 2361.504312] ISOFS: changing to secondary root
lsusb of concerned devices:

Code: Select all

Bus 001 Device 026: ID 17e9:0101 DisplayLink 802.11 n WLAN
Bus 001 Device 025: ID 14e5:0401 SAIN Information & Communications Co., Ltd. 
Bus 001 Device 024: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub
Bus 001 Device 023: ID 17e9:0101 DisplayLink 802.11 n WLAN
Bus 001 Device 022: ID 14e5:0401 SAIN Information & Communications Co., Ltd. 
Bus 001 Device 021: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub
sudo lsusb -v -d 17e9:0101

Code: Select all

Bus 001 Device 026: ID 17e9:0101 DisplayLink 802.11 n WLAN
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x17e9 DisplayLink
  idProduct          0x0101 
  bcdDevice            0.14
  iManufacturer           1 DisplayLink
  iProduct                2 Samsung UbiSync Monitor
  iSerial                 3 0101-000000HMEQB00272
  bNumConfigurations      2
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0022
    bNumInterfaces          1
    bConfigurationValue     2
    iConfiguration          1 DisplayLink
    bmAttributes         0xc0
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      23
          Report Descriptor: (length is 23)
            Item(Global): Usage Page, data= [ 0x80 ] 128
                            USB Monitor
            Item(Local ): Usage, data= [ 0x01 ] 1
                            Monitor Control
            Item(Main  ): Collection, data= [ 0x01 ] 1
                            Application
            Item(Global): Report ID, data= [ 0x01 ] 1
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0xff 0x00 ] 255
            Item(Global): Report Size, data= [ 0x08 ] 8
            Item(Global): Report Count, data= [ 0x80 ] 128
            Item(Local ): Usage, data= [ 0x02 ] 2
                            EDID Information
            Item(Main  ): Feature, data= [ 0x02 0x01 ] 258
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Buffered Bytes
            Item(Main  ): End Collection, data=none
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval               4
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0020
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          1 DisplayLink
    bmAttributes         0xc0
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               4
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      2
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0001
  Self Powered

Bus 001 Device 023: ID 17e9:0101 DisplayLink 802.11 n WLAN
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x17e9 DisplayLink
  idProduct          0x0101 
  bcdDevice            0.14
  iManufacturer           1 DisplayLink
  iProduct                2 Samsung UbiSync Monitor
  iSerial                 3 0101-000000HMCQ600167
  bNumConfigurations      2
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0022
    bNumInterfaces          1
    bConfigurationValue     2
    iConfiguration          1 DisplayLink
    bmAttributes         0xc0
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      23
          Report Descriptor: (length is 23)
            Item(Global): Usage Page, data= [ 0x80 ] 128
                            USB Monitor
            Item(Local ): Usage, data= [ 0x01 ] 1
                            Monitor Control
            Item(Main  ): Collection, data= [ 0x01 ] 1
                            Application
            Item(Global): Report ID, data= [ 0x01 ] 1
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0xff 0x00 ] 255
            Item(Global): Report Size, data= [ 0x08 ] 8
            Item(Global): Report Count, data= [ 0x80 ] 128
            Item(Local ): Usage, data= [ 0x02 ] 2
                            EDID Information
            Item(Main  ): Feature, data= [ 0x02 0x01 ] 258
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Buffered Bytes
            Item(Main  ): End Collection, data=none
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval               4
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0020
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          1 DisplayLink
    bmAttributes         0xc0
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               4
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      2
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0001
  Self Powered
sudo lsusb -v -d 14e5:0401

Code: Select all

Bus 001 Device 025: ID 14e5:0401 SAIN Information & Communications Co., Ltd. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x14e5 SAIN Information & Communications Co., Ltd.
  idProduct          0x0401 
  bcdDevice            0.00
  iManufacturer           1 SAIN INFOCOM 
  iProduct                2 SUSB2020
  iSerial                 3 600019
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0020
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              290mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)

Bus 001 Device 022: ID 14e5:0401 SAIN Information & Communications Co., Ltd. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x14e5 SAIN Information & Communications Co., Ltd.
  idProduct          0x0401 
  bcdDevice            0.00
  iManufacturer           1 SAIN INFOCOM 
  iProduct                2 SUSB2020
  iSerial                 3 600016
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0020
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              290mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: Samsung Syncmaster 940UX, need help

Post by LOM » 12 May 2021, 18:22

I don't think that the virtual cd-rom can be ejected, the USB devices in the monitor are 2:

1-6.2 Displaylink 17e9:0101
1-6.3 Microchip 4-port USB 2.0 hub 0424:2514

and the hub ports are:
1-6.3.0 port 0 USB B-type connector (to computer)
1-6.3.1 port 1 SAIN INFOCOM CD-ROM
1-6.3.2 port 2 USB A-type connector
1-6.3.3 port 3 USB A-type connector

The virtual cd-rom should contain MS Win drivers and that is the only reason why it is there.

The Displaylink device has 2 configurations where you with the help of usb_modeswitch can select which one should be active.

Config#1 has one single interface which is a HID interface for reporting status or button pushes and that is also the default active config after the Displaylink is detected on your computers USB bus.

Config#2 has the Displaylink interface which I think is the one you want to send screen data to from the udl driver.

So on the cmd line:
sudo usb_modeswitch -v 17e9 -p 0101 -u 2 -W

Diskdoc
Posts: 3
Joined: 12 May 2021, 10:02

Re: Samsung Syncmaster 940UX, need help

Post by Diskdoc » 14 May 2021, 12:39

Thanks a bunch! Your suggestion worked! But I had to change "-u 2" to "-u 1". Additionally, I had to use -b and -g to specify exactly which screen I wanted to become available to the udl driver.

The driver itself is horribly slow probably due to some bug, but that's another story. Finally, with this modeswitch-matter resolved I can get some peace of mind (I was right! I was on the right track! :D )

I think Linux should do the modeswitch automatically on this model screen (and probably the others listed in the Displaylink link). Does anyone know if I should file a bug report somewhere? Is this a udev thing, or a usb-modeswitch thing?

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: Samsung Syncmaster 940UX, need help

Post by LOM » 14 May 2021, 15:00

Diskdoc wrote: 14 May 2021, 12:39 Thanks a bunch! Your suggestion worked! But I had to change "-u 2" to "-u 1".

I think Linux should do the modeswitch automatically on this model screen (and probably the others listed in the Displaylink link). Does anyone know if I should file a bug report somewhere? Is this a udev thing, or a usb-modeswitch thing?
I see now that the first listed config is config#2 and the second listed is config#1 :evil: Probably allowed but still horrible..
Diskdoc wrote: 14 May 2021, 12:39 Additionally, I had to use -b and -g to specify exactly which screen I wanted to become available to the udl driver.
Ah, now I start to understand why there were so many devices in your system log, the DisplayLink card in the monitor presents new USB devices for each screen? Each set of 3 USB devices belongs to one screen?
If that is the case then we can not add it for support in usb_modeswitch data package since bus and device are not static values.

Diskdoc
Posts: 3
Joined: 12 May 2021, 10:02

Re: Samsung Syncmaster 940UX, need help

Post by Diskdoc » 17 May 2021, 20:54

Yes, each screen has it's own device that needs to be switched for it to be accessible to the udl driver! Enabling the DL-devices on all screens matching vendor:deviceid (instead of just the first one) would be correct thing to do here.. Maybe usb-modeswitch could have an --all flag for that?

Just in case anyone else is looking for this solution, theese devices likely need to be switched in the same way:
  • LG L206WU USB monitor
  • First generation HP USB 2.0 Dock Station (Model number: HSTNN-S01X)
  • InFocus IN1100 Projector

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: Samsung Syncmaster 940UX, need help

Post by LOM » 19 May 2021, 07:54

Diskdoc wrote: 17 May 2021, 20:54 Yes, each screen has it's own device that needs to be switched for it to be accessible to the udl driver! Enabling the DL-devices on all screens matching vendor:deviceid (instead of just the first one) would be correct thing to do here.. Maybe usb-modeswitch could have an --all flag for that?
You could try the following:

Make a file named 17e9:0101 in /etc/usb_modeswitch.d with the content:
#DisplayLink V1
Configuration=1

then add

# DisplayLink V1
ATTR{idVendor}=="17e9", ATTR{idProduct}=="0101", RUN+="usb_modeswitch '%b/%k' "
to /lib/udev/rules.d/40-usb_modeswitch.rules

udev will see each new device and will for each of them call usb_modeswitch with its unique BusID (%b).

Post Reply