[SOLVED] Wlan problem (Atheros AR9285)

New to Debian (Or Linux in general)? Ask your questions here!

[SOLVED] Wlan problem (Atheros AR9285)

Postby Auvo » 2017-12-18 14:19

Greetings!
I am (once again) struggling with wlan problems. Just installed Debian 9.3 with LXQT to my girlfriend's old mini laptop. Wired ethernet works, though there is some problem with that also, as it doesn't reconnect every time I re-plug the cable after trying wireless.

The computer is Packard Bell Dot S.
Code: Select all
root@Pentu:/home/ninni# lshw -short
H/W path         Device     Class       Description
===================================================
                            system      DOTS E2 (NetTopSku)
/0                          bus         SJE02_PT_E
/0/0                        memory      1MiB BIOS
/0/15                       memory      1GiB System Memory
/0/15/0                     memory      1GiB SODIMM DDR3 Synch
/0/1d                       processor   Intel(R) Atom(TM) CPU
/0/1d/1e                    memory      512KiB L2 cache
/0/1d/1f                    memory      32KiB L1 cache
/0/100                      bridge      Atom Processor D4xx/D5
/0/100/2                    display     Atom Processor D4xx/D5
/0/100/2.1                  display     Atom Processor D4xx/D5
/0/100/1b                   multimedia  NM10/ICH7 Family High
/0/100/1c                   bridge      NM10/ICH7 Family PCI E
/0/100/1c/0      enp1s0     network     AR8152 v1.1 Fast Ether
/0/100/1c.1                 bridge      NM10/ICH7 Family PCI E
/0/100/1c.1/0    wlp2s0     network     AR9285 Wireless Networ
/0/100/1d                   bus         NM10/ICH7 Family USB U
/0/100/1d/1      usb2       bus         UHCI Host Controller
/0/100/1d.1                 bus         NM10/ICH7 Family USB U
/0/100/1d.1/1    usb3       bus         UHCI Host Controller
/0/100/1d.2                 bus         NM10/ICH7 Family USB U
/0/100/1d.2/1    usb4       bus         UHCI Host Controller
/0/100/1d.3                 bus         NM10/ICH7 Family USB U
/0/100/1d.3/1    usb5       bus         UHCI Host Controller
/0/100/1d.7                 bus         NM10/ICH7 Family USB2
/0/100/1d.7/1    usb1       bus         EHCI Host Controller
/0/100/1d.7/1/4             multimedia  WebCam
/0/100/1e                   bridge      82801 Mobile PCI Bridg
/0/100/1f                   bridge      NM10 Family LPC Contro
/0/100/1f.2                 storage     NM10/ICH7 Family SATA
/0/100/1f.3                 bus         NM10/ICH7 Family SMBus
/0/1             scsi0      storage     
/0/1/0.0.0       /dev/sda   disk        250GB ST9250315AS
/0/1/0.0.0/1     /dev/sda1  volume      231GiB EXT4 volume
/0/1/0.0.0/2     /dev/sda2  volume      1012MiB Extended parti
/0/1/0.0.0/2/5   /dev/sda5  volume      1012MiB Linux swap vol


So the wireless adapter is AR9285 and it's driver should be ath9k as it is:
Code: Select all
root@Pentu:/home/ninni# lspci -k
00:00.0 Host bridge: Intel Corporation Atom Processor D4xx/D5xx/N4xx/N5xx DMI Bridge               
        Subsystem: Acer Incorporated [ALI] Atom Processor D4xx/D5xx/N4xx/N5xx DMI Bridge           
00:02.0 VGA compatible controller: Intel Corporation Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics Controller
        Subsystem: Acer Incorporated [ALI] Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics Controller
        Kernel driver in use: i915
        Kernel modules: i915
00:02.1 Display controller: Intel Corporation Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics Controller
        Subsystem: Acer Incorporated [ALI] Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics Controller
00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 02)
        Subsystem: Acer Incorporated [ALI] NM10/ICH7 Family High Definition Audio Controller
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 02)
        Kernel driver in use: pcieport
        Kernel modules: shpchp
00:1c.1 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 2 (rev 02)
        Kernel driver in use: pcieport
        Kernel modules: shpchp
