You are not logged in.

#1 2009-06-28 00:14:20

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

eee 'super hybrid engine' and laptop-mode-tools

http://aur.archlinux.org/packages.php?ID=27705

A small script for laptop-mode-tools that controls eeepc's inbuilt FSB over/underclocking  (marketed as Super Hybrid Engine) depending on battery/ac state. This makes a significant improvement to battery life.

Ensure you load the 'eeepc_laptop' kernel module. It is configured in /etc/laptop-mode/conf.d/eee-superhe.conf. It's configured out of the box, but theres a few things that can be tweaked. It defaults to high-power on AC, and lowest power on battery. There are only three levels, high, normal, low.

Older kernels (<2.6.30 or, 29, not sure) will need to set the following option as the control file changed in 2.6.30.

SUPERHE_CONTROL_FILE=/sys/devices/platform/eeepc/she

Last edited by iphitus (2009-06-28 00:15:21)

Offline

#2 2009-06-28 00:22:57

cdwillis
Member
From: /home/usa
Registered: 2008-11-20
Posts: 294

Re: eee 'super hybrid engine' and laptop-mode-tools

Cool, thanks for this. I was hoping someone would port the 'super hybrid engine' over for linux users.

Offline

#3 2009-06-28 01:20:26

scio
Member
From: Buffalo, NY
Registered: 2008-08-05
Posts: 366

Re: eee 'super hybrid engine' and laptop-mode-tools

Any conflicts with acpi-eeepc-generic 0.9.2-1? http://aur.archlinux.org/packages.php?ID=23318

Offline

#4 2009-06-28 01:55:33

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: eee 'super hybrid engine' and laptop-mode-tools

none, acpi-eeepc-generic didnt provide superhe control last time I used it.

laptop-mode-tools complements acpi-eeepc-generic fairly well. laptop-mode-tools gives various power saving options and acpi-eeepc-generic primarily gives shortcut keys. They both do cpufreq, but you can disable it in either so there's no real conflict.

Last edited by iphitus (2009-06-28 01:56:16)

Offline

#5 2009-06-28 01:59:33

scio
Member
From: Buffalo, NY
Registered: 2008-08-05
Posts: 366

Re: eee 'super hybrid engine' and laptop-mode-tools

Very cool, thanks for the script.

Offline

#6 2009-06-29 16:06:50

`dannyb
Member
From: /dev/null & aka Minnesota
Registered: 2009-01-27
Posts: 34

Re: eee 'super hybrid engine' and laptop-mode-tools

Thanks for the script! Is there any way to verify that indeed it is working? /etc/rc.d/laptop-mode status does not show any indicator.

Offline

#7 2009-06-29 16:28:45

Wittfella
Member
From: Australia
Registered: 2008-05-27
Posts: 462

Re: eee 'super hybrid engine' and laptop-mode-tools

Check it with:

cat /sys/devices/platform/eeepc/cpufv

770 Powersave
769 Normal
768 Performance

Offline

#8 2009-06-29 16:29:29

`dannyb
Member
From: /dev/null & aka Minnesota
Registered: 2009-01-27
Posts: 34

Re: eee 'super hybrid engine' and laptop-mode-tools

Just discovered that thanks!

Offline

#9 2009-06-30 03:30:11

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,056
Website

Re: eee 'super hybrid engine' and laptop-mode-tools

I may be missing something (or I may just be slow - I wouldn't rule either out at this point) but issuing

cat /sys/devices/platform/eeepc/cpufv

returns no such file or directory.

I installed the pacakge build, tweaked the config, restarted /etc/rc.d/laptop-mode.

I am loading eeepc_laptop from local.rc (to speed boot) and @laptop-mode in rc.conf.

Have I missed a step? I gather from this post http://bbs.archlinux.org/viewtopic.php? … 40#p576140 that I should be good to go. Is there more info on the wiki that I haven't come across?


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Online

#10 2009-06-30 07:05:55

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: eee 'super hybrid engine' and laptop-mode-tools

Did you read my first post?

Older kernels (<2.6.30 or, 29, not sure) will need to set the following option as the control file changed in 2.6.30.

SUPERHE_CONTROL_FILE=/sys/devices/platform/eeepc/she

If that fails, then your hardware may simply not support it via this method. If that's the case, look at eee-control in the AUR.

Offline

#11 2009-06-30 07:28:45

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,056
Website

Re: eee 'super hybrid engine' and laptop-mode-tools

Thanks Iphitus - yes I had read the post and added the line to the .conf file. It looks like my 901 doesn't support it.

I'll try eee-control.


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Online

#12 2009-07-01 08:44:34

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,056
Website

Re: eee 'super hybrid engine' and laptop-mode-tools

After a lot more googling, it turns out the answer is in the forums here (naturally): there is a patched eeepc-laptop module that supports SHE on the 901

http://bbs.archlinux.org/viewtopic.php? … 56#p546656

It is in AUR as part of eee-control, which unfortunately conflicts with acpi-eeepc-generic. I'm not sure if that is helpful (I don't know enough to make a call about one or the other)...


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Online

#13 2009-07-01 09:09:52

jordi
Member
Registered: 2006-12-16
Posts: 103
Website

Re: eee 'super hybrid engine' and laptop-mode-tools

nice, thanks for the script. Now I am down to ~9 Watts from 10. Now if rt2860 supported power saving features..

Offline

#14 2009-07-01 10:26:32

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: eee 'super hybrid engine' and laptop-mode-tools

jordi wrote:

nice, thanks for the script. Now I am down to ~9 Watts from 10. Now if rt2860 supported power saving features..

It does.

iwpriv ra0 set PSMode=?

