Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27

Thread: Switchable Graphics is killing my Ubuntu Experience, PLEASE HELP

  1. #21
    Join Date
    Aug 2011
    Beans
    5

    Question Re: Switchable Graphics is killing my Ubuntu Experience, PLEASE HELP

    Hey guys,

    I'm on Ubuntu 12.04 and whenever I add the chown line to rc.local and reboot it simply freezes citing something about kernel safety.

    So, any fix for this?

  2. #22
    Join Date
    Mar 2012
    Beans
    15

    Re: Switchable Graphics is killing my Ubuntu Experience, PLEASE HELP

    Quote Originally Posted by vedovatti View Post
    Hey, I was looking for updated script to switch between cards. Thanks. It works. Just the logout doesn´t work. I have to run it manually. Any idea how to improve it? I am using ubuntu 12.04. Thanks
    I have found the following issues when following the instructions at https://help.ubuntu.com/community/HybridGraphics:
    -----------------------------------------------------------------

    To have permanent write permissions to the switch file, add the following line, replacing USERNAME with your username, to /etc/init.d/rc.local:

    chown USERNAME /sys/kernel/debug/vgaswitcheroo/switch
    -----------------------------------------------------------------

    I do not add the above command to /etc/init.d/rc.local, i simply just chown the above file. adding the line into the rc.local file does nothing at all for me and prevents me from using the script to create a laucher and results in me running sudo su in the terminal first followed by the switchcards.sh command.

    In addition to solve some dependencies I have add the following to the top of the script:

    Code:
    if [ $EUID != 0 ]; then
        gksudo "$0" "$@"
        exit $?
    fi
    Note: Thanks to druellan (i have adapted his addition and removed the gnome-session-quit option)

    Finally if you want to resolve the brightness issue on boot you can do this by issuing the following commands from terminal:

    Code:
    chown $User /sys/class/backlight/acpi_video0/brightness
    echo 1 > /sys/class/backlight/acpi_video0/brightness
    Note: change $User with your name
    regards

    sean
    Attached Files Attached Files
    Last edited by onefthemany; September 21st, 2012 at 09:15 AM.

  3. #23
    Join Date
    Mar 2012
    Beans
    15

    Re: Switchable Graphics is killing my Ubuntu Experience, PLEASE HELP

    Quote Originally Posted by markackerman8@gmail.com View Post
    ------------------------------------------------------------------

    I did everything as stated above -and arghhh still no luck

    It is still KILLING my Ubuntu experience 5 months later and retried again today hoping something will change

    any way here is what i did from a fresh install tonight - if it helps anyone with m troubleshooting this - PLEASE

    - installed fresh 12.04 Ubuntu 64 bit
    - downloaded and installed amd's driver 12.4 according to the wicki
    http://wiki.cchtml.com/index.php/Ubu...TI.27s_site.29
    - after sudo amdconfig --initial -f, used switch_between_cards script seemed to work BUT logout or reboot X fails and only cntgrl+alt+F1 works, so I had to remove /etc/X11/xorg.conf, to get back in (and no discrete card function) - arghhhhhhh

    PLEASE can anyone suggest any other troubleshooting tips - now 5 months without a functional Ubuntu

    p.s. I am the one who started this post many months ago with still NO success using my ATI/AMD 6850m graphics card please help - I Like games and Hate Windows
    don't install the AMD graphics driver as it still has issues. out of the box 3D should work if you simply follow my instructions.

    if however you feel the urge to use the AMD graphics driver you could try the following:

    https://help.ubuntu.com/community/BinaryDriverHowto/ATI

    but if I was you I wouldn't touch it with a barge pole, as to date, I have had no success and have to terminal at boot and delete the conf file

    good luck
    Last edited by onefthemany; September 21st, 2012 at 09:12 AM.

  4. #24
    Join Date
    Aug 2011
    Location
    Tarragona
    Beans
    35
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Switchable Graphics is killing my Ubuntu Experience, PLEASE HELP

    Quote Originally Posted by onefthemany View Post
    I have found the following issues when following the instructions at https://help.ubuntu.com/community/HybridGraphics:
    -----------------------------------------------------------------

    To have permanent write permissions to the switch file, add the following line, replacing USERNAME with your username, to /etc/init.d/rc.local:

    chown USERNAME /sys/kernel/debug/vgaswitcheroo/switch
    -----------------------------------------------------------------

    I do not add the above command to /etc/init.d/rc.local, i simply just chown the above file. adding the line into the rc.local file does nothing at all for me and prevents me from using the script to create a laucher and results in me running sudo su in the terminal first followed by the switchcards.sh command.

    In addition to solve some dependencies I have add the following to the top of the script:

    Code:
    if [ $EUID != 0 ]; then
        gksudo "$0" "$@"
        exit $?
    fi
    Note: Thanks to druellan (i have adapted his addition and removed the gnome-session-quit option)

    Finally if you want to resolve the brightness issue on boot you can do this by issuing the following commands from terminal:

    Code:
    chown $User /sys/class/backlight/acpi_video0/brightness
    echo 1 > /sys/class/backlight/acpi_video0/brightness
    Note: change $User with your name
    regards

    sean
    Hello!!

    I have the same problem, I can't switch to discrete graphics. My laptop, a HP G62, has an IGD Ati HD4250 and a DIS Ati HD5470 GPU. Also, I'm running Ubuntu 12.04 64 bits.

    The "vgaswitcheroo" is active and the file "switch" in /sys/kernel/debug/vgaswitcheroo exists.

    My etc/rc.local:
    Code:
    #!/bin/sh -e
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "exit 0" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.
    
    chown albert /sys/kernel/debug/vgaswitcheroo/switch
    
    echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
    
    exit 0
    My etc/fstab:
    Code:
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    nodev,noexec,nosuid 0       0
    # / was on /dev/sda6 during installation
    UUID=3b4c963d-b5af-462a-b9fa-15b78a141a5c /               ext4    errors=remount-ro 0       1
    # /home was on /dev/sda7 during installation
    UUID=6faa099c-6611-4ee0-9bef-58a78263b182 /home           ext4    defaults        0       2
    # swap was on /dev/sda8 during installation
    UUID=2979ae78-d12a-4558-8e60-32e967e6d4b1 none            swap    sw              0       0
    
    tmpfs /dev/shm tmpfs defaults 0 0
    
    none /sys/kernel/debug debugfs defaults 0 0
    With the command "echo OFF > /sys/kernel/debug/vgaswitcheroo/switch" I can turn off the DIS card with the benefits of less temperature and more battery life.

    Furthermore, with " echo ON > /sys/kernel/debug/vgaswitcheroo/switch" I can turn on the DIS card.

    But is in this point where I get stuck. Commands "echo DIS > /sys/kernel/debug/vgaswitcheroo/switch" and "echo DDIS > /sys/kernel/debug/vgaswitcheroo/switch" don't do anything.

    Also if I try the scripts posted in this thread (similar to this one http://asusm51ta-with-linux.blogspot.com.es/) they don't logout automatically and if I logout manually the laptop freezes with a black screen.
    Code:
    Script page nº 1 post
    albert@HPG62:~$ sudo switchcards
    [sudo] password for albert: 
    /usr/bin/switchcards: 76: [: :+ pwr:: unexpected operator
    /usr/bin/switchcards: 81: [: :+ pwr:: unexpected operator
    /usr/bin/switchcards: 85: [: :+ pwr:: unexpected operator
    /usr/bin/switchcards: 91: [: :+ pwr:: unexpected operator
    
    Script page nº 3 post
    albert@HPG62:~$ switchcards
    albert@HPG62:~$
    Then the only way to recover Ubuntu is forcing the reboot with the power button, and nothing changes:
    Code:
    root@HPG62:/home/albert# cat /sys/kernel/debug/vgaswitcheroo/switch
    0: IGD:+ Pwr:0000:01:05.0
    1: DIS:  :Off:0000:02:00.0
    Any idea?

    Thank you very much and best regards!!
    Last edited by acutbal; September 27th, 2012 at 12:51 PM.

  5. #25
    Join Date
    Mar 2012
    Beans
    15

    Re: Switchable Graphics is killing my Ubuntu Experience, PLEASE HELP

    Have you tried using the gxmessage script?

  6. #26
    Join Date
    Aug 2011
    Location
    Tarragona
    Beans
    35
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Switchable Graphics is killing my Ubuntu Experience, PLEASE HELP

    Quote Originally Posted by onefthemany View Post
    Have you tried using the gxmessage script?
    Hello!!

    Thanks a lot for your response!!!

    Apologize, but I've no idea what about you are talking. Gxmessage script? What's that?
    I' ve installed a package vía Synaptic called gxmessage, perhaps you mean that?

    Thanks and best regards!!!!

  7. #27
    Join Date
    Mar 2012
    Beans
    15

    Re: Switchable Graphics is killing my Ubuntu Experience, PLEASE HELP

    Quote Originally Posted by nuevo iphonero View Post
    Hello!!

    Thanks a lot for your response!!!

    Apologize, but I've no idea what about you are talking. Gxmessage script? What's that?
    I' ve installed a package vía Synaptic called gxmessage, perhaps you mean that?

    Thanks and best regards!!!!
    Hi,

    These are the steps that I take on a clean install on my HP Envy 14 i7 with my AMD Radeon HD 6600 Series Graphics Card:

    1. install gxmessage
    2. put images into the /home/$user/.local/share/icons folder
    3. drop the switchcards.sh using nautilus into /usr/bin folder and make it executable and change rights permission to the user and not root.
    4. Add the following to the /etc/rc.local file:

    VGA Switcheroo -

    chown $User /sys/kernel/debug/vgaswitcheroo/switch
    echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

    Screen Brightness on boot to stop having to press the brightness key -

    chown $User /sys/class/backlight/acpi_video0/brightness
    echo 5 > /sys/class/backlight/acpi_video0/brightness

    Note: You may also want to manually chown the vga and acpi files!!!

    5. install main menu
    6. create an app launcher and link it to the switchcards script
    7. use unity to open the app launcher
    8. input password
    9. change to integrated to stop fan noise.

    You can off course if you would like install the AMD graphics driver and then install fglrx-amdccle to have full control over your graphics card, but its not recommended as it causes all kinds of issues.

    If I were you I would use the xorg open source driver!!!!

    Note: Prior to installing the AMD graphics card ensure you have POSIX enabled by copying the following to your /etc/fstab file:

    tmpfs /dev/shm tmpfs defaults 0 0

    none /sys/kernel/debug debugfs defaults 0 0

    Good Luck!
    Last edited by onefthemany; October 14th, 2012 at 11:18 AM.

Page 3 of 3 FirstFirst 123

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
  •