16d3e acpi/amd64 power saving - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Desktop Usage > Mobile Computing

Mobile Computing This forum discusses issues related to running FreeBSD on notebooks, laptops, and other mobile equipment.

Reply
 
Thread Tools Display Modes
  #1  
Old November 17th, 2008, 09:05
kamikaze's Avatar
kamikaze kamikaze is offline
Member
 
Join Date: Nov 2008
Location: /earth/europe/germany
Posts: 366
Thanks: 6
Thanked 66 Times in 45 Posts
Default acpi/amd64 power saving

Well, it's not a secret that no suspend features are supported on amd64. This is pretty depressing, my notebook even supports S4BIOS and I have to do a lengthy shutdown and boot instead. And let's face it, FreeBSD boots slowly, because nothing happens in parallel and often the time spent during boot is time spent waiting for something, like a network coming up, which is not necessarily required for everything that follows, so other things could be done at the same time.
Reply With Quote
  #2  
Old November 18th, 2008, 23:47
Almindor Almindor is offline
Junior Member
 
Join Date: Nov 2008
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by kamikaze View Post
Well, it's not a secret that no suspend features are supported on amd64. This is pretty depressing, my notebook even supports S4BIOS and I have to do a lengthy shutdown and boot instead. And let's face it, FreeBSD boots slowly, because nothing happens in parallel and often the time spent during boot is time spent waiting for something, like a network coming up, which is not necessarily required for everything that follows, so other things could be done at the same time.
I agree 100% with this. I'm on a AMD64 laptop too and this is a major letdown for me, the only one coimbined with no 3D (but I fully understand that 3D is a driver/manufacturer issue).

I'm not one of those people who constantly put their laptop to sleep but it's very useful every now and then.

Also.. 100% spot on about the boot process. It needs parallelization, even basic like the debian "shell" method.
Reply With Quote
  #3  
Old November 19th, 2008, 00:22
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,522
Thanks: 422
Thanked 607 Times in 475 Posts
Default

for linux, i know few good project:
initng - this was pretty easy to setup
kyuba - successor of elinit (which was almost great, almost because at time i tried it, it had bugs on my box..., however it was superfast. configuring einit was a little difficult). don't know anything about kyuba, haven't been using linux in ages...

I was able to boot linux in about 9-12s with enint (from when i press space in grub, to point i get X)

I wonder what would it take to port them to FreeBSD

Last edited by graudeejs; November 19th, 2008 at 00:28.
Reply With Quote
  #4  
Old November 19th, 2008, 00:29
richardpl richardpl is offline
Member
 
Join Date: Nov 2008
Location: Croatia
Posts: 841
Thanks: 6
Thanked 68 Times in 67 Posts
Default

