Archive for the 'NVIDIA' Category

How to run Xubuntu Edgy, AIGLX and Beryl with NVIDIA drivers

This is a cumulation and culmination of several posts now.

Beryl - Welcome to the Future

 

I recently was successful installing the latest NVIDIA drivers (v1.0.9269), which support AIGLX.
The next thing that must be done is an edit of the X.org configuration file to enable AIGLX. I have already done this once before.

One final adjustment is necessary for using AIGLX with the NVIDIA drivers. The following line needs to be added to the X.org configuration file in the “Screen” section.

Option “AddARGBGLXVisuals” “true”

Once that change has been made, you should be able to start an ordinary session (now using AIGLX) and then start Beryl. If you need to install Beryl as well, you can see how I did it a while ago.

You may need to stop the XFCE window manager (xfwm4) first, using these commands.

killall xfwm4
beryl-manager &

Enjoy!


Latest NVIDIA drivers on Xubuntu Edgy

This is but the first step in my attempt to run AIGLX and Beryl on Xubuntu Edgy.

NVIDIA Drivers - v1.0.9629


I’ve already enabled AIGLX on my work PC, and it was an absolute snap. However in the end my efforts to use AIGLX and Beryl at work failed, because my PC uses an ATI card, and the fglrx driver does not support the necessary extension to run AIGLX.

My PC at home has a (an?) NVIDIA card, and the latest NVIDIA drivers do support this extension.

  • Seeing as the NVIDIA drivers will write over the X.org configuration file, I’ll install the NVIDIA drivers before enabling AIGLX.

I found a nice write up (on the UDSF of all places) that can show you how to get Ubuntu packaged NVIDIA drivers to install straight to Xubuntu.

To start off you need to add an extra repository to you APT sources.list

deb http://seerofsouls.com/ edgy contrib

Then you can also grab the authentication key (I still don’t know exactly what they do)

wget http://seerofsouls.com/keys/hawkwind.asc

sudo apt-key add hawkwind.asc

Then follow this up with an update, upgrade and installation of the nvidia-glx package. The upgrade will install the re-packaged restricted-modules, which you will need.

sudo aptitude update
sudo aptitude upgrade
sudo aptitude install nvidia-glx

Once the packages are installed, run the following code to set the drivers up

sudo nvidia-xconfig

It will make some changes to your X.org configuration file, hence my reason for enabling AIGLX after installing the NVIDIA drivers. When it is all done, you will need to restart your computer to allow the new modules to be loaded and you’re done!

The result is great! A nice new splash screen, and many more settings in the NVIDIA config application.

More configuration options

 

 




More crappy font issues in Xubuntu Edgy

Well I’m not sure what happened or why, but I’m having more issues with fonts.

I only noticed when I spent some time doing things other than watching DVDs. Like reading and coding.

I just started getting tired and sore eyes. I could only think it was the refresh rate or something wrong with the fonts. They did look a little crappy to me.

Continue reading ‘More crappy font issues in Xubuntu Edgy’

Xubuntu Edgy, XGL and Beryl (NVIDIA)

I have an NVIDIA graphics card, so I opted out of using AIGLX for the mom. AIGLX apparently uses an extension called GLX_EXT_texture_from_pixmap, which is only supported in the latest beta NVIDIA binaries.

So for the moment I am going to stick with XGL. My work PC has an ATI graphics card, so perhaps I could try AIGLX there?

Installing and setting up XGL on Xubuntu Edgy is a snap. This was all extracted from here and here

Assuming that you have 3D acceleration enabled, first you need to add the repository containing Beryl and the xserver-xgl package.
(Edited these as the repositories have changed - cheers chestnut!)

deb http://ubuntu.beryl-project.org/ edgy main

You can also obtain the GPG for the packages in the repository, so you don’t get any annoying ‘unauthenticated package warnings’. Plus you have the upside of being sure that they are valid. I don’t really know how it all works, but there you go. (This is one whole command BTW)

wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -

So now go get those packages. The last week or so I’ve really come to see the light of using aptitude. Something for another day.

sudo aptitude update
sudo aptitude install beryl xserver-xgl

To use XGL as the X windows server instead of Xorg there are options that you can take. You can set up XGL to be the default X server for your login manager, replacing Xorg. Or you can set up the XGL server to be run as a desktop session, allowing you to easily change from XGL to Xorg should any problems arise.

If you are using the GDM (GNOME Display Manager), default in Xubuntu, setting this up is achieved by creating a X session .desktop file, which can be selected at the login screen.

gksudo mousepad /usr/share/xsessions/xgl.desktop &

Then just add the following

[Desktop Entry]
Encoding=UTF-8
Name=XGL Session
Exec=/usr/bin/startxgl.sh
Icon=
Type=Application

Last thing that is required is to create the script that actually executes the XGL server when an XGL session is started.

gksudo mousepad /usr/bin/startxgl.sh

Then add the following script, which will start XGL, as well as the Beryl manager and then the XFCE session manager.

#!/bin/sh
Xgl :1 -fullscreen -ac -accel xv:fbo -accel glx:pbuffer &
sleep 4
export DISPLAY=:1
beryl-manager
exec xfce4-session

After saving the file, you should also change the permission bits to allow execution

sudo chmod a+x /usr/bin/startxgl.sh

Now just logout and log back in, choosing the XGL session available at the login screen.

If things turn out ok, you should be greeted with the wavy Beryl splash screen.

Wobbly Beryl Splash Screen

Then you can get down to the fun of customising! Beryl has a very large number of effects and ways to configure them.

You may find Beryl exceedingly cool, yet in some cases a little overwhelming. Sometimes there is just too much going on.

I’d recommend saving several different profiles in the Beryl Settings Manager. I have one for day to day use; eye candy I can be happy to work with, and one for ‘wowing’ people, with lots of wobble, sticky and water effects.

Beryl Rain Effect

I love the ’sidekick’ feature when closing windows. Unfortunately that effect doesn’t lend itself to screenshots, but it really looks cool.



Setting up NVIDIA drivers

Everything seems ok with Xubuntu, so one of the first things I do with a new installation is to get my video card working to its ability. This means installing NVIDIA drivers.

The installation, these days, is completely trivial especially if your card is well supported and all you are interested in is the drivers in the Ubuntu repository. This is all I need.

First thing is to install the restricted modules for the kernel. The easiest way is to install the complete linux package, that includes the kernel and restricted modules. Easiest because updating both components in the future can be done with one line. I prefer to use aptitude (from the command line, not the ncurses interface) to apt-get or Synaptic as my choice for installing programs, as it intelligently manages dependencies, even when un-installing. Much more tidy.

I have an AMD X2 3800, a K8 processor, but since I’m on 32bit Xubuntu, the K7-SMP is the most appropriate kernel for me. These days, all K7 (and other kernels where the situation is possible) kernels are SMP enabled. So getting the linux-k7-smp package is the same as the linux-k7 package.

The other package I need is the nvidia-glx package to enable 3D acceleration for my card. (The nvidia-glx package also gets the restricted-modules too … I do things my way!)

sudo aptitude install linux-k7-smp nvidia-glx
sudo nvidia-xconfig

Once that’s all finished, I should be able to run the NVIDIA settings utility using,

nvidia-settings

But I want a menu entry. This wasn’t as easy as I first thought. I want the settings to appear in the ‘System’ part of the menu structure. Unfortunately the XFCE menu editor doesn’t allow this, so I had to do some cheating.

First thing is to copy a .desktop file that appears in the ‘System’ menu; I chose Synaptic.

cd /usr/share/applications/
sudo cp synaptic.desktop nvidia-settings.desktop
sudo mousepad nvidia-settings.desktop

Next is to edit out the .desktop file so that it contains the right elements. Mine ended up looking something like this.

[Desktop Entry]
Name=NVIDIA Settings
GenericName=NVIDIA Settings
Comment=Change Settings for NVIDIA Card
Exec=nvidia-settings
Icon=nvidia-settings.png
Terminal=false
MultipleArgs=false
Type=Application
Encoding=UTF-8
Categories=PackageManager;GTK;System;Settings
NotShowIn=KDE
X-KDE-SubstituteUID=true

Then it’s a simple save and wait. For some reason the change takes a while to come through, but when it does …

XFCE Menu NVIDIA-Settings

I still can’t get the menu to display the icon I want for the NVIDIA settings, but I’ll work on that.

The next step is to enable the compositor in XFWM, the XFCE window manager, for some transparency goodness.




Next Page »


My Photos

James getting dragged up the hill

Another insane run

img_0104

Insane run

More Photos

How many times has this site been visited?

  • 135,007 apparently

Site Stats