Tuesday, February 21, 2012

Arch Linux on an Asus Zenbook UX31E

Arch/Linux specific:
  • The most annoying issue is that if I have an HDMI device plugged in at boot, which I usually do at home, then the laptop screen will not come on. Possibly related to issues I have unplugging HDMI.
  • Adding i915.i915_enable_rc6=1 to you kernel boot options can result in considerable cooling and power savings. This Ubuntu article recommends disabling VT-d in the BIOS. Shutdown issues have been fixed in Kernel 3.3-rc6.
  • UEFI: The boot menu seems to be on the last page of the BIOS setup page. This doesn't seem to be automatically populated beyond a single item for each boot partition, presumably booting /efi/boot/bootx64.efi, but you can add your own boot item by manually entering the path. If you always want to boot into grub, and use grub's own boot menu, then copy grub.efi to the above file.
  • The Grub2/Asus UEFI issue seems to have been fixed by 2.00 Beta 2, 21 March 2012.
  • The Sentelic touchpad works out of the box, but to get scrolling etc working use Saaros's patch. Recompiling the kernel with this patch is fairly straight forward if you follow the instructions carefully. I have to say that with the patch, the pad seems less accurate and tapping seems slightly less sensitive (or maybe just slower?), which is a shame.
  • Sleep/suspend to RAM works if you add xhci_hcd, ehci_hcd and uhci_hcd to SUSPEND_MODULES.
  • The function keys (mute, volume, brightness) either work out of the box(!) or carried on working from when I'd set them up for my X220.
  • Brightness adjustments made using the keyboard do not get reflected in /sys/class/brightness, but this is being fixed.
  • Battery life seems pretty amazing, at 5-6 hours, even under Linux.
  • Cheekily Asus advertise the disk capacities as 64G/128G/256G, when, as they are SandForce based drives, they will actually be 60G/120G/240G.
  • The keyboard is not great, to say the least. Some of the keys do not register if you do not press them dead centre, however the trackpad is actually quite good as far as I am concerned.
  • The screen is quite cold/blue. There is a UX31E ICC profile on this review. You can use xcalib to load it in Linux, although it does make the top right hand corner a little green for me, so I am currently using the UX21E version.
  • The audio is excellent, for a laptop. Although the balance is off on mine.
  • Install the ATK/ACPI driver first. This is buried deep in the utilities section of the Asus download page.
  • If your machine wakes immediately after sleeping then you need to install the Power Option utility.

Monday, February 20, 2012

Sorry, this program only supports ASUS notebook!

If after reinstalling Windows on an Asus machine you get "Sorry, this program only supports ASUS notebook!" or "This program can only be executed on the ASUS computer!" on trying to install/run drivers/utilities you need to install the ATK/ACPI driver first. This is buried deep in the utilities section of the Asus download page.

Wednesday, February 01, 2012

Extracting Images from SWF/Flash Websites

The Foragers Wins @ The Sussex Food AwardsMy brother is the head chef at the Foragers Pub in Hove. They recently won an award at the Sussex Food Awards. So far so good, apart from the tiny photo on the awards page and the fact that their pages are written entirely in Flash.

I know that the picture is available bigger, because I can zoom in, both by ctrl+mouse wheeling and using Firefox's zoom and by right clicking and using Adobe's zoom. However Firefox's zoom does not go far enough and I cannot scroll down the page while using Adobe's zoom. So to extracting the image, a simple enough task I thought. Except it's not, because the SWF file referenced by the HTML is virtually empty and once I had located the files they were apparently corrupt.

The best tool I found to get all resources used by an SWF is called SWF Web Vampire and if you need to do this a few times I would recommend buying it, $30 is not a lot of money.

SWF Decompiler, SWF Picture Extractor and the more Linux-y (ie, command line) SWF Tools all looked good, but all reported that the SWF image files I was getting from the website were corrupt. In the end I loaded them in IE and took a screen shot.

Incidentally I feel that the Sussex Food Awards have missed a trick here, if they made their photos easily available, but stamped their logo, and the logo of the company sponsoring the specific award on the image that would surely be a better situation for everyone involved?