Slow wifi with Intel 7265 iwlwifi on Arch

I use my Arch powered bootable USB drive on lots of different hardware, but most often on hand-me-down laptops from work. I recently moved into a newish laptop (a Dell Inspiron 13-7352, P57G) which came with an Intel 7265D wireless card. Its a really nice 2 in 1 laptop where the screen folds back so you can use it in tablet mode, its the size I like (13″) has a backlit keyboard and a touchscreen with an i7. I don’t see myself ever using this thing in tablet mode but build quality seems good and the keyboard is very Macbook-like chicklet type which, while I’m not a huge fan is usable.

Sadly, I do need to keep the SSD drive loaded with Windows (10) since its a work machine, but I was able to take it out of secure boot mode so I could boot from USB as needed. The first few tweaks I needed was to change the resolution because the default res on this screen is only good for the under 30 set. xrandr --output eDP1 --mode 1600x900 gets me something I can live with. Since I use the USB stick on lots of machines, and I’m running i3 and using netctl I don’t have it connect automatically. Sometimes I need to manually scan (like at the library) so I have a few preset profiles I can load set up, but its just another step when I boot to manually connect up. Fn+Brightness keys work fine, as does the Fn+keyboard backlight key but volume keys do not. These are set up in the .i3/config file and I haven’t messed with those keybindings for a couple years and I haven’t looked into fixing that yet, for now I’m just using alsamixer to adjust sound. I did add a binding for screenshots:

# Screenshot bindings 170212
bindsym Print exec scrot $HOME/Pictures/Screenshots/`date +%Y-%m-%d_%H:%M:%S`.png
bindsym $mod+Print exec scrot -u $HOME/Pictures/Screenshots/`date +%Y-%m-%d_%H:%M:%S`.png
bindsym $mod+Shift+Print exec scrot -s $HOME/Pictures/Screenshots/`date +%Y-%m-%d_%H:%M:%S`.png

It wasn’t long before I realized that the network speed over the wireless was just awful when in Linux (currently using kernel 4.9.8-1). The Intel 7265 is fully supported under Linux, though it doesn’t specifically list the 7265D and there really aren’t many complaints about it out there, though there definitely are some and some of those were solved by disabling 11n, but no matter what I tried I just could not get anything faster than about 1.5Mbit/s over my 20Mb connection. The card ran fine in Win10, but even when I disabled the latest iwlwifi (22) and tried each previous version successively in /usr/lib/firmware it wouldn’t ever work right. Another possible culprit was power management but turning it off didn’t help, and most folks complaining about slow performance due to power management reported a slow-down after a certain time period (as if the radio was being powered down on a time limit). This wasn’t my case – it was just slow all the time and equally so. There definitely are some ACPI errors at boot on this machine very similar to those some folks were blaming on the BIOS. The BIOS numbering for this machine (A09) appears to be in an entirely different sequence from the one discussed there (1.4.4) though. There are a few ACPI related errors at boot and I did find a similar kernel bug reported for this kernel, and others have discussed this issue but mostly everything does seem to be working. I can shut the lid and it suspends, and opening it again it resumes and wifi and networking function properly:

ACPI Error: [\_SB_.PCI0.LPCB.H_EC.ECWT] Namespace lookup failure, AE_NOT_FOUND (20160831/psargs-359)
ACPI Error: Method parse/execution failed [\_TZ.FN00._ON] (Node f44bcfa8), AE_NOT_FOUND (20160831/psparse-543)
ACPI: Thermal Zone [THM] (56 C)
ACPI Error: [\_SB_.PCI0.LPCB.H_EC.ECRD] Namespace lookup failure, AE_NOT_FOUND (20160831/psargs-359)
ACPI Error: Method parse/execution failed [\_TZ.TZ00._TMP] (Node f44bcf78), AE_NOT_FOUND (20160831/psparse-543)
ACPI Error: [\_SB_.PCI0.LPCB.H_EC.ECRD] Namespace lookup failure, AE_NOT_FOUND (20160831/psargs-359)
ACPI Error: Method parse/execution failed [\_TZ.TZ01._TMP] (Node f44bc1b0), AE_NOT_FOUND (20160831/psparse-543)

I wish I could relate a more satisfying solution than this: I swapped out the 7265D for a 7260 wireless card out of an ASUS UX303L I have with a broken screen. A few months ago I removed the broken screen and hinges and run the laptop hooked up to an external hdmi screen. Doing so has the side effect of rendering the built in wireless non-functional since the antenna wires route around the screen. Win10 still runs fine with the 7260 (no discernable difference), and now my Arch stick is getting speeds of about 18Mbit/s (according to the command line speedtest-cli program). I was at the point where I had just about given up tweaking software settings and rebooting and if I didn’t have a spare wifi card laying around I would probably have just brought this laptop back in to work and grabbed something less sexy since the slow wifi was that much of an annoyance to me.

Fix for Firefox typing delay and slow scrolling

