Malicious enjoyment derived from observing someone else’s misfortune
 

Tag Archives: xorg

Moving the mouse with Python

I’ve been using KDE4 in Ubuntu, and I really like it – it’s slick, has everything I need, and it all seems to gel together pretty well. Yet, the power management is really starting to make me angry. I’ve turned all of it off, checked ps and other tools for any signs that it’s still running, and despite my efforts, my screens still turn black after 10 minutes unless mplayer is running. So, I decided to fix that using Python, [...]

Hardy Heron on the M1530

So, I upgraded my Ubuntu installation from Gutsy to Hardy today on my precious laptop. It went pretty well except for the nvidia driver. I ended up having to copy one of my old configurations over xorg.conf to actually make it work. Just so anyone who has the same problem again (including myself) can fix it without being really lucky, here’s a link: A working xorg.conf for Gutsy and Hardy on the M1530 It ends up looking like this: The [...]

Finding bad JPEGs with Xorg hacks in Ubuntu

So, I have all these JPEGs, and I want to know which ones are corrupt (specifically, ones that end prematurely). qiv will spit out the following to STDERR when it finds one: Premature end of JPEG file So, this is nice, except it’s entirely unscriptable. The solution I found was using the following script to the display the images in sequence: perl -e ‘for(glob(“*.png *.jpg”)){$output = `qiv “$_” 2>&1;`; if($output =~ /Premature/){print $_, “\n”;}}’ All this does is mix STDERR [...]

Gutsy Fusion Pain

I couldn’t get my stupid mouse to work properly, so I took action and edited my xorg.conf! Section “InputDevice” Identifier “Configured Mouse” Driver “mouse” Option “CorePointer” Option “Device” “/dev/input/mice” Option “Protocol” “ExplorerPS/2″ Option “Buttons” “7″ Option “ZAxisMapping” “4 5″ Option “Emulate3Buttons” “false” EndSection Also, Compiz Fusion seemed to keep control of my Windows key after I disabled all it’s bindings for it, and wouldn’t let it go until I restarted X. Oh well, my Amarok rating global hotkeys work again [...]

Automagic blending of wallpapers using RMagick

I wanted a program that let me blend random wallpapers from a directory together and set them every minute with increasing opacity on one image, and then to select a new random image and repeat the process. I did this using RMagick and some Ruby. Make the following tree: ~/.wallmold/ current.yml Fill current.yml with this: — file2: someimage wallpaperdir: wallpaper directory dissolution: 0.1 file1: anotherimage Replacing the image names and directory with the proper stuffs, full path on directory and [...]

Killing Caps Lock

As seen here: Option “XkbOptions” “ctrl:nocaps” Horray. Awesomeness. Changes the caps lock key to a control key in Linux via xorg.conf.

Xorg Screen Rotation with RandR and Nvidia

To get rotation to work, jam this into the device section of xorg.conf: Option “RandRRotation” “true” Then you can use xrandr to rotate the screen: xrandr -o left # Also ‘normal’, ‘inverted’, and ‘right’ It rocks on my 21” Samsung LCD.