Your message dated Wed, 08 Mar 2017 15:49:37 +0000 with message-id <[email protected]> and subject line Bug#659404: fixed in laptop-detect 0.14 has caused the Debian Bug report #659404, regarding laptop-detect: Use /sys/devices/virtual/dmi/id/chassis_type as alternative to dmidecode? to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 659404: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=659404 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: laptop-detect Version: 0.13.7 Tags: patch In recent kernels, the chassis type is available in /sys/. It can be used instead of dmidecode to detect if the current machine is a laptop or not. The value in /sys/ is available also for non-root users. Here is a draft patch implementing this. --- /usr/sbin/laptop-detect 2008-08-04 15:06:01.000000000 +0200 +++ /usr/sbin/laptop-detect.new 2012-02-10 21:38:56.000000000 +0100 @@ -61,6 +61,27 @@ #echo "$dmitype" fi +if [ -e /sys/devices/virtual/dmi/id/chassis_type ] ; then + case "$(cat /sys/devices/virtual/dmi/id/chassis_type)" in + 8) # Portable + $PRINTIT "We're a laptop (dmidecode returned $dmitype)" >&2 + exit 0 + ;; + 9) # Laptop + $PRINTIT "We're a laptop (dmidecode returned $dmitype)" >&2 + exit 0 + ;; + 10) # Notebook + $PRINTIT "We're a laptop (dmidecode returned $dmitype)" >&2 + exit 0 + ;; + 11) # Hand Held + $PRINTIT "We're a laptop (dmidecode returned $dmitype)" >&2 + exit 0 + ;; + esac +fi + # check for any ACPI batteries /sbin/modprobe battery 2> /dev/null || true if [ -d /sys/class/power_supply ]; then -- Happy hacking Petter Reinholdtsen
--- End Message ---
--- Begin Message ---Source: laptop-detect Source-Version: 0.14 We believe that the bug you reported is fixed in the latest version of laptop-detect, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Simó Albert i Beltran <[email protected]> (supplier of updated laptop-detect package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Wed, 08 Mar 2017 00:59:54 +0100 Source: laptop-detect Binary: laptop-detect Architecture: source Version: 0.14 Distribution: experimental Urgency: medium Maintainer: Simó Albert i Beltran <[email protected]> Changed-By: Simó Albert i Beltran <[email protected]> Closes: 659404 847246 Description: laptop-detect - system chassis type checker Changes: laptop-detect (0.14) experimental; urgency=medium . [ Simó Albert i Beltran ] * New maintainer (Closes: #847246) * Update VCS-Git and VCS-Browser fields to the new git repository in gitlab.com . [ Petter Reinholdtsen ] * Use /sys/devices/virtual/dmi/id/chassis_type as alternative to dmidecode (Closes: #659404) . [ Simó Albert i Beltran ] * Set Homepage field at debian/control * Set https in Format field at debian/copyright * Update Upstream-Contact field at debian/copyright * Add Simó Albert i Beltran to copyright holders at debian/copyright * Change Architecture field from any to all at debian/control * dmidecode can be used but it isn't required * Move laptop-detect from /usr/sbin to /usr/bin * Remove the version of dmidecode in Recommends field at debian/control since old-stable version is 2.11-9 * Remove hardcoded path for dmidecode * Fix chassis_type message * Move manpage to User Commands section * Fix title line of manpage * Remove Authors section from manpage * Update Files section of manpage * Update copyright holders of manpage Checksums-Sha1: 622807ceae9788508c28d967d54c4852bdad5f7b 1729 laptop-detect_0.14.dsc d763073e0dc285895f1e74f42decc9b7210e458e 5668 laptop-detect_0.14.tar.xz Checksums-Sha256: faf65e700d748317d04c2fc89a1477c4b8414e9c8eaf72b24cd5b3013171f2d5 1729 laptop-detect_0.14.dsc 023060e1eed860b8dcf3276785da53af52226d76e09bfd8922f788d8cb5f068a 5668 laptop-detect_0.14.tar.xz Files: 0bdfa81475e3fbb534d2fd675995b765 1729 utils optional laptop-detect_0.14.dsc 0762198c1331b1394855206922e0b5d4 5668 utils optional laptop-detect_0.14.tar.xz -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE0eExbpOnYKgQTYX6uzpoAYZJqgYFAljAJIBfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQx RTEzMTZFOTNBNzYwQTgxMDREODVGQUJCM0E2ODAxODY0OUFBMDYACgkQuzpoAYZJ qgagpw/+N3d+1Kjz32lMPuh1H4uj5e2UqUb3DEmPVf5bAxhuUn3XuyDL+3OZSX6Q GZiin1pHv5UnPU0Jm64u4yYpWNJaCmkxHNixBvvM0BJdPAan5VgBLKSpg04doNYR m71bL9pnVWlh/TDaMwqyH3xYDkCCBVE7SkPTCcnJY8FGllgDnmMHUhRCNB49/iN6 UYluDrvR84B5GtIVstJ4+myLfdk7q6mOq9mprJDwzWc5vPMO2UiePn/jZqLUs9qh LTjt18AXNsnCiNOcMUq7Wz/kq6cRJn4Ul16ErxSopKqVslvnCU26zC0QzfdFqQAL Vlx77MgBQErz6Lk9hlSUSCtXScioD952wNe4qw2FS+Vv6DIUXX0bBxIpO70wWvGG U0GlHYwIK+yNXgen4C9LzvrEs2kti3VBqBDuykVQZeA7YkbEeWhKu+CSYp5blHl2 YovTrYwbJnk2BJNx8zJvtW81O/3cOz9oIq1VM6np0XlVDNTu5K0NrwHohypQHT4E cDZrw3gnIycFG7SWFnvACcTf3k3TFevof1lQdrIZD22QNR7wYwR00A+R/LtegRUw oKnSfoutWTYOHMZNEwC1op3lbrgWGYT/IrAZkERYV6b90mGnuwCeTXmUjx9PkLXh MN1Qq4ixPVVjJajiHOjFYDFXALTEh5hvfCvvq/l3P4nDl6qlL/Y= =OHq0 -----END PGP SIGNATURE-----
--- End Message ---

