Debian: weird mouse behaviour

In my last post I upgraded to the 2.6.22 kernel to get the nvidia closed source driver to work. Since then the behaviour of the mouse has been very weird:

  • Clicks register as double-clicks
  • Can’t access menus in Firefox/Iceweseal using the mouse
  • Selecting icons on the desktop is difficult, more than one gets selected.
  • Can’t click on items in the top Panel, but can on the lower panel
  • Clicking on a Window’s border causes it maximise then return to it’s former size

Bizarre, and annoying! Much googling has turned up almost nought, except for this bug report:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=427406

Found via DebianHelp

I’ll try upgrading to Metacity 2.20.0-1 from Unstable:

apt-get install -t unstable metacity

And of course that doesn’t help!

In my xorg.conf, I’ve 2 mice configured:

Section “InputDevice”
Identifier “Configured Mouse”
Driver “mouse”
Option “CorePointer”
Option “Device” “/dev/psaux”
# Option “Protocol” “PS/2”
Option “Protocol” “ImPS/2”
# Option “Emulate3Buttons” “true”
Option “ZAxisMapping” “4 5”
EndSection
Section “InputDevice”
Identifier “Generic Mouse”
Driver “mouse”
Option “SendCoreEvents” “true”
Option “Device” “/dev/input/mice”
Option “Protocol” “ImPS/2”
Option “ZAxisMapping” “4 5”
EndSection

This is in case my USB mouse craps out and I need to plugin an old PS/2 mouse. This has worked fine for at least a few years, but I suspect the 2.6.22 kernel, or the nvidia driver is getting confused by this. I commented out the “Configure Mouse” section, and that didn’t make a difference.

Switching to the Opensource Nvidia driver (nv) didn’t do it. So it makes me think it’s a kernel specific problem.

Going back to 2.6.18-4 kernel and the nv driver (as I can’t get the Debian packaged nvidia driver to work with 2.6.18). Same behaviour there, which means it’s not the nvidia driver or the kernel so it must be Xorg! And after some googling found this recent bug report:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=443503

I sent a couple e-mail to the bug report, with no reply. So, I downgraded to Xorg from testing and had to manually install xserver-xorg-core_2%3a1.3.0.0.dfsg-12_i386.deb . Which cause nvidia-glx to be removed:

The following packages have unmet dependencies:
nvidia-glx: Depends: xserver-xorg-core (>= 2:1.4) but 2:1.3.0.0.dfsg-12 is installed.

Debian & Nvidia & Kernels 2.6.20/21

Getting this error message after you’ve compiled the nvidia video module and try to load it:

FATAL: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol ‘paravirt_ops’

This happens because paravirtualisation is enabled in these kernels, and causes the kernel to only allow GPL modules to build:

What happens is that when paravirtualization support is turned on many functions in the kernel call implicitly paravirt_ops – function marked as GPL only. One of these functions is udelay – function that makes a program stay idle for some period of time. And the nvidia driver uses udelay (I can’t imagine a driver that won’t use udelay somehow) and therefore you can not compile the driver normally.

This only happens if your running a 2.6.20 or 2.6.21 kernel on Debian. The quick fix (at least for me) is to upgrade to a 2.6.22 kernel and make sure you’ve upgraded nvidia-glx also. Alternatively, you can patch your kernel, see here for more detail and for links to patched verisons of the nvidia driver:
http://grizach.sc18.info/nvpatch/

Links

Some NYC artists are moving to Berlin, for lower prices and a vibrant arts scene:

http://www.spiegel.de/international/zeitgeist/0,1518,505553,00.html

And, Der Spiegel’s look at Europe’s “coolest” city:

http://www.spiegel.de/international/europe/0,1518,502297,00.html

And Dublin’s second coming:

http://www.spiegel.de/international/europe/0,1518,503245,00.html

Apple wants to lock you in to their technology:

http://tirania.org/blog/archive/2007/Sep-20.html

And, Stephen Fry has a blog:

http://www.stephenfry.com/blog

Via, http://www.burtonini.com/blog/computers/fry-2007-09-20-13-10

Interesting article about a modern, but hidden, house in Leitrim:

http://www.nytimes.com

Fun with Linux:

http://frankmash.blogspot.com/2006/03/linux-commands-funny-linux-commands.html

Amazing pics of sea birds near Tory Island, off the North Donegal Coast:

http://www.birdsireland.com/pages/site_pages/features/pelagic2.html

Healthy!

Cool:

http://www.canadianliving.com

From a man from Ireland:
“My number one health tip is: walk everywhere possible! Since work is a 35-minute walk from home, I try to walk home every day, and I mean every day. It’s good basic exercise, limbers me up after sitting all day, helps me unwind and decompress after a day’s work, and is a good way to stay trim. I used to hate walking, but nowadays I really look forward to walking and if don’t get a walk every day I really miss it.”
Mick Timony

