/[gentoo]/xml/htdocs/doc/en/usb-guide.xml
Gentoo

Diff of /xml/htdocs/doc/en/usb-guide.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.6 Revision 1.7
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/usb-guide.xml,v 1.6 2005/08/10 13:09:27 swift Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/usb-guide.xml,v 1.7 2005/08/25 11:24:46 fox2mike Exp $ -->
3 3
4<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 4<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
5 5
6<guide link="/doc/en/usb-guide.xml"> 6<guide link="/doc/en/usb-guide.xml">
7<title>Gentoo Linux USB Guide</title> 7<title>Gentoo Linux USB Guide</title>
17 17
18<!-- The content of this document is licensed under the CC-BY-SA license --> 18<!-- The content of this document is licensed under the CC-BY-SA license -->
19<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 19<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
20<license/> 20<license/>
21 21
22<version>1.4</version> 22<version>1.5</version>
23<date>2005-06-17</date> 23<date>2005-08-25</date>
24 24
25<chapter> 25<chapter>
26<title>Introduction</title> 26<title>Introduction</title>
27<section> 27<section>
28<title>What is USB?</title> 28<title>What is USB?</title>
409/dev/sda1 490M 34M 457M 7% /mnt/usb 409/dev/sda1 490M 34M 457M 7% /mnt/usb
410</pre> 410</pre>
411 411
412<note> 412<note>
413Digital cameras can be accessed the same way as memory sticks. I have a Nikon 413Digital cameras can be accessed the same way as memory sticks. I have a Nikon
414Coolpix 5200 and this is the way I access it. The camera is set to behave like 414Coolpix 5200 and this is the way I access it. Cameras these days usually have
415a USB mass storage device (as against PTP mode, which most cameras have these 415two modes to transfer pictures; USB mass storage and PTP (Picture Transfer
416days) and the procedure is exactly the same, because of which I have not 416Protocol). The camera is set to USB mass storage mode and hence the procedure is
417exactly the same as that of accessing a memory stick because of which I have not
417explained in detail about the same. Please note that this may NOT work in all 418explained in detail about it. Please note that this may NOT work in all cases
418cases and with all digital cameras that have USB support. 419and with all digital cameras that have USB support.
419</note> 420</note>
420 421
421<p> 422<p>
422How would a USB mouse show up in case you had one? It will show up as an HID 423How would a USB mouse show up in case you had one? It will show up as an HID
423device. 424device.
538<p> 539<p>
539To cut the long story short, Gentoo uses <c>sys-apps/hotplug</c> to handle 540To cut the long story short, Gentoo uses <c>sys-apps/hotplug</c> to handle
540the firmware side of things in <e>hot-pluggable</e> devices. 541the firmware side of things in <e>hot-pluggable</e> devices.
541<c>sys-apps/hotplug</c> will use the required firmware to make that device 542<c>sys-apps/hotplug</c> will use the required firmware to make that device
542usable. The firmware should be put in the <path>/lib/firmware</path> directory 543usable. The firmware should be put in the <path>/lib/firmware</path> directory
543and is picked up from there. Getting it is simple: the usual emerge will do. 544and is picked up from there. Getting it is simple; the usual emerge will do.
544</p> 545</p>
545 546
546<pre caption="Installing hotplug"> 547<pre caption="Installing hotplug">
547# <i>emerge hotplug</i> 548# <i>emerge hotplug</i>
548</pre> 549</pre>
549 550
550<p> 551<p>
551Now the obvious question would be, what is coldplug and why is it needed? 552Now the obvious question would be, what is coldplug and why is it needed?
552<c>sys-apps/coldplug</c> does what hotplug does, but it does it for 553<c>sys-apps/coldplug</c> does what hotplug does, but it does it for
553<e>hot-pluggable</e> devices that are already connected at boot time. A good 554<e>hot-pluggable</e> devices that are already connected at boot time. A good
554example of this would be a USB Network card. Earlier the hotplug package was 555example of this would be a USB Network card. Earlier, hotplug was the package
555responsible for handling both, but then it was split into hotplug and coldplug, 556responsible for handling both, but then it was split into hotplug and coldplug,
556each with their distinct purposes. Emerge it if you have <e>hot-pluggable</e> 557with coldplug doing all the work. Install it if you have <e>hot-pluggable</e>
557devices that you need activated on boot up. 558devices that you need activated on boot up.
558</p> 559</p>
559 560
560<pre caption="Installing coldplug"> 561<pre caption="Installing coldplug">
561# <i>emerge coldplug</i> 562# <i>emerge coldplug</i>
565 * rc-update complete. 566 * rc-update complete.
566</pre> 567</pre>
567 568
568<note> 569<note>
569The above initscript does what hotplug's initscript used to do (for already 570The above initscript does what hotplug's initscript used to do (for already
570attached hot-pluggable devices). hotplug does not have an initscript of its 571attached hot-pluggable devices). The current <path>/etc/init.d/hotplug</path>
571own as of now. 572script does nothing more than check if the CONFIG_HOTPLUG is enabled for the
573current kernel.
572</note> 574</note>
573 575
574</body> 576</body>
575</section> 577</section>
576</chapter> 578</chapter>

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20