amilo-forum.com

Everything you need to know about Amilo and Lifebook laptops by Fujitsu

Li1718 auto installation for ubuntu 32bit - Testers needed

Everything around Linux and Unix-like operating systems.

Li1718 auto installation for ubuntu 32bit - Testers needed

Postby damagedspline » Sat Sep 01, 2007 8:21 am

The attached installation script is an auto installation attempt script. I modded the auto installation script I wrote for A1650G so that it will also fit the Li1718.
What does it suppose to do? ("suppose" since I could not test it...)

1) activate the hotkeys.
2) install the wireless driver
3) blacklist the native linux driver
4) fix the snd-hda-intel

Only try this if you know exactly how you made it work before (just in case - since I was not able to test it here). Installation process instructions were given to me from johntait.

Currently only atheros based wireless cards are targeted.

Please report any bug/issue/success.

Howto use - run the following from the terminal:
wget http://fscamiloa16xx.googlecode.com/svn ... sca16xx.sh
chmod 755 fsca16xx.sh
sudo ./fsca16xx.sh

The address is for the svn (testing branch), final version will be in
http://code.google.com/p/fscamiloa16xx/downloads/list
current script there (30/8) does not support Li1718.
User avatar
damagedspline
 
Posts: 32
Joined: Wed Aug 29, 2007 8:40 pm
Location: Israel

Postby Belisarius » Sun Sep 02, 2007 2:13 pm

Hi,

Just tried running this and got:

Error: Ubuntu version is unsupported. This script will only work on Ubuntu Feisty and Ubuntu Gutsy
Welcome to the Fujitsu-Siemens Amilo A16xx automated patch for Ubuntu

This script will enable some of the laptop features such as the Special such
as Wireless, Browser and Fancy Fan

Trying to download precompiled kernel module for Special Buttons
Warning: No precompiled modules for 2.6.20-16-generic, trying to recompile
AcerHK source code downloaded successfully
Patching AcerHK
patching file acerhk.c
Installing required kernel module building tools - this may take a while...
Compile ended successfully!
Downloaing additional files required by setup
chmod: cannot access `*.sh': No such file or directory
Setting all features to auto-activate on startup
mv: cannot stat `*.sh': No such file or directory
mv: cannot stat `fsca16xx.def': No such file or directory
mv: cannot stat `hotkeys.desktop': No such file or directory
Adding kernel support for Special Buttons
Loading kernel modules for Special Buttons
Done. Please logout and relogin in order to start using the hotkeys.


Of the keys, only the brower launches. I get no LED on for the wireless - despite having set it to defaut on in BIOS.

I tried the (same?) script from an earlier thread and got the same results. Have had no luck with NDISWRAPPER getting wireless working.

Any help appreciated. Like this laptop so want to get it working! :D

Cheers

Andy
We shall not cease from exploration
And the end of all our exploring
Will be to arrive where we started
And know the place for the first time.
Belisarius
 
Posts: 15
Joined: Sun Sep 02, 2007 2:08 pm
Location: Newcastle upon Tyne, UK

Postby damagedspline » Mon Sep 03, 2007 9:24 am

Belisarius wrote:Hi,

Of the keys, only the brower launches. I get no LED on for the wireless - despite having set it to defaut on in BIOS.

I tried the (same?) script from an earlier thread and got the same results. Have had no luck with NDISWRAPPER getting wireless working.

Any help appreciated. Like this laptop so want to get it working! :D

Cheers

Andy


please try running the following from the console:
sudo rmmod acerhk
sudo modprobe acerhk force_series=6805

now try pressing the wireless key(several times), without rerunning the script. if the wireless still does not respond, try:
sudo rmmod acerhk
sudo modprobe acerhk force_series=6805 autowlan=1

please send me the result of:
cat /etc/issue

please report back if it's working or not

edit: wireless key should be pressed several times to make sure it does not respond....
User avatar
damagedspline
 
Posts: 32
Joined: Wed Aug 29, 2007 8:40 pm
Location: Israel

Postby Belisarius » Mon Sep 03, 2007 7:59 pm