00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 02)
        Subsystem: Acer Incorporated [ALI] NM10/ICH7 Family USB UHCI Controller
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci_hcd
00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 02)
        Subsystem: Acer Incorporated [ALI] NM10/ICH7 Family USB UHCI Controller
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci_hcd
00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 02)
        Subsystem: Acer Incorporated [ALI] NM10/ICH7 Family USB UHCI Controller
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci_hcd
00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 02)
        Subsystem: Acer Incorporated [ALI] NM10/ICH7 Family USB UHCI Controller
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci_hcd
00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 02)
        Subsystem: Acer Incorporated [ALI] NM10/ICH7 Family USB2 EHCI Controller
        Kernel driver in use: ehci-pci
        Kernel modules: ehci_pci
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation NM10 Family LPC Controller (rev 02)
        Subsystem: Acer Incorporated [ALI] NM10 Family LPC Controller
        Kernel driver in use: lpc_ich
        Kernel modules: lpc_ich
00:1f.2 SATA controller: Intel Corporation NM10/ICH7 Family SATA Controller [AHCI mode] (rev 02)
        Subsystem: Acer Incorporated [ALI] NM10/ICH7 Family SATA Controller [AHCI mode]
        Kernel driver in use: ahci
        Kernel modules: ahci
00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 02)
        Subsystem: Acer Incorporated [ALI] NM10/ICH7 Family SMBus Controller
        Kernel driver in use: i801_smbus
        Kernel modules: i2c_i801
01:00.0 Ethernet controller: Qualcomm Atheros AR8152 v1.1 Fast Ethernet (rev c1)
        Subsystem: Acer Incorporated [ALI] AR8152 v1.1 Fast Ethernet
        Kernel driver in use: atl1c
        Kernel modules: atl1c
02:00.0 Network controller: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
        Subsystem: Lite-On Communications Inc AR9285 Wireless Network Adapter (PCI-Express)
        Kernel driver in use: ath9k
        Kernel modules: ath9k

Still the wlan is completely dead. Connman doesn't find any wireless networks, nor allows even scan for them. Actually, after reboot, Connman tells there is "1 Found, 0 Powered": Image
Hitting Fn + F3 turns it "1 Found, 1 Powered", but nothing else changes. ip a gives this result after reboot:
Code: Select all
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp1s0: <BROADCAST,MULTICAST,DYNAMIC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether b8:70:f4:a5:3a:e8 brd ff:ff:ff:ff:ff:ff
    inet 192.168.8.106/24 brd 192.168.8.255 scope global enp1s0
       valid_lft forever preferred_lft forever
    inet6 fd04:4f4c:f922:9d00:ba70:f4ff:fea5:3ae8/64 scope global mngtmpaddr dynamic
       valid_lft 6663sec preferred_lft 3063sec
    inet6 fe80::ba70:f4ff:fea5:3ae8/64 scope link
       valid_lft forever preferred_lft forever
3: wlp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether d0:df:9a:37:25:3c brd ff:ff:ff:ff:ff:ff

After "ip link set wlp2s0 up"
Code: Select all
3: wlp2s0: <NO-CARRIER,BROADCAST,MULTICAST,DYNAMIC,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether d0:df:9a:37:25:3c brd ff:ff:ff:ff:ff:ff

Code: Select all
root@Pentu:/home/ninni# iwconfig
lo        no wireless extensions.

wlp2s0    IEEE 802.11  ESSID:off/any 
          Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
         
enp1s0    no wireless extensions.

"iwlist scan" finds my wifi (4G-Gateway-229E) among some others:
Code: Select all
root@Pentu:/home/ninni# iwlist scan
lo        Interface doesn't support scanning.

