Intel Xorg driver in Fedora 27 does not have UseEdidDpi and DPI options

Edit: A much better place to change the DPI is in /etc/X11/xinit/xinitrc.d/

/usr/bin/xrandr --dpi 80 --output LVDS1

This will be read by /etc/X11/xinit/xinitrc-common.

# run all system xinitrc shell scripts.
for file in /etc/X11/xinit/xinitrc.d/* ; do
        . $file

I’ve “always” set the Xorg DPI value to a lower value than the default. On Fedora 27 this didn’t any more work through /etc/X11/xorg.conf.d/xorg.conf.

Here’s a horrible kludge to set a lower DPI value with xrandr and to restart plasmashell.

Continue reading “Intel Xorg driver in Fedora 27 does not have UseEdidDpi and DPI options”


How to create a network bridge interface? (Ubuntu)

There’s a 5 minute timeout for bringing up network interfaces that you might run into if you configure your network interface in /etc/network/interfaces. Here’s a way to configure the bridge interface br0 in /etc/network/interfaces so that you won’t run into this timeout.

Continue reading “How to create a network bridge interface? (Ubuntu)”

Some funky bash aliases

Here’s a couple of bash aliases. The first one searches for torrent files from the current directory and shows some info about them.
The second alias searches for media files from the current directroy and shows some details about them.

Continue reading “Some funky bash aliases”

Kludge to keep the external USB disk spinning

I have a Maxell external 4TiB USB disk that has aggressive power saving that I don’t know how to disable.

Continue reading “Kludge to keep the external USB disk spinning”

How to add a new virtual console resolution for a VirtualBox VM?

On VirtualBox host:

$ VBoxManage setextradata "VM name" "CustomVideoMode1" "1400x1050x16"

On VirtualBox VM’s grub boot loader stage, press ‘e’ and add “vga=864” as a new kernel parameter.

If you add an invalid value for vga, i.e. vga=871, you’ll get the list of available resolutions.

Edit 20180316: It seems that vga= expects the value in decimal but the Linux kernel converts the value to hex.

How to convert values from decimal to hex:

$ echo -e "obase=16 \n 864 \n" | bc -l

Ubuntu killed rc.local in 17.10

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.4 LTS
Release:        16.04
Codename:       xenial
$ pwd
$ cat rc-local.service
#  This file is part of systemd.
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

# This unit gets pulled automatically into by
# systemd-rc-local-generator if /etc/rc.local is executable.
Description=/etc/rc.local Compatibility

ExecStart=/etc/rc.local start

Short guide on how to install Oracle VirtualBox 5.2 on Ubuntu 16.04

These are the steps used to install Oracle VirtualBox.

Continue reading “Short guide on how to install Oracle VirtualBox 5.2 on Ubuntu 16.04”

How to configure your WLAN interface in the interfaces file?(take 2)

Getting back to the topic of wireless interface configuration in /etc/network/interfaces, I wrote this blog post earlier in 2015:

Continue reading “How to configure your WLAN interface in the interfaces file?(take 2)”

copy/paste adds newlines on paste?

Add to $HOME/.bashrc:

/bin/stty icrnl
export LESS=-XFR

Add to $HOME/.inputrc:

set enable-bracketed-paste on

Prefer less instead of more.

Create a free website or blog at

Up ↑