damagedspline wrote:
please try running the following from the console:
sudo rmmod acerhk
sudo modprobe acerhk force_series=6805


Code: Select all
andy@andy-laptop:~$ sudo rmmod acerhk
andy@andy-laptop:~$ sudo modprobe acerhk force_series=6805
andy@andy-laptop:~$
andy@andy-laptop:~$ cat /etc/issue
Ubuntu 7.04 \n \l

andy@andy-laptop:~$


at which point it works!

What is required to make this work from bootup?

Should I now be able to use ndiswrapper to install the drivers and get the wireless working? Or will your script do that?

Cheers! :D

Andy
We shall not cease from exploration
And the end of all our exploring
Will be to arrive where we started
And know the place for the first time.
Belisarius
 
Posts: 15
Joined: Sun Sep 02, 2007 2:08 pm
Location: Newcastle upon Tyne, UK

Postby damagedspline » Mon Sep 03, 2007 8:42 pm

Belisarius wrote:
What is required to make this work from bootup?

Should I now be able to use ndiswrapper to install the drivers and get the wireless working? Or will your script do that?

Cheers! :D

Andy


I've fixed the script and it is now in the download section, it will configure everything to work at startup:

wget http://fscamiloa16xx.googlecode.com/files/fsca16xx.sh
chmod 755 fsca16xx.sh
sudo ./fsca16xx.sh

please try again and see that it installs successfully (you don't have to change anything in your current configuration, it suppose to recognize your current configuration and skip unnecessary commands).
User avatar
damagedspline
 
Posts: 32
Joined: Wed Aug 29, 2007 8:40 pm
Location: Israel

Postby Belisarius » Mon Sep 03, 2007 10:19 pm

damagedspline wrote:
I've fixed the script and it is now in the download section, it will configure everything to work at startup:

wget http://fscamiloa16xx.googlecode.com/files/fsca16xx.sh
chmod 755 fsca16xx.sh
sudo ./fsca16xx.sh

please try again and see that it installs successfully (you don't have to change anything in your current configuration, it suppose to recognize your current configuration and skip unnecessary commands).


Hi,

Just tried it again. First point. My cat/issues file only has 7.04 in it not feisty so I changed the script to grep that and now get the following output:

Code: Select all
Welcome to the Fujitsu-Siemens Amilo A16xx automated patch for Ubuntu Fiesty

This script will enable some of the laptop features such as the Special such
as Wireless, Browser and Fancy Fan

Trying to download precompiled kernel module for Special Buttons
Warning: No precompiled modules for 2.6.20-16-generic, trying to recompile
AcerHK source code downloaded successfully
Patching AcerHK
patching file acerhk.c
Installing required kernel module building tools - this may take a while...
Compile ended successfully!
Downloaing additional files required by setup
Setting all features to auto-activate on startup
Adding kernel support for Special Buttons
Loading kernel modules for Special Buttons
Done. Please logout and relogin in order to start using the hotkeys.
andy@andy-laptop:~$


Unfortunately it still doesn't seem to work. I can launch a browser OK but the wireless key does nothing, as with the fan key.

Let me know if you need any more info. I'm off to bed now - started my first job in 3 years today so a bit tired! - but will respond tomorrow.

Thanks for taking the time to sort this out.

Cheers

Andy
We shall not cease from exploration
And the end of all our exploring
Will be to arrive where we started
And know the place for the first time.
Belisarius
 
Posts: 15
Joined: Sun Sep 02, 2007 2:08 pm
Location: Newcastle upon Tyne, UK

Postby damagedspline » Tue Sep 04, 2007 6:42 am

Belisarius wrote:Unfortunately it still doesn't seem to work. I can launch a browser OK but the wireless key does nothing, as with the fan key.

Let me know if you need any more info. I'm off to bed now - started my first job in 3 years today so a bit tired! - but will respond tomorrow.

Thanks for taking the time to sort this out.

Cheers

Andy


Yes, beside the recognition fix, I added another fix that should replace the acerhk option to force_series=6805.

please 'cat /etc/modprobe.d/options' and check if acerhk is listed with there as:
options acerhk options acerhk force_series=6805 autowlan=1

if it's not, you can change it manually and 'sudo rmmod acerhk' 'sudo modprobe acerhk' (or retest the latest script available).

It is important that you check the lastest script available to see that all of the bugs have gone away...
User avatar
damagedspline
 
Posts: 32
Joined: Wed Aug 29, 2007 8:40 pm
Location: Israel

Postby Belisarius » Tue Sep 04, 2007 10:57 pm

damagedspline wrote:
Yes, beside the recognition fix, I added another fix that should replace the acerhk option to force_series=6805.

please 'cat /etc/modprobe.d/options' and check if acerhk is listed with there as:
options acerhk options acerhk force_series=6805 autowlan=1

if it's not, you can change it manually and 'sudo rmmod acerhk' 'sudo modprobe acerhk' (or retest the latest script available).

It is important that you check the lastest script available to see that all of the bugs have gone away...


Hi again.

Success!!!

Here is the output from cat /etc/modprobe.d/options

Code: Select all
andy@andy-laptop:~$ cat /etc/modprobe.d/options
# Enable double-buffering so gstreamer et. al. work
options quickcam compatible=2

# Default hostap to managed mode
options hostap_pci iw_mode=2
options hostap_cs iw_mode=2
options ath_pci rfkill=0

options acerhk force_series=6805 autowlan=1

The only slight issue was a syntax error in the script at line 118. Needs the 'if !' bit removing.

Other than that I now have a working wireless button and am writing this connected to my wireless network with WPA working as well.

Not sure what the 'fan' button actually does. It brings up a message on the screen but I'm not sure it actually does anything?

Anyway, thanks for all your help. If I find time I may do a write up of the whole 'getting Ubuntu running on a 1718' process just to get it on one place.

All the best

Andy
We shall not cease from exploration
And the end of all our exploring
Will be to arrive where we started
And know the place for the first time.
Belisarius
 
Posts: 15
Joined: Sun Sep 02, 2007 2:08 pm
Location: Newcastle upon Tyne, UK

Postby damagedspline » Wed Sep 05, 2007 5:52 am

Belisarius wrote:The only slight issue was a syntax error in the script at line 118. Needs the 'if !' bit removing.

Other than that I now have a working wireless button and am writing this connected to my wireless network with WPA working as well.

Not sure what the 'fan' button actually does. It brings up a message on the screen but I'm not sure it actually does anything?

Anyway, thanks for all your help. If I find time I may do a write up of the whole 'getting Ubuntu running on a 1718' process just to get it on one place.

All the best

Andy


Great!

I've fixed the bug in line 117, and the current download is marked 5/9/2007.

Thanks,
Assaf
User avatar
damagedspline
 
Posts: 32
Joined: Wed Aug 29, 2007 8:40 pm
Location: Israel

Postby aspettl » Fri Sep 07, 2007 10:27 am

Code: Select all
UBUNTU_VER=Fiesty

Why not Feisty? ;-)

And another typo:
root privileges


Code: Select all
#audio section   
if [ "LI1718" = $MODEL -a "Fiesty" = $UBUNTU_VER ]; then
   if [ -z "$(grep snd-hda-intel /etc/modprobe.d/alsa-base)" ]; then
      echo "\033[1mFix audio issue\033[0m"
      echo "options snd-hda-intel index=0 model=3stack" >> /etc/modprobe.d/alsa-base
   fi   
fi

Why a grep for snd-hda-intel? Any specific reason?

I didn't check it, but are you sure you aren't using any bashisms? (Because of "#!/bin/sh", this mistake happens often to me ;-) I suppose the script works with the default shell dash.)

Another thing:
You are compiling kernel modules and modprobing them, but I see no depmod (possible it's done by a makefile).

Edit:
Maybe have a look here:
topic,1045,-Amilo-Li-1718-sound-wireless.html

Regards
Aaron
User avatar
aspettl
Site Admin
 
Posts: 1347
Joined: Sat Mar 25, 2006 3:31 pm
Location: Germany
Notebook:
  • Lifebook E8020D

Postby damagedspline » Fri Sep 07, 2007 7:32 pm

aspettl wrote:Why not Feisty? ;-)

And another typo:
root privileges


Why a grep for snd-hda-intel? Any specific reason?

I didn't check it, but are you sure you aren't using any bashisms? (Because of "#!/bin/sh", this mistake happens often to me ;-) I suppose the script works with the default shell dash.)

Another thing:
You are compiling kernel modules and modprobing them, but I see no depmod (possible it's done by a makefile).

Edit:
Maybe have a look here:
topic,1045,-Amilo-Li-1718-sound-wireless.html

Regards
Aaron


Hi Aaron,
here are some answers:
1) Fiesty instead of Feisty: well, I've created the relevant folders in the svn long ago and wrote Fiesty... No point in changing it now...
2) privileges - yep, thats a typo - I'll fix it later.
3) yep thats a bug - I'll fix it later on (replace it with /bin/dash).
4) no reason for depmod since I'm replacing the already exist acerhk.ko

Thanks,
Assaf
User avatar
damagedspline
 
Posts: 32
Joined: Wed Aug 29, 2007 8:40 pm
Location: Israel

Postby roadrash » Sun Sep 09, 2007 1:21 pm

just installed ubuntu 7.04 to my Li1718 laptop to test this script.
I ran the script from the users home folder with the command:

chmod 755 fsca16xx.sh
./ sudo sh fsca16xx.sh

It failed and here is the output i received. Can someone tell me if i did something wrong?

[: 41: missing ]
Welcome to the Fujitsu-Siemens Amilo A16xx automated patch for Ubuntu Fiesty

This script will enable some of the laptop features such as the Special buttons such
as Wireless, Browser and Fancy Fan

