Go Back   DisplayLink Forum > DisplayLink Applications > Embedded Applications

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 08-06-2016, 05:44 PM   #4
Jim2220
Junior Member
 
Join Date: Nov 2015
Posts: 11
Default IOCTL_USB_DISCONNECT, right or wrong track?

A call to this function of libusb in linux.c

int usb_detach_kernel_driver_np(usb_dev_handle *dev, int interface)
{
struct usb_ioctl command;
int ret;

command.ifno = interface;
command.ioctl_code = IOCTL_USB_DISCONNECT;
command.data = NULL;

printf ("****** Attempt to detach interface %d --> ", interface);
ret = ioctl(dev->fd, IOCTL_USB_IOCTL, &command);

with interface 0
makes the device /dev/sr1 (Displaylink CD) disappear.
Unfortunately, it has very strange side effects: my main desktop monitor shows pixelated garbage, Cinnamon crashes, session logout.
Jim2220 is offline   Reply With Quote
 

Tags
displaylink cd, libdlo, libusb, udl, xenarc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:06 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2026, vBulletin Solutions, Inc.