Xfce laptop lid disabling HDMI monitor

Friday, January 8th, 2016

Prio to Linux Mint 17.0 I used to run my laptop with the lid shut and used just the HDMI monitor connected to it when I was in the office.  When I upgraded to Linux Mint 17.0 closing the lid caused both the laptop monitor and HDMI monitor to go off.

After finally getting annoyed with the laptop monitor changing in the peripheral of my vision I decided to fix it.

After a little googling I found

Which says





I restarted and logged in and now I can shut the laptop lid without the HDMI monitor going off.

Disable ipv6 on mint/ubuntu

Thursday, February 5th, 2015

How to disable ipv6 on ubunut distros

Edit the sysctl.conf file

sudo emacs /etc/sysctl.conf

append the following to the end of the file

# IPv6 disabled
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Reload sysctl config

sudo sysctl -p

Now checks its gone by running ipconfig

eth0   Link encap:Ethernet HWaddr e0:db:55:bc:1e:bb 
       inet addr: Bcast: Mask:
       RX packets:429875 errors:0 dropped:0 overruns:0 frame:0
       TX packets:154053 errors:0 dropped:0 overruns:0 carrier:0
       collisions:0 txqueuelen:1000 
       RX bytes:300878637 (300.8 MB) TX bytes:17446275 (17.4 MB)

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.


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

  • 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

Ubuntu Alt-Right click to resize

Friday, April 9th, 2010

I recently moved my laptop from a Gentoo Linux distribution to Ubuntu. This was mainly that the rebuild time was very slow and updating my laptop, with gentoo, would take hours if not days. I decided to move to a binary distribution and chose Ubuntu. There was no real reason I chose Ubuntu over any other though.

Most of the setup was easy, the only issue I found was that Ubuntu uses Alt-Middle Mouse to resize the windows. I have used xfce for years and I just couldn’t get used to this change in Ubuntu.

I did alot of searching and could not find out how to change it.

…. some hours later …

Well I finally managed to get Ubuntu to resize with Alt-Right Click (button3).

By default Ubuntu resizes with Alt-Middle Mouse Button, my laptop mouse has a very small middle mouse button. I use xfce on my other linux boxes and I wanted all the Window Managers to function the same.

I tried installing the CompizConfig Settings Manager. I then disabled the Window Menu which was using Alt-Button 3 and went to the resize window setting and made that Alt-Button3. This seemed to be ok, until I tested it. The Alt-Button 3 was still showing the Window Menu.

I tried disabling the Window Menu totally, but the settings simply wouldnt stay.

After a bit of searching I found this.
where it says:

open ccsm, go to Preferences, and if gconf is selected as a back-end, then make sure that the checkbox “Enable integration into the desktop environment” is unchecked.
Now you change change the bindings.

I’m not 100% what the “Enable integration into the desktop environment” checkbox provides, but everything seems to work ok with this checkbox disabled.

Also see

This workaround only works when you have the visual affects no though.  If you turn off the visual affect then compiz isnt controlling the right click any more and it goes straight back to opening the Window Menu.

I’m still trying to get the window manager to resize on right click without the visual effects being enabled. If anyone know, please let me know.