The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Linux on the new Compal machines and buggy BIOSes

    Discussion in 'Other Manufacturers' started by barspi, Oct 6, 2006.

  1. barspi

    barspi Notebook Consultant

    Reputations:
    174
    Messages:
    102
    Likes Received:
    0
    Trophy Points:
    30
    I started writing this as a reply on another thread but then decided to start a new one so everyone can benefit :)

    (and don't be misguided by the title, I still think it's a GREAT machine and am still discovering it)

    Pitabred: are you running some distro of Linux on a Hel80?
    I have been trying the latest Mandriva and a beta of Kubuntu. Both look great in many respects and both detect a lot of the hardware correctly. (I have moderate hope of making the webcam work and almost none about the fingerprint scanner, but I don't care much).

    The main problem, though, is the ACPI implementation of the BIOS. I'm upgraded to the latest 110B but nothing changed. In particular, I can't detect CPU temperature (and fan control but maybe this would be stretching my luck).
    The HEL80 BIOS imlpementation of ACPI seems to be quite non-standard, if not buggy (I had a couple of PCI error messages when booting the machine, even before loading the OS)
    In Linux I've tried the latest kernels (2.6.18) and the latest lm_sensors. The sensors-detect utility went through all the process of chipset detection and failed to get any information about temperature and other ACPI stuff.

    Another problem which may be related to te BIOS is that I have no way to access the hard drive SMART information. So the the SATA BIOS implementation has some non-standard issues as well.

    Now, on Windows I've tried Everest and it recognized everything. I could read CPU temperatures (around 30 celcius when idle, quite cool!!!!!), and hard drive around 42-45 which is much better than my old system, especially if you consider my HEL80 has a 7200rpm drive while my old Sager has a 5400rpm (and temperatures reaching 50 degrees or more). Of course, this is after installing the Chipset drivers that come on the CD.

    Having CPU temperatue readings in Linux is not extremely important, especially now that I know the normal temperatures are low. But I had to install Windows in order to test that. Something I had been resisting :)

    I'm, interested to share Linux experiences with the forum.
    Maybe a list of what works out of the box and what doesn't, under what distros, and what workarounds you have found.
     
  2. OttoRitter

    OttoRitter Notebook Geek

    Reputations:
    1
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    15
    Latest Kubuntu:

    What Works:

    -Wireless Card
    -3d acceleration
    -sound
    -network card
    -X-Window

    What doesn't work:
    -FingerPrint reader
    -Webcam
    -Quick access keys and FN keys

    Otto.
     
  3. barspi

    barspi Notebook Consultant

    Reputations:
    174
    Messages:
    102
    Likes Received:
    0
    Trophy Points:
    30
    that's a very initial list :)
    With respect to the media & Fn keys, I've had mixed success by changing the keyboard layouts under KDE. Kubuntu immediately recognized the mute and volume keys. Also the media keys on the left seem to start Amarok. LCD brightness seems to be down level in the BIOS or something so they always work. If you look in /var/log/messages, when you press the quick access 1 and 2 keys, there's a log there with the unrecognized key codes, so I'm sure they can be mapped unto something after reading some man pages.
    I'm mostly using Mandriva as the Kubuntu live disc (beta) looked magnificent but did not want to install (the install process stopped when asking for timezoneinfo).

    If I have time, I'll try to do a better grid/table of what works and doesn't and the workarounds under the different distros.
     
  4. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    First off, I don't have my Compal yet. Got the Core 2 Duo, etc., so it should hopefully arrive next week ;) And I'm getting an HGL-30, not an HEL-80.

    Buggy ACPI is common. Welcome to Linux. It's gotten much better over the years. But the driver still has a number of custom dsdt tables and workarounds hard-coded into it because of so many buggy ACPI implementations, primarily in laptops. Manufacturers don't test them very well, and they do more "custom" things in laptops.

    But I'm finding it strange that you can't get SMART info on your hard disks.
    "sudo smartctl -H /dev/hda" doesn't work?

    What you can do with mapping keycodes is look at the "xmodmap" command, should get you started.

    What layouts did you change in KDE? I'm planning on using Kubuntu, so if you can give me a quick jump on things I'd want to config, I'd be much obliged :) I'm planning on keeping track of what I have to do on my machine, and if I write any custom scripts or anything I'll make sure I post them here in the forum.
     
  5. barspi

    barspi Notebook Consultant

    Reputations:
    174
    Messages:
    102
    Likes Received:
    0
    Trophy Points:
    30
    Well, right now I'm under KDE and the keyboard layout I'm using is "Hewlett-Packard Pavilion ZT11xx". Why? I don't know :) I've tried most of them and none recognizes ALL the keys but this one recognizes the most important ones i guess.

    What works: (HEL80, Mandriva 2007, KDE 3.5.4)
    Fn-F4 and Fn-F5, for LCD brightness, which as I said, are coded in a lower level BIOS so they always work even in the POST screen :)

    All the media Fn keys (Fn-F6 to Fn-F1, which are recognized correctly as XF86AudioMute, VolumeUp, VolumeDown, AudioPlay, AudioStop, AudioPrev, AudioNext respectively).

    Fn-ScrlLk and Fn-PrtSc also worl. Fn-SysReq I'm not sure...

    The HEL80 has extra media keys on the left side of the keyboard.
    The first one from the top, "Mode On/Off", is not recognized in any way that I see so far, not even error messages in /var/log/messages.
    The other three are recognized as XF86AudioNext, AudioPlay and AudioPrev which matches the icons on the left (on the right they have icons for +, stop, -).

    This machine also has quick access buttons on the top. The email button fires the email application (KMail), recognized as XF86Mail, the web button is seen as XF86WWW but I guess is not mapped to anything which is easy to solve.

    As for the "1" and "2' keys, they are not immediately recognized in this keyboard layout (don't remember other layouts), but /var/log/messages says:

    atkbd.c: Unknown key pressed (translated set 2, code 0xf4 on isa0060/serio0).
    atkbd.c: Use 'setkeycodes e074 <keycode>' to make it known.
    atkbd.c: Unknown key released (translated set 2, code 0xf4 on isa0060/serio0).
    atkbd.c: Use 'setkeycodes e074 <keycode>' to make it known.


    atkbd.c: Unknown key pressed (translated set 2, code 0xf3 on isa0060/serio0).
    atkbd.c: Use 'setkeycodes e073 <keycode>' to make it known.
    atkbd.c: Unknown key released (translated set 2, code 0xf3 on isa0060/serio0).
    atkbd.c: Use 'setkeycodes e073 <keycode>' to make it known.

    So I guess they could be made to work for something useful. with a little keyboard configuration.

    As for the first three Fn-Fn keys (Fn-F1 has a half moon I guess for suspend, Fn2 looks like a WiFi icon, and Fn-F3 looks like LCD/VGA switching) they don't do anything at all in any keyboard layout...

    I guess that covers all the special keys on this laptop under my very constrained domain of tests ;-)
     
  6. pyro9219

    pyro9219 Notebook Deity NBR Reviewer

    Reputations:
    371
    Messages:
    1,407
    Likes Received:
    0
    Trophy Points:
    55
    Any updates on your testing of the few things that dont work?
     
  7. barspi

    barspi Notebook Consultant

    Reputations:
    174
    Messages:
    102
    Likes Received:
    0
    Trophy Points:
    30
    In fact in the past two days I've had to sissify myself and booting into Windows to finish a project. It's faster to transfer all the code and configs from my old machine than to punching Linux into working my way.
     
  8. barspi

    barspi Notebook Consultant

    Reputations:
    174
    Messages:
    102
    Likes Received:
    0
    Trophy Points:
    30
    But let me add some stuff:

    === nVidia 7600 Support ===
    In Mandriva One, the 3D driver installed automagically so I had the 3D Compiz desktop (GLX mode) with the flying cubes, wobbling windows, and real transparencies that you may have seen on the web. I also had some success with the new nVidia beta drivers (9625, I think), that I installed under a kernel-multimedia-laptop-smp.2.6.17.BLABLABLA. Mandriva gave me the option to use AIGLX instead,but I couldm't get Compiz to start, getting the same old (new!) KDE. On the good side, the new driver had an nvidia-settings utility in which dynamic TwinView finally worked withtout having to restart X in order to get different modes (LCD only, LCD+external VGA in clone mode, LCD+external VGA in extended desktop mode). Still not as flexible as Windows for the easy stuff, but getting there. And if you are into editing xorg.conf for a whole weekend, you'll get a fine level of configuration that you may not have in Windows.

    === CD Burning ===
    I burned CD's with the included K3B in Mandriva One. It worked well, except that it was much slower than I expected, averaging no more than 10X speed and the device buffer getting dangerously to 0% many times.
    I'm not sure whether the problem lies in:
    * The CD drive itself
    * The BIOS
    * Linux's approach to interfacing witht the BIOS and its drivers for cdrom
    * K3B and it's underlying libraries (cdrecord I think)
    * The CD media itself, although I've used these same CD-R's from the same package in Nero under Windows and I've burned at 16X (that's how I burned the Mandriva One CD).

    This is my first time ever burning CD's in Linux so I'll have to experiment more.
    An md5 check of the media after burning came exactly the same as the original ISO's, for the 5 CD's I burned, so nothing got corrupted, just slow.

    === Suspension & Hibernation ===
    Again, in the latest mandriva. Suspension worked perfectly after enabling ACPI helper from the KLaptop application. I can suspend from the KLaptop context menu and I configured to suspend when closing the LCD lid. The Fn button to suspend didn't work as I explained above. Not only suspension worked fine, but resuming also!!!! That's the important part :)
    In the pase, with older distros and older machines I had trouble resuming, sometimes Linux rebooting completely and even getting into a rebooting loop.

    For hibernation, I downloaded the hibernate package/RPM which uses some new suspend2 features in the kernel to help with hibernating. But I never got around configuring it (you have to pass a suspend2= parameter to the kernel, I guess telling it where the hibernate file is.) I'll try it when I go back to playing with Linux.
     
  9. pyro9219

    pyro9219 Notebook Deity NBR Reviewer

    Reputations:
    371
    Messages:
    1,407
    Likes Received:
    0
    Trophy Points:
    55
    XGL Works great here too, but its not practical... and irritating that you have to relog the themer in order to turn it off when you want to use any 3d applications..

    I prefer 3d desktop over compiz... its still the same amusing spinning cube.. but no restart needed..

    New version of X in ubuntu edgy should make installing compiz alot smoother for people..
     
  10. barspi

    barspi Notebook Consultant

    Reputations:
    174
    Messages:
    102
    Likes Received:
    0
    Trophy Points:
    30
    I did it again, presssed the wrong button while on quick reply...

    I was saying that XGL uses a dirty trick, creating a full screen OpenGL and starting an new server on it, assigning it X screen :93
    If you do (in a shell) export DISPLAY=:0 then you can start new gl applications from that shell, but they may be pbscured under the full screen :93
    But there a key combo (Alt-11 ??) that will give borders to your full screen and you can move it around and reveal the :0 under it :)

    Anyway, AIGLX is supposed to work without all these dirty tricks but only a few chipsets support it so far. The new nVidia drivers (beta) supposedly do
     
  11. pyro9219

    pyro9219 Notebook Deity NBR Reviewer

    Reputations:
    371
    Messages:
    1,407
    Likes Received:
    0
    Trophy Points:
    55
    Still alot of resources for eye candy =P...

    Either way, I have it installed just for grins :D
     
  12. shadowing

    shadowing Notebook Enthusiast

    Reputations:
    0
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    15
    Does anyone know the difference between Beryl and Compiz here? From what I understand, Beryl is a fork of compiz...

    Btw, is it easy to install compiz/Beryl on the HEL80? (So far it doesn't seem good :p)
     
  13. barspi

    barspi Notebook Consultant

    Reputations:
    174
    Messages:
    102
    Likes Received:
    0
    Trophy Points:
    30
    Yes, I've read about the fork. There's a good article in Wikipedia somewhere explaining the differences.
    As for easines to install. I think it's as easy/difficult in a HEL80 as in any other computer. It's more a matter of how well your distro packages things, or how well you compile it yourself and have all the dependencies.
     
  14. shadowing

    shadowing Notebook Enthusiast

    Reputations:
    0
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    15
    I wonder how using purely Debian would do compared to Ubuntu on the HEL80.
     
  15. pyro9219

    pyro9219 Notebook Deity NBR Reviewer

    Reputations:
    371
    Messages:
    1,407
    Likes Received:
    0
    Trophy Points:
    55
    Think of Ubuntu as a more polished for home use version of Debian.. Debian very well could be molded into Ubuntu... and the same is true going from Ubuntu into Debian... they are both just an interpretation of the best stuff to package with linux.. Ubuntu is just a more streamlined way to get there using the same options, they both use deb sources..

    Long story short... Debian is a little more designed for people who buy the puzzle to put it together...
    Ubuntu is a little more designed for people who want to just appreciated the image when its done..
     
  16. defsquad

    defsquad Notebook Guru

    Reputations:
    12
    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    15
    great analogy.
     
  17. mechmyday

    mechmyday Notebook Enthusiast

    Reputations:
    13
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    5
    I've got SuSe 10.1 dual booted with XP right now and I'm pretty happy with it so far.
    Here are the things I haven't gotten working yet.
    • Media Keys (though I think these I pretty easy to get working)
    • Camera (although I did find a driver, I just need to figure out how to compile it)
    • Fingerprint Reader (Is there any biometric software for linux anyway?)
    • Card Reader - If anyone has any ideas on how to get this working, I'd appreciate it.
    • ACPI - Can't get suspend to work unfortunately

    Other than that, I pretty impressed so far.
     
  18. Nemesis77

    Nemesis77 Notebook Enthusiast

    Reputations:
    0
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    5
    Well, there's a lot more to Compiz than just that spinning cube. Think fading and transparent windows, genie-effects when minimizing windows etc. etc. 3ddesktop only gives you the 3D-effect when switching virtual desktops.
     
  19. pyro9219

    pyro9219 Notebook Deity NBR Reviewer

    Reputations:
    371
    Messages:
    1,407
    Likes Received:
    0
    Trophy Points:
    55
    I understand that, I've used both on and off for a couple months now... However... the only effect I ever noticed was the cube... I dont like jiggly windows.. I dont care about transparency(already had that without compiz), window snapping I've had for about 3 years in linux and windows... Real-time preview when I alt tab? why do I care? I'll get the realtime part when I switch to the window =P

    Just my personal take on the situation... All in all, its the fact that it interferes with hardware accelerated applications that keeps me away.. I'll be doing the same with Aero, or glass, or whatever Vista chooses to call it.. (wont really matter if I dont every upgrade) =P
     
  20. Nemesis77

    Nemesis77 Notebook Enthusiast

    Reputations:
    0
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    5
    It does? How, exactly?
     
  21. pyro9219

    pyro9219 Notebook Deity NBR Reviewer

    Reputations:
    371
    Messages:
    1,407
    Likes Received:
    0
    Trophy Points:
    55
    Try running something (openGL, as in a 3d game...) while running compiz... its the same thing for AERO in Vista... its also a huge battery drain... also.. in Vista..

    Compiz and aero both require your gpu to be in "3D mode" just to render your desktop... now run a 3D game ontop of that and its like having two 3D games running at the same time..
     
  22. OttoRitter

    OttoRitter Notebook Geek

    Reputations:
    1
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    15
    How long untill we see motherboard shipping with dedicated video card for the windows manager?

    Otto.
     
  23. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    So THAT'S what SLI is for... hehe
     
  24. pyro9219

    pyro9219 Notebook Deity NBR Reviewer

    Reputations:
    371
    Messages:
    1,407
    Likes Received:
    0
    Trophy Points:
    55
    All our advances from rebooting our machines from Windows into Dos for gaming, and look we were are... back where we started... (restart the theme manager without compiz to play games, restart again to turn it on)

    /begin crazy engineer

    Now technology has taken a step further... we amazing engineers have created a new band-aid! Substituting expensive hardware, for sloppy software! Yes! We did it again! First we got you to buy faster processors... then when we got greedy we made you buy two cores.. when we knew one was enough! Then, when that wasn't enough, we decided to take the cheapest hardware in the system (that effects performance) and make you buy twice as much!

    Now... brought to you buy the makers of maxed out bank accounts... comes the NEXT PHASE IN TECHNOLOGY... DUAL DUAL dual dual dual VIDEO video video (echo here) WE CALL IT!!! SLI... whats this amazing word stand for? Spenders Love Innovation!

    Mwahhaha.. now we can write even sloppier code! Or better yet! We can port all our video renderers to Virtual Machines! (.NET =P) so that next year we can sell them QUAD CORES with 4X the ram!!

    Why can we get away with it? Because you crazy talking wallet, people can justify spending money on a product from a factory where they can visualize the expensive machines that make it... What they can't visualize is the years teams of humans put into writing code to be the next great thing...

    /end crazy engineer.

    Want a real world example... run a dual boot linux/xp machine and play any officially supported game... (think unreal series) Notice the difference in FPS and gameplay? Linux is farther behind in the market because the people making it usually are pasionate for their code...(gpl ect = no money reward)

    Lesson learned is? Working is not the same as working well...

    EDIT::
    No I dont know where I was going with this whole rant... but I guess it needed to be said =P
     
  25. soling

    soling Newbie

    Reputations:
    0
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    5
    And what about "crazy mouse", did anyone of you experience it?

    I have openSUSE 10.2, ant that crazy mouse makes me crazy.
     
  26. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    you have to restart your theme manager to play games? Weird. I just start up my OpenGL games and they run under Linux.
     
  27. pyro9219

    pyro9219 Notebook Deity NBR Reviewer

    Reputations:
    371
    Messages:
    1,407
    Likes Received:
    0
    Trophy Points:
    55
    If running compiz I couldn't run 3D games, because I suffured horrible FPS lost... its a commonly known issue when using the wobbly window/glass/other features...
     
  28. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    I'm using Beryl. It works fine... though it does lock up fairly often ;)
     
  29. ppan234

    ppan234 Newbie

    Reputations:
    0
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    5
    hey there,

    I'm currently dual-booting my HEL80 with xp and a clean debian/etch, so far everything seems to be in working order :)

    the things I did not get to work under debian are mostly what I expected:

    - sensors are not detected (no thermal / fan speed info)
    seems like this is normal for ENE using notebooks, just another company that forgets about its linux customers
    - dial-up modem (agere hda winmodem) does not work
    did not check extensively on this one, perhaps s.o. here has further informations?
    - fingerprint sensor
    well, I use it for fun under xp (which is a pure gaming platform), but would never do sensitive work with it. would be funny to get it working under linux tho.
    - sd-card reader
    same as with the sensors, this seems to be an ENE issue. this is probably the most annoying issue under linux.

    so far, I'm in love with linux on my notebook.. so getting those tiny nitbits to work would be just great :)

    have fun
     
  30. Raliegh Hammer

    Raliegh Hammer Notebook Enthusiast

    Reputations:
    7
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    5
    I fixed the DSDT for the HEL80/81 to enable thermal monitoring.

    Get it here: http://acpi.sourceforge.net/dsdt/view.php?id=660

    In a nutshell, Linux allows you to load an alternate DSDT at the start of the
    kernel boot process. You'll have to compile a custom kernel that points to this
    file in order to get it to work.

    Raliegh
     
  31. f4ding

    f4ding Laptop Owner

    Reputations:
    261
    Messages:
    2,085
    Likes Received:
    0
    Trophy Points:
    55
    Any chance that will work with HEL30?
     
  32. Raliegh Hammer

    Raliegh Hammer Notebook Enthusiast

    Reputations:
    7
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    5
    Unfortunately, no. It requires
    1: extracting the existing DSDT table
    2: decompile it,
    3: edit it, recompile and test, repeat #3 until it works.

    If you could extract your DSDT table following the instructions at the bottom of
    http://acpi.sourceforge.net/dsdt/index.php , Id be more than happy to review it
    to see if the fix to add cpu thermal monitoring is trivial. I've done 2 Compals
    so far, and their bios's are similar.

    --Raliegh
     
  33. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    I'll check it out sometime this weekend, I think. I may be able to hack up the BIOS DSDT directly with the Phoenix editing tool you can get from bizcom. Dunno though.
     
  34. Raliegh Hammer

    Raliegh Hammer Notebook Enthusiast

    Reputations:
    7
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    5
    If youre running Linux right now, then simply

    cat /proc/acpi/dsdt > dsdt.aml

    will dump the dsdt image file. The tools to
    decompile/compile it are free from Intel, and not all that difficult. If you get
    that far, download the Compal DSDTs that I created and compare the code
    to yours, you may just see missing section and copy the code snippet from
    my file to yours.

    http://acpi.sourceforge.net/dsdt/view.php?id=495
    and
    http://acpi.sourceforge.net/dsdt/view.php?id=660

    The latter one would probably be a closer match.
    I'll be happy to advise.

    --Raliegh
     
  35. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    Unfortunately, I'm not. I'm off on a job, so I don't have access to my personal laptop until at least Friday ;) But thanks, I'll let you know as soon as I get into it. I've already imported a new splash graphic and changed some of that scripting, I figure I can't break too much else in it... hehehe
     
  36. barspi

    barspi Notebook Consultant

    Reputations:
    174
    Messages:
    102
    Likes Received:
    0
    Trophy Points:
    30
    Thanks a lot Raleigh!
    I'm the one who originated this thread.
    I'll wait a few days until the latest Ubuntu is released, and I may also try the recently released Mandriva 2007.1 and the tmb kernels (2.6.20.something) to see if they fixed it although I doubt it.

    A few questions though.. you seem to know a lot about these issues:

    1) Your fix seems to be for BIOS Version 1.0, however the latest BIOS versions are something like 1.16 or 1.18... would it work the same?

    2) I found somewhere an explanation of how to use a custom DSDT for some Suse version by beans of creating a new initrd.img and using some parameters.. no need to recompile kernel.. forgive me for the vagueness, I don't have the details here :)
    Do you know anything about that?

    3) The project ACPI at sourceforge.net seems to be a little.. I'd say.. abandoned.. not many recent updates and most tutorials and docs are from 2004-2005. Is it because the recent kernels are much better at ACPI so all these customizations are not needed as often?

    4) Why is it that Windows has no trouble with all these ACPI stuff (no special drivers or anything needed) and the Linux Kernels suck at it?
    Why is it that notebook makers implement the ACPI stuff in such non-standard ways? One would think that if they spend several millions in research&dev, they could invest a couple of weeks to write a good ACPI code....

    5) How does the acpi.sf.net project relate to the lm_sensors project... is there some overlap? I spend a couple of months trying to find answers to my thermal_zone problems in Linux and didn't know what the most appropriate project was in order to ask.

    6) Does the Kernel use some kind of hardware detection to know what ACPI/DSDT code to use?

    7) Can your code be sent to the Kernel guys, or at least to the major distros so they include it? The HEL80 family is quite popular, especially among the most savvy computer users, the ones most prone to be using/wanting to use Linux.


    enough for now :)
     
  37. pyro9219

    pyro9219 Notebook Deity NBR Reviewer

    Reputations:
    371
    Messages:
    1,407
    Likes Received:
    0
    Trophy Points:
    55
  38. Raliegh Hammer

    Raliegh Hammer Notebook Enthusiast

    Reputations:
    7
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    5
    1) Your fix seems to be for BIOS Version 1.0, however the latest BIOS versions are something like 1.16 or 1.18... would it work the same?

    Yes, you could use a 1.0 DSDT with a 1.18 Bios, although a later BIOS could
    have some other fixes in its DSDT, so Id probably rework it for a new version
    if the changelog suggests a ACPI fix of some sort.

    2) I found somewhere an explanation of how to use a custom DSDT for some Suse version by beans of creating a new initrd.img and using some parameters.. no need to recompile kernel.. forgive me for the vagueness, I don't have the details here :)
    Do you know anything about that?

    I don't use inird.img as I always compile my own kernel, and compile in all the
    drivers I need to boot with. To use a DSDT file, you need to be sure your
    kernel is compiled to load a DSDT file from a particular location, mine is
    /usr/src/dsdt.asl. Then, at the start of the kernels boot process, it will load
    that file from the hard drive, parse it in place of the BIOS version, then
    continue on the boot process.

    3) The project ACPI at sourceforge.net seems to be a little.. I'd say.. abandoned.. not many recent updates and most tutorials and docs are from 2004-2005. Is it because the recent kernels are much better at ACPI so all these customizations are not needed as often?

    Its the only solution to fixing missing thermal monitoring in a BIOS. I think
    it is that most modern BIOS's are much better. For some reason Compal
    chooses not to go out of their way to make a full featured BIOS.

    4) Why is it that Windows has no trouble with all these ACPI stuff (no special drivers or anything needed) and the Linux Kernels suck at it?
    Why is it that notebook makers implement the ACPI stuff in such non-standard ways? One would think that if they spend several millions in research&dev, they could invest a couple of weeks to write a good ACPI code....

    I'm not sure Windows is so good at it, it just that Compal finds it easier
    to make a special Windows only app for thermal monitoring by poking
    the hardware directly, rather than follow the ACPI standard to create a
    generic interface to their hardware.

    5) How does the acpi.sf.net project relate to the lm_sensors project... is there some overlap? I spend a couple of months trying to find answers to my thermal_zone problems in Linux and didn't know what the most appropriate project was in order to ask.

    6) Does the Kernel use some kind of hardware detection to know what ACPI/DSDT code to use?

    The kernel reads the BIOS DSDT UNLESS you specify an external file. You
    have to enable ACPI in the kernel in order for the DSDT to be parsed.

    7) Can your code be sent to the Kernel guys, or at least to the major distros so they include it? The HEL80 family is quite popular, especially among the most savvy computer users, the ones most prone to be using/wanting to use Linux.

    Not really, as the kernel by default just loads the BIOS DSDT table. Its really
    not that common to make your own DSDT file and use it. Fortunately Intel
    gave us the tools to hack our own fixes. Most savvy use should be able to
    load an alternate DSDT file from the ACPI site.

    I think a better option would be to hound Compal to incorporate my fixes
    in their next BIOS release :) And we should hound them to stop slacking and
    give their customers a quality BIOS, not one thats just adequate.

    --Raliegh
     
  39. Raliegh Hammer

    Raliegh Hammer Notebook Enthusiast

    Reputations:
    7
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    5
    I missed one :)

    5) How does the acpi.sf.net project relate to the lm_sensors project... is there some overlap? I spend a couple of months trying to find answers to my thermal_zone problems in Linux and didn't know what the most appropriate project was in order to ask.

    In general. ACPI covers standard thermal/fan interfaces that are defined by
    the BIOS's DSDT table. Lm_sensors is a group of drivers that interface to
    the may brands of interface chips that mainboard manufacturers design
    into their boards.

    I spent several months too until one day, just for kicks, I decompiled my DSDT
    to make sure there was thermal monitoring code was there. And it wasn't.
    So by grabbing many DSDTs from the ACPI site, I followed the technique and
    in one evening I managed to get my thermal monitor working.

    After, I tried, unsuccessfully to add code to be able to control the fans
    directly. I feel the HEL80 fans are controlled by hardware only.

    --Raliegh
     
  40. barspi

    barspi Notebook Consultant

    Reputations:
    174
    Messages:
    102
    Likes Received:
    0
    Trophy Points:
    30
    Great! Very thorough in your answers :)
    I'm going to try the new Kubuntu this afternoon...
    Then I'll try to implement your fix
     
  41. imachine

    imachine Notebook Evangelist

    Reputations:
    95
    Messages:
    337
    Likes Received:
    0
    Trophy Points:
    30
    You can use lm_sensors' sensors-detect program, and get your fan speed etc through i2c. This provides capabilities also found on the nvidia graphics chip - which are also i2c, so you access to both temperature on the cpu and gpu. Dunno about fan speed tho since I honestly didn't require it- I can hear the fan anyway, no need to know the exact numbers since it mostly just hangs out on two speeds, or it's off.

    What I'd rather wonder about acpi on the HEL80 is how/if it generates the proper acpi events for example for the power button or ac plugged/unplugged etc.

    So far I had no luck getting acpid to hear for the power button pressing. Closing the lid etc works fine tho- klaptop picks it right off, as I run kde.

    regards,

    //m.
     
  42. barspi

    barspi Notebook Consultant

    Reputations:
    174
    Messages:
    102
    Likes Received:
    0
    Trophy Points:
    30
    maybe a newer version of lm_sensors... I had no success after 1 week of fiddling with lm_sensors under Mandriva 2007 a few months ago

    i'll try the ubuntu 7.04 version...
     
  43. imachine

    imachine Notebook Evangelist

    Reputations:
    95
    Messages:
    337
    Likes Received:
    0
    Trophy Points:
    30
    sensors version 2.10.3 with libsensors version 2.10.3

    is what I have. works flawless. also, coretemp module for the cpu core temperature monitoring.
     
  44. Raliegh Hammer

    Raliegh Hammer Notebook Enthusiast

    Reputations:
    7
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    5
    imachine, thanks for mentioning the coretemp module. I patched my kernel and it works nicely.

    -Raliegh
     
  45. barspi

    barspi Notebook Consultant

    Reputations:
    174
    Messages:
    102
    Likes Received:
    0
    Trophy Points:
    30
    So.. I just installed kubuntu 7.04 and I'm trying to configure stuff...
    many things work nicely... but I cannot find this coretemp module. It's not in the distributed modules and I can't find it in the repositories, at least under that name... how do I get it/install it? is it a dynamic module or do I have to recompile the kernel?
     
  46. Raliegh Hammer

    Raliegh Hammer Notebook Enthusiast

    Reputations:
    7
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    5
    Go to http://www.lm-sensors.org/wiki/Devices , search for the entry for "Intel Core, Core2" and download the 3 patch files, then apply them to your kernel source if you are using a custom kernel.

    Assuming your kernel source is in /usr/src/linux and the patch files are placed
    in /usr/src :

    cd /usr/src/linux
    patch -p1 -F10 < ../patchfile1
    patch -p1 -F10 < ../patchfile2
    patch -p1 -F10 < ../patchfile3
    make xconfig

    Then in xconfig under hardware monitoring, enable the coretemp module. Continue building/installing your kernel and modules.

    To access the temperature readings, use the commands:

    modprobe coretemp
    cat /sys/devices/platform/coretemp.0/temp1_input
    cat /sys/devices/platform/coretemp.1/temp1_input

    The temp is displayed x 1000, ie: 45000 is 45 degrees celsius

    -Raliegh
     
  47. barspi

    barspi Notebook Consultant

    Reputations:
    174
    Messages:
    102
    Likes Received:
    0
    Trophy Points:
    30
    ok.. it's more involved than I thought so I'll fix other issues first, like getting the nVidia drivers installed before I compile my custom kernel :)
    thanks for the info anyway!