StokeBloke.com

Crazy mouse speed fix

Tuesday, January 6th, 2015

I recently bought a Logitech Business Mouse but when I plugged into my desktop (running Gentoo Linux) it was running at ludicrous speed.

When I opened the “Mouse and Touchpad” UI and tried changing the Acceleration down from 2.0 to 0.1.

Default XFCE mouse speedThis made the mouse better but I didn’t like how it felt.  I cant really describe what was wrong with it.

I found this blog which said I could enable “Constant Deceleration” to fix this issue so I ran :

xinput --list

which lists the core pointers

Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ Logitech USB Optical Mouse              	id=12	[slave  pointer  (2)]

I then ran :

xinput -set-prop "Logitech USB Optical Mouse" "Device Accel Constant Deceleration" 2.5

which slows down the 800dpi to be closer to my older mouse.    This meant the mouse was working the same my old Dell one but it wasnt being remembered after a reboot.

Created /etc/X11/xorg.conf.d/50-mouse-acceleration.conf with the following contents

Section "InputClass"
   Identifier "Logitech USB Optical Mouse"
   MatchIsPointer "true"
   MatchProduct "Logitech USB Optical Mouse"
   Option "ConstantDeceleration" "2.5"
EndSection

Note : sudo emerge -av x11-apps/xinput

Enabling bootchart with Fedora 16

Sunday, January 8th, 2012

To install bootchart under fedora simply run

yum install bootchart

Once installed you simply need to enable a grub entry to call it.  You just need to add the init=/sbin/bootchartd string to the end of the kernel settings.

I actually copied the existing kernel entry and added it (incase I mistyped something)

title Fedora (3.1.6-1.fc16.i686.PAE) with bootchart
    root (hd2,0)
    kernel /vmlinuz-3.1.6-1.fc16.i686.PAE ro root=/dev/md126 rd_NO_LUKS rd_NO_LVM rd_NO_DM    LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 \
          KEYTABLE=de-latin1-nodeadkeys rhgb \
          quiet nouveau.modeset=0 rdblacklist=nouveau \
          init=/sbin/bootchartd
    initrd /initramfs-3.1.6-1.fc16.i686.PAE.img

Now when I reboot and select this grub entry a bootchart file is written to /var/log/bootchart.tgz

Then run the bootchart command to generate an image of the results.

Bootchart results from my fedora 16 installation

Fedora enable memtest

Thursday, January 5th, 2012

Well I started to have some strange crashes from some programs and this morning my PC just turned itself off.

I really expected it to be a memory problem so I needed to enable memtest86+ on my new fedora installation.

I quickly found http://fooninja.net/2011/05/05/loading-memtest-from-grub-fedora/

This is still valid.

Simply append

title Memtest86+ (4.10)
    root (hd0,4)
    kernel --type=netbsd /elf-memtest86+-4.10

to the end of the /boot/grub/grub.conf and reboot

Voilà errors Memtest86+ screen shotnow I just need to figure out which memory to take out 🙂

Disable resize grip in Ubuntu 11.04

Tuesday, May 17th, 2011

If you don’t like the big resize grip on emacs, firefox and many other applications you can disable them in Ubuntu 11.04.

See
http://www.omgubuntu.co.uk/2011/05/disable-the-resize-grip-in-ubuntu-11-04/

You simply need to add

style "default-style"
{
  GtkWindow::resize-grip-height = 0
  GtkWindow::resize-grip-width = 0
}

class "GtkWidget" style "default-style"

to your ~/.gtkrc-2.0 file.

Disable Overlay Scrollbars in Ubuntu 11.04

Saturday, April 30th, 2011

I updated my Ubuntu to 11.04 yesterday and really didn’t like the new scroll bars.

After a little searching I found

  • http://www.worthytips.com/14681/easily-disable-overlay-scrollbars.html
  • http://www.matbra.com/en/2011/04/28/remover-ou-desabilitar-a-barra-de-rolagem-overlay-ubuntu-11-04/
  • and many more.

Simply add the string “export LIBOVERLAY_SCROLLBAR=0” into the /etc/X11/Xsession.d/80overlayscrollbars file.

E.g perform the following as root

echo "export LIBOVERLAY_SCROLLBAR=0" > /etc/X11/Xsession.d/80overlayscrollbars