You are not logged in.

#1 2013-06-03 12:22:00

humhumhum
Member
Registered: 2013-02-04
Posts: 12

rfkill-unblock@wifi.service failed at boot

Hi,

After the upgrade to kernel 3.9.* my wifi stoped working on my hp nc6400 laptop and the wifi led was shutdown during the boot process.
(Every things worked fine with kernel 3.8.* before the upgrade or if if come back to kernel 3.8.*)

With the kernel 3.9.* it seems that the bios is not read correctly.  The command 

# rfkill list wifi

shows:

0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: yes
1: hp-wifi: Wireless LAN
    Soft blocked: yes
    Hard blocked: no

To solve this issue after a little search on this forum,  a

# rfkill unblock wifi

  do the thing.

0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
1: hp-wifi: Wireless LAN
    Soft blocked: no
    Hard blocked: no

So I enabled the service at boot with systemd:

# systemctl enable rfkill-unblock@wifi.service

But the service fails because the detection of the wireless card (and the eth card by the way) is done after systemd run the rfkill-unblock service.

If someone can tell me how I can configure rfkill-unblock.service to be run after the detection of the wireless device, my problem will be solved for sure.

Regards
humhumhum.

Offline

#2 2013-06-03 15:00:22

humhumhum
Member
Registered: 2013-02-04
Posts: 12

Re: rfkill-unblock@wifi.service failed at boot

I solved my pb with a dirty quick trick, ie I modified  /usr/lib/systemd/system/rfkill-unblock@.service like that:

diff /usr/lib/systemd/system/rfkill-unblock@.service /usr/lib/systemd/system/rfkill-unblock@.service.org
3,4c3
< After=sys-subsystem-net-devices-wlp16s0.device  rfkill-block@all.service
< BindsTo=sys-subsystem-net-devices-wlp16s0.device
---
> After=rfkill-block@all.service

But I still want an elegant/right/clean solution, cause I'm not satisfy with the harcoded value wlp16s0 in the generic rfkill-unblock@.service.

Offline

Board footer

Powered by FluxBB