Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: No Intel HD driver after deleting Nvidia Optimus driver

  1. #1
    Join Date
    Jan 2009
    Location
    Amsterdam, Holland
    Beans
    46
    Distro
    Ubuntu 11.04 Natty Narwhal

    No Intel HD driver after deleting Nvidia Optimus driver

    Hi,

    I'm currently running Ubuntu 12.04 and I'd like to disable my Nvidia 520M graphic card because it doesn't work well on Ubuntu as it is an Optimus card, but after I deleted my drivers for it my resolution is stuck at 640 x 480 and I can't get it to work properly on my Intel HD Graphics Family card.
    How do I get this to work?

    Code:
    philip@philip-PC:~$ lspci | grep VGA
    00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
    Last edited by gronater; August 14th, 2012 at 03:01 PM.

  2. #2
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: No Intel HD driver after deleting Nvidia Optimus driver

    Can you run these commands in the terminal (Unity Dash -> Type in "Terminal") for me please?

    Code:
    cat /etc/X11/xorg.conf
    lsmod
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  3. #3
    Join Date
    Jan 2009
    Location
    Amsterdam, Holland
    Beans
    46
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: No Intel HD driver after deleting Nvidia Optimus driver

    Code:
    philip@philip-PC:~$ cat /etc/X11/xorg.conf
    # nvidia-xconfig: X configuration file generated by nvidia-xconfig
    # nvidia-xconfig:  version 304.37  (buildmeister@swio-display-x86-rhel47-07.nvidia.com)  Wed Aug  8 21:03:22 PDT 2012
    
    Section "ServerLayout"
        Identifier     "Layout0"
        Screen      0  "Screen0"
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Mouse0" "CorePointer"
    EndSection
    
    Section "Files"
    EndSection
    
    Section "InputDevice"
        # generated from default
        Identifier     "Mouse0"
        Driver         "mouse"
        Option         "Protocol" "auto"
        Option         "Device" "/dev/psaux"
        Option         "Emulate3Buttons" "no"
        Option         "ZAxisMapping" "4 5"
    EndSection
    
    Section "InputDevice"
        # generated from default
        Identifier     "Keyboard0"
        Driver         "kbd"
    EndSection
    
    Section "Monitor"
        Identifier     "Monitor0"
        VendorName     "Unknown"
        ModelName      "Unknown"
        HorizSync       28.0 - 33.0
        VertRefresh     43.0 - 72.0
        Option         "DPMS"
    EndSection
    
    Section "Device"
        Identifier     "Device0"
        Driver         "nvidia"
        VendorName     "NVIDIA Corporation"
    EndSection
    
    Section "Screen"
        Identifier     "Screen0"
        Device         "Device0"
        Monitor        "Monitor0"
        DefaultDepth    24
        SubSection     "Display"
            Depth       24
        EndSubSection
    EndSection
    
    philip@philip-PC:~$ lsmod
    Module                  Size  Used by
    bbswitch               13396  0 
    bnep                   18281  2 
    rfcomm                 47604  12 
    parport_pc             32866  0 
    ppdev                  17113  0 
    arc4                   12529  2 
    snd_hda_codec_hdmi     32474  1 
    snd_hda_codec_realtek   224066  1 
    uvcvideo               72627  0 
    videodev               98259  1 uvcvideo
    v4l2_compat_ioctl32    17128  1 videodev
    snd_hda_intel          33773  3 
    snd_hda_codec         127706  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
    iwlwifi               332525  0 
    snd_hwdep              13668  1 snd_hda_codec
    snd_pcm                97188  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
    snd_seq_midi           13324  0 
    mac80211              506816  1 iwlwifi
    snd_rawmidi            30748  1 snd_seq_midi
    snd_seq_midi_event     14899  1 snd_seq_midi
    snd_seq                61896  2 snd_seq_midi,snd_seq_midi_event
    snd_timer              29990  2 snd_pcm,snd_seq
    cfg80211              205544  2 iwlwifi,mac80211
    joydev                 17693  0 
    snd_seq_device         14540  3 snd_seq_midi,snd_rawmidi,snd_seq
    mei                    41616  0 
    i915                  472941  2 
    drm_kms_helper         46978  1 i915
    drm                   242038  3 i915,drm_kms_helper
    i2c_algo_bit           13423  1 i915
    video                  19596  1 i915
    mac_hid                13253  0 
    samsung_laptop         13709  0 
    btusb                  18288  2 
    snd                    78855  16 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
    psmouse                87692  0 
    bluetooth             180104  23 bnep,rfcomm,btusb
    serio_raw              13211  0 
    soundcore              15091  1 snd
    snd_page_alloc         18529  2 snd_hda_intel,snd_pcm
    lp                     17799  0 
    parport                46562  3 parport_pc,ppdev,lp
    r8169                  62099  0

  4. #4
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: No Intel HD driver after deleting Nvidia Optimus driver

    Quote Originally Posted by gronater View Post
    Code:
    philip@philip-PC:~$ cat /etc/X11/xorg.conf
    # nvidia-xconfig: X configuration file generated by nvidia-xconfig
    # nvidia-xconfig:  version 304.37  (buildmeister@swio-display-x86-rhel47-07.nvidia.com)  Wed Aug  8 21:03:22 PDT 2012
    
    Section "ServerLayout"
        Identifier     "Layout0"
        Screen      0  "Screen0"
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Mouse0" "CorePointer"
    EndSection
    
    Section "Files"
    EndSection
    
    Section "InputDevice"
        # generated from default
        Identifier     "Mouse0"
        Driver         "mouse"
        Option         "Protocol" "auto"
        Option         "Device" "/dev/psaux"
        Option         "Emulate3Buttons" "no"
        Option         "ZAxisMapping" "4 5"
    EndSection
    
    Section "InputDevice"
        # generated from default
        Identifier     "Keyboard0"
        Driver         "kbd"
    EndSection
    
    Section "Monitor"
        Identifier     "Monitor0"
        VendorName     "Unknown"
        ModelName      "Unknown"
        HorizSync       28.0 - 33.0
        VertRefresh     43.0 - 72.0
        Option         "DPMS"
    EndSection
    
    Section "Device"
        Identifier     "Device0"
        Driver         "nvidia"
        VendorName     "NVIDIA Corporation"
    EndSection
    
    Section "Screen"
        Identifier     "Screen0"
        Device         "Device0"
        Monitor        "Monitor0"
        DefaultDepth    24
        SubSection     "Display"
            Depth       24
        EndSubSection
    EndSection
    
    philip@philip-PC:~$ lsmod
    Module                  Size  Used by
    bbswitch               13396  0 
    bnep                   18281  2 
    rfcomm                 47604  12 
    parport_pc             32866  0 
    ppdev                  17113  0 
    arc4                   12529  2 
    snd_hda_codec_hdmi     32474  1 
    snd_hda_codec_realtek   224066  1 
    uvcvideo               72627  0 
    videodev               98259  1 uvcvideo
    v4l2_compat_ioctl32    17128  1 videodev
    snd_hda_intel          33773  3 
    snd_hda_codec         127706  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
    iwlwifi               332525  0 
    snd_hwdep              13668  1 snd_hda_codec
    snd_pcm                97188  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
    snd_seq_midi           13324  0 
    mac80211              506816  1 iwlwifi
    snd_rawmidi            30748  1 snd_seq_midi
    snd_seq_midi_event     14899  1 snd_seq_midi
    snd_seq                61896  2 snd_seq_midi,snd_seq_midi_event
    snd_timer              29990  2 snd_pcm,snd_seq
    cfg80211              205544  2 iwlwifi,mac80211
    joydev                 17693  0 
    snd_seq_device         14540  3 snd_seq_midi,snd_rawmidi,snd_seq
    mei                    41616  0 
    i915                  472941  2 
    drm_kms_helper         46978  1 i915
    drm                   242038  3 i915,drm_kms_helper
    i2c_algo_bit           13423  1 i915
    video                  19596  1 i915
    mac_hid                13253  0 
    samsung_laptop         13709  0 
    btusb                  18288  2 
    snd                    78855  16 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
    psmouse                87692  0 
    bluetooth             180104  23 bnep,rfcomm,btusb
    serio_raw              13211  0 
    soundcore              15091  1 snd
    snd_page_alloc         18529  2 snd_hda_intel,snd_pcm
    lp                     17799  0 
    parport                46562  3 parport_pc,ppdev,lp
    r8169                  62099  0
    Your xorg.conf still uses the Nvidia config.

    Perhaps
    Code:
    sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
    and restarting would help. (you could also kill lightdm, and start it again, .etc .etc)
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  5. #5
    Join Date
    Apr 2011
    Beans
    Hidden!

    Re: No Intel HD driver after deleting Nvidia Optimus driver

    I'm also running Ubuntu 12.04 with the nvidia gt 520m optimus graphics card. Gave me quite some trouble to make the graphics work after the installation. But it's working very good now with Bumblebee https://wiki.ubuntu.com/Bumblebee. It keeps the card turned off at startup. To use the card for an application is simple, just put "optirun" in front of the executing command (add it to the desktop launcher) and the card is activated. Saves a great deal of power too. To install it follow the link.
    To see the nvidia config tool use
    Code:
    optirun nvidia-settings -c :8
    BUT do NOT save anything in the default file, you'll mess up X11.
    Use this path to save the settings
    Code:
    /etc/bumblebee/xorg.conf.nvidia
    Test it
    Code:
    glxspheres
    optirun glxspheres
    Bumblebee Project FAQ https://github.com/Bumblebee-Project/Bumblebee/wiki/FAQ
    For CUDA check Lekensteyn's post (member of the Bumblebee Project) http://askubuntu.com/questions/13150...a-discrete-car
    Last edited by Marric; August 15th, 2012 at 12:19 PM.

  6. #6
    Join Date
    Aug 2012
    Beans
    35

    Re: No Intel HD driver after deleting Nvidia Optimus driver

    @Marric

    There is no need to add a bbswitch command to rc.local. The bbswitch module disables the nvidia GPU when not in use.
    Also it is no problem to redirect nvidia-settings output to /etc/bumblebee/xorg.conf.nvidia since you have that option before saving changes to file.
    Last edited by pogopuschel; August 15th, 2012 at 11:22 AM.

  7. #7
    Join Date
    Apr 2011
    Beans
    Hidden!

    Re: No Intel HD driver after deleting Nvidia Optimus driver

    Thanks, the startup script only makes sense when you use bbswitch standalone to turn off the graphics card without installing bumblebee.
    Edited my last post.
    Last edited by Marric; August 15th, 2012 at 12:20 PM.

  8. #8
    Join Date
    Jan 2009
    Location
    Amsterdam, Holland
    Beans
    46
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: No Intel HD driver after deleting Nvidia Optimus driver

    Thanks for your replies!

    The renaming of the xorg.conf to xorg.conf.bak worked! But when I try to run any program with optirun my screen turns black, although I can still use the pointer and the command line.

    So I installed the nvidia driver:
    Code:
    sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
    sudo apt-get update
    sudo apt-get upgrade
    but now I got a new error.
    Code:
    philip@philip-PC:~$ optirun glxgears
    [   32.330568] [ERROR]Cannot access secondary GPU - error: Could not
    load GPU driver
    
    [   32.330613] [ERROR]Aborting because fallback start is disabled.
    philip@philip-PC:~$ optirun nvidia-settings -c :8
    [   58.982016] [ERROR]Cannot access secondary GPU - error: Could not
    load GPU driver
    
    [   58.982046] [ERROR]Aborting because fallback start is disabled.
    Searched google, found this:

    [ERROR]Cannot access secondary GPU
    In some instances, running optirun will return:
    [ERROR]Cannot access secondary GPU - error: [XORG] (EE) No devices detected.

    [ERROR]Aborting because fallback start is disabled.
    In this case, you will need to move the file /etc/X11/xorg.conf.d/20-intel.conf to somewhere else. Restart the bumblebeed daemon, and it should work.

    It could be also necessary to comment the driver line in /etc/X11/xorg.conf.d/10-monitor.conf.


    So I tried and I get this error:
    Code:
    philip@philip-PC:~$ sudo mv /etc/X11/xorg.conf.d/20-intel.conf
    /etc/X11/xorg.conf.d/20-intel.conf.bak
    [sudo] password for philip:
    mv: cannot stat `/etc/X11/xorg.conf.d/20-intel.conf': No such file or directory
    What am I doing wrong?

    EDIT:

    When try glxgears withouth optirun, I also get an error:
    Code:
    philip@philip-PC:~$ glxgears
    Error: couldn't get an RGB, Double-buffered visual
    Last edited by gronater; August 15th, 2012 at 03:59 PM. Reason: wrong info

  9. #9
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: No Intel HD driver after deleting Nvidia Optimus driver

    Quote Originally Posted by gronater View Post
    Thanks for your replies!

    The renaming of the xorg.conf to xorg.conf.bak worked! But when I try to run any program with optirun my screen turns black, although I can still use the pointer and the command line.

    So I installed the nvidia driver:
    Code:
    sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
    sudo apt-get update
    sudo apt-get upgrade
    but now I got a new error.
    Code:
    philip@philip-PC:~$ optirun glxgears
    [   32.330568] [ERROR]Cannot access secondary GPU - error: Could not
    load GPU driver
    
    [   32.330613] [ERROR]Aborting because fallback start is disabled.
    philip@philip-PC:~$ optirun nvidia-settings -c :8
    [   58.982016] [ERROR]Cannot access secondary GPU - error: Could not
    load GPU driver
    
    [   58.982046] [ERROR]Aborting because fallback start is disabled.
    Searched google, found this:

    [ERROR]Cannot access secondary GPU
    In some instances, running optirun will return:
    [ERROR]Cannot access secondary GPU - error: [XORG] (EE) No devices detected.

    [ERROR]Aborting because fallback start is disabled.
    In this case, you will need to move the file /etc/X11/xorg.conf.d/20-intel.conf to somewhere else. Restart the bumblebeed daemon, and it should work.

    It could be also necessary to comment the driver line in /etc/X11/xorg.conf.d/10-monitor.conf.


    So I tried and I get this error:
    Code:
    philip@philip-PC:~$ sudo mv /etc/X11/xorg.conf.d/20-intel.conf
    /etc/X11/xorg.conf.d/20-intel.conf.bak
    [sudo] password for philip:
    mv: cannot stat `/etc/X11/xorg.conf.d/20-intel.conf': No such file or directory
    What am I doing wrong?

    EDIT:

    When try glxgears withouth optirun, I also get an error:
    Code:
    philip@philip-PC:~$ glxgears
    Error: couldn't get an RGB, Double-buffered visual
    Well, you said in your first post that you wanted IntelHD working. The way I did it - you can only use one or the other.

    Lemme do a small explanation -

    The xorg.conf controlls which display driver is loaded, and the monitor configuration, .etc .etc . By removing it, the nvidia driver stops loading because Ubuntu simply detects the intel card.

    As a result, you have to generate a new xorg.conf to tell Ubuntu (Xorg actually), to load the nvidia driver.

    You can do this by running
    Code:
    nvidia-xconfig
    I don't know how to do the rest, because I never had, or will have hybrid graphics.
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  10. #10
    Join Date
    Apr 2011
    Beans
    Hidden!

    Re: No Intel HD driver after deleting Nvidia Optimus driver

    Make sure you really have those ppa's in your software sources:
    Code:
     
    ppa:bumblebee/stable
    ppa:ubuntu-x-swat/x-updates
    Update, upgrade and reboot.
    Test.
    Then try this
    Code:
     sudo apt-get install nvidia-current
    Reboot.
    If still not working reinstall bumblebee.

    Bumblebee Troubleshooting https://github.com/Bumblebee-Project...roubleshooting
    Last edited by Marric; August 15th, 2012 at 10:09 PM.

Page 1 of 3 123 LastLast

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
  •