Monday, December 17, 2012

[Linux] JME micron, UDP checksum error

The Shuttle XS35 GTv2 box has a JME micron Ethernet card that tends to spam the syslog with checksum errors.

This solved it: ethtool -K eth0 rx off
Replace "eth0" with your network card's identifier.

Solution found here: Fedora Forums

Sunday, May 13, 2012

Android: "Damaged SD card", how i lost my data but reclaimed my SD card (needs root)

Firstly: If you have this problem, contact your retailer or service point!

The story/instructions below are totally unsupported and requires expert knowledge!

My SD card was "damaged" according to Android (4.0.4) running on a HTC Desire S.
Mounting it from the Android menus didn't work at all. Since I didn't care about the data on the SD card I tried to reformat it from Linux but failed. This is how I managed to get the card to work again (though with my data LOST).

The instructions below erases ALL data on our SD card. I am not responsible for loss of data or any other damage to your Phone or SD card!


My phone was using a pre-rooted version of Android with busybox installed, and this is considered a requirement to do the steps below.


* Connect your phone to your computer using Android Debug Bridge (adb) from the Android SDK
* Find out which volume that is representing our SD card by starting logcat (adb logcat) and look at the screen printout while clicking on "Mount SD card" in the "Storage" menu on your Android phone. On mine it was /dev/block/vold/179:65
* Start an adb shell, (adb shell)
* Run fsck on your disk: fsck_msdos /dev/block/vold/179\:65
* Fsck will probably report errors, mine reported exit code 8. If fsck asks if it can try to repair you could try that, it didn't work for me though.
* If the fsck repair failed we are now sure that the card is not possible to rescue. Let's reformat.
* Still in the adb shell, run: mkfs.vfat /dev/block/vold/179\:65 (replace the device name with the name corresponding to your device from previous steps)
* mkfs doesn't output anything if it completed successfully. To make sure our volume/disk/card is OK we run fsck_msdos again fsck_msdos /dev/block/vold/179\:65
* fsck_msdos should report no errors
* Trying to remount the card again in Android should now hopefully work: Settings->Storage->Mount SD card

Again: These steps will erase your SD card completely and all your data will be LOST! I am not responsible for any data loss or damaged cards/phones! The methods above are totally unsupported and if in doubt, contact your retailer or service point!

Saturday, May 12, 2012

Linux: Gnome 3.4, Nvidia. Fix tearing in fullscreen Flash

Add this line CLUTTER_PAINT=disable-clipped-redraws:disable-culling to the file /etc/environment
Restart your session and you should now be able to was Flash videos in full screen tear and lag free.

Bug is registered here:
https://bugzilla.gnome.org/show_bug.cgi?id=657071
https://bugzilla.redhat.com/show_bug.cgi?id=720605

Linux: Flash 11.2, Nvidia. Blue tint

If the Flash video on Youtube has a blue tint while using hardware acceleration, do the following.
Add the line EnableLinuxHWVideoDecode=1  to the file /etc/adobe/mms.cfg


This will fix the blue tint on Youtube and will probably lead to instability (crashes) on other sites.
To fully solve this a patched libvdpau is needed.

For Arch Linux you find it prepared here:http://aur.archlinux.org/packages.php?ID=59181
For ubuntu there doesn't seems to exist a fix for now: https://bugs.launchpad.net/ubuntu/+source/unity/+bug/968489

Note that this a error in Flash and not VDPAU.