wlp2s0    Scan completed :
          Cell 01 - Address: 84:00:2D:20:38:44
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=23/70  Signal level=-87 dBm 
                    Encryption key:on
                    ESSID:"revelation"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=0000018bb7b34502
                    Extra: Last beacon: 12ms ago
                    IE: Unknown: 000A726576656C6174696F6E
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 030101
                    IE: Unknown: 2A0100
                    IE: Unknown: 2F0100
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32040C121860
                    IE: Unknown: 0B050100280000
                    IE: Unknown: 2D1ABC191BFFFF000000000000000000000000000000000000000000
                    IE: Unknown: 3D1601080400000000000000000000000000000000000000
                    IE: Unknown: 4A0E14000A002C01C800140005001900
                    IE: Unknown: 7F080500080000000040
                    IE: Unknown: DD790050F204104A0001101044000102103B00010310470010C550D9D71D45D0DC488DDB56A37EAD5A10210005436973636F10230005436973636F1024000631323334353610420007303030303030311054000800060050F204000110110006623766396530100800022008103C0001031049000600372A000120
                    IE: Unknown: DD090010180201000C0000
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
                    IE: Unknown: 46057208010000
          Cell 02 - Address: 04:4F:4C:F9:22:9E
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=70/70  Signal level=-33 dBm 
                    Encryption key:on
                    ESSID:"4G-Gateway-229E"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=0000005bf216a226
                    Extra: Last beacon: 12ms ago
                    IE: Unknown: 000F34472D476174657761792D32323945
                    IE: Unknown: 010882840B162430486C
                    IE: Unknown: 03010B
                    IE: Unknown: 2A0100
                    IE: Unknown: 32040C121860
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 0B0500000F0000
                    IE: Unknown: 46053208010000
                    IE: Unknown: 2D1AFE191BFFFF000001000000000000000000000000000000000000
                    IE: Unknown: 3D160B0F0000000000000000000000000000000000000000
                    IE: Unknown: 4A0E14000A002C01C800140005001900
                    IE: Unknown: 7F080500080000000040
                    IE: Unknown: DD7A0050F204104A0001101044000102103B00010310470010D96C7EFC2F8938F1EFBD6E5148BFA81210210006487561776569102300064875617765691024000631323334353610420004313233341054000800060050F2040001101100084875617765694150100800022008103C0001031049000600372A000120
                    IE: Unknown: DD090010180200000C0000
                    IE: Unknown: DD180050F2020101840003A4000027A4000042435E0062322F00
          Cell 03 - Address: 24:DF:6A:4A:6C:6E
                    Channel:9
                    Frequency:2.452 GHz (Channel 9)
                    Quality=43/70  Signal level=-67 dBm 
                    Encryption key:on
                    ESSID:"DNA-Mokkula-2G-AANR2D"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=00000001dcba3183
                    Extra: Last beacon: 348ms ago
                    IE: Unknown: 0015444E412D4D6F6B6B756C612D32472D41414E523244
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 050400010000
                    IE: Unknown: 030109
                    IE: Unknown: 200100
                    IE: Unknown: 23021100
                    IE: Unknown: 2A0100
                    IE: Unknown: 2F0100
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32040C121860
                    IE: Unknown: 2D1ABC011BFFFF000000000000000000000000000000000000000000
                    IE: Unknown: 3D1609080000000000000000000000000000000000000000
                    IE: Unknown: 4A0E14000A002C01C800140005001900
                    IE: Unknown: 7F0101
                    IE: Unknown: DD050050F20500
                    IE: Unknown: DD300050F204104A00011010440001021049000600372A0001201054000800060050F20400011011000842726F6164636F6D
                    IE: Unknown: DD090010180200000C0000
                    IE: Unknown: DD180050F202010187000132000027A4000042435E0062322F00

enp1s0    Interface doesn't support scanning.

I tried to set /etc/network/interfaces as:
Code: Select all
auto wlp2s0
iface wlp2s0 inet dhcp
wireless-essid 4G-Gateway-229E
wireless-mode Master

But still no help. And I'd like to get it running without the need of setting them manually each time I use another wifi.
Code: Select all
root@Pentu:/home/ninni# lsmod | grep ath9k
ath9k                  94208  0
ath9k_common           32768  1 ath9k
ath9k_hw              446464  2 ath9k,ath9k_common
ath                    32768  3 ath9k_hw,ath9k,ath9k_common
mac80211              671744  1 ath9k
cfg80211              589824  4 mac80211,ath9k,ath,ath9k_common

Someone on some other forum (perhaps Linux Mint) said that acer_wmi module was conflicting with the wireless. I have that module loaded too:
Code: Select all
root@Pentu:/home/ninni# lsmod | grep acer_wmi
acer_wmi               20480  0
sparse_keymap          16384  1 acer_wmi
rfkill                 24576  6 bluetooth,acer_wmi,cfg80211
video                  40960  2 acer_wmi,i915
wmi                    16384  1 acer_wmi


