You are not logged in.

#1 2016-04-18 15:09:03

kunterbunt
Member
Registered: 2016-04-18
Posts: 6

Wifi works but no interface is listed and it won't autostart

I put a fresh install of Arch onto my brand new machine.
I don't have a cabled connection so I have to rely on a Wifi dongle: ASUS N13, RTL8192CU Chipset.
As this requires drivers from the AUR I instead went for USB tethering during install which Arch understands as an Ethernet connection. This worked fine for the install.
Now after installation I installed said drivers and when I run

systemctl start netctl@<profile>

where <profile> is a profile generated by wifi-menu, I have a fast and stable connection and everything is fine.

I have also enabled this service which I understand should start it on boot. This however does not happen and after every restart I have to manually start the service again.

Now I went looking for an answer and I have found some unexpected things:

First:

-> ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s20f0u13: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
    link/ether 38:2c:4a:47:93:11 brd ff:ff:ff:ff:ff:ff
3: enp0s31f6: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 9c:5c:8e:d4:d6:fe brd ff:ff:ff:ff:ff:ff

Those ethernet interfaces seem to be the connection I had from during the install of my tethered phone. There's no wifi interface there at all?

Second:

-> systemctl list-units
UNIT                                                     LOAD   ACTIVE SUB       DESCRIPTION
proc-sys-fs-binfmt_misc.automount                        loaded active waiting   Arbitrary Executable File Formats File System Automount P
sys-devices-pci0000:00-0000:00:01.0-0000:01:00.1-sound-card1.device loaded active plugged   GM204 High Definition Audio Controller
sys-devices-pci0000:00-0000:00:14.0-usb1-1\x2d13-1\x2d13:1.0-net-enp0s20f0u13.device loaded active plugged   USB-N13 802.11n Network Adapt
sys-devices-pci0000:00-0000:00:17.0-ata3-host2-target2:0:0-2:0:0:0-block-sda-sda1.device loaded active plugged   Samsung_SSD_850_EVO_500GB
sys-devices-pci0000:00-0000:00:17.0-ata3-host2-target2:0:0-2:0:0:0-block-sda-sda2.device loaded active plugged   Samsung_SSD_850_EVO_500GB
sys-devices-pci0000:00-0000:00:17.0-ata3-host2-target2:0:0-2:0:0:0-block-sda-sda3.device loaded active plugged   Samsung_SSD_850_EVO_500GB
sys-devices-pci0000:00-0000:00:17.0-ata3-host2-target2:0:0-2:0:0:0-block-sda-sda4.device loaded active plugged   Samsung_SSD_850_EVO_500GB
sys-devices-pci0000:00-0000:00:17.0-ata3-host2-target2:0:0-2:0:0:0-block-sda-sda5.device loaded active plugged   Samsung_SSD_850_EVO_500GB
sys-devices-pci0000:00-0000:00:17.0-ata3-host2-target2:0:0-2:0:0:0-block-sda-sda6.device loaded active plugged   Samsung_SSD_850_EVO_500GB
sys-devices-pci0000:00-0000:00:17.0-ata3-host2-target2:0:0-2:0:0:0-block-sda.device loaded active plugged   Samsung_SSD_850_EVO_500GB
sys-devices-pci0000:00-0000:00:1f.3-sound-card0.device   loaded active plugged   Sunrise Point-H HD Audio
sys-devices-pci0000:00-0000:00:1f.6-net-enp0s31f6.device loaded active plugged   Ethernet Connection (2) I219-V
sys-devices-platform-serial8250-tty-ttyS1.device         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS1
sys-devices-platform-serial8250-tty-ttyS2.device         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS2
sys-devices-platform-serial8250-tty-ttyS3.device         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS3
sys-devices-pnp0-00:01-tty-ttyS0.device                  loaded active plugged   /sys/devices/pnp0/00:01/tty/ttyS0
sys-devices-virtual-misc-rfkill.device                   loaded active plugged   /sys/devices/virtual/misc/rfkill
sys-module-configfs.device                               loaded active plugged   /sys/module/configfs
sys-module-fuse.device                                   loaded active plugged   /sys/module/fuse
sys-subsystem-net-devices-enp0s20f0u13.device            loaded active plugged   USB-N13 802.11n Network Adapter (rev. B1) [Realtek RTL819
sys-subsystem-net-devices-enp0s31f6.device               loaded active plugged   Ethernet Connection (2) I219-V
-.mount                                                  loaded active mounted   /
boot.mount                                               loaded active mounted   /boot
dev-hugepages.mount                                      loaded active mounted   Huge Pages File System
dev-mqueue.mount                                         loaded active mounted   POSIX Message Queue File System
run-user-1000-gvfs.mount                                 loaded active mounted   /run/user/1000/gvfs
run-user-1000.mount                                      loaded active mounted   /run/user/1000
sys-fs-fuse-connections.mount                            loaded active mounted   FUSE Control File System
sys-kernel-config.mount                                  loaded active mounted   Configuration File System
sys-kernel-debug.mount                                   loaded active mounted   Debug File System
tmp.mount                                                loaded active mounted   Temporary Directory
var.mount                                                loaded active mounted   /var
systemd-ask-password-console.path                        loaded active waiting   Dispatch Password Requests to Console Directory Watch
systemd-ask-password-wall.path                           loaded active waiting   Forward Password Requests to Wall Directory Watch
init.scope                                               loaded active running   System and Service Manager
session-c1.scope                                         loaded active running   Session c1 of user kunterbunt
accounts-daemon.service                                  loaded active running   Accounts Service
colord.service                                           loaded active running   Manage, Install and Generate Color Profiles
dbus.service                                             loaded active running   D-Bus System Message Bus
gdm.service                                              loaded active running   GNOME Display Manager
kmod-static-nodes.service                                loaded active exited    Create list of required static device nodes for the curre
netctl@Lima.service                                      loaded active exited    Automatically generated profile by wifi-menu
packagekit.service                                       loaded active running   PackageKit Daemon
polkit.service                                           loaded active running   Authorization Manager
rtkit-daemon.service                                     loaded active running   RealtimeKit Scheduling Policy Service
systemd-fsck@dev-disk-by\x2duuid-f0ffbf66\x2de397\x2dd101\x2d90fb\x2db966e397d101.service loaded active exited    File System Check on /de
systemd-journal-flush.service                            loaded active exited    Flush Journal to Persistent Storage
systemd-journald.service                                 loaded active running   Journal Service
systemd-logind.service                                   loaded active running   Login Service
systemd-random-seed.service                              loaded active exited    Load/Save Random Seed
systemd-remount-fs.service                               loaded active exited    Remount Root and Kernel File Systems
systemd-sysctl.service                                   loaded active exited    Apply Kernel Variables
systemd-tmpfiles-setup-dev.service                       loaded active exited    Create Static Device Nodes in /dev
systemd-tmpfiles-setup.service                           loaded active exited    Create Volatile Files and Directories
systemd-udev-trigger.service                             loaded active exited    udev Coldplug all Devices
systemd-udevd.service                                    loaded active running   udev Kernel Device Manager
systemd-update-utmp.service                              loaded active exited    Update UTMP about System Boot/Shutdown
systemd-user-sessions.service                            loaded active exited    Permit User Sessions
systemd-vconsole-setup.service                           loaded active exited    Setup Virtual Console
udisks2.service                                          loaded active running   Disk Manager
upower.service                                           loaded active running   Daemon for power management
user@1000.service                                        loaded active running   User Manager for UID 1000
wpa_supplicant.service                                   loaded active running   WPA supplicant
-.slice                                                  loaded active active    Root Slice
system-getty.slice                                       loaded active active    system-getty.slice
system-netctl.slice                                      loaded active active    system-netctl.slice
system-netctl\x2dauto.slice                              loaded active active    system-netctl\x2dauto.slice
system-systemd\x2dfsck.slice                             loaded active active    system-systemd\x2dfsck.slice
system.slice                                             loaded active active    System Slice
user-1000.slice                                          loaded active active    User Slice of kunterbunt
user.slice                                               loaded active active    User and Session Slice
dbus.socket                                              loaded active running   D-Bus System Message Bus Socket
dm-event.socket                                          loaded active listening Device-mapper event daemon FIFOs
lvm2-lvmetad.socket                                      loaded active listening LVM2 metadata daemon socket
systemd-coredump.socket                                  loaded active listening Process Core Dump Socket
systemd-initctl.socket                                   loaded active listening /dev/initctl Compatibility Named Pipe
systemd-journald-dev-log.socket                          loaded active running   Journal Socket (/dev/log)
systemd-journald.socket                                  loaded active running   Journal Socket
systemd-rfkill.socket                                    loaded active listening Load/Save RF Kill Switch Status /dev/rfkill Watch
systemd-udevd-control.socket                             loaded active running   udev Control Socket
systemd-udevd-kernel.socket                              loaded active running   udev Kernel Socket
swapfile.swap                                            loaded active active    /swapfile
basic.target                                             loaded active active    Basic System
cryptsetup.target                                        loaded active active    Encrypted Volumes
getty.target                                             loaded active active    Login Prompts
graphical.target                                         loaded active active    Graphical Interface
local-fs-pre.target                                      loaded active active    Local File Systems (Pre)
local-fs.target                                          loaded active active    Local File Systems
multi-user.target                                        loaded active active    Multi-User System
network.target                                           loaded active active    Network
nss-user-lookup.target                                   loaded active active    User and Group Name Lookups
paths.target                                             loaded active active    Paths
remote-fs.target                                         loaded active active    Remote File Systems
slices.target                                            loaded active active    Slices
sockets.target                                           loaded active active    Sockets
sound.target                                             loaded active active    Sound Card
swap.target                                              loaded active active    Swap
sysinit.target                                           loaded active active    System Initialization
timers.target                                            loaded active active    Timers
logrotate.timer                                          loaded active waiting   Daily rotation of log files
man-db.timer                                             loaded active waiting   Daily man-db cache update
shadow.timer                                             loaded active waiting   Daily verification of password and group files
systemd-tmpfiles-clean.timer                             loaded active waiting   Daily Cleanup of Temporary Directories

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

103 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

What do

sys-subsystem-net-devices-enp0s20f0u13.device            loaded active plugged   USB-N13 802.11n Network Adapter (rev. B1) [Realtek RTL819
sys-subsystem-net-devices-enp0s31f6.device               loaded active plugged   Ethernet Connection (2) I219-V

mean? Is it thinking the ethernet connection is still there? Is it interpreting the Wifi dongle as an ethernet connection? I can't make sense of it.

Also

netctl@Lima.service                                      loaded active exited    Automatically generated profile by wifi-menu

Why is it exited?

To sum it up once again: everything works when I manually start a netctl service, but autostarting on boot does not work and I am confused why I can't find a wifi interface.

Offline

#2 2016-04-18 18:42:25

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Wifi works but no interface is listed and it won't autostart

kunterbunt wrote:

I have also enabled this service which I understand should start it on boot. This however does not happen and after every restart I have to manually start the service again.

What was the *exact* command that you used to achieve this?

If you used `systemctl enable...` then you used the wrong command, see https://wiki.archlinux.org/index.php/Ne … sic_method

kunterbunt wrote:

Is it interpreting the Wifi dongle as an ethernet connection?

^ This.


Jin, Jîyan, Azadî

Offline

#3 2016-04-20 14:30:10

kunterbunt
Member
Registered: 2016-04-18
Posts: 6

Re: Wifi works but no interface is listed and it won't autostart

Head_on_a_Stick wrote:

If you used `systemctl enable...` then you used the wrong command, see https://wiki.archlinux.org/index.php/Ne … sic_method

Thanks mate, that was it. netctl enable was what I was looking for.

Offline

Board footer

Powered by FluxBB