Changeset 7bcc1669
- Timestamp:
- 05/07/2006 07:34:22 AM (18 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- d77d8c5
- Parents:
- dea1509
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/genlib/libusb.xml
rdea1509 r7bcc1669 143 143 --> 144 144 145 <para id="libusb-kernel">Ensure that you have compiled the <quote>USB device 146 filesystem</quote> directly into the kernel or compiled it as a module 147 (listing the resulting <quote>usbcore</quote> module in the 148 <filename>/etc/sysconfig/modules</filename> file). You should also have an 149 entry similar to the line below in your <filename>/etc/fstab</filename> 150 file:</para> 151 145 <para id="libusb-kernel">To access raw USB devices (those not treated as a 146 disk by the mass-storage driver), appropriate support must be available in 147 the kernel. Check your kernel configuration for Device Drivers ⇒ USB 148 support ⇒ Support for Host-side USB. Select any USB hardware device 149 drivers you may need on the same page.</para> 150 152 151 <indexterm zone="libusb libusb-kernel"> 153 <primary sortas="d-USB-device-filesystem"> USB device filesystem</primary>152 <primary sortas="d-USB-device-filesystem">Support for Host-side USB</primary> 154 153 </indexterm> 154 155 <para>To have USB devices set up properly, add the followng 156 <application>udev</application> rule and add any users 157 that need USB devices to the "usb" group.</para> 158 159 <screen><literal>cat > /etc/udev/rules.d/23-usb-rules << "EOF" 160 # Set group ownership for USB devices 161 SUBSYSTEM=="usb_device", \ 162 PROGRAM="/bin/sh -c 'X=%k X=$${X#usbdev} B=$${X%%%%.*} D=$${X#*.}; \ 163 echo bus/usb/$$B/$$D'", SYMLINK+="%c", GROUP="usb" 164 EOF</literal></screen> 165 166 <para>Fine-tunuing of permissions is also possible by creating extra rules, 167 matching on something like this (on one line). The vendor and product can 168 be found by searchng the <filename 169 class='directory'>/sys/devices</filename> directory entries after 170 the device has been attached.</para> 171 172 <screen><literal>SUBSYSTEM=="usb_device", SYSFS{idVendor}=="05d8", 173 SYSFS{idProduct}=="4002", GROUP:="scanner"</literal></screen> 174 175 176 177 <para>Some older applications need the following deprecated entry in 178 the <filename>/etc/fstab</filename> file. Do not use it unless you 179 know its needed.</para> 155 180 156 181 <screen><literal>usbfs /proc/bus/usb usbfs devgid=14,devmode=0660 0 0</literal></screen>
Note:
See TracChangeset
for help on using the changeset viewer.