Announcement

Collapse
No announcement yet.

FGLRX + Wine 1.6/1.7

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Steve:

    Thanks for the willingness to help.


    Code:
    frank@media:~$ lsmod | egrep 'nvidia|nouveau'
    nouveau              1097199  1 
    mxm_wmi                13021  1 nouveau
    wmi                    19177  2 mxm_wmi,nouveau
    ttm                    85150  1 nouveau
    i2c_algo_bit           13413  2 i915,nouveau
    drm_kms_helper         55071  2 i915,nouveau
    drm                   303102  6 ttm,i915,drm_kms_helper,nouveau
    video                  19476  2 i915,nouveau
    frank@media:~$ 
    frank@media:~$ egrep 'nvidia|nouveau' /var/log/Xorg.0.log
    [    18.590] (==) Matched nvidia as autoconfigured driver 1
    [    18.590] (==) Matched nouveau as autoconfigured driver 2
    [    18.615] (II) LoadModule: "nvidia"
    [    18.615] (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so
    [    18.615] (II) Module nvidia: vendor="NVIDIA Corporation"
    [    18.615] (II) LoadModule: "nouveau"
    [    18.615] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
    [    18.622] (II) Module nouveau: vendor="X.Org Foundation"
    [    18.657] (II) [drm] nouveau interface version: 1.1.2
    [    18.888] (II) NOUVEAU(0): [DRI2]   DRI driver: nouveau
    [    18.888] (II) NOUVEAU(0): [DRI2]   VDPAU driver: nouveau
    frank@media:~$
    So, do I correctly read those commands as confirming that the machine is using the Nouveau driver?

    Frank
    Linux: Powerful, open, elegant. Its all I use.

    Comment


      #17
      Originally posted by Frank616 View Post
      So, do I correctly read those commands as confirming that the machine is using the Nouveau driver?
      Yep.

      This should get you the latest NVIDIA drivers from the Ubuntu (not Xorg-Edgers) repository along with the generic OpenCL ICD for both 32-bit and 64-bit:
      Code:
      sudo apt-get install --no-install-recommends nvidia-331-updates libcuda1-331-updates ocl-icd-libopencl1:i386 ocl-icd-libopencl1:amd64 nvidia-opencl-icd-331-updates
      It's all one line. The installer will create the proper files in /etc/modprobe.d to blacklist Nouveau.

      Comment


        #18
        Steve:

        So, with that command executed, all is well? Is there follow-up that I need to do?

        I am unsure of the "-no-install-recommends" option. I looked up the flags for apt-get, and I did not see that listed. Will this command actually DO something, or is it just a 'dry run' to see what WOULD be done if the "--no-install-recommends" flag were not there?

        Thanks.

        Frank.
        Linux: Powerful, open, elegant. Its all I use.

        Comment


          #19
          From the man page:
          Code:
                --no-install-recommends
                     Do not consider recommended packages as a dependency for installing.
          A recommed is occasionally called a soft dependency. In other words, the package maintainer feels that a recommend would be a good thing to include with a package, but there is no actual hard dependency. By default, apt-get will pull in all recommended packages. The reason I'm having you omit the recommends is that otherwise you'd end up with the NVIDIA Prime/Optimus stuff.

          Actually, I realize just now that I left off one packge: the settings stuff. So the command should be:
          Code:
          sudo apt-get install --no-install-recommends nvidia-331-updates libcuda1-331-updates ocl-icd-libopencl1:i386 ocl-icd-libopencl1:amd64 nvidia-opencl-icd-331-updates nvidia-settings
          But first...let's make sure that no NVIDIA packages are currently installed. What's the output of dpkg -l | grep nvidia?

          Comment


            #20
            Steve:

            A recommed is occasionally called a soft dependency
            Ah. I wondered about that after I posted to you, and was re-reading my post.

            Code:
            frank@media:~$ dpkg -l | grep nvidia
            rc  nvidia-304                                  304.117-0ubuntu1                       amd64        NVIDIA legacy binary driver - version 304.117
            ii  nvidia-331                                  331.38-0ubuntu7.1                      amd64        NVIDIA binary driver - version 331.38
            ii  nvidia-libopencl1-331                       331.38-0ubuntu7.1                      amd64        NVIDIA OpenCL Driver and ICD Loader library
            rc  nvidia-opencl-icd-304                       304.117-0ubuntu1                       amd64        NVIDIA OpenCL ICD
            ii  nvidia-opencl-icd-331                       331.38-0ubuntu7.1                      amd64        NVIDIA OpenCL ICD
            ii  nvidia-prime                                0.6.2                                  amd64        Tools to enable NVIDIA's Prime
            ii  nvidia-settings                             331.20-0ubuntu8                        amd64        Tool for configuring the NVIDIA graphics driver
            frank@media:~$
            Yeah, there is a lot of nVidia stuff there.

            Frank.
            Linux: Powerful, open, elegant. Its all I use.

            Comment


              #21
              Please purge all of those packages, including the ones indicated by "rc" (this means that configuration information is still hanging around). After you do that, check the directory /etc/modprobe.d and ensure that no NVIDIA-related files exist; if some are there, delete them. Then reboot the computer to let a "normal" Nouveau configuration establish itself. After that, run the install command in my post #19. That should take care of everything for you.

              Comment


                #22
                Steve:

                apt-get --purge remove nvidia* ?

                Or use Synaptic to remove the packages with the 'mark for complete removal option?

                Don't assume that I know what I'm doing.

                Frank
                Linux: Powerful, open, elegant. Its all I use.

                Comment


                  #23
                  Originally posted by Frank616 View Post
                  apt-get --purge remove nvidia*
                  Using wildcards with apt-get can sometimes have unintended side-effects. And --purge remove can be shortened to purge. So the command would be:
                  Code:
                  sudo apt-get purge nvidia-304 nvidia-opencl-icd-304 nvidia-331 nvidia-opencl-icd-331 nvidia-libopencl1-331 nvidia-prime nvidia-settings
                  Then run:
                  Code:
                  sudo rm /etc/modprobe.d/nvidia*
                  to remove any left-over NVIDIA-related files. If you receive a "No such file or directory" error, that's fine -- it simply means that tthe files were properly removed before. Now reboot, and the system will configure itself for Nouveau. Then run the command in my post #19.

                  Originally posted by Frank616 View Post
                  Or use Synaptic to remove the packages with the 'mark for complete removal option?
                  Don't use Muon for stuff like this. Start to get comfortable with the command line tools for package management. They provide much more feedback and allow you to have greater manipulation over how to manage specific files.
                  Last edited by SteveRiley; Oct 23, 2014, 10:33 AM.

                  Comment


                    #24
                    Steve:

                    Don't use Muon for stuff like this
                    I try not to use Muon at all. I much prefer Synaptic.

                    However, yes, I agree about the command line. I am trying to use it more, and especially for things like this. Playing with video drivers is like playing with dynamite.

                    I'll run those commands, and see what happens. Hopefully Nouveau will display on my HDMI monitor. If not, I'll have to drag the old Dell VGA monitor upstairs again to be able to see what I am doing.

                    Frank.
                    Linux: Powerful, open, elegant. Its all I use.

                    Comment


                      #25
                      Steve:

                      Yeah, the HDMI monitor came up black again, so I had to haul out the Dell monitor and plug it in. Such a pain, as I have to haul the whole cabinet away from the wall to get at the connectors on the computer....

                      Anyway, this time I got brave, opened the BIOS, and disabled the IGD. I assumed that this was the Internal Graphics Device. The BIOS showed two video devices, with the IGD as primary. I saw no obvious way to make the nVidia card primary (could not promote it in the list), so just disabled the blasted thing. This time it booted to the HDMI display right away, with the Dell monitor unplugged altogether. All was well. I still don't get any boot messages or BIOS display during the boot on the HDMI monitor, but that has always been the case.

                      I then ran your command to reinstall the nVidia 331 drivers, with the following output:

                      Code:
                      frank@media:~$ sudo apt-get install --no-install-recommends nvidia-331-updates libcuda1-331-updates ocl-icd-libopencl1:i386 ocl-icd-libopencl1:amd64 nvidia-opencl-icd-331-updates nvidia-settings
                      [sudo] password for frank: 
                      Reading package lists... Done
                      Building dependency tree       
                      Reading state information... Done
                      The following packages were automatically installed and are no longer required:
                        attr bbswitch-dkms fonts-horai-umefont gcc-4.8-base:i386
                        libasn1-8-heimdal:i386 libasound2:i386 libasound2-plugins:i386
                        libasyncns0:i386 libavahi-client3:i386 libavahi-common-data:i386
                        libavahi-common3:i386 libcapi20-3 libcapi20-3:i386 libcups2:i386
                        libdrm-intel1:i386 libdrm-nouveau2:i386 libdrm-radeon1:i386 libelf1:i386
                        libexif12:i386 libexpat1:i386 libffi6:i386 libflac8:i386 libfontconfig1:i386
                        libfreetype6:i386 libgcrypt11:i386 libgd3:i386 libgif4:i386
                        libgl1-mesa-dri:i386 libgl1-mesa-glx:i386 libglapi-mesa:i386
                        libglib2.0-0:i386 libglu1-mesa:i386 libgnutls26:i386 libgpg-error0:i386
                        libgphoto2-6:i386 libgphoto2-port10:i386 libgssapi-krb5-2:i386
                        libgssapi3-heimdal:i386 libgstreamer-plugins-base0.10-0:i386
                        libgstreamer0.10-0:i386 libhcrypto4-heimdal:i386 libhdb9-heimdal
                        libheimbase1-heimdal:i386 libheimntlm0-heimdal:i386 libhx509-5-heimdal:i386
                        libice6:i386 libieee1284-3:i386 libjack-jackd2-0:i386 libjbig0:i386
                        libjpeg-turbo8:i386 libjpeg8:i386 libk5crypto3:i386 libkdc2-heimdal
                        libkeyutils1:i386 libkrb5-26-heimdal:i386 libkrb5-3:i386
                        libkrb5support0:i386 liblcms2-2:i386 libldap-2.4-2:i386 libllvm3.4:i386
                        libltdl7:i386 libmpg123-0:i386 libogg0:i386 libopenal1:i386
                        liborc-0.4-0:i386 libosmesa6 libosmesa6:i386 libp11-kit-gnome-keyring:i386
                        libp11-kit0:i386 libpciaccess0:i386 libpulse0:i386 libroken18-heimdal:i386
                        libsamplerate0:i386 libsane:i386 libsasl2-2:i386 libsasl2-modules:i386
                        libsasl2-modules-db:i386 libsm6:i386 libsndfile1:i386 libspeexdsp1:i386
                        libsqlite3-0:i386 libssl1.0.0:i386 libstdc++6:i386 libtasn1-6:i386
                        libtiff5:i386 libtxc-dxtn-s2tc0:i386 libusb-1.0-0:i386 libv4l-0:i386
                        libv4lconvert0:i386 libvorbis0a:i386 libvorbisenc2:i386 libvpx1:i386
                        libwind0-heimdal:i386 libwrap0:i386 libx11-6:i386 libx11-xcb1:i386
                        libxau6:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386
                        libxcb-present0:i386 libxcb-sync1:i386 libxcb1:i386 libxcomposite1:i386
                        libxcursor1:i386 libxdamage1:i386 libxdmcp6:i386 libxext6:i386
                        libxfixes3:i386 libxi6:i386 libxinerama1:i386 libxml2:i386 libxpm4:i386
                        libxrandr2:i386 libxrender1:i386 libxshmfence1:i386 libxslt1.1:i386
                        libxt6:i386 libxxf86vm1:i386 p11-kit-modules:i386 p7zip python-dnspython
                        samba samba-dsdb-modules samba-vfs-modules tdb-tools winbind wine-gecko2.21
                        wine-gecko2.21:i386 wine-mono0.0.8 winetricks
                      Use 'apt-get autoremove' to remove them.
                      Suggested packages:
                        nvidia-331-updates-uvm opencl-icd opencl-icd:i386
                      Recommended packages:
                        nvidia-prime bumblebee nvidia-libopencl1-331-updates
                      The following packages will be REMOVED:
                        libcuda1-331
                      The following NEW packages will be installed:
                        libcuda1-331-updates nvidia-331-updates nvidia-opencl-icd-331-updates
                        nvidia-settings ocl-icd-libopencl1 ocl-icd-libopencl1:i386
                      0 upgraded, 6 newly installed, 1 to remove and 27 not upgraded.
                      Need to get 53.9 MB of archives.
                      After this operation, 211 MB of additional disk space will be used.
                      Do you want to continue? [Y/n] y
                      Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/universe ocl-icd-libopencl1 amd64 2.1.3-4 [28.1 kB]
                      Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty/universe ocl-icd-libopencl1 i386 2.1.3-4 [28.1 kB]
                      Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/restricted libcuda1-331-updates amd64 331.38-0ubuntu7.1 [8,249 kB]
                      Get:4 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/restricted nvidia-331-updates amd64 331.38-0ubuntu7.1 [36.5 MB]
                      Get:5 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/restricted nvidia-opencl-icd-331-updates amd64 331.38-0ubuntu7.1 [8,329 kB]
                      Get:6 http://us.archive.ubuntu.com/ubuntu/ trusty/main nvidia-settings amd64 331.20-0ubuntu8 [774 kB]
                      Fetched 53.9 MB in 59s (908 kB/s)                                              
                      (Reading database ... 192980 files and directories currently installed.)
                      Removing libcuda1-331 (331.38-0ubuntu7.1) ...
                      Processing triggers for libc-bin (2.19-0ubuntu6.3) ...
                      Selecting previously unselected package ocl-icd-libopencl1:amd64.
                      (Reading database ... 192972 files and directories currently installed.)
                      Preparing to unpack .../ocl-icd-libopencl1_2.1.3-4_amd64.deb ...
                      Unpacking ocl-icd-libopencl1:amd64 (2.1.3-4) ...
                      Selecting previously unselected package ocl-icd-libopencl1:i386.
                      Preparing to unpack .../ocl-icd-libopencl1_2.1.3-4_i386.deb ...
                      Unpacking ocl-icd-libopencl1:i386 (2.1.3-4) ...
                      Selecting previously unselected package libcuda1-331-updates.
                      Preparing to unpack .../libcuda1-331-updates_331.38-0ubuntu7.1_amd64.deb ...
                      Unpacking libcuda1-331-updates (331.38-0ubuntu7.1) ...
                      Selecting previously unselected package nvidia-331-updates.
                      Preparing to unpack .../nvidia-331-updates_331.38-0ubuntu7.1_amd64.deb ...
                      Unpacking nvidia-331-updates (331.38-0ubuntu7.1) ...
                      Selecting previously unselected package nvidia-opencl-icd-331-updates.
                      Preparing to unpack .../nvidia-opencl-icd-331-updates_331.38-0ubuntu7.1_amd64.deb ...
                      Unpacking nvidia-opencl-icd-331-updates (331.38-0ubuntu7.1) ...
                      Selecting previously unselected package nvidia-settings.
                      Preparing to unpack .../nvidia-settings_331.20-0ubuntu8_amd64.deb ...
                      Unpacking nvidia-settings (331.20-0ubuntu8) ...
                      Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
                      Processing triggers for ureadahead (0.100.0-16) ...
                      ureadahead will be reprofiled on next reboot
                      Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
                      Processing triggers for mime-support (3.54ubuntu1) ...
                      Setting up ocl-icd-libopencl1:amd64 (2.1.3-4) ...
                      Setting up ocl-icd-libopencl1:i386 (2.1.3-4) ...
                      Setting up libcuda1-331-updates (331.38-0ubuntu7.1) ...
                      Setting up nvidia-331-updates (331.38-0ubuntu7.1) ...
                      update-alternatives: using /usr/lib/nvidia-331-updates/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode
                      update-alternatives: using /usr/lib/nvidia-331-updates/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in auto mode
                      update-alternatives: using /usr/share/nvidia-331-updates/glamor.conf to provide /usr/share/X11/xorg.conf.d/glamoregl.conf (glamor_conf) in auto mode
                      update-initramfs: deferring update (trigger activated)
                      INFO:Enable nvidia-331-updates
                      DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
                      DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
                      DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
                      Adding system user `nvidia-persistenced' (UID 115) ...
                      Adding new group `nvidia-persistenced' (GID 125) ...
                      Adding new user `nvidia-persistenced' (UID 115) with group `nvidia-persistenced' ...
                      Not creating home directory `/'.
                      Loading new nvidia-331-updates-331.38 DKMS files...
                      First Installation: checking all kernels...
                      Building only for 3.13.0-37-generic
                      Building for architecture x86_64
                      Building initial module for 3.13.0-37-generic
                      Done.
                      
                      nvidia_331_updates:
                      Running module version sanity check.
                       - Original module
                         - No original module exists within this kernel
                       - Installation
                         - Installing to /lib/modules/3.13.0-37-generic/updates/dkms/
                      
                      depmod.......
                      
                      DKMS: install completed.
                      Setting up nvidia-opencl-icd-331-updates (331.38-0ubuntu7.1) ...
                      Setting up nvidia-settings (331.20-0ubuntu8) ...
                      Processing triggers for libc-bin (2.19-0ubuntu6.3) ...
                      Processing triggers for ureadahead (0.100.0-16) ...
                      Processing triggers for initramfs-tools (0.103ubuntu4.2) ...
                      update-initramfs: Generating /boot/initrd.img-3.13.0-37-generic
                      frank@media:~$
                      So, it looks like it was successful. Now to reboot and see if it does work. I'll post a follow up message once the reboot completes.

                      Frank.
                      Linux: Powerful, open, elegant. Its all I use.

                      Comment


                        #26
                        Steve:

                        Works! All effects are back.

                        The nVidia driver even correctly picked up the model number of my home theatre, which is between the computer and the HDMI flat panel TV!

                        Happiness!

                        Thank you for walking me through this. I have learned a lot, and have taken a lot of notes on this.

                        Now to do yet another security update.... Hope nothing breaks THIS time.

                        Frank.
                        Attached Files
                        Linux: Powerful, open, elegant. Its all I use.

                        Comment


                          #27
                          I'm glad everything worked well for you.

                          I remain suspicious of the state of software support for any kind of dual Intel+NVIDIA hardware configuration. Disabling the Intel graphics, if possible, is the best option; that's what I've done on my ThinkPad T520. Once that's done, then the NVIDIA binary driver will install without a hitch.

                          Next, run the suggested clean-up command to get rid of all those i386 architecture packages: sudo apt-get --purge autoremove. I'm having you do this in advance of installing Wine, because I don't know whether you may have over time added other packages that aren't necessary.

                          Finally, install Wine. The version of Wine in the Ubuntu repositories is 1.6, which is kind of old. A PPA has the newer 1.7, currently release 1.7.28. First add the PPA:
                          Code:
                          sudo add-apt-repository ppa:ubuntu-wine/ppa
                          Then update your package list:
                          Code:
                          sudo apt-get update
                          And finally install the necessary Wine packages:
                          Code:
                          sudo apt-get install --no-install-recommends wine1.7 winetricks ttf-mscorefonts-installer
                          Again, there are too many recommends here, like some printer stuff you won't need and a handful of foreign language fonts. The above command will bring in just what you need: the 32-bit and 64-bit versions of Wine, the necessary i386 and amd64 library files, and the correct font for system dialogs.
                          Last edited by SteveRiley; Oct 24, 2014, 05:55 PM.

                          Comment


                            #28
                            Steve:

                            Disabling the Intel graphics, if possible, is the best option; that's what I've done on my ThinkPad T520. Once that's done, then the NVIDIA binary driver will install without a hitch.
                            The dual graphics seem to confuse both Nouveau and nVidia. Disabling the onboard video simplified many things. I would have tried that earlier, but I was afraid of locking out any graphics, and winding up with a headless machine with no way I knew of to get back to the BIOS and correct any of my meddling. In any case, disabling the onboard video was indeed a good move. I've had trouble setting up video on this media machine since I bought it about 3 years ago.

                            WINE is already installed on the media PC. It is that installation that unloaded the nVidia driver, and caused all this mess to begin with. However, with that said, WINE no longer works on that machine, now that the video has been fixed.

                            I find this strange, as I have two other machines with nVidia graphics, a Dell M6600 Laptop, and my old Core-2 duo desktop. By using the dpkg command you gave me earlier, I have determined that both of them are using the 331 driver. They both also have WINE installations, and they work just fine. The Dell is running WINE 1.7.28, and the Core2 Duo is running 1.6.2 (I should add the PPA to the Core-2 Duo and update it).

                            Anyway, I will follow through with your suggestions later today, and post back what happens.

                            Frank.
                            Linux: Powerful, open, elegant. Its all I use.

                            Comment

                            Working...
                            X