Page 2 of 49 FirstFirst 123412 ... LastLast
Results 11 to 20 of 490

Thread: Asus Eee PC 1015PN - graphic cards: Optimus and ION

  1. #11
    Join Date
    Jul 2008
    Beans
    2

    Re: Asus Eee PC 1015PN - graphic cards: Optimus and ION

    well yes i thought i did it. Now i repeated the steps, and now i have with WIFI on about 800mA --> very fine!

    Thanks a very lot for helping!!!

    Greatings

  2. #12
    Join Date
    Jan 2011
    Beans
    65

    Re: Asus Eee PC 1015PN - graphic cards: Optimus and ION

    Edit: The script has been improved and the corresponding text changed, thanks to the help from red-flex. (13/02/2011)
    Edit No. 2: I updated the script, more details in message #1 (16/02/2011)

    Hi all.

    After some 'experiments' I found somewhat a 'solution' for switching between the cards. However, you need to stay with the 2.6.32 Kernel and you need to install the restricted drivers for the nvidia again (only one time) after you have booted with the 2.6.32 Kernel. All seems to work nicely.

    So, follow these steps:

    1. Instructions of mtron (message #3): http://ubuntuforums.org/showpost.php...93&postcount=3 (including step 3 but then stop)
    2. Boot with the 2.6.32 Kernel and install via internet the restricted drivers for the nvidia card.
    3. Use the ones below. Check all paths, nvidia version numbers, etc.


    *************** Start ***************

    Here is what I always use for switching to the intel card before a boot - it is basically a modified script from mtron. (execute: sudo Switch_intel.sh)

    Code:
    #!/bin/bash
    # Enable intel glx on Asus EeePC 1015pn 
    
    # Check if we are root, else exit
    if [[ $EUID -ne 0 ]]; then
        echo "This script needs to be run as root"
        exit 1
    fi
    
    # is the acpi module loaded?
    if lsmod | grep -q acpi_call; then
        echo "ACPI does not need to be loaded."    
    else
        echo "ACPI needs to be loaded."    
        cd /home/cle/Switch
        insmod acpi_call.ko
        sleep 3
    fi
    
    # The call for the next time
    echo ""
    echo "Mode 1 is now set: After the next boot only the Intel chip is visible."
    echo "\OSGS 0x01" > /proc/acpi/call
    
    # Set intel xorg.conf
    echo ""
    echo "A xorg.conf file has been prepared such that the Intel chip can be used for X11."
    cp /etc/X11/xorg.conf.intel /etc/X11/xorg.conf
    
    echo ""
    echo "The 'update-alternatives' has been set"
    update-alternatives --set gl_conf /usr/lib/mesa/ld.so.conf
    ldconfig
    
    # Very important: fiddle with glx and libgl
    if [ -f "/usr/lib/xorg/extra-modules/libglx.so" ] 
    then
            echo ""
        echo "The library 'libglx.so' has been deleted."
        sudo rm /usr/lib/xorg/extra-modules/libglx.so
    else
            echo ""
        echo "The library 'libglx.so' doesn't exist and must therefore not be deleted."
    fi
    
    echo ""
    echo "Finished! Push a button ..."
    read eingabe
    Replace 'path_to_acpi_call' with the correct path.


    Here is what I use for switching to the nvidia card before a boot (execute: sudo Switch_nvidia.sh)
    Code:
    #!/bin/bash
    # Disabe Intel Chip and enable nvidia on Asus EeePC 1015pn
    
    # Check if we are root, else exit
    if [[ $EUID -ne 0 ]]; then
        echo "This script needs to be run as root"
        exit 1
    fi
    
    # is the acpi module loaded?
    if lsmod | grep -q acpi_call; then
        echo "ACPI does not need to be loaded."    
    else
        echo "ACPI needs to be loaded."    
        cd /home/cle/Switch
        insmod acpi_call.ko
        sleep 3
    fi
    
    # The system is prepared such that the nvidia card is onlt visible
    echo ""
    echo "Mode 2 is now set: After the next boot only the Nvidia chip is visible."
    echo "\OSGS 0x02" > /proc/acpi/call
    
    # Copy the libglx file into usr/lib/xorg/extra-modules/
    # Without doing this, compiz does not work properly (I have no idea why) 
    if ! [ -f "/usr/lib/xorg/extra-modules/libglx.so.260.19.06" ] 
    then
       cp /usr/lib/nvidia-current/xorg/libglx.so.260.19.06 /usr/lib/xorg/extra-modules/
       chmod 644 /usr/lib/xorg/extra-modules/libglx.so.260.19.06
       echo ""
       echo "The libglx has been copied"
    fi
    
    # Copy also the nvidia_drv.so file into usr/lib/xorg/extra-modules/
    # As above: compiz needs this (I have no idea why) 
    if ! [ -f "/usr/lib/xorg/extra-modules/nvidia_drv.so" ] 
    then
       cp /usr/lib/nvidia-current/xorg/nvidia_drv.so /usr/lib/xorg/extra-modules/
       chmod 644 /usr/lib/xorg/extra-modules/nvidia_drv.so
       echo ""
       echo "The nvidia_drv.so has been copied"
    fi
    
    # Set the intel xorg.conf
    echo ""
    echo "A xorg.conf file has been prepared such that the Nvidia chip can be used for X11."
    cp /etc/X11/xorg.conf_nvidia /etc/X11/xorg.conf
    
    update-alternatives --set gl_conf /usr/lib/nvidia-current/ld.so.conf
    ldconfig
    echo ""
    echo "update-alternatives ... and ... ldconfig"
    
    # Very important: The link 'libglx.so' needs to be created
    if ! [ -f "/usr/lib/xorg/extra-modules/libglx.so" ] 
    then
       ln -s /usr/lib/xorg/extra-modules/libglx.so.260.19.06 /usr/lib/xorg/extra-modules/libglx.so
       echo ""
       echo "The libglx link has been set"
    else
       echo ""
       echo "The libglx link already exists"   
    fi
    
    echo ""
    echo "Push a button ..."
    read eingabe
    You need to search the right name for the lib 'libglx.so...' and 'nvidia_drv.so' in the /usr/lib/nvidia-current/xorg/ directory.
    The xorg.files can be taken from mtron (see above).


    ********* That's it *********

    Notes (old, more details in message #1)
    1. Note that you have to execute always the script 'Switch_intel.sh' whenever you want to boot and use the intel card. In the case of the nvidia card you must execute the script 'Switch_nvidia' only once for all other following 'future boots' with the nvida card.
    2. In intel-mode: If the 1015PN is put to sleep and afterwards waken up (closing and opening the 1015PN), the nvidia must not be switched off!
    3. The scripts are written such you can call them from a starter of a panel. Don't forget to make the scripts executable.
    4. There is some output text, which comments all operations and can be used to see what the system is doing.
    5. HDMI is perfectly working with Nvidia.

    I hope that all this helps.

    Cheers.
    Last edited by barthus; February 16th, 2011 at 09:02 PM.

  3. #13
    Join Date
    Feb 2011
    Beans
    6

    Re: Asus Eee PC 1015PN - graphic cards: Optimus and ION

    I dont know if this is new,
    but i found out that you can directly boot using the intel chip only (nvidia ION is not visible at all)

    in my case i just changed the acpi call command for the reboot:

    echo "\OSGS 0x01" > /proc/acpi/call

    (for optimus choose 0x03, for nvidia only 0x02)
    after rebooting it is not necessary to switch off anything!

    But can someone tell me why this acpi call module is not working with the new kernel?

  4. #14
    Join Date
    Jan 2011
    Beans
    65

    Re: Asus Eee PC 1015PN - graphic cards: Optimus and ION

    Hi red-flex.

    Quote Originally Posted by red-flex View Post
    I dont know if this is new,
    but i found out that you can directly boot using the intel chip only (nvidia ION is not visible at all)

    in my case i just changed the acpi call command for the reboot:

    echo "\OSGS 0x01" > /proc/acpi/call

    (for optimus choose 0x03, for nvidia only 0x02)
    after rebooting it is not necessary to switch off anything!
    Thanks a lot for this very good comment! I could considerably improve the script, and now I can switch without any major problems between the cards. The system has become quite nice.

    Quote Originally Posted by red-flex View Post
    But can someone tell me why this acpi call module is not working with the new kernel?
    Well, I don't know. mtron says that it is due to a driver, which still needs some improvement. Look here:

    http://ubuntuforums.org/showpost.php...11&postcount=2

    Cheers.

  5. #15
    Join Date
    Jan 2011
    Beans
    65

    Re: Asus Eee PC 1015PN - graphic cards: Optimus and ION

    Hi all.

    I thought that this might be somewhat interesting for you: Thanks to the help of all others here in this thread, I could change the scripts such I can easily switch between the cards. The scripts are in message #12:

    http://ubuntuforums.org/showpost.php...5&postcount=12

    I hope that it is for some good use.
    Last edited by barthus; February 13th, 2011 at 11:13 AM.

  6. #16
    Join Date
    Feb 2011
    Beans
    6

    Re: Asus Eee PC 1015PN - graphic cards: Optimus and ION

    Hey thanks for the scripts!

    i had no time to test them, but they looks quite good.
    but i saw one point which might be useful to improove:

    a xorg.conf file is not obligatory necessary. i deleted mine, because there was no important information i wanted to set.
    Of course its easy to delete those lines from the script , but maybe we can create a script which is working fine for everybody.

    im am quite new to all this linux stuff, but acutally it should be possible to create a script which is always executed when ubuntu starts.

    this script does nothing execpt loading the acpi module, sending the actual defined mode (for beeing sure that this mode is set for the next reboot) and unloading the module again.

    If the you want to change the mode, a second script is started by the user. this prepares the pc for the new mode (like your switch_intel), but also writes the new mode in the booting script.

    I would try to implement this on my own, but i am really busy at the moment. So if someone is bored ...
    otherwise ill try to get this working in a few weeks.

  7. #17
    Join Date
    Jan 2011
    Beans
    65

    Re: Asus Eee PC 1015PN - graphic cards: Optimus and ION

    Thanks. I will test this with the xorg files.

    Of course, it makes much sense to include all into the boot process. A good idea has been discussed recently: one uses the grub menu where the user chooses the graphic card. However, I'm also busy, and I must admit that I'm not really a big specialist in hacking the system. Well, in fact mtron wrote that he wants to change the boot. Since then, I'm waiting. Let's see ... cheers.

    PS: I booted and switched the cards a dozen of times and: all is quite stable!

  8. #18
    Join Date
    Jan 2011
    Beans
    6

    Re: Asus Eee PC 1015PN - graphic cards: Optimus and ION

    Followed the instructions above and it worked out very well.
    Soo thanks to you guys that has been working hard to find this solution and actually took time to share it with the rest of us.

    Seems like its possible to run the script on halt and reboot, have not noticed any problems doing that...
    Even using: Linux 1015PN 2.6.35-25-generic-pae #44-Ubuntu SMP Fri Jan 21 19:01:46 UTC 2011 i686 GNU/Linux
    Last edited by Draugen River; February 15th, 2011 at 05:31 AM.

  9. #19
    Join Date
    Jan 2011
    Beans
    65

    Re: Asus Eee PC 1015PN - graphic cards: Optimus and ION

    Quote Originally Posted by Draugen River View Post
    Followed the instructions above and it worked out very well.
    Soo thanks to you guys that has been working hard to find this solution and actually took time to share it with the rest of us.

    Seems like its possible to run the script on halt and reboot, have not noticed any problems doing that...
    Even using: Linux 1015PN 2.6.35-25-generic-pae #44-Ubuntu SMP Fri Jan 21 19:01:46 UTC 2011 i686 GNU/Linux
    Nice to hear that! Do I have correctly understood: You use the 2.6.35 Kernel? - I will try that out later ... cheers.

  10. #20
    Join Date
    Jan 2011
    Beans
    65

    Re: Asus Eee PC 1015PN - graphic cards: Optimus and ION

    Yes, the first tests show that it works indeed with the 2.6.35 Kernel (I have the 2.6.35-25 one). This is simply great and things get quite simple now!

    Cheers.

    PS: I will do some changes in my first contribution. (done, see first message)
    Last edited by barthus; February 15th, 2011 at 04:33 PM.

Page 2 of 49 FirstFirst 123412 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •