Category Archives: Memento

No sound when plugging in headphones

Notebook model: Terra Mobile 1773P
OS: Ubuntu 12.04, 64bit
Loaded modules: snd_hda_codec_realtek, snd_hda_intel

Sound works fine while listening via notebook speakers.
But when plugging in headphones, there is no sound at all.

Checking alsamixer (in command line) shows that “Headphone” cannot be chosen, and “Speaker” is muted. When turning up “Speaker” volume, there is sound on the headphones…

Permanent solution:
Edit /usr/share/pulseaudio/alsa-mixer/paths/analog-output-headphones.conf :

[Element Speaker]
switch = mute
volume = merge

Intel ( 4965 ) WLAN & Linux

WLAN disconnects. Every now and then.
Sometimes every hour, sometimes every 5 minutes.

Log:
Microcode SW error detected. Restarting 0x82000000.
Firmware version: 228.61.2.24


I had the problem with Ubuntu 9.10 (Karmic Koala)
and with Ubuntu 10.10 (Maverick Meerkat), too.
Maybe there’s a problem with the driver and the hardware encryption of the chipset?

And because I never want to search for this again, here’s what did it for me:

Create /etc/modprobe.d/iwlagn.conf with this content:
options iwlagn swcrypto=1

Reboot -> no more problems : )

Found at: Ubuntu Forum Community

Changing file permissions recursive

Just a note for myself (because I always forget):

# change permissions for files in current directory (and all sub-directories):
find ./ -type f -exec chmod 644 {} \;

# change permissions for directories in current directory (and all sub-directories):
find ./ -type d -exec chmod 755 {} \;

When console columns and lines are not enough

If you want to use a higher resolution on your linux console, you have to add the specific option while loading the kernel.
i.e: kernel /vmlinuz-2.6.25 root=/dev/sda3 resume=/dev/sda2 vga=0x0325

Problem: The settings differ depending on your graphics card.
But: There is an easy way: hwinfo

[ sudo ] hwinfo −−framebuffer

Example output:
Mode 0x0307: 1280×1024 (+1280), 8 bits
Mode 0x031a: 1280×1024 (+2560), 16 bits
Mode 0x031b: 1280×1024 (+5120), 24 bits
Mode 0x0305: 1024×768 (+1024), 8 bits
Mode 0x0317: 1024×768 (+2048), 16 bits
Mode 0x0318: 1024×768 (+4096), 24 bits
Mode 0x0312: 640×480 (+2560), 24 bits
Mode 0x0314: 800×600 (+1600), 16 bits
Mode 0x0315: 800×600 (+3200), 24 bits
Mode 0x0301: 640×480 (+640), 8 bits
Mode 0x0303: 800×600 (+832), 8 bits
Mode 0x0311: 640×480 (+1280), 16 bits

Thanks to Gerd [de] for the hint.

VMware Server [1.06] on SLES 10 x86_64

OS: SUSE Linux Enterprise Server 10 SP1 (x86_64) [64 bit]

VMware Server [1.06] depends on some 32 bit software:
+ xorg-x11-libs-32bit-6.9.x (should automatically add the other packages, too)
– expat-32bit-2.0.x
– fontconfig-32bit-2.3.x
– freetype2-32bit-2.1.x
– glibc-32bit-2.x
– ncurses-32bit-5.x
– zlib-32bit-1.2.x

Additionally gcc, make, kernel headers, etc. have to be installed to run vmware-config-tools.pl properly.

Continue reading VMware Server [1.06] on SLES 10 x86_64

WordPress / enabling (built in) cache

Edit wp-config.php and add
define('ENABLE_CACHE', true);

Create the directory cache in the folder wp-content/ (take care it’s writeable!)

If you want to take control about expiration time, you can do this including these lines in wp-config.php:
define('CACHE_EXPIRATION_TIME', 900);

That’s all : )
The next time, your blog is being visted, the pages will be cached..
B.t.w.: You can empty the cache directory every time you want (in case of trouble, etc..).

More infos:
http://www.mitternachtshacking.de/blog/356-wordpress-cache-aktiviert (de)
http://sw-guide.de/2007-07/bessere-blog-performance-dank-wordpress-internen-cache/ (de)

Update (!):
The file-based caching mechanism has been removed from the WordPress 2.5 code. Detailed infos at neosmart.net.