Where ? could be one of:
- MAX_PSP - maximum power saving
- FAST_PSP -  medium
- CAM - no power saving

MAX_PSP is very aggressive, where I'd normally be able to download at greater than 1MB/s from my nearest mirror, I only get <10KB/s. However it does drastically save power.

Offline

#15 2009-07-01 13:08:06

zodmaner
Member
Registered: 2007-07-11
Posts: 653

Re: eee 'super hybrid engine' and laptop-mode-tools

iphitus wrote:
jordi wrote:

nice, thanks for the script. Now I am down to ~9 Watts from 10. Now if rt2860 supported power saving features..

It does.

iwpriv ra0 set PSMode=?

Where ? could be one of:
- MAX_PSP - maximum power saving
- FAST_PSP -  medium
- CAM - no power saving

MAX_PSP is very aggressive, where I'd normally be able to download at greater than 1MB/s from my nearest mirror, I only get <10KB/s. However it does drastically save power.

Woohoo! Thanks for the tip, iphitus! big_smile

BTW, could you tell us where did you find out about this information?


Memento mori

Offline

#16 2009-07-02 18:30:13

jordi
Member
Registered: 2006-12-16
Posts: 103
Website

Re: eee 'super hybrid engine' and laptop-mode-tools

awesome, thanks iphitus

Offline

#17 2009-07-06 15:42:48

Stunts
Member
From: Portugal
Registered: 2009-03-28
Posts: 294
Website

Re: eee 'super hybrid engine' and laptop-mode-tools

Thanks for this great package iphitus!
Battery life has increased a lot using this package,

Is there a way to manually change the mode the SHE is working on? eg. being on battery power and changing to the performance or normal mode to do something more computationally intensive.

Thanks again.

Offline

#18 2009-07-06 18:02:16

scio
Member
From: Buffalo, NY
Registered: 2008-08-05
Posts: 366

Re: eee 'super hybrid engine' and laptop-mode-tools

You can just do what the script does:

echo 0 > /sys/devices/platform/eeepc/cpufv

This forces performance mode.

I was actually going to write a script to hook up to Fn+Space to cycle the modes like it does in windows.  I'll tack it on this thread if no one does it before I do.

Edit: wrong value, correct as to not confuse people.

Last edited by scio (2009-07-06 19:02:27)

Offline

#19 2009-07-06 18:14:34

Stunts
Member
From: Portugal
Registered: 2009-03-28
Posts: 294
Website

Re: eee 'super hybrid engine' and laptop-mode-tools

Just what I wanted to hear!

Thanks!

Offline

#20 2009-07-06 19:01:53

scio
Member
From: Buffalo, NY
Registered: 2008-08-05
Posts: 366

Re: eee 'super hybrid engine' and laptop-mode-tools

Oops, sorry!
It's

echo 0 > /sys/devices/platform/eeepc/cpufv

768 is the read value.

I should have a shell script up tonight.

Offline

#21 2009-07-06 23:55:35

scio
Member
From: Buffalo, NY
Registered: 2008-08-05
Posts: 366

Re: eee 'super hybrid engine' and laptop-mode-tools

Hm, I've got a script but it requires sudo so I'm looking for an good way to prompt and still be able to notify the user of the change.
It's easy from terminal, but binding it to a key will cause problems with prompting.

Offline

#22 2009-07-07 09:43:50

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: eee 'super hybrid engine' and laptop-mode-tools

oh and a question above:

It is in AUR as part of eee-control, which unfortunately conflicts with acpi-eeepc-generic. I'm not sure if that is helpful (I don't know enough to make a call about one or the other)...

eee-control and acpi-eeepc-generic do not actually conflict each other. They have some slight overlap in functionality (shortcut keys), however this can be disabled in either. They should not be marked as conflicting.

scio: For giving notices, libnotify/notify-send and dzen2 do a pretty good job. Or if you meant a GUI passwd dialog, you can do xterm -e sudo, or gksu/gksudo/kdesu.

Offline

#23 2009-07-07 11:59:00

scio
Member
From: Buffalo, NY
Registered: 2008-08-05
Posts: 366

Re: eee 'super hybrid engine' and laptop-mode-tools

iphitus: Yep, I'm using libnotify but if you run the script with sudo you need to su back to the $SUDO_USER for it to show up correctly.

As for the passwd dialog (which is my current problem), I am trying sudo -A and I might just set SUDO_ASKPASS to xterm -e sudo or something similar if it is not already set.

Also, do you want me to start a new thread for this script if I finish it, or just keep it here for simplicity?

Offline

#24 2009-07-07 20:37:26

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,056
Website

Re: eee 'super hybrid engine' and laptop-mode-tools

iphitus wrote:

oh and a question above:

It is in AUR as part of eee-control, which unfortunately conflicts with acpi-eeepc-generic. I'm not sure if that is helpful (I don't know enough to make a call about one or the other)...

eee-control and acpi-eeepc-generic do not actually conflict each other. They have some slight overlap in functionality (shortcut keys), however this can be disabled in either. They should not be marked as conflicting.

I drew attention to this conflict based on the yaourt output:

checking dependencies...
error: replacing packages with -U is not supported yet
error: you can replace packages manually using -Rd and -U
error: failed to prepare transaction (conflicting dependencies)
:: eee-control: conflicts with acpi-eeepc-generic

It may be simply resolved, but to a newbie like me it looked like a conflict...


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Online

#25 2009-07-08 01:50:46

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: eee 'super hybrid engine' and laptop-mode-tools

I mean the packages themselves should not conflict. Both packages have set conflicts=() in their PKGBUILDs but they shouldnt. There's no reason for that to be set. There are no file conflicts, and the functional conflicts are negligable.

Offline

Board footer

Powered by FluxBB