- <div class="title"><a href="http://people.skolelinux.org/pere/blog/Modalias_strings___a_practical_way_to_map__stuff__to_hardware.html">Modalias strings - a practical way to map "stuff" to hardware</a></div>
- <div class="date">14th January 2013</div>
- <div class="body"><p>While looking into how to look up Debian packages based on hardware
-information, to find the packages that support a given piece of
-hardware, I refreshed my memory regarding modalias values, and decided
-to document the details. Here are my findings so far, also available
-in
-<a href="http://anonscm.debian.org/viewvc/debian-edu/trunk/src/hw-support-handler/">the
-Debian Edu subversion repository</a>:
-
-<p><strong>Modalias decoded</strong></p>
-
-<p>This document try to explain what the different types of modalias
-values stands for. It is in part based on information from
-<URL: <a href="https://wiki.archlinux.org/index.php/Modalias">https://wiki.archlinux.org/index.php/Modalias</a> >,
-<URL: <a href="http://unix.stackexchange.com/questions/26132/how-to-assign-usb-driver-to-device">http://unix.stackexchange.com/questions/26132/how-to-assign-usb-driver-to-device</a> >,
-<URL: <a href="http://code.metager.de/source/history/linux/stable/scripts/mod/file2alias.c">http://code.metager.de/source/history/linux/stable/scripts/mod/file2alias.c</a> > and
-<URL: <a href="http://cvs.savannah.gnu.org/viewvc/dmidecode/dmidecode.c?root=dmidecode&view=markup">http://cvs.savannah.gnu.org/viewvc/dmidecode/dmidecode.c?root=dmidecode&view=markup</a> >.
-
-<p>The modalias entries for a given Linux machine can be found using
-this shell script:</p>
-
-<pre>
-cat $(find /sys -name modalias) | sort -u
-</pre>
-
-<p>The supported modalias globs for a given kernel module can be found
-using modinfo:</p>
-
-<pre>
-% /sbin/modinfo psmouse | grep alias:
-alias: serio:ty05pr*id*ex*
-alias: serio:ty01pr*id*ex*
-%
-</pre>
-
-<p><strong>PCI subtype</strong></p>
-
-<p>A typical PCI entry can look like this. This is an Intel Host
-Bridge memory controller:</p>
-
-<p><blockquote>
-pci:v00008086d00002770sv00001028sd000001ADbc06sc00i00
-</blockquote></p>
-
-<p>This represent these values:</p>
-
-<pre>
- v 00008086 (vendor)
- d 00002770 (device)
- sv 00001028 (subvendor)
- sd 000001AD (subdevice)
- bc 06 (bus class)
- sc 00 (bus subclass)
- i 00 (interface)
-</pre>
-
-<p>The vendor/device values are the same values outputted from 'lspci
--n' as 8086:2770. The bus class/subclass is also shown by lspci as
-0600. The 0600 class is a host bridge. Other useful bus values are
-0300 (VGA compatible card) and 0200 (Ethernet controller).</p>
-
-<p>Not sure how to figure out the interface value, nor what it
-means.</p>
-
-<p><strong>USB subtype</strong></p>
-
-<p>Some typical USB entries can look like this. This is an internal
-USB hub in a laptop:</p>
-
-<p><blockquote>
-usb:v1D6Bp0001d0206dc09dsc00dp00ic09isc00ip00
-</blockquote></p>
-
-<p>Here is the values included in this alias:</p>
-
-<pre>
- v 1D6B (device vendor)
- p 0001 (device product)
- d 0206 (bcddevice)
- dc 09 (device class)
- dsc 00 (device subclass)
- dp 00 (device protocol)
- ic 09 (interface class)
- isc 00 (interface subclass)
- ip 00 (interface protocol)
-</pre>
-
-<p>The 0900 device class/subclass means hub. Some times the relevant
-class is in the interface class section. For a simple USB web camera,
-these alias entries show up:</p>
-
-<p><blockquote>
-usb:v0AC8p3420d5000dcEFdsc02dp01ic01isc01ip00
-<br>usb:v0AC8p3420d5000dcEFdsc02dp01ic01isc02ip00
-<br>usb:v0AC8p3420d5000dcEFdsc02dp01ic0Eisc01ip00
-<br>usb:v0AC8p3420d5000dcEFdsc02dp01ic0Eisc02ip00
-</blockquote></p>
-
-<p>Interface class 0E01 is video control, 0E02 is video streaming (aka
-camera), 0101 is audio control device and 0102 is audio streaming (aka
-microphone). Thus this is a camera with microphone included.</p>
-
-<p><strong>ACPI subtype</strong></p>
-
-<p>The ACPI type is used for several non-PCI/USB stuff. This is an IR
-receiver in a Thinkpad X40:</p>
-
-<p><blockquote>
-acpi:IBM0071:PNP0511:
-</blockquote></p>
-
-<p>The values between the colons are IDs.</p>
-
-<p><strong>DMI subtype</strong></p>
-
-<p>The DMI table contain lots of information about the computer case
-and model. This is an entry for a IBM Thinkpad X40, fetched from
-/sys/devices/virtual/dmi/id/modalias:</p>
-
-<p><blockquote>
-dmi:bvnIBM:bvr1UETB6WW(1.66):bd06/15/2005:svnIBM:pn2371H4G:pvrThinkPadX40:rvnIBM:rn2371H4G:rvrNotAvailable:cvnIBM:ct10:cvrNotAvailable:
-</blockquote></p>
-
-<p>The values present are</p>
-
-<pre>
- bvn IBM (BIOS vendor)
- bvr 1UETB6WW(1.66) (BIOS version)
- bd 06/15/2005 (BIOS date)
- svn IBM (system vendor)
- pn 2371H4G (product name)
- pvr ThinkPadX40 (product version)
- rvn IBM (board vendor)
- rn 2371H4G (board name)
- rvr NotAvailable (board version)
- cvn IBM (chassis vendor)
- ct 10 (chassis type)
- cvr NotAvailable (chassis version)
-</pre>
-
-<p>The chassis type 10 is Notebook. Other interesting values can be
-found in the dmidecode source:</p>
-
-<pre>
- 3 Desktop
- 4 Low Profile Desktop
- 5 Pizza Box
- 6 Mini Tower
- 7 Tower
- 8 Portable
- 9 Laptop
- 10 Notebook
- 11 Hand Held
- 12 Docking Station
- 13 All In One
- 14 Sub Notebook
- 15 Space-saving
- 16 Lunch Box
- 17 Main Server Chassis
- 18 Expansion Chassis
- 19 Sub Chassis
- 20 Bus Expansion Chassis
- 21 Peripheral Chassis
- 22 RAID Chassis
- 23 Rack Mount Chassis
- 24 Sealed-case PC
- 25 Multi-system
- 26 CompactPCI
- 27 AdvancedTCA
- 28 Blade
- 29 Blade Enclosing
-</pre>
-
-<p>The chassis type values are not always accurately set in the DMI
-table. For example my home server is a tower, but the DMI modalias
-claim it is a desktop.</p>
-
-<p><strong>SerIO subtype</strong></p>
-
-<p>This type is used for PS/2 mouse plugs. One example is from my
-test machine:</p>
-
-<p><blockquote>
-serio:ty01pr00id00ex00
-</blockquote></p>
-
-<p>The values present are</p>
-
-<pre>
- ty 01 (type)
- pr 00 (prototype)
- id 00 (id)
- ex 00 (extra)
-</pre>
-
-<p>This type is supported by the psmouse driver. I am not sure what
-the valid values are.</p>
-
-<p><strong>Other subtypes</strong></p>
-
-<p>There are heaps of other modalias subtypes according to
-file2alias.c. There is the rest of the list from that source: amba,
-ap, bcma, ccw, css, eisa, hid, i2c, ieee1394, input, ipack, isapnp,
-mdio, of, parisc, pcmcia, platform, scsi, sdio, spi, ssb, vio, virtio,
-vmbus, x86cpu and zorro. I did not spend time documenting all of
-these, as they do not seem relevant for my intended use with mapping
-hardware to packages when new stuff is inserted during run time.</p>
-
-<p><strong>Looking up kernel modules using modalias values</strong></p>
-
-<p>To check which kernel modules provide support for a given modalias,
-one can use the following shell script:</p>
-
-<pre>
- for id in $(cat $(find /sys -name modalias)|sort -u); do \
- echo "$id" ; \
- /sbin/modprobe --show-depends "$id"|sed 's/^/ /' ; \
- done
-</pre>
-
-<p>The output can look like this (only the first few entries as the
-list is very long on my test machine):</p>
-
-<pre>
- acpi:ACPI0003:
- insmod /lib/modules/2.6.32-5-686/kernel/drivers/acpi/ac.ko
- acpi:device:
- FATAL: Module acpi:device: not found.
- acpi:IBM0068:
- insmod /lib/modules/2.6.32-5-686/kernel/drivers/char/nvram.ko
- insmod /lib/modules/2.6.32-5-686/kernel/drivers/leds/led-class.ko
- insmod /lib/modules/2.6.32-5-686/kernel/net/rfkill/rfkill.ko
- insmod /lib/modules/2.6.32-5-686/kernel/drivers/platform/x86/thinkpad_acpi.ko
- acpi:IBM0071:PNP0511:
- insmod /lib/modules/2.6.32-5-686/kernel/lib/crc-ccitt.ko
- insmod /lib/modules/2.6.32-5-686/kernel/net/irda/irda.ko
- insmod /lib/modules/2.6.32-5-686/kernel/drivers/net/irda/nsc-ircc.ko
- [...]
-</pre>
-
-<p>If you want to help implementing a system to let us propose what
-packages to install when new hardware is plugged into a Debian
-machine, please send me an email or talk to me on
-<a href="irc://irc.debian.org/%23debian-devel">#debian-devel</a>.</p>
+ <div class="title"><a href="http://people.skolelinux.org/pere/blog/Debian_Edu_interview__C_dric_Boutillier.html">Debian Edu interview: Cédric Boutillier</a></div>
+ <div class="date"> 4th June 2013</div>
+ <div class="body"><p>It has been a while since my last English
+<a href="http://www.skolelinux.org/">Debian Edu and Skolelinux</a>
+interview last November. But the developers and translators are still
+pulling along to get the Wheezy based release out the door, and this
+time I managed to get an interview from one of the French translators
+in the project, Cédric Boutillier.</p>
+
+<p><strong>Who are you, and how do you spend your days?</strong></p>
+
+<p>I am 34 year old. I live near Paris, France. I am an assistant
+professor in probability theory. I spend my daytime teaching
+mathematics at the university and doing fundamental research in
+probability in connexion with combinatorics and statistical physics.</p>
+
+<p>I have been involved in the Debian project for a couple of years
+and became Debian Developer a few months ago. I am working on Ruby
+packaging, publicity and translation.</p>
+
+<p><strong>How did you get in contact with the Skolelinux / Debian Edu
+project?</strong></p>
+
+<p>I came to the Debian Edu project after a call for translation of
+<a href="http://wiki.debian.org/DebianEdu/Documentation/Manuals">the
+Debian Edu manual</a> for the release of Debian Edu Squeeze. Since
+then, I have been working on updating the French translation of the
+manual.
+
+<p>I had the opportunity to make an installation of Debian Edu in a
+virtual machine when I was preparing localised version of some screen
+shots for the manual. I was amazed to see it worked out of the box and
+how comprehensive the list of software installed by default was.</p>
+
+<p>What amazed me was the complete network infrastructure directly
+ready to use, which can and the nice administration interface provided
+by <a href="https://oss.gonicus.de/labs/gosa/">GOsa²</a>. What pleased
+me also was the fact that among the software installed by default,
+there were many "traditional" educative software to learn languages,
+to count, to program... but also software to develop creativity and
+artistic skills with music (<a href="http://ardour.org/">Ardour</a>,
+<a href="http://audacity.sourceforge.net/">Audacity</a>) and
+movies/animation (I was especially thinking of
+<a href="http://linuxstopmotion.sourceforge.net/">Stopmotion</a>).</p>
+
+<p>I am following the development of Debian Edu and am hanging out on
+<a href="irc://irc.debian.org/%23debian-edu">#debian-edu</a>.
+Unfortunately, I don't much time to get more involved in this
+beautiful project.</p>
+
+<p><strong>What do you see as the advantages of Skolelinux / Debian
+Edu?</strong></p>
+
+<p>For me, the main advantages of Skolelinux/Debian Edu are its
+community of experts and its precise documentation, as well as the
+fact that it provides a solution ready to use.</p>
+
+<p>I would add also the fact that it is based on the rock solid Debian
+distribution, which ensures stability and provides a huge collection
+of educational free software.</p>
+
+<p><strong>What do you see as the disadvantages of Skolelinux / Debian
+Edu?</strong></p>
+
+<p>Maybe the lack of manpower to do lobbying on the
+project. Sometimes, people who need to take decisions concerning IT do
+not have all the elements to evaluate properly free software
+solutions. The fact that support by a company may be difficult to find
+is probably a problem if the school does not have IT personnel.</p>
+
+<p>One can find support from a company by looking at
+<a href="http://wiki.debian.org/DebianEdu/Help/ProfessionalHelp">the
+wiki dokumentation</a>, where some countries already have a number of
+companies providing support for Debian Edu, like Germany or
+Norway. This list is easy to find readily from the manual. However,
+for other countries, like France, the list is empty. I guess that
+consultants proposing support for Debian would be able to provide some
+support for Debian Edu as well.</p>
+
+<p><strong>Which free software do you use daily?</strong></p>
+
+<p>I am using the KDE Plasma Desktop. But the pieces of software I use
+most runs in a terminal: Mutt and OfflineIMAP for emails, latex for
+scientific documents, mpd for music. VIM is my editor of choice. I am
+also using the mathematical software
+<a href="http://www.scilab.org/en/scilab/about">Scilab</a> and
+<a href="http://www.sagemath.org/index.html">Sage</a> (built from
+source as not completely packaged for Debian, yet).
+
+<p><strong>Do you have any suggestions for teachers interested in
+using the free software in Debian to teach mathematics and
+statistics?</strong></p>
+
+<p>I do not have any "nice" recommendations for statistics. At our
+university, we use both <a href="http://www.r-project.org/">R</a> and
+Scilab to teach statistics and probabilistic simulations. For
+geometry, there are nice programs:</p>
+
+<ul>
+
+<li><a href="http://www.drgeo.eu/">drgeo</a> and
+<a href="http://edu.kde.org/applications/all/kig">kig</a> to do
+constructions in planar geometry
+
+<li><a href="http://www.geom.uiuc.edu/software/download/kali.html">kali</a>
+to discover symmetry groups (the so-called wallpapers and frieze
+groups), although the interface looks a bit old.</li>
+
+</ul>
+
+<p>I like also
+<a href="http://edu.kde.org/applications/all/cantor">cantor</a>, which
+provides a uniform interface to SciLab, Sage,
+<a href="http://directory.fsf.org/wiki/Octave">Octave</a>, etc...</p>
+
+<p><strong>Which strategy do you believe is the right one to use to
+get schools to use free software?</strong></p>
+
+<p>My suggestions would be to</p>
+
+<ul>
+
+<li>advertise the reduction of costs when free software is used.</li>
+
+<li>communicate about the quality of free software projects, using
+ well known examples like Firefox, ThunderBird and
+ OpenOffice.org/LibreOffice.</li>
+
+<li>advertise the living and strong community around the project.</li>
+
+<li>show that it is not more difficult to use than any other
+ system.</li>
+
+</ul>