Trying to download precompiled kernel module for Special Buttons
Success
Replacing Acerhk module
Downloaing additional files required by setup
Setting all features to auto-activate on startup
cp: target `/usr/share/hotkeys/' is not a directory: No such file or directory
Adding kernel support for Special Buttons
Warning: Unknown Atheros or chipset - replacing native wireless driver
[: 219: ==: unexpected operator
installing net5211 ...
couldn't open net5211.inf: No such file or directory at /usr/sbin/ndiswrapper-1.9 line 174.
Error: ndisdriver driver installation failed, setup will continue non-the-less but wireless is not likely to work...;
Error:...please try to install the driver manually using 'sudo ndiswrapper -i <driver inf file name>'
Fix audio issue
Loading kernel modules for Special Buttons
Updating package lists. This may take a while...
Done. Please logout and relogin in order to start using the hotkeys.
roadrash
 
Posts: 72
Joined: Mon Sep 03, 2007 10:37 am

Postby damagedspline » Sun Sep 09, 2007 2:49 pm

roadrash wrote:just installed ubuntu 7.04 to my Li1718 laptop to test this script.
I ran the script from the users home folder with the command:

chmod 755 fsca16xx.sh
./ sudo sh fsca16xx.sh

It failed and here is the output i received. Can someone tell me if i did something wrong?



I heard about this bug two days ago from johntait, I think I figured out the problem. I'll update the script with a fix in the next couple of days...

In the meanwhile open the script with a text editor look for any occurance of "ndiswrapper-1.9" and replace it with "ndiswrapper-1.8".

Now try to rerun the script... (it may still be an insufficient fix)
User avatar
damagedspline
 
Posts: 32
Joined: Wed Aug 29, 2007 8:40 pm
Location: Israel

Postby damagedspline » Sun Sep 09, 2007 7:16 pm

damagedspline wrote:
I heard about this bug two days ago from johntait, I think I figured out the problem. I'll update the script with a fix in the next couple of days...

In the meanwhile open the script with a text editor look for any occurance of "ndiswrapper-1.9" and replace it with "ndiswrapper-1.8".

Now try to rerun the script... (it may still be an insufficient fix)


Ok, I definitely figured it out.
There was also a problem with unzip.

Latest version:

wget http://fscamiloa16xx.googlecode.com/svn ... sca16xx.sh
chmod 755 fsca16xx.sh
sudo ./fsca16xx.sh
User avatar
damagedspline
 
Posts: 32
Joined: Wed Aug 29, 2007 8:40 pm
Location: Israel

Postby roadrash » Sun Sep 09, 2007 11:46 pm

Ok, I definitely figured it out.
There was also a problem with unzip.


Ok ive got my wireless working but only by modifying the script in a few places.
All credit to you as you have done a great job of writing it and I have learned loads from it.

firstly i removed a few sections that were not required for the Li 1718 and for some reason caused a problem.
I added things right at the start such as apt-get update and install a few things
I also got it to download the latest 1.47 ndiswrapper from sourceforge and install it. As you mentioned, I found the unzip problem and cured that as well.
I'm not quite finished yet and after install i have to manually open a terminal and add blacklist ath_pci to the etc/modprobe/blacklist file & issue the rmmod ath_pci command. but once its rebooted i have no problem getting the wired & wireless network started.

i was going to paste it all in here but it won't let me because i think its to big so here is the start section of it.

I haven't finished with it yet so be patient with me please as i am still learning.

#!/bin/sh
# This is an installation script for auto installing additional support for
# FSC laptops Amilo A16xx
# Written by Assaf Paz (damagedspline@aim.com)

SUCCESS=1
CURRENT_DIR=$(pwd)
KERNEL_VER=$(uname -r)
AR5005G_OPTION="options ath_pci rfkill=0"
PACKAGES_UPDATED=FALSE

apt-get update
apt-get install wifi-radar
echo installed wifi radar
apt-get -y install build-essential



#check ubuntu version
if [ -n "$(grep -i gutsy /etc/issue)" ]; then
UBUNTU_VER=Gutsy
else if [ -n "$(grep -i 7.04 /etc/issue)" ]; then
UBUNTU_VER=Fiesty
else
echo "\033[1mError: Ubuntu version is unsupported. This script will only work on Ubuntu Feisty and Ubuntu Gutsy\033[0m"
exit 1
fi
fi

#check architecture
if [ "$(uname -m)" != "i686" ]; then
echo "\033[1mError: Sorry, for now this script will only work on 32bit systems\033[0m"
exit 1
fi

#check laptop model
if [ -z "$(grep -i a1650g /var/lib/acpi-support/system-product-name)" ]; then
if [ -z "$(grep -i 1718 /var/lib/acpi-support/system-product-name)"]; then
echo "\033[1mError: Sorry, for now this script is only intended for Amilo A1650G && LI1718\033[0m"
exit 1
else
ACERHK_OPTION="options acerhk force_series=6805 autowlan=1"
MODEL="LI1718"
fi
else
ACERHK_OPTION="options acerhk autowlan=1"
MODEL="A1650G"
fi

echo "\033[1mWelcome to the Fujitsu-Siemens Amilo A16xx automated patch for Ubuntu $UBUNTU_VER\033[0m"
echo ;
echo "\033[1mThis script will enable some of the laptop features such as the Special buttons such\033[0m"
echo "\033[1mas Wireless, Browser and Fancy Fan\033[0m"
echo ;

#check superuser
if [ ! $(id -u) = 0 ]; then
echo "\033[1mError: To run this script, one must be with root privilages. Rerun this script prefixed by sudo\033[0m"
exit 1
fi

cd /usr/src
wget http://surfnet.dl.sourceforge.net/sourc ... .47.tar.gz
tar xvzf ndiswrapper-1.47.tar.gz
cd /usr/src/ndiswrapper-1.47/
make
make install
cd /usr/src

if [ ! -d fsca16xx ]; then
mkdir fsca16xx
fi
cd fsca16xx
roadrash
 
Posts: 72
Joined: Mon Sep 03, 2007 10:37 am

Next

Return to Linux / Unix / BSD

Who is online

Users browsing this forum: No registered users and 0 guests

cron