Archive pour la catégorie 'X11 and Gnome'

Back on Fedora

Monday 2 March 2009

I (re)started playing with Linux and Fedora. I finally installed Fedora 10 on my home PC, but I have to redo my development configuration to be able to generate correctly my new Fedora 10 repository.

As for now I already started working on the driver for my NVIDIA GPU (FX400) and made some custom RPM for the 96.43.11 driver (based on the work from RPM Fusion for version 96.43.09-3).

The current binary RPMs are here:

  • akmod-nvidia-96xx-96.43.11-1
  • kmod-nvidia-96xx-
  • kmod-nvidia-96xx-
  • kmod-nvidia-96xx-96.43.11-1
  • kmod-nvidia-96xx-PAE-96.43.11-1
  • xorg-x11-drv-nvidia-96xx-96.43.11-1
  • xorg-x11-drv-nvidia-96xx-devel-96.43.11-1
  • xorg-x11-drv-nvidia-96xx-libs-96.43.11-1

The source RPMS are here:

  • nvidia-96xx-kmod-96.43.11-1
  • xorg-x11-drv-nvidia-96xx-96.43.11-1

Feel free to use them right now…

Hibernate (aka Suspend To Disk) on a laptop

Friday 21 September 2007

In Gnome, create a launcher, on the desktop or in the panel to the following script (

zenity --window-icon $icon --title "" --question --text "Are you sure you want to hibernate?"
if [ $? -eq 0 ]
dbus-send --session   --dest=org.gnome.PowerManager   --type=method_call   --print-reply
--reply-timeout=2000   /org/gnome/PowerManager   org.gnome.PowerManager.Hibernate

Small trick for managing Server Layout with gdm

Friday 21 September 2007

This is a follow-up to the previous post.
Now you need to be able to choose from gdm which server layout you want to use.

Set this small script ( in /etc/X11, and add this to your /etc/gdm/custom.conf file :

# Custom commands
CustomCommand0=/etc/X11/ dual
CustomCommandLabel0=Écran _Double
CustomCommandLRLabel0=Affichage en Écran _Double
CustomCommandText0=Voulez vous vraiment redémarrer en écran Double ?
CustomCommandTooltip0=Redémarre en écran Double

CustomCommand1=/etc/X11/ single
CustomCommandLabel1=Écran _Simple
CustomCommandLRLabel1=Affichage en Écran _Simple
CustomCommandText1=Voulez vous vraiment redémarrer en écran Simple ?
CustomCommandTooltip1=Redémarre en écran Simple

The script is simply creating a link from xorg.conf.dual or xorg.conf.single to /etc/X11/xorg.conf. Each of these 2 files are equal only Option "DefaultServerLayout" is different (See the example xorg.conf in previous post).

Xorg configuration IBM T30 with pseudo xinerama

Friday 21 September 2007

The following xorg.conf file is working on an IBM Thinkpad T30 [Radeon Mobility 7500] and permits the use of a second screen connected to the laptop in the ATI pseudo-xinerama mode.

Two server layouts are available (that can be chosen with the option -layout name), one with the internal TFT screen (SingleLayout layout) and another one when you have an additional screen connected (DualLayout layout).

In this second case you have a virtual screen of 2304×1024:

  • 1280×1024 for the external screen (disposed on the left in my configuration file),
  • and 1024×768 for the internal TFT.
  • In this case a small part of the virtual screen is not available (virtually, the part below your TFT screen).
  • It has to be noted that in this configuration no DRI is available…

IBM T30 keyboard and adding special keys

Thursday 21 December 2006

I finally played a lot with the new beryl window manager (I’ll do a post on this one later on) and I had to finalize my keyboard setting, specially for the ThinkPad T30 I’m using.

Here are several ways to set up definitively the configuration for the keyboard to have 2 new special keys (mandatory for beryl which has thousands of different shortcuts). The goal is to map permanently these 2 special keys (see this previous post) on the keyboard to <Super> and <Hyper> :

  1. Userland method (of course you’re using GNOME and FC6):
    1. First method:
      • Create in $HOME a .Xmodmap file. It must be as such:
        ! Xmodmap for IBM Thinkpad T30:
        !    map browser keys to Super (Windows) and Hyper keys
        keycode 233 = Hyper_R
        keycode 234 = Super_L
      • This file will be automatically read at the next session login (a small dialog box appears for this)
    2. Second method: add some lines or create in $HOME a .Xsession file. It must be an executable file (chmod +x .Xsession) as such:
      xmodmap -e "keycode 233 = Hyper_R"
      xmodmap -e "keycode 234 = Super_L"
  2. Rootland mode: as root edit the /etc/X11/Xmodmap file and add the following lines at the end of this file :

    ! Xmodmap for IBM Thinkpad T30:
    !     map browser keys to Super (Windows) and Hyper key
    keycode 233 = Hyper_R
    keycode 234 = Super_L
  3. restart X, that’s it !

By the way in GNOME (or KDE) have you tried <Ctrl> <Alt> <L> ?

It launches the screensaver :smile:

Add your savers to gnome-screensaver

Wednesday 15 November 2006

The method is nearly the same as for the new menu entries: this time you need to create a .desktop file in $HOME/.local/share/applications/screensavers.

Here is an example to have a specific image for the floaters screensaver:

$ mkdir -p  $HOME/.local/share/applications/screensavers
$ cd $HOME/.local/share/applications/screensavers
$ vi my-floaters.desktop

The my-floaters.desktop is :

[Desktop Entry]
Name=Floating Tux
Comment=Floating Tux around the screen
Exec=floaters /home/rpmfarm/Images/SVG/tux.svg

gnome-screensaver is then adding the new entry in the screensaver list:

here is  a screendump of my gnome-screensaver-preferences gnome-screensaver-preferences.

Add you own entries in the system menus

Wednesday 15 November 2006

Very easy in fact (you just need to know how :smile: )…

The solution is to create a personal .desktop file in your account:

mkdir -p  $HOME/.local/share/applications
cd  $HOME/.local/share/applications

When you are here, you can create the .desktop file (use the provided existing file as an example. They live in /usr/share/applications/).

Here is an example how to add a GoogleEarth entry in the Network sub-menu:

[Desktop Entry]
Name=Google Earth
GenericName=3D planet viewer
Comment=Explore, search and discover the planet
Exec=/opt/google-earth/googleearth %f

compiz 2 - The return

Wednesday 15 November 2006

OK, finally I found some informations (look at my previous post on compiz) for the <Super> key:
it’s the so-called Windows key !

This key is not available on the IBM Thinkpad T30, but a small trick with xmodmap is shown below which transformed the <Browser Navigation Keys> to <Super_L> and <Super_R>:

(Look at the keyboard image here: IBMThinkpad T30 keyboard view)

xmodmap -e "keycode 234 = Super_L"
xmodmap -e "keycode 233 = Super_R"


Thursday 9 November 2006

Now that you know that it’s so beautiful you need to use it on your machine !
On my laptop (IBM Thinkpad T30 with an ATI Radeon Mobility 7500) it was not working with the default Xorg configuration: the DefaultDepth has to be changed to 16 (not 24) in the /etc/X11/xorg.conf in the "Screen" section to make it work !

Now it’s working perfectly except for the water plugin which generates the
compiz: water: GL_ARB_fragment_program is missing error message.

If you search for the key and button mappings for the compiz plugins, have a look here: (btw from the default water configuration the <Control><Super> key sequence should be used to start the plugin… But what is the <Super> key, specially on the Thinkpad ? Please let me know :roll: ).

The configuration of the various plugins must be done either with gconftool-2 or with the graphical tool gconf-editor (install the gconf-editor RPM, which is apparently not installed by the default installation process, if you need it).


Thursday 9 November 2006
  • For the language chooser (to use the installed locale):
    cd /etc/gdm
    ln -s /usr/share/locale/locale.alias
  • For the Suspend command:
    set SuspendCommand=/usr/sbin/pm-suspend in the [daemon] section of the /etc/gdm/custom.conf file.
  • Get rid of the “pcscd: winscard.c:219:SCardConnect() Reader E-Gate 0 0 Not Found” messages:
    set SecurityTokensEnable=false in this same [daemon] section if you don’t use any smart card authentication.
  • Get the “beautiful” laptop enhanced Fedora DNA theme that adds the suspend button here:
    Fedora DNA laptop screenshot