Re: [Pcbsd-developer] Detecting if computer is laptop or desktop
Status: Beta
Brought to you by:
kmoore134
From: Andrei K. <an...@bs...> - 2006-04-01 14:45:53
|
Charles A. Landemaine wrote: > Hello guys :) > > Is it possible to detect if the user's computer is a laptop or > desktop? Renato suggested looking at the CPU name and decide > accordingly. Is it 100% sure to work? > Is there another way? > If not, I suggested to add a "Select between laptop or desktop" option > during installation to turn on/off the numlock key accordingly. > Discussion here: http://www.pcbsd.org/forums/viewtopic.php?t=2402 > Have a nice week-end! :) > > -- > Charles A. Landemaine. I think that looking at cpu name is 100% sure way to know what type of system you run and maybe choose automagically precompiled kernel for additional system. Sometimes even simplier is replace couple of lines in sysctrl.conf. APM or ACPI support is must for resume/suspend on laptops. Battery indicator won't hurt either. |