You are not logged in.
=============
Eeeasy Scripts
=============
Some days ago I upgraded to Intrepid and edited the scripts from Hardy. Here are the changes:
v2.7-2:
* Changed name to " Eeeasy Scripts"
* Fixed problems with the autostart file on Openbox
* Really fixed sound OSD on 701/900 etc.
* Other little fixes
v2.7:
* Fixed sound OSD on 701/900 etc.
* Openbox autostart entry will now be added automatically (for CrunchEee users)
v2.6:
* Added support for Ubuntu 8.04 Hardy Heron
* New GUI version (battery wear level, support for 8.04 and other bugfixes)
* Changed cpu modes after installation to automatic/performance (battery/ac) - powersave still causes problems
v2.5-3:
* Volume mixer "Front" & "Master" added to detection script
* "Mute switch" only activated if "iSpeaker" or "Speaker" is detected
* Added Realtek r8180 to wifi-script (900HD and maybe other models)
* Fixed a bug with the tray-icon: It didn`t switch the color correctly with celeron models
v2.5-2:
* Bugfix: Tray-icon didn`t start (and so no OSD) due to wrong values in the settings-file
v2.5:
* Fixed a problem with muting/unmuting
* Fixed a problem with sound control: mixer names "Line-Out" and "Speaker" are now supported (701, etc.)
* Scripts are using the hardware detection script, so every eeepc model should now be supported
v2.4:
* Fixed a bug with the first hotkey and a custom command
* User defined commands are starting now with the right environment
v2.3:
* Added support for 1002HA
* Muting/unmuting will now affect headphone output, too
* Tray-Icon: changes color depending on the cpu mode
* Now all four hotkeys can be user-defined (good for 1000/1000H users)
v2.2:
* More EeePCs are now supported
* Improved tray icon: It changes now the color depending on AC/battery/critical battery, shows useful informartion like power consumption and can now be hidden with the "--no-icon" option
* Improved GUI: Hides items which are not present
* vga-toggle: If the screen is disconnected and Fn+F5 is pressed afterwards the resolution will now be set correctly
* Simplified amixer commands
v2.1:
* Complete new OSD (faster n looks nicer) including brightness OSD (by Jan)
* Tray-Icon (by Jan)
* Setting-Manager needs only password if you toggle hardware (by Jan)
* Sensors added to settings manager: fan & temp (by Jan)
* Set amixer commands for volume control as default => no more "cracking" sound if muted and support for X/Kubuntu
* Added "modprobe rt2860sta" to wifi_on_rt2860() - it didn`t autoload on some EeePC`s
v2.0:
* Improved GUI (control of each hardware)
* Added card reader toggle
v1.4:
* Included a graphical user interface in the menu "System". Big thanks to Jan Hoffmann!
* Made a settings file which was necessary for the GUI
* Added a "very critical" mode to fancontrol
* Changed cpufreqency restore function (again thx to Jan!)
v1.3:
* Wifi state restore on boot
* Optimized wifi toggle
* Changed values of fan-control to 51/65 and 0/30/70 (with the old settings the EeePC was getting too hot)
* Fixed BT toggle and activated it again
* Raised the value of FSB_POWERSAVE to 86 50 0 due to crashes on some EeePC`s (change it to 76 50 0 if your EeePC doesn`t freeze)
v1.2:
* Auto change cpu frequency if AC plugged in or unplugged (can be switched off)
* cpu frequency mode restore on boot
* Changed powersave mode from "75 50 0" to "76 50 0" due to crashes on some users
* Optimized fan control included (based on "eeefan2") - makes the eeepc quiet but a little bit warmer
* Fixed "0 0 1" problem
* Auto add pciehp parameters to /etc/modules (which will hopefully make wifi-toggle better)
* Wifi-toggle:Changed ath_pci to ath5k
v1.1:
* Wifi toggle works now (900A untested)
* Better cpu frequency control (saves more power and overclocks a bit in performance mode)
* Installer has now an update option
v1.0:
* Edited the scripts to work with the eeepc_laptop module
* When powersave is active it switches now to low voltage mode to increase battery life a bit
* VGA toggle script shows now an OSD if no screen is detected
* Installer has now a remove option

