Thread: [Pcbsd-developer] Detecting if computer is laptop or desktop
Status: Beta
Brought to you by:
kmoore134
From: Charles A. L. <lan...@gm...> - 2006-04-01 13:27:21
|
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=3D2402 Have a nice week-end! :) -- Charles A. Landemaine. |
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. |
From: <mai...@gm...> - 2006-04-01 21:56:21
|
Some laptops (such as the one I'm using right now), have a numpad installed. I would recommend an installer option that asks the user whether or not it's got a numpad. It's probably also not feasible to look at the CPU name both because there are a lot of cpu types out there, and I doubt you're going to find a nice list of every one possibly available, and because there are some crazy folk out there who put a mobile chip in a desktop (for overclocking), or a normal chip in a laptop. -Matt McDonald _____ From: pcb...@li... [mailto:pcb...@li...] On Behalf Of Charles A. Landemaine Sent: Saturday, April 01, 2006 6:27 AM To: pcb...@li... Subject: [Pcbsd-developer] Detecting if computer is laptop or desktop 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. |
From: Federico L. <flo...@gm...> - 2006-04-02 17:30:50
|
Well, my laptop's (which i managed to ressurect) cpu line on dmesg is the EXACT same as my P3 server, so i dont think that that would work, however most modern laptops have a lid... so here is a little script which should detect laptop / desktop: #!/bin/sh # Laptop detection script V0.001 # Reply to the mailing list if it doesn't work... dmesgLine=3D`dmesg | grep "acpi_lid0: <Control Method Lid Switch> on acpi0"= ` if test "${dmesgLine}" =3D ""; then echo "You have a desktop!" else echo "You have a laptop!" fi Cheers On 4/1/06, mai...@gm... <mai...@gm...> wrot= e: > Some laptops (such as the one I'm using right now), have a numpad install= ed. > I would recommend an installer option that asks the user whether or not i= t's > got a numpad. > > > > It's probably also not feasible to look at the CPU name both because ther= e > are a lot of cpu types out there, and I doubt you're going to find a nice > list of every one possibly available, and because there are some crazy fo= lk > out there who put a mobile chip in a desktop (for overclocking), or a nor= mal > chip in a laptop. > > -Matt McDonald > > > > _____ > > From: pcb...@li... > [mailto:pcb...@li...] On Behalf Of Charles= A. > Landemaine > Sent: Saturday, April 01, 2006 6:27 AM > To: pcb...@li... > Subject: [Pcbsd-developer] Detecting if computer is laptop or desktop > > > > 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 10= 0% > 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=3D2402 > > Have a nice week-end! :) > > -- > Charles A. Landemaine. > > > |
From: Andrei K. <an...@bs...> - 2006-04-02 21:00:22
|
The requested URL could not be retrieved ------------------------------------------------------------------------ While trying to retrieve the URL: http://pcbsdorg.site/forums/ The following error was encountered: Unable to determine IP address from host name for /pcbsdorg.site/ The dnsserver returned: No DNS records This means that: The cache was not able to resolve the hostname presented in the URL. Check if the address is correct. Your cache administrator is su...@ne... <mailto:su...@ne...>. ------------------------------------------------------------------------ Generated Sun, 02 Apr 2006 20:57:16 GMT by phx3.nearlyfreespeech.net (squid/2.6-DEVEL) |
From: Kris M. <pie...@gm...> - 2006-04-08 20:04:16
|
We'll have to put this on a list of TODO's for the next release :) I'll save a copy of this script, do some testing with it here. --- Kris Moore Federico Lorenzi wrote: > Well, my laptop's (which i managed to ressurect) cpu line on dmesg is the > EXACT same as my P3 server, so i dont think that that would work, however > most modern laptops have a lid... so here is a little script which should > detect laptop / desktop: > > #!/bin/sh > # Laptop detection script V0.001 > # Reply to the mailing list if it doesn't work... > > dmesgLine=`dmesg | grep "acpi_lid0: <Control Method Lid Switch> on acpi0"` > > if test "${dmesgLine}" = ""; then > echo "You have a desktop!" > else > echo "You have a laptop!" > fi > > Cheers > > On 4/1/06, mai...@gm... <mai...@gm...> wrote: >> Some laptops (such as the one I'm using right now), have a numpad installed. >> I would recommend an installer option that asks the user whether or not it's >> got a numpad. >> >> >> >> It's probably also not feasible to look at the CPU name both because there >> are a lot of cpu types out there, and I doubt you're going to find a nice >> list of every one possibly available, and because there are some crazy folk >> out there who put a mobile chip in a desktop (for overclocking), or a normal >> chip in a laptop. >> >> -Matt McDonald >> >> >> >> _____ >> >> From: pcb...@li... >> [mailto:pcb...@li...] On Behalf Of Charles A. >> Landemaine >> Sent: Saturday, April 01, 2006 6:27 AM >> To: pcb...@li... >> Subject: [Pcbsd-developer] Detecting if computer is laptop or desktop >> >> >> >> 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. >> >> >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > _______________________________________________ > PCBSD-Developer mailing list > PCB...@li... > https://lists.sourceforge.net/lists/listinfo/pcbsd-developer > |
From: Andrei K. <an...@bs...> - 2006-04-16 10:14:54
|
Hello! Many teachers in Estonia have strong demand for educational version of PC-BSD. Features they need: 1. Kdeedu package, Openoffice, Java, 2. windows active directory authentication, LDAP, 3. samba server, 4. terminalserver XDMCP, NX server, PXE terminal boot 5. remote administration over vnc and NX, 6. printserver quote (controlled, paid printing) 7. time syncronisation 8. ID-card reader support and so on... I propose to make spacial release for schools- where our future "clients" resides or pack it all together in one featured edu.PBI package. Andrei |
From: Kris M. <pie...@gm...> - 2006-04-18 13:27:05
|
Andrei, This would be a great idea. I would like to see this as a complete PBI, almost a Total-Conversion package that adds all these things to the OS. Are all of these features already available in BSD as a package of some sort, or would they have to be developed also? --- Kris Moore Andrei Kolu wrote: > Hello! > > Many teachers in Estonia have strong demand for educational version of > PC-BSD. > > Features they need: > 1. Kdeedu package, Openoffice, Java, > 2. windows active directory authentication, LDAP, > 3. samba server, > 4. terminalserver XDMCP, NX server, PXE terminal boot > 5. remote administration over vnc and NX, > 6. printserver quote (controlled, paid printing) > 7. time syncronisation > 8. ID-card reader support > and so on... > > I propose to make spacial release for schools- where our future > "clients" resides or pack it all together in one featured edu.PBI package. > > Andrei > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > PCBSD-Developer mailing list > PCB...@li... > https://lists.sourceforge.net/lists/listinfo/pcbsd-developer > |