Archive for May, 2008

How to know the return value of a command

Sunday, May 18th, 2008

Just do:

$ echo $?

and that’s it.

Thinkpad R50e suspend and resume

Thursday, May 15th, 2008

So I have a loyal R50e, thing is that resuming from suspend breaks graphics, I had that working back in the days but recent upgrades of drivers and stuff broke it for some months, I didn’t care to fix it since I didn’t have battery anyway.

But now I fixed it again, trick is to edit /usr/share/acpi-support/IBM.config:

# R50e
1834*|1842*|2670*)
ACPI_SLEEP=true;
SAVE_VIDEO_PCI_STATE=true;
# toggled false ->; true
SAVE_VBE_STATE=true;
POST_VIDEO=true;
;;

There! You must make those two vars be true. Maybe some tweaking to /etc/defaults/acpi-support would be needed. Most of time this should be all you need to do.

SMTP and gmail

Thursday, May 15th, 2008

Just for the records, gmail’s SMTP server uses port 465 for SSL and the 567 (or a similar number, too lazy to search for it) TLS, I had SSL + port 567 and I have been wondering why Evolution didn’t send my mails. Now I found out.

Fixing control+arrow in gnome-terminal

Friday, May 9th, 2008

I totally forgot how to fix this, so to not forget it again, here is it:

Add “$include /etc/inputrc” to your ~/.inputrc.

From lp #89235


Bad Behavior has blocked 51 access attempts in the last 7 days.

Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Peru
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Peru