Filed under: debian

Problems starting Eclipse

While trying to install a plugin, i’ve made some mess which resulted in Eclipse not starting, giving the following error in the log file:

!SESSION Tue Nov 09 15:18:43 CET 2010 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2010-11-09 15:18:43.233
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
 at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
 at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:556)
 at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
 at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
 at org.eclipse.equinox.launcher.Main.main(Main.java:1287)

That’s what happen when you force the removal of some files 🙂

I solved the problem purging libequinox-osgi-java and reinstalling Eclipse. Try with:

sudo apt-get remove --purge libequinox-osgi-java
sudo apt-get install eclipse

November 10, 2010

Radeon Mobility M6 LY on Debian Squeeze

Upgrading from Debian Lenny to Squeeze, those having this old embedded video card (my laptop is an IBM Thinkpad R40) have found their video performance dropped. This is due to debian’s policy which produced the distribution of this video card’s firmware in a package that is not installed by default with the x.org driver. In lspci -nn, the card is shown as

01:00.0 VGA compatible controller [0300]: ATI Technologies Inc Radeon Mobility M6 LY [1002:4c59]

After some browsing I’ve found out that this card is part of the R100 family, so the firmware you are searching for are contained in:

sudo apt-get install firmware-linux-nonfree

Make sure that /etc/X11/xorg.conf, if any, uses driver radeon or ati (which redirects to radeon). So in your xorg.conf there must be something like:

Section "Device"
        Identifier      "ATI"
        Driver          "ati"
EndSection

When you are done, you must restart Gnome (or whatever starts X):

sudo service gdm restart

November 8, 2010

Making Wacom Bamboo Pen tablet work under Debian

I’ve been trying for days to make my brand new Wacom Bamboo (CTL-460) tablet work under Debian Squeeze. Finally, i wrote to the
linuxwacom-discuss mailing list and Rebecca Breu pointed me to the solution.
This tablet is supported by a driver powered by the linuxwacom project, which provides a kernel module (wacom.ko), a X.org driver (wacom_drv.so) and more utilities. The problem is that with the debian kernel 2.6.32-5 (latest in squeeze at the time when writing) the wacom module is provided, but its version (1.52) is too old and doesn’t support Bamboo Pen. We want version 1.52-pc-0.3. This also applies to debian kernel 2.6.33-2 (currently under experimental). On the other hand, X.org version 1.7.* has a prebuilt X.org driver which works perfectly, so there’s no need of replacing it.

0- To check out your X.org version, type:

Xorg -version

For the wacom module version, type:

modprobe wacom
dmesg | grep wacom

1- To check if the wacom module works with your tablet, plug it in and do:

modprobe wacom
dmesg | grep -i wacom | grep -i input

If you see anything like

input: Wacom Bamboo 4x5 Pen as /devices/pci0000:00/0000:00:1a.1/usb4/4-2/4-2:1.0/input/input14

then your hardware is supported and there’s no need of compiling the driver. Just skip to step 3.

2- If your hardware is not supported by your wacom module version, then you have to drop the one provided by your kernel and replace it with the latest version compiled by yourself. The following commands apply for kernel version 2.6.32-5 AMD64, but should also work for later kernels, just change 2.6.32-5 in whatever your kernel version is and -amd64 in your architecture:

sudo -s
rmmod wacom
apt-get install build-essential libx11-dev libxi-dev
x11proto-input-dev xserver-xorg-dev tk8.4-dev tcl8.4-dev libncurses5-dev linux-headers-2.6.32-5-amd64

Now that the kernel headers are installed, we have to make a small hack to let the compiling work:

sudo -s
cd /usr/src/linux-headers-2.6.32-5-amd64/include/linux/
ln -s /usr/src/linux-headers-2.6.32-5-common/include/linux/input.h
ln -s /usr/src/linux-headers-2.6.32-5-common/include/linux/input-polldev.h

After this, the system is ready to download the source and compile the wacom module. Do:

cd ~
wget http://downloads.sourceforge.net/project/linuxwacom/linuxwacom/0.8.8-9/linuxwacom-0.8.8-9.tar.bz2
tar -xf linuxwacom-0.8.8-9.tar.bz2
cd linuxwacom-0.8.8-9
./configure --enable-wacom --with-kernel=/usr/src/linux-headers-2.6.32-5-amd64

