dmidecode changed default output format and added new command line interface for scripts - please update laptop-detect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Baltix |
Fix Released
|
Medium
|
Unassigned | ||
laptop-detect (Ubuntu) |
Fix Released
|
Wishlist
|
Daniel Silverstone |
Bug Description
Hi,
laptop-detect script currently tries to parse dmidecode's version 2.6 output instead of using new command line interface, which appeared in dmidecode ver. 2.7:
dmidecode (2.7-1) unstable; urgency=low
* New upstream release.
- Include new command line interface making it easier for scripts to extract the values they want.
- Default output format is slightly changed. This might break existing scripts, which should use the new command line options instead.
New command line interface are new parameters:
--string KEYWORD Only display the value of the given DMI string
--type TYPE Only display the entries of given type
Valid string keywords are:
bios-vendor
bios-version
bios-release-date
system-
system-
system-version
system-
baseboard-
baseboard-
baseboard-version
baseboard-
baseboard-
chassis-
chassis-version
chassis-
chassis-asset-tag
processor-
processor-version
Valid type keywords are:
bios
system
baseboard
chassis
processor
memory
cache
connector
slot
So, please change parsing dmidecode|grep Chassis -A 10|grep -m1 Type|sed -e 's/.*Type: \(.*\)/\1/' to new code, which uses new command-line parameters or at least check if changed default dmidecode output format doesn't couse any problems with detecting a laptop.
Changed in laptop-detect: | |
status: | Invalid → Fix Released |
Changed in baltix: | |
status: | New → Fix Released |
It's too late in Dapper to migrate to the new interface, but the existing code should be updated to cope with changes in the human-readable interface