Bug#659404: laptop-detect: Use /sys/devices/virtual/dmi/id/chassis_type as alternative to dmidecode?

2017-02-19 Thread Petter Reinholdtsen
[Simó Albert i Beltran] > Thanks for your contribution to laptop-detect. > > I'm doing an ITA of this package and I would like include your > contribution. Very nice to see my 5 year old patch finally gain some traction. :) Note, a copy of laptop-detect is in the debian-edu-install-udeb

Bug#659404: laptop-detect: Use /sys/devices/virtual/dmi/id/chassis_type as alternative to dmidecode?

2017-02-19 Thread Simó Albert i Beltran
Hello, Thanks for your contribution to laptop-detect. I'm doing an ITA of this package and I would like include your contribution. I created the following commit but please do a merge request if you prefer.

Bug#659404: laptop-detect: Use /sys/devices/virtual/dmi/id/chassis_type as alternative to dmidecode?

2012-02-10 Thread Petter Reinholdtsen
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