LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   USB2VGA SIS or Displaylink DL-165 (https://www.linuxquestions.org/questions/linux-hardware-18/usb2vga-sis-or-displaylink-dl-165-a-4175665234/)

k.king 12-01-2019 07:55 AM

USB2VGA SIS or Displaylink DL-165
 
I'm trying to get some USB to VGA adapters working with Mint LMDE2 or pure Debian 9 (LXDE) units.

I have two that I believe are SIS based chips and one that is Displaylink DL-165 based.

When I plug one of the SIS into the unit I get a red border around a black screen, the other SIS one the same although it has alternating black and white horizontal stripes.
The displaylink one gets a green screen.

Most answers I can find say this is all fine and then make changes to the xorg.conf.d file .... but I do not have one of those, so where should should the changes go now?


$ uname -a
Linux unit03 3.16.0-10-586 #1 Debian 3.16.76-1 (2019-11-12) i686 GNU/Linux


$ xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x43 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 2 outputs: 2 associated providers: 0 name:Intel


$ lsusb
Bus 002 Device 007: ID 0711:0900 Magic Control Technology Corp. SVGA Adapter

$ sudo dmesg
[ 4057.600073] usb 2-1: new high-speed USB device number 7 using ehci-pci
[ 4057.732459] usb 2-1: New USB device found, idVendor=0711, idProduct=0900
[ 4057.732474] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 4059.166546] usb 2-1: USB2VGA dongle found at address 7
[ 4059.167412] usb 2-1: Allocated 8 output buffers
[ 4059.284084] usb 2-1: 8MB 1 ch/1 r SDR SDRAM, bus width 32
[ 4059.935648] usbcore: registered new interface driver sisusb

mrmazda 12-02-2019 09:03 PM

Quote:

Originally Posted by k.king (Post 6063630)
Most answers I can find say this is all fine and then make changes to the xorg.conf.d file .... but I do not have one of those, so where should should the changes go now?

xorg.conf.d/ is an optional directory, for overriding defaults if necessary. If you need one, make one.

k.king 12-08-2019 05:12 AM

below is xorg.conf file I tried, generated out of Xorg -configure and with detail added for an MCT/SIS based adapter adapter. I tried placing this in the following
/etc/X11/ /usr/share/X11 and withing the xorg.conf.d folder within those one at time by themselves (i.e. only present in the one location) nothing made any perceptible difference ...
nothing seems to show up in logs... though there is no Xorg.0.log being generate like had on older distro's ?
Code:

$xrandr --listproviders   
    just lists the one provider always present
$ xrandr --listmonitors
Monitors: 2
 0: +*LVDS1 1366/340x768/190+0+0  LVDS1
 1: +HDMI1 1920/620x1080/340+0+0  HDMI1

$xrandr -q
  has same content as before though it has one more line
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

xorg.conf
Section "ServerLayout"
        Identifier    "X.org Configured"
        Screen      0  "Screen0" 0 0
        Screen            1  "Screen1" LeftOf "Screen0" #####SISUSBVGA
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath  "/usr/lib/xorg/modules"
        FontPath    "/usr/share/fonts/X11/misc"
        FontPath    "/usr/share/fonts/X11/cyrillic"
        FontPath    "/usr/share/fonts/X11/100dpi/:unscaled"
        FontPath    "/usr/share/fonts/X11/75dpi/:unscaled"
        FontPath    "/usr/share/fonts/X11/Type1"
        FontPath    "/usr/share/fonts/X11/100dpi"
        FontPath    "/usr/share/fonts/X11/75dpi"
        FontPath    "built-ins"
EndSection

Section "Module"
        Load  "glx"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "Protocol" "auto"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier  "Monitor0"
        VendorName  "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Monitor"
        Identifier  "Monitor1" #####SISUSBVGA
        VendorName  "Monitor Vendor"
        ModelName    "Monitor Model"
#        HorizSync 24-83        #####H range taken from xorg.0.log
#        VertRefresh 50-76        #####V range taken from xorg.0.log
#        Modeline "1440x900_60.00"  106.47  1440 1520 1672 1904  900 901 904 932  -HSync +Vsync
        #####gtf 1440 900 60 generates Modeline
