Hello,

it seem to be working.

$ sh -x laptop-detect --verbose
+ PRINTIT=/bin/true
+ [ --verbose !=  ]
+ PRINTIT=echo
+ test -d /proc/pmu
+ command -v dmidecode
+ dmidecode=
+ [ -r /dev/mem -a -x  ]
+ [ -e /sys/devices/virtual/dmi/id/chassis_type ]
+ cat /sys/devices/virtual/dmi/id/chassis_type
+ chassis_type=3
+ /sbin/modprobe battery
+ sysfs_power_supply=/sys/class/power_supply
+ [ -d /sys/class/power_supply ]
+ ls /sys/class/power_supply
+ grep -q Battery /sys/class/power_supply/hid-f0:65:dd:7a:a1:26-battery/type + grep -q Device /sys/class/power_supply/hid-f0:65:dd:7a:a1:26-battery/scope
+ [ -d /proc/acpi/battery ]
+ [ -f /proc/apm ]
+ echo We're not on a laptop (no relevant hint found)
We're not on a laptop (no relevant hint found)
+ exit 1

---
Sincerely yours
Damir Islamov

email: da...@trefle.ru
Tel: 7-903-904-604-9

Simó Albert i Beltran писал 2017-05-20 14:25:
Please could you test the following version?
https://gitlab.com/debiants/laptop-detect/blob/sim6_non_device_acpi_batteries/laptop-detect.in

Attachment: 0xB5653FEF.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to