Tuesday, December 4, 2007

acpi acer hotkey pooler for my amilo

Recently I've started a fork of the acer_acpi kernel module to also pool the 3 hotkeys.
On another note, the patch I've made for acerhk was finally entered the mainstream.

I've moved on to acer_acpi since it supports 64bit distros as well.

I'm up to my ears in homeworks and projects (last year to end my undergraduate degree - yeppieee) so it will probably go gold by May 08.

Work notes:
1) listen for _Q10 (wireless key) event - after it is done, also add the browser and fancy fan buttons.
2) rig the wireless button to run the wireless activation/deactivation method in acer_acpi
3) ask for merge and go mainstream.

some of (1) has already been done.

This will also make the lives of Amilo LI1718 owners much easier...

UPDATE 8/12/07: current work is posted on http://fscamiloa16xx.googlecode.com/svn/trunk/acer_acpi_hkey/
The AML Method PHSR change the values of INF (button id) ,BCMD (0x8B = button pressed) and SMIC (0x00/0xff). When loading this module with debug=4 and press one of the 3 buttons, you'll see (in dmesg) that it sensed the key press. Bad news, SMIC is not updated to 0 as expected and therefore it will act as if the button is being pressed over and over again. Some mutexes are MIA and should be added. acpi-devel list seems to be inactive - so I'll keep searching for a way to acquire an AML mutex...

20 comments:

Andy McMaster said...

Hi,

You helped me out with getting my 1718 working on the amilo forums. However I can't seem to get the script to work under Gutsy. When it applies the patch (0.35) to acerhk.c it fails to compile. I can sort out some of the patch errors but not all.

really appreciate you may be busy at the moment (did my Masters last year so know how you feel!) but it would be great if you could have a look at this please?

Cheers

Andy

DamagedSpline said...

Some of the patch I've made to the acerhk kernel module went upstream, so only a part of it is needed..

What I did for now is to remove the patch from the script. After I'll have some time to play with it I'll add the missing bits.

So for now, you could fetch the latest script version from http://fscamiloa16xx.googlecode.com/svn/trunk/fsca16xx.sh
and run it in setup mode. that should be it...

Andy McMaster said...

Hi again,

I downloaded the script, ran it with remove first, then with setup. It seem to run past the acerhk stuff ok with no compile errors. It fails, for me at least, loading ndiswrapper. So I load that manually and it shows the net5211:driver installed.

After logging out, if I press the wireless button it comes on but the message bottom right is 'wireless dactivated'. Press it again, same message. Nothing shows for the wireless when I do ifconfig or iwconfig.

Any suggestions, please? I'm going away on the 20th and need my laptop with working wireless :-)

Cheers

Andy

DamagedSpline said...

Andy,

Lets trace-n'-fix the issues:


1) make sure that you find the following lines (order is not important) in /etc/modules that says
acerhk
ndiswrapper


if you can't find it, add it manually.


2) make sure that you find the line in /etc/modprobe.d/options that says

options acerhk force_series=6805 autowlan=1

if you can't find it, add it manually.


3) make sure that you find a line in /etc/modprobe.d/blacklist that says

blacklist ath_pci

if you can't find it, add it manually.


4) regarding the "Wireless deactivated" message... sadly, it requires a part of the my patch that was not excepted into to the current version of acerhk... so for now, you can ignore the message. as long as the wireless led gets on/off you're on the safe side. to remove the notifications you should uninstall the following package:

hotkeys


please let me know if its working for you, well, it should any way... :)

Andy McMaster said...

Hi,

1) make sure that you find the following lines (order is not important) in /etc/modules that says
acerhk
ndiswrapper

Both present

2) make sure that you find the line in /etc/modprobe.d/options that says

options acerhk force_series=6805 autowlan=1

Line present

3) make sure that you find a line in /etc/modprobe.d/blacklist that says

blacklist ath_pci

if you can't find it, add it manually.

This was missing so added manually


please let me know if its working for you, well, it should any way... :)

When I run ndiswrapper -l I get driver installed but no hardware is shown as present.

So still not working...

This is really annoying as it all worked fine under Feisty :-)

Really appreciate you taking the time to look at this.

Cheers

Andy

DamagedSpline said...

Hi Andy,

you'll have to install the driver manully.

download http://www.atheros.cz/download/drivers/ar5xxx/xp32-5.3.0.56-whql.zip
, unzip it, run ndiswrapper -i net5211.inf

and your'e done... :)

Andy McMaster said...

Hi again,

Downloaded the file and installed it.

ndiswrapper -l gives:

net5211 : driver installed
device (168C:001C) present (alternate driver: ath_pci)

I still get nothing showing for ifconfig and iwconfig. even after logging out/restarting.

Cheers

Andy

DamagedSpline said...

Andy,

Try to connect manually when the wireless led is on:
left click on NetworkManager->Connect to other Wireless network...

The scan capability of the driver might have been crippled for some unknown reason... I can't think of any other options...

Andy McMaster said...

Hi,

Well, wasn't sure why nothing was coming up in Network config so seeing as I still have Vista on there dual boot (sorry!) I tried it under that to check that the card was working. No problems.

re-booted into Gutsy and Lo! it works. Maybe something had been disable on the card but now the button turns it on and off and even after a power off it seems to be working.

Many thanks for your help. It's been much appreciated!

Not sure how I could have achieved the same effect from the command line in Linux though?

Cheers

Andy

Anonymous said...

Now do you worried about that in the game do not had enough 2moons dil to play the game, now you can not worried, my friend told me a website, in here you can buy a lot 2moons gold and only spend a little money, do not hesitate, it was really, in here we had much 2moon dil, we can sure that you will get the cheap 2moons gold, quick to come here to buy 2moons dil.

Now do you worried about that in the game do not had enough 9Dragons gold to play the game, now you can not worried, my friend told me a website, in here you can buy a lot 9 Dragons gold and only spend a little money, do not hesitate, it was really, in here we had much 9Dragons money, we can sure that you will get the cheap 9Dragons gold, quick to come here to buy 9 Dragons gold.

Aion china gold said...

I like play online game, I also buy Aion gold and Aion gold, the Aion china gold is very cheap, and use the Aion China kina can buy many things, I like Aion chinese gold, thanks, it is very good.

products said...

China Wholesale has been described as the world’s factory. This phenomenom is typified by the rise ofbusiness. Incredible range of products available with China Wholesalers “Low Price and High Quality” not only reaches directly to their target clients worldwide but also ensures that wholesale from china from China means margins you cannot find elsewhere and buy products wholesaleChina Wholesale will skyroket your profits.

products said...

Women’s nike tn Shox Rivalry est le modèle féminin le plus tendance de baskets pour le sport. tn chaussuresConcernant la semelle :Cheap Brand Jeans ShopMen JeansCheap Jeans - True Religion Jeans nike shoes & Puma Shoes Online- tn nike, le caoutchouc extérieur, l’EVA intermédiaire et le textile intérieur s’associent pour attribuer à la.ed hardy shirts pretty fitCharlestoncheap columbia jackets. turned a pair of double plays to do the trick.Lacoste Polo Shirts, , Burberry Polo Shirts.wholesale Lacoste polo shirts and cheap polo shirtswith great price.Thank you so much!!cheap polo shirts men'ssweate,gillette mach3 razor bladesfor men.As for

Anonymous said...

酒店打工

酒店兼職

台北酒店

打工兼差

酒店工作

酒店

禮服酒店

酒店兼差

酒店上班

酒店PT

酒店經紀

酒店喝酒

酒店消費

喝花酒

粉味

喝酒

Anonymous said...

Who knows where to download XRumer 5.0 Palladium?
Help, please. All recommend this program to effectively advertise on the Internet, this is the best program!

Adi said...

Oes Tsetnoc one of the ways in which we can learn seo besides Mengembalikan Jati Diri Bangsa. By participating in the Oes Tsetnoc or Mengembalikan Jati Diri Bangsa we can improve our seo skills. To find more information about Oest Tsetnoc please visit my Oes Tsetnoc pages. And to find more information about Mengembalikan Jati Diri Bangsa please visit my Mengembalikan Jati Diri Bangsa pages. Thank you So much.
Oes Tsetnoc | Semangat Mengembalikan Jati Diri Bangsa

良哥 said...

Teenagers in a track adidas shoes can go through shoes rate adidas outlet teenage runner well knows that adidas sneakers to wear the right shoes air jordan 2010 any cross country among world jordan shoes especially important to the sportsman discount jordan shoes a young person growing up Pure GHD Not only do they want to bourke dooney handbags grow out of their shoes dooney bourke bags but shape of their feet changes which means every time we dooney bourke outlet the time comes to get dooney bourke totes a new pair of shoes eveyone NIKE SHOX a good choice to get NIKE SHOX SHOES it with a high material SHOX SHOES that breathes easily on random moncler They should be extended runs moncler jackets give enough support to athlets moncler coats especially around the ankles area moncler vest to avoid injury your ankles discount moncler outlet when you make your trip discount moncler t-shirt something in store possible fit cheap ugg boots his is also the way to discount ugg boots that don't fit properly only ugg boots it focuses on your convenience classic ugg boots but they are not returnable ugg classic tall boots

chen said...

Teenagers in a track adidas shoes can go through shoes rate adidas outlet teenage runner well knows that adidas sneakers to wear the right shoes air jordan 2010 any cross country among world jordan shoes especially important to the sportsman discount jordan shoes a young person growing up Pure GHD Not only do they want to bourke dooney handbags grow out of their shoes dooney bourke bags but shape of their feet changes which means every time we dooney bourke outlet the time comes to get dooney bourke totes a new pair of shoes eveyone NIKE SHOX a good choice to get NIKE SHOX SHOES it with a high material SHOX SHOES that breathes easily on random moncler They should be extended runs moncler jackets give enough support to athlets moncler coats especially around the ankles area moncler vest to avoid injury your ankles discount moncler outlet when you make your trip discount moncler t-shirt something in store possible fit cheap ugg boots his is also the way to discount ugg boots that don't fit properly only ugg boots it focuses on your convenience classic ugg boots but they are not returnable ugg classic tall boots to move forward with quality discount ugg boots in the minds of the people classic ugg boots consumers all over the world ugg classic tall boots among public and new styles vibram five finger modern technology and best quality Five finger shoes all these efforts is consumers vibram 5 fingers for game and daily life vibram kso your daily life as well as vibram running shoes suitable for all category people

weddingdresses said...

I just have this energy level that I've never had before. The only thing that's changed is I've started wearing my Power Balance bracelet and nike running shoes
Power Balance wholesale
Silly Bands
Reebok Easytone

2011bagnews said...

You see your popular superstar donning a pair of ray ban wayfarer 2113 gorgeous Ray ban sunglasses. Your center skips a beat. dfgkcxy0rtw You catch your breath. and you also totally know you have obtained to own the specific pair your idol have. Every participant regardless with the activity performs tries to hold a pair of ray ban wayfarer 2151 . particularly if you ever certainly are a biker, rock climber, diver, cyclist as well as skier these Ray ban sunglasses are need to for you. They not simply guard your vision from dirt and dirt but in addition protect on the ray ban 3016 damaging ultra violet radiations.The pattern and materials of Ray ban sunglasses is in most cases pretty higher good quality having a lighting frame. This helps make it
ray ban 3029 for sportsmen to put on them through the game. Before you go rushing out on the shop or buy superstar Ray ban sunglasses via your trusted on the net seller, give some believed to many suggestions just before forking above your hard-earned money.First, make certain how the ray ban 3132 you're purchasing are 100% ultra violet protected.