1 <?xml version=
"1.0" encoding=
"ISO-8859-1"?>
2 <rss version='
2.0' xmlns:lj='http://www.livejournal.org/rss/lj/
1.0/'
>
4 <title>Petter Reinholdtsen - Entries from January
2025</title>
5 <description>Entries from January
2025</description>
6 <link>http://www.hungry.com/~pere/blog/
</link>
10 <title>121 packages in Debian mapped to hardware for automatic recommendation
</title>
11 <link>http://www.hungry.com/~pere/blog/
121_packages_in_Debian_mapped_to_hardware_for_automatic_recommendation.html
</link>
12 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/
121_packages_in_Debian_mapped_to_hardware_for_automatic_recommendation.html
</guid>
13 <pubDate>Sun,
19 Jan
2025 12:
40:
00 +
0100</pubDate>
14 <description><p
>For some years now, I have been working on a automatic hardware
15 based package recommendation system for Debian and other Linux
16 distributions. The isenkram system I started on back in
2013 now
17 consist of two subsystems, one locating firmware files using the
18 information provided by apt-file, and one matching hardware to
19 packages using information provided by AppStream. The former is very
20 similar to the mechanism implemented in debian-installer to pick the
21 right firmware packages to install. This post is about the latter
22 system. Thanks to steady progress and good help from both other
23 Debian and upstream developers, I am happy to report that
24 <a href=
"https://tracker.debian.org/pkg/isenkram
">the Isenkram
25 system
</a
> now are able to recommend
121 packages using information
27 <a href=
"https://www.freedesktop.org/wiki/Distributions/AppStream/
">AppStream
</a
>.
</p
>
29 <p
>The mapping is done using modalias information provided by the
30 kernel, the same information used by udev when creating device files,
31 and the kernel when deciding which kernel modules to load. To get all
32 the modalias identifiers relevant for your machine, you can run the
33 following command on the command line:
</p
>
36 find /sys/devices -name modalias -print0 | xargs -
0 sort -u
39 <p
>The modalias identifiers can look something like this:
</p
>
43 cpu:type:x86,ven0000fam0006mod003F:feature:,
0000,
0001,
0002,
0003,
0004,
0005,
0006,
0007,
0008,
0009,
000B,
000C,
000D,
000E,
000F,
0010,
0011,
0013,
0015,
0016,
0017,
0018,
0019,
001A,
001B,
001C,
001D,
001F,
002B,
0034,
003A,
003B,
003D,
0068,
006B,
006C,
006D,
006F,
0070,
0072,
0074,
0075,
0076,
0078,
0079,
007C,
0080,
0081,
0082,
0083,
0084,
0085,
0086,
0087,
0088,
0089,
008B,
008C,
008D,
008E,
008F,
0091,
0092,
0093,
0094,
0095,
0096,
0097,
0098,
0099,
009A,
009B,
009C,
009D,
009E,
00C0,
00C5,
00E1,
00E3,
00EB,
00ED,
00F0,
00F1,
00F3,
00F5,
00F6,
00F9,
00FA,
00FB,
00FD,
00FF,
0100,
0101,
0102,
0103,
0111,
0120,
0121,
0123,
0125,
0127,
0128,
0129,
012A,
012C,
012D,
0140,
0160,
0161,
0165,
016C,
017B,
01C0,
01C1,
01C2,
01C4,
01C5,
01C6,
01F9,
024A,
025A,
025B,
025C,
025F,
0282
44 dmi:bvnDellInc.:bvr2.18
.1:bd08/
14/
2023:br2.18:svnDellInc.:pnPowerEdgeR730:pvr:rvnDellInc.:rn0H21J3:rvrA09:cvnDellInc.:ct23:cvr:skuSKU=NotProvided
45 pci:v00008086d00008D3Bsv00001028sd00000600bc07sc80i00
48 usb:v413CpA001d0000dc09dsc00dp00ic09isc00ip00in00
51 <p
>The entries above are a selection of the complete set available on
52 a Dell PowerEdge R730 machine I have access to, to give an idea about
53 the various styles of hardware identifiers presented in the modalias
54 format. When looking up relevant packages in a Debian Testing
55 installation on the same R730, I get this list of packages
59 % sudo isenkram-lookup
61 firmware-nvidia-graphics
68 <p
>The list consist of firmware packages requested by kernel modules,
69 as well packages with program to get the status from the RAID
70 controller and to maintain the LAN console. When the edac-utils
71 package providing tools to check the ECC RAM status will enter testing
72 in a few days, it will also show up as a proposal from isenkram. In
73 addition, once the mfiutil package we uploaded in October get past the
74 NEW processing, it will also propose a tool to configure the RAID
77 <p
>Another example is the trusty old Lenovo Thinkpad X230, which have
78 hardware handled by several packages in the archive. This is running
79 on Debian Stable:
</p
>
102 <p
>Here there proposal consist of software to handle the camera,
103 bluetooth, network card, wifi card, GPU, fan, fingerprint reader and
104 acceleration sensor on the machine.
</p
>
106 <p
>Here is the complete set of packages currently providing hardware
107 mapping via AppStream in Debian Unstable: air-quality-sensor,
108 alsa-firmware-loaders, antpm, array-info, avarice, avrdude,
109 bmusb-v4l2proxy, brltty, calibre, colorhug-client, concordance-common,
110 consolekit, dahdi-firmware-nonfree, dahdi-linux, edac-utils,
111 eegdev-plugins-free, ekeyd, elogind, firmware-amd-graphics,
112 firmware-ath9k-htc, firmware-atheros, firmware-b43-installer,
113 firmware-b43legacy-installer, firmware-bnx2, firmware-bnx2x,
114 firmware-brcm80211, firmware-carl9170, firmware-cavium,
115 firmware-intel-graphics, firmware-intel-misc, firmware-ipw2x00,
116 firmware-ivtv, firmware-iwlwifi, firmware-libertas,
117 firmware-linux-free, firmware-mediatek, firmware-misc-nonfree,
118 firmware-myricom, firmware-netronome, firmware-netxen,
119 firmware-nvidia-graphics, firmware-qcom-soc, firmware-qlogic,
120 firmware-realtek, firmware-ti-connectivity, fpga-icestorm, g810-led,
121 galileo, garmin-forerunner-tools, gkrellm-thinkbat, goldencheetah,
122 gpsman, gpstrans, gqrx-sdr, i8kutils, imsprog, ledger-wallets-udev,
123 libairspy0, libam7xxx0.1, libbladerf2, libgphoto2-
6t64,
124 libhamlib-utils, libm2k0.9
.0, libmirisdr4, libnxt, libopenxr1-monado,
125 libosmosdr0, librem5-flash-image, librtlsdr0, libticables2-
8,
126 libx52pro0, libykpers-
1-
1, libyubikey-udev, limesuite,
127 linuxcnc-uspace, lomoco, madwimax, media-player-info, megactl, mixxx,
128 mkgmap, msi-keyboard, mu-editor, mustang-plug, nbc, nitrokey-app, nqc,
129 ola, openfpgaloader, openocd, openrazer-driver-dkms, pcmciautils,
130 pcscd, pidgin-blinklight, ponyprog, printer-driver-splix,
131 python-yubico-tools, python3-btchip, qlcplus, rosegarden, scdaemon,
132 sispmctl, solaar, spectools, sunxi-tools, t2n, thinkfan, tlp,
133 tp-smapi-dkms, trezor, tucnak, ubertooth, usbrelay, uuu, viking,
134 w1retap, wsl, xawtv, xinput-calibrator, xserver-xorg-input-wacom and
137 <p
>In addition to these, there are several
138 <a href=
"https://udd.debian.org/cgi-bin/bts-usertags.cgi?user=pere%
40hungry.com
&tag=appstream-modalias
">with
139 patches pending in the Debian bug tracking system
</a
>, and even more
140 where no-one wrote patches yet. Good candiates for the latter are
142 <a href=
"https://udd.debian.org/lintian-tag.cgi?tag=appstream-metadata-missing-modalias-provide
">with
143 udev rules but no AppStream hardware information
</a
>.
</p
>
145 <p
>The isenkram system consist of two packages, isenkram-cli with the
146 command line tools, and isenkram with a GUI background process. The
147 latter will listen for dbus events from udev emitted when new hardware
148 become available (like when inserting a USB dongle or discovering a
149 new bluetooth device), look up the modalias entry for this piece of
150 hardware in AppStream (and a hard coded list of mappings from isenkram
151 - currently working hard to move this list to AppStream), and pop up a
152 dialog proposing to install any not already installed packages
153 supporting this hardware. It work very well today when inserting the
154 LEGO Mindstorms RCX, NXT and EV3 controllers. :) If you want to make
155 sure more hardware related packages get recommended, please help out
156 fixing the remaining packages in Debian to provide AppStream metadata
157 with hardware mappings.
</p
>
159 <p
>As usual, if you use Bitcoin and want to show your support of my
160 activities, please send Bitcoin donations to my address
161 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
166 <title>What is the most supported MIME type in Debian in
2025?
</title>
167 <link>http://www.hungry.com/~pere/blog/What_is_the_most_supported_MIME_type_in_Debian_in_2025_.html
</link>
168 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/What_is_the_most_supported_MIME_type_in_Debian_in_2025_.html
</guid>
169 <pubDate>Sat,
18 Jan
2025 10:
30:
00 +
0100</pubDate>
170 <description><p
><a href=
"http://www.hungry.com/~pere/blog/What_is_the_most_supported_MIME_type_in_Debian_in_2018_.html
">Seven
</a
>
172 <a href=
"http://www.hungry.com/~pere/blog/What_is_the_most_supported_MIME_type_in_Debian_.html
">twelve
</a
>
173 years ago, I measured what the most supported MIME type in Debian
174 was
</a
>, first by analysing the desktop files in all packages in the
175 archive, then by analysing the DEP-
11 AppStream data set. I guess it
176 is time to repeat the measurement, only for unstable as last time:
</p
>
178 <p
><strong
>Debian Unstable:
</strong
></p
>
182 ----- -----------------------
194 36 audio/x-vorbis+ogg
205 <p
>The list was created like this using a sid chroot:
</p
>
208 cat /var/lib/apt/lists/*sid*_dep11_Components-amd64.yml.gz | \
209 zcat | awk
'/^ - \S+\/\S+$/ {print $
2 }
' | sort | \
210 uniq -c | sort -nr | head -
20
213 <p
>It is nice to see that the same number of packages now support PNG
214 and JPEG. Last time JPEG had more support than PNG. Most of the MIME
215 types are known to me, but the
'audio/x-scpls
' one I have no idea what
216 represent, except it being an audio format. To find the packages
217 claiming support for this format, the appstreamcli command from the
218 appstream package can be used:
221 % appstreamcli what-provides mediatype audio/x-scpls | grep Package: | sort -u
222 Package: alsaplayer-common
229 Package: cynthiune.app
234 Package: kylin-burner
236 Package: mediaconch-gui
237 Package: mediainfo-gui
249 Package: soundconverter
256 <p
>Look like several video and auto tools understand the format.
257 Similarly one can check out the number of packages supporting the STL
258 format commonly used for
3D printing:
</p
>
261 % appstreamcli what-provides mediatype model/stl | grep Package: | sort -u
264 Package: open3d-viewer
268 <p
>How strange the
269 <a href=
"https://tracker.debian.org/pkg/slic3r
">slic3r
</a
> and
270 <a href=
"https://tracker.debian.org/pkg/slic3r-prusa
">prusa-slicer
</a
>
271 packages do not support STL. Perhaps just missing package metadata?
272 Luckily the amount of package metadata in Debian is getting better,
273 and hopefully this way of locating relevant packages for any file
274 format will be the preferred one soon.
276 <p
>As usual, if you use Bitcoin and want to show your support of my
277 activities, please send Bitcoin donations to my address
278 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
283 <title>The
2025 LinuxCNC Norwegian developer gathering
</title>
284 <link>http://www.hungry.com/~pere/blog/The_2025_LinuxCNC_Norwegian_developer_gathering.html
</link>
285 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/The_2025_LinuxCNC_Norwegian_developer_gathering.html
</guid>
286 <pubDate>Sat,
11 Jan
2025 14:
30:
00 +
0100</pubDate>
287 <description><p
><a href=
"https://linuxcnc.org/
">The LinuxCNC project
</a
> is
288 trotting along. And I believe this great software system for
289 numerical control of machines such as milling machines, lathes, plasma
290 cutters, routers, cutting machines, robots and hexapods, would do even
291 better with more in-person developer gatherings, so we plan to
292 organise such gathering this summer too.
</p
>
294 <p
>This year we would like to invite to a small LinuxCNC and free
295 software fabrication workshop/gathering in Norway this summer for the
296 weekend starting July
4th
2025. New this year is the slightly larger
297 scope, and we invite people also outside the LinuxCNC community to
298 join. As earlier, we suggest to organize it as an
299 <a href=
"https://en.wikipedia.org/wiki/Unconference
">unconference
</a
>,
300 where the participants create the program upon arrival.
</p
>
302 <p
>The location is a metal workshop
15 minutes drive away from to the
303 Gardermoen airport (OSL), where there is a lot of space and a hotel only
304 5 minutes away by car. We plan to fire up the barbeque in the evenings.
</p
>
306 <p
>Please let us know if you would like to join. We track the list of
307 participants on
<a href=
"https://pad.efn.no/p/linuxcnc-
2025-norway
">a
308 simple pad
</a
>, please add yourself there if you are interested in joining.
</p
>
310 <p
><a href=
"https://www.nuugfoundation.no/
">The NUUG Foundation
</a
> has on
311 our request offered to handle any money involved with this gathering,
312 in other words holding any sponsor funds and paying any bills.
313 NUUG Foundation is a spinnoff from the NUUG member organisation here
314 in Norway with long ties to the free software and open standards
315 communities.
</p
>
317 <p
>As usual we hope to find sponsors to pay for food, lodging and travel.
</p
>
319 <p
>As usual, if you use Bitcoin and want to show your support of my
320 activities, please send Bitcoin donations to my address
321 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>