Ubuntu versions
Martin Owens
doctormo-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Thu Jun 21 00:44:38 EDT 2007
> >> scott at scott-laptop:~$ laptop-detect
> >> scott at scott-laptop:~$ echo $?
I just checked out the source for that program, it seems it looks at
dmidecode for some of the detection, 1) it would have to be run as
root and 2) it doesn't check "Laptop" or "Sub Notebook" only
"Portable" and "Notebook"; (I have 500 dmidecode results to check the
stats on) so I'm not even sure how accurate it would be just based on
batteries. (I assume if you remove the battery the check with fail as
in the comments to laptop-detect)
Regards, Martin
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Discuss
mailing list