I frequently boot Arch Linux from a USB3 drive in various Intel based machines which I’ve discussed here before. Recently I was using the drive in a Dell e7240 which is a fairly nice, if older, Core i5 based ultrabook and although the drive was inserted in the USB port marked SS (USB3) performance in Firefox was awful. While performance in terminal windows seemed as quick as usual, typing anything in Firefox induced a delay that was so bad that the letters I typed into the URL bar or into a search form field wouldn’t show up on screen until several seconds after I had typed them. Scrolling with the wheel on the wireless mouse would induce a pause every. single. time. I tried to scroll. It was actually quite maddening, and monitoring in htop didn’t reveal any CPU or memory bottleneck. I disabled a bunch of extensions (plugins) that I wasn’t using often anyway and restarted Firefox with not much change.

A quick Google search turned up this amazingly informative section on the Arch wiki. It turns out that OpenGL OMTC is indeed disabled by default when Firefox is running on this hardware. The page explains that this reduced performance setting might be getting set for a very good reason, but ignoring that good advice, I switched it on in about:config easily enough by toggling

layers.acceleration.force-enabled true

and restarting Firefox. Checking about:support again confirmed it was now enabled. Now Firefox is running just as fast as usual again! I will just have to use it for a while before I can really judge how stable the setup is, but at least I can use the machine.


Ian Murdock, founder of Debian, dead at 42 under strange circumstances

While still enjoying the holiday with my family I found a recent story in various online forums strangely compelling. It concerned Ian Murdock, an icon in the open source and Linux community for his contribution of Debian (Ubuntu is one of the many Debian derivatives) in 1993 while at Purdue University. Mr. Murdock had apparently suddenly begun posting some very strange things on Twitter over the weekend suggesting that he was planning suicide but also alleging police abuse. The posts seemed uncharacteristic of him, and many folks speculated that his account had been hacked. He was discovered deceased on Monday after friends raised the alarm but there has been very little in the way of information about his death reported in the mainstream media. The fact that the San Francisco Police were somehow involved led many to wonder if there might be more to the story than drugs or a mental breakdown. I started to collect information about the case early on and this post is basically just a record of what I’ve found so far.

Originally I had posted the following as a comment in a Reddit thread about Ian’s strange tweets, I’ve brought the list here to archive.

Continue reading “Ian Murdock, founder of Debian, dead at 42 under strange circumstances”

OpenELEC runs great on the Raspberry Pi2

I’ve had a Raspberry Pi2 since earlier this year when it first came out. I had gotten it in a package which included a see-through plastic case, a miniSD card pre-loaded with Noobs on it, a wifi USB dongle, USB power supply, and HDMI cable. Since I already had a wireless keyboard and mouse I could use and the 27″ ASUS MX279H monitor I connect up to my laptop when I have more serious work to do had HDMI inputs so I was all ready to go. I actually couldn’t wait and ended up firing it up at work – running through the Rasbian setup and surfing the web a little bit. The Pi was a bit slower than I had expected, but it was amazing how useable it was for the price!

Continue reading “OpenELEC runs great on the Raspberry Pi2”

Still using Arch on my Thinkpad T410s, but not with KDE anymore

Its been a while since I’ve posted anything here so just as an excercise for the fingers I thought I’d post an update about my current machine.

I’ve been running Arch on an old Thinkpad T410s for almost a year now ( journalctl says logs started on June 23, 2014). Its an Intel i5 M560 2.67 GHz from 2010 that was turned in by the sales department as its warranty ran out, physically broken (handrest cracked) with complaints about it being “too slow”. This was certainly true with Windows 7 on it. It hadn’t come with an nVidia card, so it just has the el crappo first gen Intel HD graphics. The screen is horrible – washed out, nowhere near as nice as some of the newer IPS screens, and not even as good as my old 2008 MacBook (though with a slightly larger screen res: 1440 x 900). I was able to buy a cheap handrest replacement off ebay for $15, and after finding that the reason it was so cheap was because they didn’t supply the electronics with it – forcing me to salvage that stuff off the cracked handrest – this second one has now cracked as well. The fan and heat pipe assembly needs to be taken out and cleaned but have been too lazy to get to it, the speakers are very quiet (compared to the MacBook at least), but everything works and its been a great learning experience for Arch.

arch_gnome3-150507I started using Arch on a USB drive in February of last year with a newer Dell laptop which I had to keep Windows installed on but quickly came to find that I’d rather have a permanent install to play with. This laptop quickly replaced my MacBook (which runs Ubuntu) as a daily driver mainly because its faster but while I like the keyboard more (I hate chicklet keyboards), its just nasty to state at for very long. While the USB install had i3 (a tiling windows manager) configured, I had decided to use KDE on the Thinkpad – and its been interesting getting to know KDE over the past year. At first I thought I was in love – I use Gnome 3 at work and on all my other machines, and KDE was responsive and looked good. It had all kinds of nifty graphical effects (most of which even worked on my slowgar graphics card too!) but little by little the love affair wore off. I just couldn’t find a way to use “activities” (KDE’s virtual desktops) without grumbling about it getting in my way, and the whole massive Akonadi experience with Kontact got frustrating after awhile. I liked kjots and kept a lot of notes in there (luckily, these can still be found in ~/.local/share/notes after kde is removed), but the font sizing for all the apps was always wrong and I couldn’t ever get it to be a comfortable size, and when kMail started having problems with certificates for accounts and the constant nagging error messages and notifications were the last nail. I ripped out KDE tonight and installed Gnome 3 and am busily moving in. I can see giving a die-hard Windows person KDE as their first Linux desktop because it would be very familiar to them, but I don’t think I’ll be going back to it.