I tried to modprobe -r acer_wmi, which "works" as it doesn't give any output, but still doesn't help anyway,. Should I try to blacklist it? According to the above, several modules (which might be more useful), are using the acer_wmi, so I haven't tried to blacklist it. Full list of lsmod, if needed for some reason:
Code: Select all
root@Pentu:/home/ninni# lsmod
Module                  Size  Used by
bnep                   20480  2
8021q                  32768  0
garp                   16384  1 8021q
mrp                    20480  1 8021q
stp                    16384  1 garp
llc                    16384  2 garp,stp
xt_connmark            16384  2
iptable_nat            16384  0
nf_conntrack_ipv4      16384  3
nf_defrag_ipv4         16384  1 nf_conntrack_ipv4
nf_nat_ipv4            16384  1 iptable_nat
nf_nat                 28672  1 nf_nat_ipv4
nf_conntrack          114688  4 nf_conntrack_ipv4,xt_connmark,nf_nat_ipv4,nf_nat
iptable_mangle         16384  1
iptable_filter         16384  0
bluetooth             552960  9 bnep
uvcvideo               90112  0
videobuf2_vmalloc      16384  1 uvcvideo
videobuf2_memops       16384  1 videobuf2_vmalloc
videobuf2_v4l2         24576  1 uvcvideo
videobuf2_core         36864  2 uvcvideo,videobuf2_v4l2
videodev              176128  3 uvcvideo,videobuf2_core,videobuf2_v4l2
media                  40960  2 uvcvideo,videodev
snd_hda_codec_realtek    86016  1
snd_hda_codec_generic    69632  1 snd_hda_codec_realtek
iTCO_wdt               16384  0
acer_wmi               20480  0
snd_hda_intel          36864  3
sparse_keymap          16384  1 acer_wmi
arc4                   16384  2
iTCO_vendor_support    16384  1 iTCO_wdt
ath9k                  94208  0
ath9k_common           32768  1 ath9k
snd_hda_codec         135168  3 snd_hda_intel,snd_hda_codec_generic,snd_hda_codec_realtek
ath9k_hw              446464  2 ath9k,ath9k_common
ath                    32768  3 ath9k_hw,ath9k,ath9k_common
i915                 1232896  10
snd_hda_core           81920  4 snd_hda_intel,snd_hda_codec,snd_hda_codec_generic,snd_hda_codec_realtek
joydev                 20480  0
evdev                  24576  15
snd_hwdep              16384  1 snd_hda_codec
snd_pcm               110592  3 snd_hda_intel,snd_hda_codec,snd_hda_core
serio_raw              16384  0
pcspkr                 16384  0
mac80211              671744  1 ath9k
coretemp               16384  0
snd_timer              32768  1 snd_pcm
cfg80211              589824  4 mac80211,ath9k,ath,ath9k_common
snd                    86016  13 snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_generic,snd_hda_codec_realtek,snd_pcm
sg                     32768  0
rfkill                 24576  6 bluetooth,acer_wmi,cfg80211
soundcore              16384  1 snd
lpc_ich                24576  0
mfd_core               16384  1 lpc_ich
drm_kms_helper        155648  1 i915
acpi_cpufreq           20480  1
tpm_tis                16384  0
drm                   360448  12 i915,drm_kms_helper
battery                16384  0
i2c_algo_bit           16384  1 i915
shpchp                 36864  0
tpm_tis_core           20480  1 tpm_tis
ac                     16384  0
button                 16384  1 i915
video                  40960  2 acer_wmi,i915
tpm                    45056  2 tpm_tis,tpm_tis_core
wmi                    16384  1 acer_wmi
parport_pc             28672  0
ppdev                  20480  0
lp                     20480  0
parport                49152  3 lp,parport_pc,ppdev
ip_tables              24576  3 iptable_mangle,iptable_filter,iptable_nat
x_tables               36864  4 iptable_mangle,ip_tables,iptable_filter,xt_connmark
autofs4                40960  2
ext4                  585728  1
crc16                  16384  2 bluetooth,ext4
jbd2                  106496  1 ext4
crc32c_generic         16384  2
fscrypto               28672  1 ext4
ecb                    16384  0
glue_helper            16384  0
lrw                    16384  0
gf128mul               16384  1 lrw
ablk_helper            16384  0
cryptd                 24576  1 ablk_helper
aes_x86_64             20480  0
mbcache                16384  2 ext4
sd_mod                 45056  3
ahci                   36864  2
libahci                32768  1 ahci
libata                249856  2 ahci,libahci
scsi_mod              225280  3 sd_mod,libata,sg
psmouse               135168  0
i2c_i801               24576  0
i2c_smbus              16384  1 i2c_i801
uhci_hcd               45056  0
ehci_pci               16384  0
ehci_hcd               81920  1 ehci_pci
usbcore               249856  4 uvcvideo,ehci_hcd,uhci_hcd,ehci_pci
atl1c                  49152  0
usb_common             16384  1 usbcore
fjes                   28672  0
thermal                20480  0
fan                    16384  0