#        Option "PreferredMode" "1440x900_60"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option    "Accel"                      # [<bool>]
        #Option    "AccelMethod"                # <str>
        #Option    "Backlight"                  # <str>
        #Option    "CustomEDID"                # <str>
        #Option    "DRI"                        # <str>
        #Option    "Present"                    # [<bool>]
        #Option    "ColorKey"                  # <i>
        #Option    "VideoKey"                  # <i>
        #Option    "Tiling"                    # [<bool>]
        #Option    "LinearFramebuffer"          # [<bool>]
        #Option    "HWRotation"                # [<bool>]
        #Option    "VSync"                      # [<bool>]
        #Option    "PageFlip"                  # [<bool>]
        #Option    "SwapbuffersWait"            # [<bool>]
        #Option    "TripleBuffer"              # [<bool>]
        #Option    "XvPreferOverlay"            # [<bool>]
        #Option    "HotPlug"                    # [<bool>]
        #Option    "ReprobeOutputs"            # [<bool>]
        #Option    "XvMC"                      # [<bool>]
        #Option    "ZaphodHeads"                # <str>
        #Option    "VirtualHeads"              # <i>
        #Option    "TearFree"                  # [<bool>]
        #Option    "PerCrtcPixmaps"            # [<bool>]
        #Option    "FallbackDebug"              # [<bool>]
        #Option    "DebugFlushBatches"          # [<bool>]
        #Option    "DebugFlushCaches"          # [<bool>]
        #Option    "DebugWait"                  # [<bool>]
        #Option    "BufferCache"                # [<bool>]
        Identifier  "Card0"
        Driver      "intel"
        BusID      "PCI:0:2:0"
EndSection

Section "Device"
        Identifier "Device1"        #####SISUSBVGA
        VendorName "MCT" #this can be anything
        BoardName "USB2VGA" #this can be anything
        Driver "sisusb"
        BusID  "USB:0711:0900"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device    "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport  0 0
                Depth    1
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    4
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    8
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    15
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    16
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    24
        EndSubSection
EndSection

Section "Screen"
        Identifier "Screen1"        #####SISUSBVGA
        Device "Device1"
        Monitor "Monitor1"
        SubSection "Display"
                Virtual 1440 900
        EndSubSection
EndSection


mrmazda 12-08-2019 07:20 AM

Did you look for an Xorg.n.log in both ~/.local/share/xorg/ and /var/log/?

Make your attempt to build xorg.conf easier by not manually configuring unnecessarily: leave out all the input and files sections, adding them back only if necessary if and when you get some video with non-working input from your dongl

What does simply xrandr output while attemmpting to use the usb donngle?

k.king 12-08-2019 11:51 AM

$ xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
LVDS1 connected primary (normal left inverted right x axis y axis)
1366x768 60.01 +
1360x768 59.96
1024x768 60.00
1024x576 60.00
960x540 60.00
800x600 60.32 56.25
864x486 60.00
640x480 59.94
720x405 60.00
680x384 60.00
640x360 60.00
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 620mm x 340mm
1920x1080 60.00* 50.00 50.00 59.94
1920x1080i 60.00 50.00 59.94
1680x1050 59.88
1280x1024 75.02 60.02
1440x900 74.98 59.90
1280x960 60.00
1280x720 60.00 50.00 59.94
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x576i 50.00
720x480 60.00 59.94
720x480i 60.00 59.94
640x480 75.00 72.81 66.67 60.00 59.94
720x400 70.08
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
- - - -

btw would KVM disable by BIOS affect any of this?

- - - -


re log, there wa on in ~/.local/share/xorg/
excerpts from