If everything was fine, install the driver with:

cp src/2.6.30/wacom.ko /lib/modules/2.6.32-5-amd64/kernel/drivers/input/tablet/wacom.ko
depmod -a

Now unplug and replug the tablet and retry step 1 to see if the hardware has been recognized.

3- The X.org wacom drivers are cointained in a package. Do:

sudo apt-get install xserver-xorg-input-wacom

To load the module automatically at startup, if your /etc/modules does not contain wacom, edit /etc/modules and add “wacom” in a new line at the bottom of the file.

4- Restart X (or reboot) and draw your self-portrait. Mine is here:
lik self-portrait

14 Comments May 7, 2010

Monochrome Qt fonts

Using Debian 5.0 i noticed a problem with Qt-based applications such as TexMaker, Skype, Qt-config itself and many more. All fonts were rendered bad, in a monochromatic flavour without any anti-aliasing. My solution to this was to regenerate the font cache. So, as normal user (no sudo!), try:

fc-cache -f

You may need to restart the affected applications.

1 Comment January 31, 2010

Bad graphical behaviour with Nvidia GeForce 9200M GS

The following applies for those that, running a lspci, get:

01:00.0 VGA compatible controller: nVidia Corporation G98 [GeForce 9200M GS] (rev a1)

When trying to play a DVD or a divx movie at fullscreen, the image movement were not fluent, just like a 25fps movie played at 11fps. Similiarly, the 3D screen-savers were slow. Checking the /var/log/Xorg.0.log file everything seemed ok, since the default NV drivers included in Xorg are capable of recognizing the NVidia graphic card. Unfortunately, those driver are definitely not optimized and they perform very bad. NVidia released some alternative drivers for linux and -still- unfortunately, they are propertary. It’s your choice to use the free unoptimized drivers or the propertary optimized ones. Anyway, here follows the procedure to install the propertary ones.

Drivers depends on the architecture used by your system. Nvidia releases driver only for x86 and AMD64 CPUs. To check what’s your architecture, type

uname -r

If your kernel version ends with -*86, follow the blue steps, otherwise if it ends with -amd64 follow the red steps. (NOTE: if you have this video card and are using a x86 kernel, you are probably not using all your PC potential. Consider installing an AMD64 distribution. More information here.)

  1. Get into a non-X shell (typing CTRL+ALT+F1) and log in as root.
  2. Install the linux-kernel headers:apt-get install linux-headers-$(uname -r)
  3. stop the Gnome Desktop manager:/etc/init.d/gdm stop
  4. take the NVIDIA propertary drivers:
    for x86: wget http://us.download.nvidia.com/XFree86/Linux-x86/190.53/NVIDIA-Linux-x86-190.53-pkg1.run
    for AMD64: wget http://us.download.nvidia.com/XFree86/Linux-x86_64/190.53/NVIDIA-Linux-x86_64-190.53-pkg2.run
  5. make the driver installer runnable:
    for x86: chmod a+x NVIDIA-Linux-x86-190.53-pkg1.run
    for AMD64: chmod a+x NVIDIA-Linux-x86_64-190.53-pkg2.run
  6. run the installer:
    for x86: ./NVIDIA-Linux-x86-190.53-pkg1.run
    for AMD64: ./NVIDIA-Linux-x86_64-190.53-pkg2.run
    accept everything and when asked to update the /etc/xorg.conf file, answer yes.
  7. restart gdm:
    /etc/init.d/gdm start
  8. (now Gnome should start, but you still have an open root shell. Type again CTRL+ALT+F1 and close it, then CTRL+ALT+F7 to go back to Gnome.)

The NVidia drivers should be now loaded and the movies should play fine. If you want to run a 3D test, try:

apt-get install mesa-utils

and then run from a console:

glxgears

The tool will print the FPS rate, that should be around 3000 frames/sec

Enjoy your movies and 3D games, and reclaim your optimized free drivers from your hardware vendor!

June 5, 2009

Audio and wireless on a HP Pavilion dv6-1060

This post has been updated since something changed (yeah, the audio out jack now works great!)

