Agoraphobiae

Code | Games | Geek


Leave a comment

Empty /etc/default/grub

Linux Mint 14 comes with grub2 and a strange surprise (for me anyway): the /etc/default/grub file is completely empty. Instead, /boot/grub/grub.cfg and /etc/grub.d/ contain the grub configuration. This doesn’t mean, however, that the /etc/default/grub file can’t be used. The following is a sample configuration file I made for myself after reading¬†https://help.ubuntu.com/community/Grub2/Setup#Configuring_GRUB_2.

This will hide grub unless the SHIFT key is held down, and will not wait until booting the first option (in my case Linux Mint 14).

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=0

Remember to run

sudo update-grub

when done, and reboot to see the change.

Just wanted to give a heads up to all of us out there wondering why /etc/default/grub is empty.


Leave a comment

Dual Monitors in Linux Mint 14

Dual Monitor setup in Linux Mint 14 with xrandr

So I recently began dual booting Linux Mint 14 and Windows 7 on a Lenovo Ideapad Y580 (which was not a walk in the park, but also one of the simpler *nix installs I’ve ever done). Out of the box, Mint did not detect the correct resolution on my second monitor, maxing out at 1024×768 on the 1080p display. After wrangling with the NVIDIA proprietary drivers, I ended up installing bumblebee (I’ll try to post a complete guide on getting Linux Mint 14 working on dual boot on the Y580).

In the meantime, in order to get the monitor working in 1080p, I followed this tutorial: https://wiki.archlinux.org/index.php/Xrandr#Adding_undetected_resolutions. After successfully getting the modeline, I was able to get 1080p working, but instead of having to type those commands again, I made the following script, which you can save and use to activate your dual monitors as well.

#!/bin/sh

xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
xrandr --addmode VGA1 1920x1080_60.00
xrandr --output VGA1 --mode 1920x1080_60.00
xrandr --output VGA1 --primary

The first line would have to be replaced with the output from the cvt command for your desire resolution, and VGA1 with the name of the display you want to set up. Use

xrandr -q

to find the name of the display. The last line sets the second monitor as the primary display (with the application panels, etc). It can be commented if this is not what you want.

Simple, but I had some trouble finding a solution, so here you go.