X.Org X Server 1.19.2
Release Date: 2017-03-02
[ 19.959] X Protocol Version 11, Revision 0
[ 19.959] Build Operating System: Linux 4.9.0-8-amd64 x86_64 Debian
[ 19.959] Current Operating System: Linux unit190427A 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64
[ 19.959] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.9.0-11-amd64 root=UUID=02d1f8ff-bc83-4c09-86a5-ca154f5330d9 ro quiet
[ 19.959] Build Date: 03 November 2018 03:09:11AM
[ 19.959] xorg-server 2:1.19.2-1+deb9u5 (https://www.debian.org/support)
[ 19.959] Current version of pixman: 0.34.0

[ 19.980] (==) Using config file: "/etc/X11/xorg.conf"
[ 19.980] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 19.981] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 19.987] (==) ServerLayout "X.org Configured"
[ 19.987] (**) |-->Screen "Screen0" (0)
[ 19.987] (**) | |-->Monitor "Monitor0"
[ 19.987] (**) | |-->Device "Card0"
[ 19.987] (**) |-->Screen "Screen1" (1)
[ 19.987] (**) | |-->Monitor "Monitor1"
[ 19.987] (**) | |-->Device "Device1"
[ 19.987] (**) |-->Input Device "Mouse0"
[ 19.987] (**) |-->Input Device "Keyboard0"

[ 20.047] (II) LoadModule: "sisusb"
[ 20.047] (II) Loading /usr/lib/xorg/modules/drivers/sisusb_drv.so
[ 20.048] (II) Module sisusb: vendor="X.Org Foundation"
[ 20.048] compiled for 1.19.1, module version = 0.9.7
[ 20.048] Module class: X.Org Video Driver
[ 20.048] ABI class: X.Org Video Driver, version 23.0
[ 20.048] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[ 20.048] (II) intel: Driver for Intel(R) HD Graphics
[ 20.048] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[ 20.048] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[ 20.048] (II) SISUSB: driver for SiSUSB chipsets: SIS315E/PRO USB
[ 20.049] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)

[ 20.051] (WW) Falling back to old probe method for sisusb
[ 20.051] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 20.052] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 2000
[ 20.052] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2; using a maximum of 2 threads
[ 20.052] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[ 20.052] (==) intel(0): RGB weight 888
[ 20.052] (==) intel(0): Default visual is TrueColor
[ 20.053] (II) intel(0): Output LVDS1 using monitor section Monitor0
[ 20.064] (**) intel(0): Found backlight control interface intel_backlight (type 'raw') for output LVDS1
[ 20.064] (II) intel(0): Enabled output LVDS1
[ 20.064] (II) intel(0): Output VGA1 has no monitor section
[ 20.065] (II) intel(0): Enabled output VGA1
[ 20.065] (II) intel(0): Output HDMI1 has no monitor section
[ 20.065] (II) intel(0): Enabled output HDMI1
[ 20.065] (II) intel(0): Output DP1 has no monitor section
[ 20.065] (II) intel(0): Enabled output DP1
[ 20.065] (--) intel(0): Using a maximum size of 256x256 for hardware cursors
[ 20.065] (II) intel(0): Output VIRTUAL1 has no monitor section
[ 20.065] (II) intel(0): Enabled output VIRTUAL1
[ 20.065] (--) intel(0): Output LVDS1 using initial mode 1366x768 on pipe 0
[ 20.065] (--) intel(0): Output HDMI1 using initial mode 1920x1080 on pipe 1
[ 20.066] (==) intel(0): TearFree disabled
[ 20.066] (==) intel(0): Using gamma correction (1.0, 1.0, 1.0)
[ 20.066] (==) intel(0): DPI set to (96, 96)

[ 20.100] (II) UnloadModule: "sisusb"
[ 20.100] (II) Unloading sisusb

mrmazda 12-08-2019 12:55 PM

Parts of Xorg.n.log won't do. Please use do:
Code:

pastebinit .local/share/xorg/Xorg.0.log
sudo install xserver-xorg-video-modesetting
inxi -Gxx


k.king 12-08-2019 02:14 PM

$ pastebinit .local/share/xorg/Xorg.0.log
http://paste.debian.net/1120150/

$ sudo install xserver-xorg-video-modesetting
install: missing destination file operand after 'xserver-xorg-video-modesetting'
Try 'install --help' for more information.

$ inxi -Gxx
Graphics: Card: Intel 2nd Generation Core Processor Family Integrated Graphics Controller
bus-ID: 00:02.0 chip-ID: 8086:0106
Display Server: X.Org 1.19.2 drivers: modesetting,fbdev,ati,sisusb,vesa,vmware,radeon,nouveau,intel,amdgpu
Resolution: 1366x768@60.01hz, 1920x1080@60.00hz
GLX Renderer: Mesa DRI Intel Sandybridge Mobile
GLX Version: 3.0 Mesa 13.0.6 Direct Rendering: Yes