Supported models:
* EeePC 701 4G
* EeePC 701 8G
* EeePC 701SD
* EeePC 900
* EeePC 900HD (testing) [problem with cpu frequency control]
* EeePC 900HA
* EeePC 900A
* EeePC 904HD (testing) [problem with cpu frequency control]
* EeePC 904HA
* EeePC 901
* EeePC 901Go (testing)
* EeePC 1000
* EeePC 1000H
* EeePC 1000HD (testing) [problem with cpu frequency control]
* EeePC 1000HA
* EeePC 1000HE
* EeePC 10002HA
* EeePC S101
Keymappings and their functions:
900A, 901, etc.:
* Fn+F1 Standby
* Fn+F2 WLAN-toggle
* Fn+F3/F4 Brightness
* Fn+F5 VGA-toggle
* Fn+F6 Taskmanager
* Fn+F7/F8/F9 Volume
* 1. hotkey Display-toggle (internal) or user-defined
* 2. hotkey Bluetooth-toggle or user-defined
* 3. hotkey Webcam-toggle or user-defined
* 4. hotkey CPU frequency control or user-defined
1000, 1000H, etc.:
* Fn+F1 Standby
* Fn+F2 WLAN-toggle
* Fn+F5/F6 Brightness
* Fn+F7 Display-toggle (internal)
* Fn+F8 VGA-toggle
* Fn+F9 Taskmanager
* Fn+F10/F11/F12 Volume
* 1. hotkey Display-toggle (internal) or user-defined
* 2. hotkey Bluetooth-toggle or user-defined
* 3. hotkey Webcam-toggle or user-defined
* 4. hotkey CPU frequency control or user-defined
HowTo install:
1.) Install Adams kernel or compile the modules eeepc_laptop and asus_eee because they are needed for the scripts.
2.) If you added "asus_eee", "i2c-i801" or "pciehp with its parameters" to /etc/module, remove them. Otherwise the installer will add them a second time.
If you added "asus_eee" to /etc/modprobe.d/blacklist remove it.
3.) Open a terminal and install the scripts (if you you have the archive of an old version remove it before installing a new version):
wget http://www.informatik.uni-bremen.de/~elmurato/EeePC/Intrepid_Eeeasy-Scripts.tar.gz tar xfvz Intrepid_Eeeasy-Scripts.tar.gz cd Intrepid_Eeeasy-Scripts/ chmod +x acpi-scripts.sh ./acpi-scripts.sh install
Or if you already installed an older version run the update command instead of install:
./acpi-scripts.sh update
4.) To remove the scripts:
./acpi-scripts.sh remove
Known issues:
* If you disable/edit the fancontrol it can take up to one minute to take effect
* If you get two OSDs for volume control with Gnome go to System/Preferences/Key bindings and disable the 3 entries "mute", "vol up" and "vol down"
* X/Kubuntu users maybe have to install some python stuff to get the OSDs to work. Try to install all python-dbus and python-gtk stuff
* Wifi toggle doesn`t work with the eeepc-lean-kernel due to missing pciehp module (PCIe Hotplug)
* If you want to hide the tray-icon you have to add the "--no-icon" option to the entry of it in the autostart-editor
* "Blank screen on bootup" problem with 2GB RAM
* If the cpu frequency control doesn`t work, it`s a good idea to disable the option "Change mode depending on the power source" in the GUI.
elmurato
Last edited by elmurato (2009-03-25 10:19:16 am)
Offline
Very impressive!
Works perfectly on my 1000h, with the exception of the brightness display, wifi and bluetooth as mentioned in the bugs. Hopefully we can work those three issues out.
In the mean time, is there an easy way to manually disable bluetooth?
Last edited by Lagos (2008-10-26 12:42:26 pm)
Offline
Lagos wrote:
In the mean time, is there an easy way to manually disable bluetooth?
I don`t think so. You have to dis- or enable it in the BIOS...
EDIT: Good news! With marx` help the wifi toggle now works
I'll upload a new version tomorrow or so. Now I'm going to sleep :S
Last edited by elmurato (2008-10-26 7:41:45 pm)
Offline
very nice!
two more bugs to go and its perfect!
Offline
hi!
thx a lot for your work!
soon my 1000h will work properly.
it's just that acpi script and at last the the missing alsa support for the sound card...
greetz
Schonbert
Offline
how did you get the wlan to toggle correctly? care to share or do I have to dig through the scripts? ![]()
Offline
Here is the toggle script:
#!/bin/sh
#
# Wifi toggle script for Intrepid -- EeePC 900A/901/1000/1000H
# v1.0
# by elmurato
# Based on the script from Merkmal (forum.eeeuser.com)
model=`dmidecode -s system-product-name`
wlan_control=/sys/class/rfkill/rfkill0/state
WLANSTATE=$(cat $wlan_control)
wifi_on_rt2860()
{
modprobe pciehp pciehp_force=1 pciehp_poll_mode=1
sleep 1
echo 1 > $wlan_control
sleep 1
modprobe rt2860sta
}
wifi_on_athpci()
{
modprobe -r pciehp
sleep 1
modprobe pciehp pciehp_force=1
sleep 1
echo 1 > $wlan_control
sleep 1
modprobe ath_pci
}
wifi_off_rt2860()
{
ifconfig ra0 down
sleep 1
modprobe -r rt2860sta
sleep 1
echo 0 > $wlan_control
}
wifi_off_athpci()
{
ifconfig ath0 down
modprobe -r ath_pci
modprobe -r ath_rate_sample
modprobe -r wlan_tkip
modprobe -r wlan_scan_sta
sleep 2
modprobe -r ath_hal
modprobe -r wlan
echo 0 > $wlan_control
}
case $WLANSTATE in
1)
/etc/acpi/eeepc/eeepc-wifi-notify.py off
if [ $model = "900A" ]
then
wifi_off_athpci
else
wifi_off_rt2860
fi
;;
0)
/etc/acpi/eeepc/eeepc-wifi-notify.py on
if [ $model = "900A" ]
then
wifi_on_athpci
else
wifi_on_rt2860
fi
;;
esacI'll upload a new version tonight with fixed wifi-toggle and better cpufreq-toggle...
Offline
Looks very familiar ![]()
Have to wait until later today to get home and check why this script works and compare to why adamm's doesn't. Because this looks very much like how the scripts looked before, although without handling of models pre 901 ...
Offline
is there any problem to install this script along the eee-control module?
i miss the fsb control without eee-control by max, but i dont know how to get only one osd's etc....
Offline
@ all
The new version is now online. If you installed the first version, you can use the update function:
sudo ./acpi-scripts.sh update
What`s new?
* Wifi toggle works now (900A untested)
* Better cpu frequency control (saves more power and overclocks a bit in performance mode)
* Added update function
@ azanutta
It`s not a good idea to install these scripts and marx` eee-control. This would cause a chaos on your eee ![]()
Offline
@elmurato
Your script works for me on my 901:
- Fn&F2 toggles wifi. Wifi off works immidiately, for wifi on I had to wait a while after the OSD had told me, it was on again
- Fn&F3 / F4 Brightness -> OK
- Fn&F6 brings up "Systemüberwachung"
- Fn&F7 mute / unmute
- Fn&F8 / F9 Volume + / -
- 4. Hotkey loops through 3 CPU frequency modes
The other buttons I have not tested yet, f.i. 1. Hotkey, as I don't know, what will happen after standy ;-)
Hermann
(updated original intrepid-beta kernel with a lot of updates since installing / running now on adams kernel ,,,27-7-eeepc & your script as described in post #1)
Offline
it'll be fantastic if u upload a DEB for intrepid too.
could it be possible?!?!
Offline
azanutta wrote:
it'll be fantastic if u upload a DEB for intrepid too.
could it be possible?!?!
Why would he do a deb? It's just three lines of commands to put on the terminal, after that the keys work
Offline
if i..
sudo ./acpi-scripts.sh update
i get..
sudo: ./acpi-scripts.sh: command not found
I already have your 1st script installed.
You have to actually copy/paste the the code from the 1st post to update to the newer version, because the update feature is not implemented in the first script.
Last edited by Lagos (2008-10-27 2:40:10 pm)
Offline
inf wrote:
azanutta wrote:
it'll be fantastic if u upload a DEB for intrepid too.
could it be possible?!?!Why would he do a deb? It's just three lines of commands to put on the terminal, after that the keys work
wanna know?!?
to auto upgrade (if in a repo) and keep track of version and changes.
surely it'll be more simply even if there are only few lines to digit
Offline
@ Lagos
You have to enter the directory of the script. So enter the commands in the first post but instead of "sudo ./acpi-scripts.sh install" enter "sudo ./acpi-install.sh update"...
@ azanutta
i think a deb-package would be great, but I don`t know how to do that. So the three lines are easier ![]()
Offline
Ok, script is installed. I can enable and disable wifi, however when you enable wifi it does not show up in the taskbar unless you reboot the system.
Offline
Lagos wrote:
Ok, script is installed. I can enable and disable wifi, however when you enable wifi it does not show up in the taskbar unless you reboot the system.
When you enable wifi, does the NetworkManager not show "Wireless networks"?
Offline
It doesn't show any detected wifi networks, and doesn't try to reconnect to the default one.
Offline
Could you try to re-enable wifi and test it again? It takes some time, maybe 30 seconds. If it doesn`t work try it again (2 or 3 times)
Offline
elmurato, suggestions..
make it modprobe -r pciehp at the end off "on/off" so we can have the lan disabled on the bios and save some power. This because of the logs that the pciehp causes when you have the lan disabled on the bios.
Another thing, at least for me the powersave fsb works better with 76 other than 75 that gives some crashes once in a while.
The only thing missing on your scripts is the automatic fan control !!
Any idea when will the bluetooth on/off be working again ???
BTW, really good job !
Last edited by adolfotregosa (2008-10-27 6:05:57 pm)
Offline
elmurato wrote:
Could you try to re-enable wifi and test it again? It takes some time, maybe 30 seconds. If it doesn`t work try it again (2 or 3 times)
I tried it a few times and waited a few min between attempts. Basically, here is what happens...
Press fn+f2. pop up window shows wifi is disabled and clicking on the networking applet shows that there are no detected wifi networks as well as no wifi options at all.
Press fn+f2 again. pop up window shows wifi is enabled. clicking on the networking applet now shows the options to connect to a hidden wifi network or to create a new network, however there are no detected networks. If i try to manually connect to my network via the connect to hidden network option, it will tell me that the network has been disconnected.
I also tried to restart networking and the networking applet by doing...
sudo /etc/init.d/networking restart
sudo /etc/init.d/NetworkManager restart
However these do not fix the issue.
Rebooting the system is the only thing that brings wifi back online and shows a full list of detected networks.
Last edited by Lagos (2008-10-27 6:28:20 pm)
Offline
adolfotregosa wrote:
elmurato, suggestions..
make it modprobe -r pciehp at the end off "on/off" so we can have the lan disabled on the bios and save some power. This because of the logs that the pciehp causes when you have the lan disabled on the bios.
Don`t know. If there aren`t any side effects I could do that.
Another thing, at least for me the powersave fsb works better with 76 other than 75 that gives some crashes once in a while.
No problem ![]()
The only thing missing on your scripts is the automatic fan control !!
Is there a good script for automatic fan control? If yes I could integrate that.
Any idea when will the bluetooth on/off be working again ???
I really don`t know. Somebody must find the problem and write a patch so Adam can include it in the next kernel...
BTW, really good job !
Thanks!
Offline
At least for me i do not see any side effects removing the pciehp module after the wifi off. i just know that i have to load it before i try to enable the wifi then remove it so it stops making kernel logs. Also for the atheros cards you should have in consideration that the ath_pci module is being exchanged for the ath5k/ath9k driver.. and your scripts are not prepared for that. If i exchange the rt2860 card and put it my ar5008x your script will not work, or will it ?? (the card will use the ath9k driver ). Just a thought for the future ![]()
The 76 fsb i know that solves freezes problems that i have and some other users also reported them. Since not all laptops are "equal" it seams more logical to make it generic, since 75 to 76 does basically nothing for battery life and it's just a number change on your fsb script.
For the fan script, can't you use talk to marx and use his deamon/script for that ??? it really makes the fan silent ![]()
The bluetooth part is a pity
better days will come !!
last and not least , correct me if i'm wrong but your install script does not add the i2c-i801 and asus_eee module on the /etc/modules so the fsb part will not work on a clean install. Also, i noticed when playing with clean installs of ubuntu+marx utility, that i had fsb changing problems. cat /proc/eee/fsb outputed 0 0 1 but I did notice that the problem goes away if i manually add to the /etc/modprobe.d/blacklist also the asus_eee module right next to the i2c-i801. Since the modules have to get loaded with order after doing that and on the modules file adding the i2c-i801 and then the asus_eee module the fsb changing works just fine !! (although marx setup does the modules file part it does not add the blacklist asus_eee part) after this the fsb would output 100 50 1 and marx utility would work has expected. it just seams nobody noticed this..
/etc/modprobe.conf/blacklist
"
# causes failure to suspend on HP compaq nc6000 (Ubuntu: #10306)
blacklist i2c_i801
blacklist asus_eee <------
"
/etc/modules
"
i2c-i801
asus_eee
"
Has to be this order.
Sorry for the long feedback lolol hope it helps making the script perfect !!
keep it up!!
Offline
Would it be possible to add in a Super Performance mode that overclocks the cpu to 1.7ghz like it does under windows?
Offline