Bug 104088

Summary: The asus_acpi module doesn't work on Asus A6726GU laptop
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Jiri Srain <jsrain>
Component: KernelAssignee: Timo Hoenig <thoenig>
Status: VERIFIED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: aj, behlert, dandelion, f-perret, postadal, trenn
Version: Beta 1   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Patch to add support for ASUS A6G models

Description Jiri Srain 2005-08-11 11:49:20 UTC
The module doesn't handle the display properly. It being loaded results in 
- a lot of records in the log (/var/log/messages) 
- big CPU load 
- Messages blinking on the display 
 
This will be problem since the vendor-specific modules will be loaded by 
default (according to a mail from suse-dist). 
 
Timo already has a solution tested on affected laptop.
Comment 1 Timo Hoenig 2005-08-11 11:55:39 UTC
Here it goes. The upcoming patch adds support for the laptop to the ASUS ACPI driver. The patch is 
against our beta 1 kernel which includes the mainline ASUS ACPI driver. I'll send the patch to the 
driver developers, too.

Please review.
Comment 2 Timo Hoenig 2005-08-11 11:57:00 UTC
Created attachment 45719 [details]
Patch to add support for ASUS A6G models
Comment 3 Thomas Renninger 2005-08-11 12:03:23 UTC
I wonder why it was loaded at all before adding the A6G string?
Or did it fall into some generic A6x case which does not comfort the A6G?
Comment 4 Timo Hoenig 2005-08-11 12:08:40 UTC
It has not returned -ENODEV because it detects that it is a ASUS laptop. Hence, the module was 
running with "default" settings:

       if (hotk->model == END_MODEL) {
                printk("unsupported, trying default values, supply the "
                       "developers with your DSDT\n");
                hotk->model = M2E;

This might work for other models.

If we don't like it we could return -ENODEV. But in my opinion this is way to conservative. If one runs 
into problems we're happy to know and fix it (like I did for Jiri's machine).
Comment 5 Thomas Renninger 2005-08-11 14:15:58 UTC
Sounds sane.
I build a kernel (there were also other problems) for Jiri (queen-trenn-12).
We should add it if it works for him.
Comment 6 Hubert Mantel 2005-08-12 10:10:06 UTC
Thomas, I will be on vacation on Monday. So if testing shows that the fix is
fine, please submit to the kernel CVS or have some other hacker do it. Timo, one
remark: When submitting patches into bugzilla, please mark them as "patch"
(there is an explicit checkbox for that). Makes life for many people easier as
one does not need to download the patch before being able to look at it.
Comment 7 Timo Hoenig 2005-08-12 10:17:04 UTC
(In reply to comment #6)

> Timo, one remark: When submitting patches into bugzilla, please mark them as "patch"
> (there is an explicit checkbox for that). Makes life for many people easier as
> one does not need to download the patch before being able to look at it.

Yes, will do next time. I found that option right after attaching the patch last time...

If we are accepting this patch, I'd like to rework it once more to support another three additional 
ASUS laptops.  I will look for people having these models for testing, otherwise I won't add those 
models to the upcoming patch.

Comment 8 Jean-Christophe Choisy 2005-08-24 18:33:41 UTC
Please note that this bug also exists with my Asus V6800V (V6V). The symptoms
are exactly the same. The driver uses some generic support, since this is an
unsupported model, and this creates chaos ;)

Hope it gets fixed also for my V6.

Note: I didn't try Beta2, but I'll sure download Beta3 when it's out.
Comment 9 Timo Hoenig 2005-08-24 19:24:13 UTC
Great! Good to have someone with a V6.

If submitted an updated patch which also includes support for the V6.  Though, this patch will _not_ 
yet be included in Beta 3.  It would be nice if you could either test Beta 4 (which hopefully will be 
released with the updated patch) or I can attach the updated patch to bugzilla so you can compile 
and test the module yourself.
Comment 10 Jean-Christophe Choisy 2005-08-25 02:30:09 UTC
As I'm completely new to the whole SuSE world, I'm not sure I'll dare
re-compiling the whole kernel from SRPMS, which seems way more complicated than
just downloading a tarball off kernel.org and building it... But anyway, as I
really hope SuSE 10.0 works perfect on this laptop, I'll be sure to try all the
future betas, and 'abuse' bugzilla acordingly, trust me... ;)
Comment 11 Andreas Jaeger 2005-08-25 06:41:12 UTC
DAnny, please explain the kernel-of-the-day...
Comment 12 Timo Hoenig 2005-08-25 08:12:57 UTC
(In reply to comment #10)
> As I'm completely new to the whole SuSE world, I'm not sure I'll dare
> re-compiling the whole kernel from SRPMS

There will be no need for that. We have KOTDs (kernel of the day) you can simply install. No need to 
compile anything. I'll let you know once we got the patch in our tree.
Comment 13 Thomas Renninger 2005-09-01 09:59:53 UTC
Reassign to thoenig. Assign it to a kernel hacker with kernel cvs write rights
(mantel/pavel/ak) if you need a patch in the kernel.
Comment 14 Timo Hoenig 2005-09-06 08:25:08 UTC
Jean-Christophe: Could you please install Beta 4 an let me know whether the module works for you 
now?
Comment 15 Perret Florian 2005-09-06 08:49:42 UTC
Is there a link with https://bugzilla.novell.com/show_bug.cgi?id=114960 ?
Comment 16 Timo Hoenig 2005-09-06 09:46:50 UTC
Basically, yes. The current problem is that the driver will load on unsupported ASUS laptop with some 
default values which are not sane. Thus, reading the LCD brightness triggers an error and causes 
the writes errors syslog. Since kmilo of KDE polls the LCD brightness at a insane rate the syslog gets 
bloated.

We will try to support as many ASUS laptop by the driver and drop the fallback option of the 
acpi_asus module to load with default values for unsupported systems.
Comment 17 Timo Hoenig 2005-09-09 12:50:38 UTC
Jiri, can we close this one?
Comment 18 Jiri Srain 2005-09-09 14:44:21 UTC
Yes, I think we can close this one (as it si not related to the ec-burst mode 
which still doesnt' work :-( ) 
Comment 19 Timo Hoenig 2005-09-09 17:42:40 UTC
You're referring to the delay of hotkeys on ASUS laptops?
Comment 20 Jiri Srain 2005-09-09 20:27:39 UTC
Yes, exactly.