mrmazda 12-08-2019 02:22 PM

Quote:

Originally Posted by k.king (Post 6065865)
$ sudo install xserver-xorg-video-modesetting
install: missing destination file operand after 'xserver-xorg-video-modesetting'

Oops!
Code:

sudo apt install xserver-xorg-video-modesetting
But, according to inxi, it seems to be installed already.

Quote:

Display Server: X.Org 1.19.2 drivers: modesetting,fbdev,ati,sisusb,vesa,vmware,radeon,nouveau,intel,amdgpu
This is peculiar output. If
Code:

inxi -V
shows version 2.4.x, please get and use the upstream inxi version.

mrmazda 12-08-2019 03:00 PM

I've never tried any USB-to-VGA adapter. Next I would try purging xserver-xorg-video-intel, to see if the modesetting driver can overcome the deficiencies reported by Xorg.0.log. If not, next I would try changing the BIOS GPU priority, if that's possible, or disabling the onboard GPU, if possible. Older onboard Intel GPUs tend to be either/or, not compatible with simultaneous use of another GPU. I would do all this first without any xorg.conf file, and add manual configuration only as a last resort if nothing else helps.

Do not disturb the content of /usr/share/X11/. That's the exclusive domain of the package management system. Manual configuration belongs in /etc/X11/, for overriding automagic, if necessary.

k.king 12-08-2019 04:25 PM

$ sudo apt install xserver-xorg-video-modesetting
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'xserver-xorg-core' instead of 'xserver-xorg-video-modesetting'
xserver-xorg-core is already the newest version (2:1.19.2-1+deb9u5).
xserver-xorg-core set to manually installed.
The following packages were automatically installed and are no longer required:
libcurl3 linux-image-4.9.0-8-amd64
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ inxi -V
inxi 2.3.5-00 (2016-12-02)

will look into updating the inxi ....

this is a laptop so not sure if BIOS would allow to disable the intel GPU and I don't want to lose the inbuilt vga/hdmi port(s)

mrmazda 12-08-2019 05:33 PM

inxi can update itself via its -U switch if you create /etc/inxi.conf or add to or change it to include B_ALLOW_UPDATE=true. IIRC on Debian it already exists and needs to be changed.

k.king 12-09-2019 01:51 PM

$ inxi -V
inxi 3.0.37-00 (2019-11-19)


$ inxi -Gxx
Graphics: Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics vendor: Holco Enterprise Co /Shuttle
driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:0106
Display: server: X.Org 1.19.2 driver: amdgpu,ati,fbdev,intel,modesetting,nouveau,radeon,sisusb,vesa,vmware
resolution: 1366x768~60Hz, 1920x1080~60Hz
OpenGL: renderer: Mesa DRI Intel Sandybridge Mobile v: 3.3 Mesa 13.0.6 compat-v: 3.0 direct render: Yes

mrmazda 12-09-2019 02:32 PM

Please try this one:
Code:

sudo lspci -nnk | grep -i -A4 VGA

k.king 12-09-2019 04:20 PM

$ sudo lspci -nnk | grep -i -A4 VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0106] (rev 09)
Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer 2nd Generation Core Processor Family Integrated Graphics Controller [1297:2027]
Kernel driver in use: i915
Kernel modules: i915
00:16.0 Communication controller [0780]: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 [8086:1e3a] (rev 04)

h2-1 12-10-2019 05:03 PM

In terms of the corrupted drivers, you have to take the /var/log/Xorg.0.log file and paste it at the same time that inxi shows the -G driver errors. That is, run inxi, see if it shows the excess drivers, and if it does, immediately pastebin the full /var/log/Xorg.0.log file

The file linked to here was not the same file that triggers this error because it doesn't have that error in it.

This is a very easy item to debug because the output MUST show whatever the Xorg.0.log file had in it, so all I have to do is run the datasource as the test file and it will reproduce the error, it has to.

Note that I don't believe inxi supports USB vga adapters, I think I was thinking about doing it, but I didn't have any data for it, and it didn't seem like I ever found anyone who actually used one. But the drivers list doesn't come from usb data, it comes from the xorg log file.


All times are GMT -5. The time now is 10:23 PM.