Making both the wireless connection and the audio board work on a HP Pavilion DV6-1060el with Debian Lenny (currently stable) and Squeeze (currently testing) needs a small effort. This is due to 2 reasons: first, the linux kernel up to version 2.6.26 (current version distributed with Lenny) doesn’t support the Intel 5100 wireless interface, second, the ALSA driver up to 1.0.21 (that comes with Squeeze’s kernel) doesn’t support the audio board’s codec (that is, IDC 92HD75B3X5) out of the box, yet you can force the driver to use another codec and make the audio board fully work.

So, if running lspci you got:

02:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
[...]

And running

cat /proc/asound/card0/codec#* | grep Codec

you got:

Codec: IDT 92HD75B3X5
  1. If you are using Debian Lenny, follow the instructions here to install a new kernel >= 2.6.30. This kernel version supports the wireless interface and has the pre-built ALSA module version >= 1.0.21.
    (to check your running ALSA version, type cat /proc/asound/version)
  2. Otherwise, if you are using Debian Squeeze, just add non-free to your repository list and install 2 packages as described here. If your kernel is not up to date, update it with:
    apt-get install linux-image-amd64
    (replace ‘amd64’ with your architecture)
  3. edit /etc/modprobe.d/alsa-base.conf adding the line: options snd-hda-intel model=hp-dv5 at the bottom of the file. This can be done with the command (as root):
    echo “options snd-hda-intel model=hp-dv5” >> /etc/modprobe.d/alsa-base.conf
  4. remove and reload the snd-hda-intel module with the command (as root):
    alsa force-reload
    or restarting your machine.
  5. Now everything should work fine. With alsamixer raise up the volume of Master, Speaker and PCM. Switch to Capture (using Tab key) and make sure it is activated, pressing space until a red CAPTURE appears. Raise up Digital and Digital Mic volumes. Try out the speakers, the headphones, the internal and external microphone (try recording with Audacity or another sound recorder). Everything should work now.

The audio card is still not fully supported. When switching the pc off, you may hear some weird noises. Anyhow, that’s a workaround that will make your PC rock. When an ALSA version fully supporting this audio board will be released in future debian kernels, you’ll probably have to remove the line “options snd-hda-intel model=hp-dv5” from /etc/modprobe.d/alsa-base.conf, and everything will work as is.

If you found this post useful, you have alternative solutions, some news, or something is unclear, please comment.

June 3, 2009

WICD dbus problems

Tried WICD 1.5.9 as a network manager on Debian testing (Squeeze). After apt-get installing and running it, i got the following error:

dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.wicd.daemon was not provided by any .service files

This is a known bug that should be fixed in future relases. To solve it, i only had to restart dbus and gdm:

/etc/init.d/dbus restart
/etc/init.d/gdm restart

(yes, this will close all your gnome session and applications) then everything worked, at least for me.

June 1, 2009

Folder Sharing problem under squeeze testing

A cool feature has been added to the Squeeze (testing) debian: the nautilus folder sharing GUI (package nautilus-share). My problem was that, after upgrading from the old testing (Lenny) to the new one (Squeeze), it was definitely not working. Right clicking on the folder icons and choosing “Share Folder” gave me a:

Could not authenticate. An unexpected error has occurred.

This problem is due to the new authentication system used by Gnome, PolicyKit, witch doesn’t look to be supported in the upgrade.

All you need to do to make PolicyKit and nautilus-share work is (as root):

  1. apt-get install policykit-gnome nautilus-share
  2. make sure that your /etc/hosts is correctly configured for the localhost. It should contain something like:127.0.0.1 localhost hostname
  3. add a group called admin, add your user to this group:addgroup admin ; adduser username admin
  4. make sure /etc/PolicyKit/PolicyKit.conf contains something like this:
    <!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
    "http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">
    <!-- See the manual page PolicyKit.conf(5) for file format -->
    <config version="0.1">
    <match user="root">
    <return result="yes"/>
    </match>
    <define_admin_auth group="admin"/>
    </config>
    
  5. you will probably need to restart some service, say:
    /etc/init.d/samba restart
    /etc/init.d/gdm restart

Enjoy.

If you found the pocedure useful or you have to add something, please comment.

April 13, 2009


Calendar

August 2017
M T W T F S S
« Jun    
 123456
78910111213
14151617181920
21222324252627
28293031  

Archives

Categories