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.

    Help a new linux user out, m11x r2

    Discussion in 'Linux Compatibility and Software' started by Dalli, Feb 8, 2011.

  1. Dalli

    Dalli Notebook Consultant

    Reputations:
    15
    Messages:
    127
    Likes Received:
    0
    Trophy Points:
    30
    ok guys, i need demi gods please~~~

    How can I do this? in my ubuntu 10.10

    FedoraForum.org - View Single Post - Alienware M11X Thread

    Where do i put those attached files?

    Also the /etc/rc.d/rc.local in my linux is etc/rc.local

    Ok i got past that but now

    echo 0 >/sys/bus/pci/devices/0000:01:00.0/enable
    echo 1 >/sys/bus/pci/devices/0000:01:00.0/remove
    /sbin/insmod /usr/local/lib/m11xr2hack.ko
    /sbin/rmmod /usr/local/lib/m11xr2hack.ko

    The bolded arent there, when i type this in, it says no such file or directory

    please help

    my goal is to disable the dedicated gpu ( gt 335m) and activate the integrated ( intel HD).

    I have the m11x R2

    Thanks,
    Dalli
     
  2. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    The missing instructions for that are in this post:
    You need to have build-essential and git-core packages installed, and probably your kernel headers:
    Code:
    sudo apt-get update && sudo apt-get install build-essential git-core linux-headers-`uname -r`
    Then pull in the acpi_call stuff into your home directory (~/), move to the directory where the source is, download the source file from the post you linked, move the stock makefile out of the way, then pull in the makefile from the post you linked.
    Code:
    cd ~
    git clone http://github.com/mkottman/acpi_call.git
    cd acpi_call
    wget -O m11xr2hack.c http://forums.fedoraforum.org/attachment.php?attachmentid=20129
    mv Makefile Makefile.old
    wget -O Makefile http://forums.fedoraforum.org/attachment.php?attachmentid=20130&d=1285685283
    
    Finally, build the module:
    Code:
    make
    If you don't see "Error: blah blah blah", your m11xr2hack.ko should be somewhere in that directory. If not, and the build didn't work, post the error message and I'll try to figure out where it broke.

    Now you're ready to test it out. First open another terminal window and run sudo tail -f /var/log/syslog
    In the other window, try the module to see if it works:
    Code:
    sudo insmod m11xr2hack.ko
    If you don't get any error messages in syslog, you can copy the kernel module into the place they want:
    Code:
    sudo cp m11xr2hack.ko /usr/local/lib
    sudo chmod 0400 /usr/local/lib/m11xr2hack.ko
    You can then rmmod and insmod it with that line you tried.
    Code:
    sudo /sbin/rmmod /usr/local/lib/m11xr2hack.ko
    sudo /sbin/insmod /usr/local/lib/m11xr2hack.ko
    I just tried the above on Debian Sid and all went fine. I just don't own the hardware to test it on. ;)
     
  3. Thaenatos

    Thaenatos Zero Cool

    Reputations:
    1,581
    Messages:
    5,346
    Likes Received:
    126
    Trophy Points:
    231
    I have toyed with running 10.10 server on my m11x, the only issue would be the color keyboard. I like that feature, even though I only use one color, its nice to see and use. Maybe if I get bored tonight Ill setup a VM and test it out...
     
  4. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
  5. Thaenatos

    Thaenatos Zero Cool

    Reputations:
    1,581
    Messages:
    5,346
    Likes Received:
    126
    Trophy Points:
    231
    Although my m11x retains the windows settings for lights and I don't plan on changing my settings. But I think I may try this to at least be able to customize.
     
  6. Dalli

    Dalli Notebook Consultant

    Reputations:
    15
    Messages:
    127
    Likes Received:
    0
    Trophy Points:
    30
    Everything is good till

    I open another terminal and run... I type "sudo tail -f /var/log/syslog"
    without quotes
    Everything is good so far

    then when you said "In other window, try the module to see if it works:"

    By what you wrote, i just went back to the original terminal and typed in what you told me to type: "sudo insmod m11xr2hack.ko"

    This is what i get in return after typing that:

    " insmod: error inserting 'm11xr2hack.ko' : -1 file exists "

    Thank you for your help so far

    I am redoing the link i posted because when i go into the directory i posted, m11xr2hack.ko is there

    now i got this problem


    echo 0 >/sys/bus/pci/devices/0000:01:00.0/enable
    echo 1 >/sys/bus/pci/devices/0000:01:00.0/remove
    /sbin/insmod /usr/local/lib/m11xr2hack.ko
    /sbin/rmmod /usr/local/lib/m11xr2hack.ko

    I get Permission denied

    xD

    help!
     
  7. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    That -1 file exists error means the module is already loaded -- so you're past that step.

    Where you're getting permission denied, you need root privileges, so put sudo before those commands, or just run sudo -s first (your prompt will change from $ to # so you know you have root).

    As far as I can tell from what you've said, you should have the module working already now, so you should be good to go.
     
  8. Dalli

    Dalli Notebook Consultant

    Reputations:
    15
    Messages:
    127
    Likes Received:
    0
    Trophy Points:
    30
    ok i think it worked because i am at 15434 mW discharge, before i saw 20~23k mW

    Thank you, if you have any idea on how to make this lower, i will happily follow your instructions.

    reps!

    EDIT
    13423 mW, with wifi off, no lights, no cooler attached and less heat coming from laptop

    your the best!, i am looking at tear down pics of the m11x r2 currently ( trying to look for good ones)

    and ill tell you if my dedi card is totally off or what

    EDIT

    I restarted the laptop, its back to phase 1, is there a way to permanently shut off the dedicated card for linux?

    EDIt
    or do i have to keep inputing:
    sudo /sbin/rmmod /usr/local/lib/m11xr2hack.ko
    sudo /sbin/insmod /usr/local/lib/m11xr2hack.ko

    in terminal on every start up?

    thank you again!
     
  9. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    To get the module to load automatically at startup, you should be able to paste your commands into /etc/rc.local as they have shown, there are other (cleaner) ways but they are more complicated.
     
  10. Thaenatos

    Thaenatos Zero Cool

    Reputations:
    1,581
    Messages:
    5,346
    Likes Received:
    126
    Trophy Points:
    231
    Nice! Down to 13.4watts on linux! Im still waiting for the time to disable the nvidia card. Keep up the good work guys.
     
  11. User Retired 2

    User Retired 2 Notebook Nobel Laureate NBR Reviewer

    Reputations:
    4,127
    Messages:
    7,860
    Likes Received:
    10
    Trophy Points:
    0
    An alternative you could try also to switch off either gpu would be to put setpci commands in the /boot/grub/grub.cfg to disable the IGP or GT335M from being on the PCI BUS altogether. Eg:

    Code:
    [B]Disable IGP[/B]    : setpci -s 0:0.0 54.b=0:8
    [B]Disable GT335M[/B] : setpci -s 0:0.0 54.b=0:2
    
    [B]Enable IGP[/B]     : setpci -s 0:0.0 54.b=8:8
    [B]Enable GT335M[/B]  : setpci -s 0:0.0 54.b=2:2