Software

23 articles

Linux: xrandr dual monitor setup failing at boot

I set up my dual screen configuration in my local ~/.xinitrc file:

HDMI_MAIN=$(xrandr | grep -o HDMI-[0-2])
xrandr --output $HDMI_MAIN --mode 1920x1080 --primary --output DVI-0 --mode 1680x1050 --right-of $HDMI_MAIN &

I use the $HDMI_MAIN variable because the number assigned to the HDMI screen may be 0 or 2. The xrandr command sets up the resolution of both screens and puts the DVI screen as secondary screen at the right of the HDMI one.

This morning, for a reason still unknown, the DVI screen stayed black. To activate it manually, I first had to disable it and then re-execute the second part of the usual command:

$ xrandr --output DVI-0 --off
$ xrandr --output DVI-0 --mode 1680x1050 --right-of HDMI-2

Note that the black screen problem only happened after the start of X. Everything was fine during boot and grub. Also the --verbose option of xrandr did not give me any clue.

Popcorn Time: a free and open tool for streaming using BitTorrent

Popcorn Time: a free and open tool for streaming using BitTorrent.

Source

Linux: check if your SSD supports TRIM

I have read a lot of articles about optimizing solid-state drives. Most of them talk about the TRIM feature but we need to make sure that our SSD is compatible. To check it:

$ sudo hdparm -I /dev/sda | grep TRIM

If the output is similar to the following, we are good to go:

*    Data Set Management TRIM supported (limit 8 blocks)
*    Deterministic read data after TRIM

Note that hdparm was not installed by default on my Arch Linux installation, but the package is available in core.