What should I do?
Last edited by Auvo on 2017-12-18 23:24, edited 1 time in total.
Auvo
 
Posts: 30
Joined: 2010-08-16 13:23

Re: Wlan problem (Atheros AR9285)

Postby Capitain_Jack » 2017-12-18 14:44

I don't know, but it looks like you're missing some packages over wifi network manager, try installing network-manager-gnome to see if enables that part.
"Great spirits have always encountered violent opposition from mediocre minds."
Albert Einstein
"All wrong-doing arises because of mind. If mind is transformed can wrong-doing remain?"
Buddha
User avatar
Capitain_Jack
 
Posts: 153
Joined: 2017-12-15 12:07
Location: Brazil capital, Brasilia, At the favela.

Re: Wlan problem (Atheros AR9285)

Postby bw123 » 2017-12-18 14:54

There are several ways to use wifi here https://wiki.debian.org/WiFi/HowToUse

Sometimes people have trouble with one method, and try another, like /etc/network/interfaces and when they find that doesn't work either they leave the settings in the file. This would be a mistake, because if you try network manager now with those settings left in the interfaces file, it won't use the iface.

Take your time, pick one method, stick to it.

found an old thread, you didn't mention if you searched the forum?
viewtopic.php?t=84462

if the acer_wmi is the problem, then after modprobe -r you should probably remove and reprobe the athk driver also right?

p.s. no offense to linux mint, but if your are using debian, it is a good idea to prefer debian documentation. The arch wiki is veryy good, maybe the best around but even there it's not totally reliable for debian.
User avatar
bw123
 
Posts: 3150
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Wlan problem (Atheros AR9285)

Postby Auvo » 2017-12-18 18:49

Capitain_Jack wrote:I don't know, but it looks like you're missing some packages over wifi network manager, try installing network-manager-gnome to see if enables that part.

Thanks. I tried this, and using Gnome network manager I'm able to connect my wifi. At least it says so. Still can't use the internet though. Pinging 8.8.8.8 gets a response, but the browser gives some DNS error. And for example, I can't reach repositories using apt. And also, wifi is always down by default, so after a reboot I need to turn it on using the keyboard shortcut.

For the DNS problem, I checked /etc/resolv.conf. It looks like this:
Code: Select all
nameserver 127.0.0.1
nameserver ::1

I tried to set it manually to Google (8.8.8.8 ), but looks like Gnome network manager (or some other program) overwrites it on boot. I guess I should try resolvconf program, but as I'm at work now, I don't have LAN here to download the package.
Auvo
 
Posts: 30
Joined: 2010-08-16 13:23

Re: Wlan problem (Atheros AR9285)

Postby Auvo » 2017-12-18 19:03

bw123 wrote:found an old thread, you didn't mention if you searched the forum?
viewtopic.php?t=84462 [...] p.s. no offense to linux mint, but if your are using debian, it is a good idea to prefer debian documentation. The arch wiki is veryy good, maybe the best around but even there it's not totally reliable for debian.

Yeah sorry I forgot to mention that. I have been searching widely over the internet, including this forum. That link you provided, doesn't help because the fix to his problem was to hit the keyboard shortcut to turn wifi on. I know that Mint and Debian aren't exactly the same thing. But, as there is a limited amount of knowledge around, about this specific hardware (AR9285), I have broadened my search to other linux distros. Also there's lots of thing in common with Debian and Mint, as one is a derivative to other. I have used Arch Wiki for many things and have got great help from there, but I'd say that many things work more differently in Arch than in Mint. Why I brought this acer_wmi thing up was just because I'm out of ideas what to do.

