Archive for category Uncategorized

WLAN hard blocked

For a long time I was happy with my Debian install, everything was working fine and as expected… that is until, recent, update.

After normal kernel update (to another iteration of 3.16 version), something around mid January / February 2017, I did noticed that after reboot my laptop don’t bring up WLAN adapter up and states, in GNOME menu under Wi-Fi, that device is “Hardware disabled”.

Issuing command like:

ifconfig wlan0 up

resulted in:

SIOCSIFFLAGS: Operation not possible due to RF-kill

Issuing rfkill to list shows that:

rfkill list all
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: yes

indeed device is hard locked. Hard lock occur when i.e. user hit, specific to manufacturer, lock button to lock WLAN device. In my case I do use Dell XPS 15 9530 with do comes with:

06:00.0 Network controller: Intel Corporation Wireless 7260 (rev 6b)
Subsystem: Intel Corporation Dual Band Wireless-AC 7260
Kernel driver in use: iwlwifi

that implements both WiFi and Bluetooth device and is handled by iwlwifi module.

Hard lock is located as media button “under” “Print Screen” that, depending on BIOS settings, can be accessed directly or via combination of keys FN+PrintScreen. Pressing that does nothing. I’m not sure when this stopped to work as I don’t block my WiFi but definitely something was not handled properly because i.e. issuing:

showkey --scancodes

didn’t catch any keys (see below for more info).

Using:

rfkill unblock all

didn’t solved the problem either.

What I did notice is that when waking up from sleep it did bring up WLAN and WiFi was operating correctly (as Bluetooth). To do so I was using FN+Insert key combination (again specific to my Dell XPS 15 9530).

SOLUTION:

What I did tried next, and that solved issue for me, as last resort was updating kernel using backports.

To do so I added (as root) to:

/etc/apt/sources.list

fallowing entries:

deb http://ftp.[lang].debian.org/debian/ jessie-backports contrib main non-free

Replace [lang] with appropriate language or switch to HTTP.

After that issuing fallowing command:

apt-get update
apt-get -t jessie-backports install linux-image-amd64
apt-get -t jessie-backports install firmware-iwlwifi

will install latest kernel, as of writing this it was 4.9.0, and iwlwifi firmware.

Rebooting and from now on WLAN did correctly started.

Hardware WLAN block key started to work correctly.

NOTE about showkey –scancodes, after update showkey also didn’t catch WLAN disable button.

, , ,

No Comments

Nautilus restore type ahead select functionality

For me personally new “deep search” functionality (CTRL+F) introduced in Files (aka. nautilus) when typing inside window is most annoying “feature” to date.

I do use multi OS on daily basis, due to my work, and both Finder (OsX) and Explorer (Windows) do support type select functionality but apparently Nautilus is an exception. Read the rest of this entry »

, ,

No Comments

Customizing environment on Windows (separate build paths)

First of all this title is a little misleading, but due to lack of better idea I decided to leave it as it is.

What this article is about (brief explanation)?
When You build an application most of the IDE (of Your choice) set up for You automatically system variables, like system “path” variable for example. That’s allow IDE to find appropriate libraries and use/link them. For example I use QtCreator to build Qt application and on application start up QtCreator set up system “path” variable and adds path to QtSDK, i.e. “c:\Qt”. That way when I press “run” in IDE application finds all dependences (dll) and runs fine. Problem starts when I close QtCreator, due to unset path variables, I can’t no longer run my application (at least not when path variables don’t point to the QtSDK directory with libraries). Read the rest of this entry »

, , ,

No Comments

Qt licensing style for You

Licensing is somewhat confusing when it comes to Qt. There are few kinds of license that You can choose from, and depending on the specific of distribution of Your software it can become somewhat confusing.

Read the rest of this entry »

,

No Comments

How to prevent Windows registry corruption

I want to point out that this text is not “how to fix” error itself, but the idea of how to prevent or protect yourself from that kind of errors.bsod

Few days ago while Windows startup I stumble upon BSOD (Blue Screen of Death). Main problem was registry corruption that could occur because of HDD hardware malfunction (i.e. bad block) or many other reasons.  Read the rest of this entry »

,

No Comments