Monthly Archive for July, 2010

Firefox default print DPI fix

Firefox on my Dad’s machine always wants to print to 300 DPI by default. He can manually change it, but it’s annoying. Other browsers pick up the printer default of 600 DPI and are happy, but not Firefox. He posted a bug on Launchpad for it and then afterwards I found a fix for it upstream in Mozilla’s Bugzilla.

It’s as simple as:

As user, open a shell and enter:
lpoptions -o Resolution=600dpi

This will add a default resolution to ~/.cups/lpoptions

My ~/.cups/lpoptions contains:
Default IP4200 Resolution=600dpi

So anyone who has the same issue, here’s the work around.

Samsung R480 laptop LCD brightness

Mendy got a Samsung R480 laptop but screen brightness did not work properly. Using KDE’s brightness slider caused the screen to flicker horribly and once you let go, it’s too dark. GNOME’s just doesn’t work at all.

After a suspend and resume with the Nouveau driver, the slider works properly, but only goes to half brightness at the maximum setting. It was possible to set the brightness manually via:
echo -n 60 > /proc/acpi/video/NVID/LCD/brightness

That was not suitable. So I switched to the NVIDIA driver, but the laptop brightness was immutable until I discovered a post with the solution. Simply adding the following to the Device section in /etc/X11/xorg.conf lets KDE control the brightness correctly, and perfectly. Great!
Section "Device"
Identifier "Videocard0"
Driver "nvidia"
Option "RegistryDwords" "EnableBrightnessControl=1"
Option "UseEdidDpi" "false"
Option "DPI" "96 x 96"
EndSection

I also added the DPI option above to get 96×96 as some text was too large after switching to the NVIDIA driver. Fedora still suspends and resumes and everything is just perfect!

Eclipse eGit push bug – SOLVED

After upgrading to Helios and therefore eGit 0.8.4, I could no-longer push to git repos using pre-configured remotes. Adding the same remote manually at time of push works, but is annoying. This is a known bug and is fixed in the code, but won’t be pushed out for the current 0.8 series (for some reason). The bug report has a simple work-around which fixes the problem. Simply edit your repo’s .git/config file and copy the url line and change it to pushurl – problem solved.

Update: Thanks to J Bruni’s comment, if you have a pushurl but not a url entry, do the reverse of above – copy pushurl and rename to url.