if the acer_wmi is the problem, then after modprobe -r you should probably remove and reprobe the athk driver also right?

Maybe. Haven't done that before. I'm concerned about what else stops working if I blacklist them all. Or should I be able to reprobe those other modules to get them non-dependent from acer_wmi? Anyway, looks like the driver isn't the problem here. Please see my response to Capitain_Jack above.
Auvo
 
Posts: 30
Joined: 2010-08-16 13:23

Re: Wlan problem (Atheros AR9285)

Postby Capitain_Jack » 2017-12-18 19:21

Auvo wrote: Still can't use the internet though. Pinging 8.8.8.8 gets a response, but the browser gives some DNS error. And for example, I can't reach repositories using apt.
For the DNS problem, I checked /etc/resolv.conf. It looks like this:
Code: Select all
nameserver 127.0.0.1
nameserver ::1

I tried to set it manually to Google (8.8.8.8 ), but looks like Gnome network manager (or some other program) overwrites it on boot. I guess I should try resolvconf program, but as I'm at work now, I don't have LAN here to download the package.

This now sounds as a default network problem, as it connects and pings, maybe it's not the default route for internet, give it a try:
https://serverfault.com/questions/12355 ... e-in-linux

Auvo wrote:And also, wifi is always down by default, so after a reboot I need to turn it on using the keyboard shortcut.

This setting sometimes is on BIOS, something like "enable wifi", what maker/model that mini is?
"Great spirits have always encountered violent opposition from mediocre minds."
Albert Einstein
"All wrong-doing arises because of mind. If mind is transformed can wrong-doing remain?"
Buddha
User avatar
Capitain_Jack
 
Posts: 153
Joined: 2017-12-15 12:07
Location: Brazil capital, Brasilia, At the favela.

Re: Wlan problem (Atheros AR9285)

Postby Capitain_Jack » 2017-12-18 19:24

Auvo wrote:/etc/resolv.conf. It looks like this:
Code: Select all
nameserver 127.0.0.1
nameserver ::1

I tried to set it manually to Google (8.8.8.8 ), but looks like Gnome network manager (or some other program) overwrites it on boot. I guess I should try resolvconf program, but as I'm at work now, I don't have LAN here to download the package.

In order to do that, you must add lines, not change, how you did it?
"Great spirits have always encountered violent opposition from mediocre minds."
Albert Einstein
"All wrong-doing arises because of mind. If mind is transformed can wrong-doing remain?"
Buddha
User avatar
Capitain_Jack
 
Posts: 153
Joined: 2017-12-15 12:07
Location: Brazil capital, Brasilia, At the favela.

Re: Wlan problem (Atheros AR9285)

Postby Auvo » 2017-12-18 20:30

Capitain_Jack wrote:In order to do that, you must add lines, not change, how you did it?

On first try, I removed the default ones and then added only the google dns. Now I tried also adding 8.8.8.8 to end of the list. But it doesn't matter, because the file gets overwritten anyway. So after reboot it always looks like in my post above.

This now sounds as a default network problem, as it connects and pings, maybe it's not the default route for internet, give it a try:
https://serverfault.com/questions/12355 ... e-in-linux[/quote]
I took a look at this, but I don't understand. The default route already looks like it is advised to set in the post. I tried to delete default route and then add it, but it doesn't affect anything as it stays the same.

This setting sometimes is on BIOS, something like "enable wifi", what maker/model that mini is?

It is Packard Bell Dot S. It's BIOS is very limited, and boot order is the only modification available. I also tried setting ip, mask and default DNS server manually via Gnome utility. I set the default DNS to 8.8.8.8, which didn't affect anything. But I found out that as there were manually added default config, it connected automatically on boot.
Auvo
 
Posts: 30
Joined: 2010-08-16 13:23

Re: Wlan problem (Atheros AR9285)

Postby Capitain_Jack » 2017-12-18 21:13