Dollar down!

The Canadian dollar is at it’s highest rate against the US dollar and is now worth .98c:

http://www.ctv.ca/servlet/ArticleNews/story/CTVNews/20070918/dollar_parity_070918/20070918?hub=TopStories

The Canadian dollar set a 30-year-high Tuesday, closing at US98.64 cents after investors got word of a drastic interest rate cut south of the border.

And, it may be worth more than the US dollar soon!

Economists say it could only be a matter of days before the loonie reaches parity with the American dollar:

“You got the two ingredients, commodity prices and interest rate differentials, both going in the dollar’s favour,” said Don Drummond, chief economist for TD Bank speaking to CTV Newsnet Tuesday evening.

Speculation surrounding the rate cut and record oil prices helped push the dollar past yesterday’s close of US97.28 cents. But the real surge came after the U.S. Federal Reserve cut its key funds rate half a point to 4.75 per cent to curtail a possible recession.

I wonder how much of this is due to rampant US government spending, for instance the billions on the TSA and the Dept of Homeland Security, and the many more billions spent prosecuting the incomplete Iraq and Afghanistan conflicts.

Look at http://www.dhs.gov  and the title is “Protecting our Freedoms”, the correct grammar is “Protecting our Freedom”. And I am the only one for whom the term “Homeland Security” sounds like something from Nazi Germany?

Gnome Fonts too big in Ubuntu Gutsy?

I upgraded my Dell 700m laptop from Ubuntu Feisty to Ubuntu Gutsy. Gutsy is the current developemnt (beta) release of Ubuntu Linux and is planned to be released in October of 2007. After upgrading to Gutsy and restarting my laptop many of the fonts were too big.

To correct this you may need to set the DPI to 96. To see why read this:

http://primates.ximian.com/~federico/news-2007-01.html

And this:

http://scanline.ca/dpi/

To change the DPI go to the Font settings applet; click on System, then Preferences, then Appearance:

Menu

On the Window that opens click on the Fonts tab, and then click on the Details button on the lower right:

Gnome Font Selector

Note: Your fonts may be different than what I have set.

On the Details window the dots per inch in the upper left may be set to something other than 96. Change this to 96 and you should see your fonts change:

Gnome Details Settings

You may need to logout and back in again for fonts to change for all of your running applications.

Also, if you don’t have a LCD display you will not want to have “Subpixel (LCDs)” enabled like I do.

If you want to change what fonts you use read this for tips for which fonts are better for legibility:

http://www.kuro5hin.org/story/2004/12/6/11739/5249

Links: Sept 10th 2007

Today’s interesting links, via Reddit:

About the guy who makes “2 buck chuck” a cheap wine sold by Trader Joe’s:

http://money.cnn.com

Franzia, who rose to fame several years ago when he started selling a $2 bottle called Charles Shaw, calls winemakers “bozos in a glass.” He really goes off on wine critic Robert Parker, who, he says, likes tannic wines that make people gag. He mocks my college (“We buy wineries from guys from Stanford who go bankrupt. Some real dumb-asses from there”) …

Riding shotgun on a Apache attack helicoper:

http://www.strategypage.com/military_photos/20079811857.aspx

RFID implants cause cancer in rodents, good overview from Arstechnica about possible conflict of interests in approving these for use in humans:

http://arstechnica.com

Is the problem from the radio waves or from the material that the implants are made from?

The Guardian talks about should the Greens be talking (or pushing) for population control:

http://www.guardian.co.uk

They do have a point, afterall there are 6 Billion+ and growing and England is growing:

But England is now the second most densely populated country in Europe, after Belgium, and at current rates of increase it could be second only to Bangladesh in the world by 2074. There are those who argue that there’s no need for alarm, and that we can concentrate development in brownfield sites to accommodate all the millions of extra homes needed. But how many more people can you squeeze into cities that already seem to be choking under the weight of their population density – the buses and trains packed, the streets clogged and the parks on a Sunday afternoon teeming with people.

And, Urban blight in England:

http://environment.guardian.co.uk/flash/page/0,,2166176,00.html

“Do They Have Homeless People Where You Come From?”
http://urbanparamedic.blogspot.com

Links!

Some of the more interesting pages I’ve been looking at today:

Melting ice caps in Greenland triggering earthquakes:
http://www.guardian.co.uk/environment/2007/sep/08/climatechange/print

And Polar bears numbers may be vastly reduced in the wild:
http://www.nytimes.com/

RFID chips cause cancer in rodents:
http://www.washingtonpost.com

Reverse anthropology?
http://news.independent.co.uk/uk/this_britain/article2932252.ece

Brian’s 40th!
http://donegalfriends.blogspot.com/2007/09/happy-40th-brian.html

Stupid burglar near the lake!
http://www.leaderherald.com/news/articles.asp?articleID=12497