Fight for the Internet 1!

Showing posts with label xorg. Show all posts
Showing posts with label xorg. Show all posts

Thursday, January 21, 2010

KDE 4.3 Fails to Load after System Update (Solution)

After installing my system updates yesterday, KDE 4.3 failed to load upon reboot this morning. It boots until it reaches the KDE login screen (with KDM) but it will let me log in from there at all.

The last updates installed were:
  • Package: xserver-common, version 2:1.6.4-2ubuntu4.1
  • Package: xserver-xorg-core, version 2:1.6.4-2ubuntu4.1
Though I suspect that the recent updates to gcc/g++ and libc/libstdc++ may have also affected this. I can't be sure.

Either way, I don't know exactly what the problem was, but here is the solution I found. My '.Xauthority' file in my home directory was the problem. I don't know what was wrong with it, but after I cleared that file of all contents, KDM let me log in normally. I hope this fix works for anyone else.

Tuesday, November 17, 2009

Ubuntu 9.10 Karmic Nvidia-settings parse fail with xorg.conf

There is a bug in Ubuntu 9.10 Karmic with the default /etc/X11/xorg.conf involving Nvidia. If you try running 'kdesu nvidia-settings' or 'gksu nvidia-settings', then try to save with "Save to x confguration file" button, but receive the error:
Failed to parse existing X config file '/etc/X11/xorg.conf'
I found the problem by running:
sudo nvidia-settings 2>/dev/null

VALIDATION ERROR: Data incomplete in file /etc/X11/xorg.conf.
Undefined Device "(null)" referenced by Screen "Default Screen".

Erreur de segmentation
My default /etc/X11/xorg.conf looks like this:
Section "Screen"
Identifier "Default Screen"
DefaultDepth 24
EndSection

Section "Module"
Load "glx"
EndSection

Section "Device"
Identifier "Default Device"
Driver "nvidia"
Option "NoLogo" "True"
EndSection
To fix the problem, just remove the Section "Screen" part. IF YOU NEED HELP EDITING CONFIGURATION FILES UNDER LINUX, please see this link: http://awesomelinux.blogspot.com/2010/09/how-to-edit-configuration-file.html

The final version (before you edit it with the nvidia-settings program) should look like this:
Section "Module"
Load "glx"
EndSection

Section "Device"
Identifier "Default Device"
Driver "nvidia"
Option "NoLogo" "True"
EndSection

Wednesday, August 26, 2009

Wacom Draw Tablet under X-Windows

Problems with Monitor and Draw Tablet Screen
I have been using my draw tablet for about a year in Linux. While Ubuntu now makes the installation as easy as a KDE/X-Windows session restart, I still have some problems. Over the years I have tried every option I can think of to get things "perfect" but nothing has quite worked. But I have managed a workable solution for when I draw, so I will share it.

If anyone knows a better solution that what I am have here, please feel free to comment.

My System
I use an Nvidia 9400 GT with my Dell 2407WFPHC and my Wacom Cintiq 12WX CRT. I also use the Nvidia provided graphical configuration program for my display. (The package is called nvidia-settings. The program shares the same name.)

Using the Nvidia program, I have the following options:
  • Disable
  • Separate X screen
  • TwinView
Let's talk about them.

Separate X Screen
This is pretty straightforward. X-Windows treats the displays like separate X-screens. But for me, this option has had major problem since KDE 3.5 until even now in KDE 4.3 (and every version of Xorg in between). X-Windows does indeed create an X-screen on each device. But when using this, KDE creates a session on Screen 0, but fails to create a session on Screen 1. I had hoped that KDE 4.3 would have added this feature, now that they have improved Multiple Monitor support, but no such luck yet.

On top of not KDE not opening/creating a session on screen 1, there is a pen-tool error between both displays. The pen-tool's movement is radically distorted with the cursor movement between the screens, making it completely unusable. No positions or orientations I have tried have fixed this even a little.

Xinerama (under Separate X Screen mode)
When using Separate mode, I can choose to enable Xinerama. Unfortunately that breaks Compositing, which means Alpha-transparency and other desktop effects are disabled.

But the real deal-breaker is the unusable cursor-movement with the pen-tool. There is a problem with the cursor jumping between the two displays after moving a percentage of the way across the screen. The distance roughly corresponds to the difference in resolution pixel size between my tablet and my monitor. So, depending on the positioning of each display in my Xorg.conf (left of, right of, below, above, etc), the areas of the screen where the cursor will jump to-and-from varies but the square area is generally the same.

This is, I believe, an unfortunately reality of Xinerama from what little research I have done on the subject. If my tablet were able to do a resolution like 1920x1200, like my desktop monitor, perhaps this would not be a problem. Sadly it is, and I have never found even the slightest hint of a solution or work around for this.

TwinView
TwinView mode works great for multiple desktops in KDE. Using KDE 4.3, the system detects both displays and works very nicely. Compositing and all those lovely eye-candies are still present.

Unfortunately, the pen-tool error between both displays still occurs. The pen-tool's movement is radically distorted with the cursor movement between the screens, making it completely unusable. No positions or orientations I have tried have fixed this even a little.

Workaround Solution
The only workaround solution I know that does let me use my tablet with no distorted cursor/pen-tool movement is disable my monitor display and use the tablet as the primary display. This always makes me a little sad, but I live with it. I keep hoping one day this will be fixed.

Sunday, June 21, 2009

Ubuntu makes Draw Tablet installation easy as could be

So I own a Wacom Cintiq 12WX draw tablet. Yes, it is a very expensive toy and I use it in Linux.

Prior to switching to Ubuntu 9.04 Jaunty, the process involved with getting my tablet to work was somewhat involved.

  1. Plug in the device
  2. Throw some generic config lines into /etc/X11/xorg.conf to enable the input devices
  3. Compile the latest Linux Wacom Project drivers myself and load them into my kernel
  4. Change my nvidia settings to accommodate my new display
  5. Restart KDE
  6. Enable the input device in The Gimp

Oh yeah: I also needed to make sure I had the darn thing plugged (usb and vga/dvi) in properly. (I have missed it a few times among all my other cables).

Not a lot of work and the compilation is pretty simple.

But now with Ubuntu 9.04 Jaunty, my job is much simpler:
  1. Plug in the device
  2. Change my nvidia settings to accommodate my new display
  3. Restart KDE
  4. Enable the input device in The Gimp
Let me tell you, it does not get much easier than this. I mean, plug it in and go!

I am having a minor configuration issue with simultaneously using my tablet input and my mouse to work on the same drawing area. It seems that somewhere along the way, the tablet input takes precedence and disables using the mouse to affect the Gimp Drawing area. I'm looking for a solution and I will post it when I know it.