One thing occurred me, what BIOS version you're using? Take a look at maker site and do the update, if that is the case, it may solve this kind of problem (enable wifi at boot)
"Great spirits have always encountered violent opposition from mediocre minds."
Albert Einstein
"All wrong-doing arises because of mind. If mind is transformed can wrong-doing remain?"
Buddha
User avatar
Capitain_Jack
 
Posts: 153
Joined: 2017-12-15 12:07
Location: Brazil capital, Brasilia, At the favela.

Re: Wlan problem (Atheros AR9285)

Postby Auvo » 2017-12-18 21:38

Capitain_Jack wrote:One thing occurred me, what BIOS version you're using? Take a look at maker site and do the update, if that is the case, it may solve this kind of problem (enable wifi at boot)

BIOS seems to be up to date (v3.16). Which is actually great, because I'm not sure I'd like to update bios from Linux. But I guess I could live with turning wifi on after boot, if I got it to work otherwise. So the route/dns/whatever problem is more important.
Auvo
 
Posts: 30
Joined: 2010-08-16 13:23

Re: Wlan problem (Atheros AR9285)

Postby Auvo » 2017-12-18 22:55

Ok, now it looks like it works if I add "nameserver 8.8.8.8" to /etc/resolv.conf. But the problem is that the file gets overwritten at reboot. I tried to set DNS servers via Gnome Network Manager, using this guide: https://wiki.debian.org/NetworkConfigur ... orkManager Here's a screenshot (sorry for the Finnish language, but I think you can guess most of it. And now I'm tethering wifi with my phone instead of my home wifi, if you wonder why the SSID has changed from what I said earlier)
Image

But it doesn't work. But as soon I modify /etc/resolv.conf, it starts working and works until next reboot. How is this possible? I also tried using resolvconf program with instructions I found here: https://wiki.debian.org/NetworkConfigur ... nf_program But I didn't understand how it is supposed to work with Network Manager. Please help!
Auvo
 
Posts: 30
Joined: 2010-08-16 13:23

Re: Wlan problem (Atheros AR9285)

Postby Capitain_Jack » 2017-12-18 23:06

Auvo wrote:But it doesn't work. But as soon I modify /etc/resolv.conf, it starts working and works until next reboot. How is this possible? I also tried using resolvconf program with instructions I found here: https://wiki.debian.org/NetworkConfigur ... nf_program But I didn't understand how it is supposed to work with Network Manager. Please help!

I think this is the final solution, although not standard, the thing is put this netbook on internet, no matter what.
https://askubuntu.com/questions/623940/ ... esolv-conf
"Great spirits have always encountered violent opposition from mediocre minds."
Albert Einstein
"All wrong-doing arises because of mind. If mind is transformed can wrong-doing remain?"
Buddha
User avatar
Capitain_Jack
 
Posts: 153
Joined: 2017-12-15 12:07
Location: Brazil capital, Brasilia, At the favela.

Re: Wlan problem (Atheros AR9285)

Postby Auvo » 2017-12-18 23:19

Whoa, now I think I figured out what was wrong. I removed connman and now it works. Looks like it was messing the route somehow over Network Manager. Thank you for your help!
Auvo
 
Posts: 30
Joined: 2010-08-16 13:23

Re: Wlan problem (Atheros AR9285)

Postby Capitain_Jack » 2017-12-18 23:20

Auvo wrote:Whoa, now I think I figured out what was wrong. I removed connman and now it works. Looks like it was messing the route somehow over Network Manager. Thank you for your help!

You're very welcome, please, don't forget to edit the first post title and add [SOLVED] at the beginning, so others can benefit from your solution.
"Great spirits have always encountered violent opposition from mediocre minds."
Albert Einstein
"All wrong-doing arises because of mind. If mind is transformed can wrong-doing remain?"
Buddha
User avatar
Capitain_Jack
 
Posts: 153
Joined: 2017-12-15 12:07
Location: Brazil capital, Brasilia, At the favela.

Re: [SOLVED] Wlan problem (Atheros AR9285)

Postby sunrat » 2017-12-19 22:20

The most reliable way I've found to set DNS servers is to list them in a line supersede domain-name-servers in /etc/dhcp/dhclient.conf. It persists through rebooting unlike an entry in /etc/resolv.conf,
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2356
Joined: 2006-08-29 09:12
Location: Melbourne, Australia


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable