<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[James's Programming Page — DeviceList.Local.GetHidDevices does not list all devices on Ubuntu 19]]></title>
	<link rel="self" href="https://swforum.seekye.com/feed/atom/topic/10128/" />
	<updated>2020-01-16T03:08:35Z</updated>
	<generator>PunBB</generator>
	<id>https://swforum.seekye.com/topic/10128/</id>
		<entry>
			<title type="html"><![CDATA[Re: DeviceList.Local.GetHidDevices does not list all devices on Ubuntu 19]]></title>
			<link rel="alternate" href="https://swforum.seekye.com/post/13108/#p13108" />
			<content type="html"><![CDATA[<p>Turns out this really not an HidSharp issue but rather an issue specifically with Ubuntu 19.x<br />I have created a question on AskUbuntu but not much feedback up until now:</p><p><a href="https://askubuntu.com/questions/1202799/why-doesnt-udev-automatically-map-my-usb-device-to-the-usbhid-driver-on-every-s">https://askubuntu.com/questions/1202799 … on-every-s</a></p>]]></content>
			<author>
				<name><![CDATA[timothyp]]></name>
				<uri>https://swforum.seekye.com/user/14241/</uri>
			</author>
			<updated>2020-01-16T03:08:35Z</updated>
			<id>https://swforum.seekye.com/post/13108/#p13108</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DeviceList.Local.GetHidDevices does not list all devices on Ubuntu 19]]></title>
			<link rel="alternate" href="https://swforum.seekye.com/post/13105/#p13105" />
			<content type="html"><![CDATA[<p>After doing some research I found that on one system the hidusb driver is automatically assigned to my device<br />and on that system everything works fine.</p><p>But on two other systems with the exact same udev rules and also Ubuntu 19.10 the usbhid driver is not automatically assigned.</p><p>So on the working system lsbusb -t looks like this:</p><div class="codebox"><pre><code>Port 4: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 12M</code></pre></div><p>But on the other systems it looks like:</p><div class="codebox"><pre><code>Port 4: Dev 3, If 1, Class=Human Interface Device, Driver=  12M</code></pre></div><p>And then I can manually assign the driver like this:</p><div class="codebox"><pre><code>echo -n &quot;4-3:1.0&quot; &gt; /sys/bus/usb/drivers/usbhid/bind </code></pre></div><p>At this point HidSharp can detect the device but I cannot actually use it.<br />Do you have any idea what the difference between those systems might be?</p>]]></content>
			<author>
				<name><![CDATA[timothyp]]></name>
				<uri>https://swforum.seekye.com/user/14241/</uri>
			</author>
			<updated>2020-01-14T00:56:00Z</updated>
			<id>https://swforum.seekye.com/post/13105/#p13105</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DeviceList.Local.GetHidDevices does not list all devices on Ubuntu 19]]></title>
			<link rel="alternate" href="https://swforum.seekye.com/post/13104/#p13104" />
			<content type="html"><![CDATA[<p>It seems this does not work on every computer.<br />Just installed Ubuntu 19.10 on a&nbsp; laptop and the only device `.GetHidDevices` and `GetAllDevices` returns is a single wireless controller.&nbsp; <br />`lsusb` on the other hand does list all my devices.</p><p>So for some reason, I cannot see any other devices on this system, even though the udev rules are in place and the device,<br />when connected, is given a proper name as defined by my rules.&nbsp; </p><p>What can I do to help debug this issue?</p>]]></content>
			<author>
				<name><![CDATA[timothyp]]></name>
				<uri>https://swforum.seekye.com/user/14241/</uri>
			</author>
			<updated>2020-01-13T01:17:59Z</updated>
			<id>https://swforum.seekye.com/post/13104/#p13104</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: DeviceList.Local.GetHidDevices does not list all devices on Ubuntu 19]]></title>
			<link rel="alternate" href="https://swforum.seekye.com/post/13072/#p13072" />
			<content type="html"><![CDATA[<p>As I was typing the message I realized that I might have to add a rules files</p><p>/etc/udev/rules.d/50-SomeDeviceName</p><p>With the following content:</p><p>SUBSYSTEM==&quot;usb&quot;,ATTRS{idVendor}==&quot;0483&quot;,ATTRS{idProduct}==&quot;5750&quot;,MODE=&quot;0660&quot;,GROUP=&quot;mygroup&quot;,SYMLINK+=&quot;mydev%n&quot;<br />KERNEL==&quot;hidraw*&quot;, SUBSYSTEM==&quot;hidraw&quot;, MODE=&quot;0664&quot;, GROUP=&quot;mygroup&quot;</p><p>And reboot.</p>]]></content>
			<author>
				<name><![CDATA[timothyp]]></name>
				<uri>https://swforum.seekye.com/user/14241/</uri>
			</author>
			<updated>2019-07-11T08:21:49Z</updated>
			<id>https://swforum.seekye.com/post/13072/#p13072</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[DeviceList.Local.GetHidDevices does not list all devices on Ubuntu 19]]></title>
			<link rel="alternate" href="https://swforum.seekye.com/post/13071/#p13071" />
			<content type="html"><![CDATA[<p>I have a number of different systems running Linux:</p><p>14.04<br />18.04<br />19.04<br />19.10</p><p>On 14.04 and 18.04 when I call `DeviceList.Local.GetHidDevices ` I get all HID devices&nbsp; including our custom devices. <br />However, on Ubuntu 19.04 and 19.10 I do not get all HID devices.&nbsp; </p><p>Microsoft Tranceiver, VID: 0x045E, PID: 0x07A5 is returned on all versions of Ubuntu<br />Custom HID Device 1, VID: 0x1A86, PID: 0xE0E0 is returned on all versions of Ubuntu<br />Custom HID Device 2, VID: 0x483, PID: 0x5750 does not show up on Ubuntu 19.04 and 19.10</p><p>On all systems `lsusb` finds all the devices.</p><p>While this is probably more related to Ubuntu than the library, I am wondering if anyone has any idea what might be causing this.</p><p>Update:</p><p>On Ubuntu &lt; 19&nbsp; `lsusb -t` specifies a driver for the devices that are not found on Ubuntu &gt;= 19 <br />while on Ubuntu &gt;= 19 `lsusb -t ` does not.</p><p>For example on Ubuntu 18.04:<br />Port 6: Dev 13, If 0, Class=Human Interface Device, Driver=usbhid, 12M</p><p>On Ubuntu 19.04<br />Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=, 12M</p>]]></content>
			<author>
				<name><![CDATA[timothyp]]></name>
				<uri>https://swforum.seekye.com/user/14241/</uri>
			</author>
			<updated>2019-07-11T08:10:43Z</updated>
			<id>https://swforum.seekye.com/post/13071/#p13071</id>
		</entry>
</feed>