What is slow /etc/rc.d/* or kernel booting?

To make things clear, booting is finished once init is started.
Reply With Quote
  #5  
Old November 19th, 2008, 00:30
kamikaze's Avatar
kamikaze kamikaze is offline
Member
 
Join Date: Nov 2008
Location: /earth/europe/germany
Posts: 366
Thanks: 6
Thanked 66 Times in 45 Posts
Default

I would guess it's not possible. The most time consuming part is the hard waredetection. So the hardware detection of the kernel had to be made parallel. The second part that can consume lots of time, depending on the individual setup, is the rc-startup process. Since it already tracks dependencies it should be possible to do this.
__________________
sysutils/bsdadminscripts: binary package maintenance, library integrity checking, ...
sysutils/automounter: amd(8) based automounting without HAL
contact: kamikaze@bsdforen.de

Disclaimer: My posts represent my perception. Errors and incompleteness are to be expected, I deny any responsibility to know everything.
Reply With Quote
  #6  
Old November 19th, 2008, 06:22
brucec@ brucec@ is offline
FreeBSD Developer
 
Join Date: Nov 2008
Location: GB
Posts: 18
Thanks: 0
Thanked 2 Times in 2 Posts
Default

There are people working on ACPI sleep modes for amd64 on -CURRENT. See http://lists.freebsd.org/pipermail/f...er/005159.html for details.
Reply With Quote
  #7  
Old November 19th, 2008, 08:27
kamikaze's Avatar
kamikaze kamikaze is offline
Member
 
Join Date: Nov 2008
Location: /earth/europe/germany
Posts: 366
Thanks: 6
Thanked 66 Times in 45 Posts
Default

Thanks, that's great to know.
__________________
sysutils/bsdadminscripts: binary package maintenance, library integrity checking, ...
sysutils/automounter: amd(8) based automounting without HAL
contact: kamikaze@bsdforen.de

Disclaimer: My posts represent my perception. Errors and incompleteness are to be expected, I deny any responsibility to know everything.
Reply With Quote
  #8  
Old November 19th, 2008, 23:01
Almindor Almindor is offline
Junior Member
 
Join Date: Nov 2008
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Default

The rc boot section needs parallelization. Some daemons/services even block because they wait for net etc. all this could be parallelized away.

Also, the windows logic of "loading while user types password" isn't really bad either.
Reply With Quote
  #9  
Old November 20th, 2008, 02:08
aragon aragon is offline
Giant Locked
 
Join Date: Nov 2008
Location: Cape Town, South Africa
Posts: 2,031
Thanks: 68
Thanked 253 Times in 203 Posts
Default

I've seen talk of parallising rc. It would be a nice feature I think. There are some things that can make bootup quicker:

* disable geom_label and stop using labels in fstab - speeds up kernel load
* enable background_dhclient in rc.conf - removes block during network initialisation if you're using dhcp
Reply With Quote
  #10  
Old November 20th, 2008, 18:19
kamikaze's Avatar
kamikaze kamikaze is offline
Member
 
Join Date: Nov 2008
Location: /earth/europe/germany
Posts: 366
Thanks: 6
Thanked 66 Times in 45 Posts
Default

I find geom labels very useful, because they allow me to take a HD out of a machine and put it into another one where it boots without changes.

When my last notebook broke, I put the HD into a USB-case and was able to continue running the system from USB without troubles on most computers.
__________________
sysutils/bsdadminscripts: binary package maintenance, library integrity checking, ...
sysutils/automounter: amd(8) based automounting without HAL
contact: kamikaze@bsdforen.de

Disclaimer: My posts represent my perception. Errors and incompleteness are to be expected, I deny any responsibility to know everything.
Reply With Quote
  #11  
Old November 20th, 2008, 18:32
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,522
Thanks: 422
Thanked 607 Times in 475 Posts
Default

Quote:
Originally Posted by aragon View Post
* enable background_dhclient in rc.conf - removes block during network initialisation if you're using dhcp
how do you do that?
Reply With Quote
  #12  
Old November 20th, 2008, 19:28
oliverh's Avatar
oliverh oliverh is offline
Member
 
Join Date: Nov 2008
Location: 127.0.0.1
Posts: 557
Thanks: 51
Thanked 36 Times in 33 Posts
Default

Quote:
Originally Posted by killasmurf86 View Post
how do you do that?
Put background_dhclient="YES" into /etc/rc.conf

See man rc.conf for more.
Reply With Quote
The Following 2 Users Say Thank You to oliverh For This Useful Post:
graudeejs (November 20th, 2008), kamikaze (November 21st, 2008)
  #13  
Old February 1st, 2009, 15:59
merlyn
Guest
 
Posts: n/a
Default

I had background dhclient for some time, but I run freenet6 straight after dhcp, so I still haven't had IP, but freenet6 wanted to run, and couldn't due to lack of internet connection. Since I preffer not to run background dhclient.
Reply With Quote
  #14  
Old February 2nd, 2009, 16:48
kamikaze's Avatar
kamikaze kamikaze is offline
Member
 
Join Date: Nov 2008
Location: /earth/europe/germany
Posts: 366
Thanks: 6
Thanked 66 Times in 45 Posts
Default

Does anyone know about any progress lately? I'm talking about suspend/resume, which is way more important to me than fast booting.
__________________
sysutils/bsdadminscripts: binary package maintenance, library integrity checking, ...
sysutils/automounter: amd(8) based automounting without HAL
contact: kamikaze@bsdforen.de

Disclaimer: My posts represent my perception. Errors and incompleteness are to be expected, I deny any responsibility to know everything.
Reply With Quote
  #15  
Old March 14th, 2009, 03:44
bsdgooch bsdgooch is offline
Junior Member
 
Join Date: Nov 2008
Posts: 18
Thanks: 4
Thanked 8 Times in 4 Posts
Default

See here:

http://lists.freebsd.org/pipermail/f...ch/004411.html

I've been using it on my Lenovo X300 for a few months, mostly without a hitch...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: FreeBSD CPU Scaling and Power Saving vermaden Howtos & FAQs (Moderated) 47 December 30th, 2011 15:25
Acer Aspire 3680 ACPI problem legoprog Mobile Computing 19 July 10th, 2009 13:45
FreeBSD-SA-08:07.amd64 admin News & Announcements 0 September 5th, 2008 03:21


All times are GMT +1. The time now is 05:46.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0