Fedora Linux Support Community & Resources Center
  #31  
Old 19th September 2007, 09:52 PM
matth45 Offline
Registered User
 
Join Date: Jun 2007
Posts: 160
I actually ran through most of that a couple months ago, and posted about it here:

http://ubuntuforums.org/showthread.php?t=442483&page=9

I never tried booting from the recompiled dsdt, but given the warnings I thought it wouldn't make much of a difference. I could be wrong though - maybe I'll give that a try.
Reply With Quote
  #32  
Old 20th September 2007, 08:00 AM
guyc Offline
Registered User
 
Join Date: Aug 2007
Posts: 20
Missed that, but it confirms my suspicions somewhat - from what I read acpi functions not returning a value is exactly what causes linux to crash but is ignored in Windows (in any honest compiler it would be considered an error). Also, I'm worried about the Windows only functionality. You would think passing acpi_osi="Linux" could help there, but one wonders.

I doubt it will make much of a difference if you boot from it without repairing the problems first.

By the way, did you have any luck with the handwriting recognition software I mentioned/find something better?
Reply With Quote
  #33  
Old 20th September 2007, 03:46 PM
matth45 Offline
Registered User
 
Join Date: Jun 2007
Posts: 160
Interesting observation! I did actually look at the code when I posted that - It was a structure like:

if (condition1) {
blah
return value;
}
if (condition2){
blah
return value;
}

// no return statement here
end of function;

From what I recall, I remember thinking condition1 and condition2 were exclusive - so it couldn't actually leave the function without returning - it would just cause a compiler warning. That's why I ignored it.

But I admit it was a bit lazy of me not to try it. If I have a chance this weekend I'll take a look.

Thanks for the recommendations on the handwriting stuff. I like cellwriter, but I'm not sure it's practical to actually use it

Since I have messy handwriting I don't think jarnal would work for me. I haven't tried gournal yet either. My basic problem with just typing (which would probably be faster than handwriting for me as well) is that the notes I'd like to take are usually about 70-80% figures, which is hard to enter in the likes of lyx. But thank you again for the suggestions - you saved me a lot of googling!
Reply With Quote
  #34  
Old 20th September 2007, 04:34 PM
guyc Offline
Registered User
 
Join Date: Aug 2007
Posts: 20
Actually, no. There are two paths to no return value. Easy to fix though.

Code:
Method (_Q16, 0, NotSerialized)
                {
                    Store (QBBB, Local0)
                    If (LEqual (Local0, 0x00))
                    {
                        Store (QPDD, Local0)
                        ShiftRight (Local0, 0x02, Local0)
                        Add (Local0, 0x02, Local0)
                        If (LEqual (Local0, 0x01))
                        {
                            Notify (\_SB.QBTN, 0x80)
                        }

                        If (LEqual (Local0, 0x02))
                        {
                            Notify (\_SB.DBTN, 0x80)
                        }
                    }
                    Else
                    {
                        If (LEqual (Local0, 0x04))
                        {
                            Store (0x04, \_SB.WMID.Z010)
                            Store (0x00, \_SB.WMID.Z011)
                            Notify (\_SB.WMID, 0x80)
                            Return (0x00)
                        }

,,, Several similar if blocks...

                        Store (0x04, \_SB.WMID.Z010)
                        Store (0x00, \_SB.WMID.Z011)
                        Notify (\_SB.WMID, 0x80)
                    }
                }
Regarding the other warnings - the (apparently tired) programmer executes "And (CTRL, 0x1E)" as a statement. I can't help but think he was trying to set flags in CTRL rather than having no effect whatsoever.
Reply With Quote
  #35  
Old 20th September 2007, 07:31 PM
matth45 Offline
Registered User
 
Join Date: Jun 2007
Posts: 160
Yes, you're absolutely right. QBBB could have had values other than those in the if/else block, so it could fail to execute a return. (I hadn't looked at it since July).

Have you checked out the F.18 bios? I haven't found a way to install it using dos or linux. They claim to have made bug fixes - I'm just curious what those might be.

Any idea how to tell what those registers refer to?
Reply With Quote
  #36  
Old 24th September 2007, 02:42 PM
guyc Offline
Registered User
 
Join Date: Aug 2007
Posts: 20
This code is from F.18. I get ACPI events and proper behavior for a lid close, which I saw someone complaining about in the Ubuntu forum, so possibly they fixed that... I don't remember whether it worked before I upgraded, which I did using my dual-booted Vista.

I tried using the ACPI documentation IBM provides to backtrack along the code and figure some things out, but didn't get very far with the time I had to invest. Also, it looks like some of the code refers directly to hardware addresses.
Reply With Quote
Reply

Tags
driver, evtouch, segfault, x8664

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Driver evtouch fedora 10x64 apis Hardware & Laptops 0 9th April 2009 06:56 PM
livna mplayer, xine and vlc i386 in FC5 x86_64 all segfault. Any one else? bazzoon Using Fedora 21 8th December 2008 08:24 AM
Frequent "general protection" and "segfault" errors on FC5 x86_64 kurtruff Using Fedora 5 7th December 2006 06:27 PM
ATI Driver for FC3 x86_64 thex Using Fedora 7 26th April 2005 06:33 PM
Problem with new x86_64 ATI driver willhunter Using Fedora 9 28th February 2005 02:42 PM


Current GMT-time: 19:55 (Tuesday, 30-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat