Re: wifi drops out

2020-04-19 Thread Tse
Wow, thanks Jonathan!  I knew basically none of that, about pf, the power
or even the audio issue!

> I think you need more power man.  More juice! But that is not a
scientific opinion.

I've removed the powerd profile, shortened the extension cable, unplugged
stuff, and other minor things. Maybe I need a UPS for the laptop.  The
failure point is so random that it is hard to say if things have really
improved.  It can still drop out immediately, but has also stayed working
overnight.  These problems didn't happen on 5.4 or 5.6, but maybe that's
coincidence

> ahci0.5: Device BUSY: 80
> ahci0.5: Device on port is bricked

> A third, perhaps fourth issue

Yeah :)

I had previously tried the quirks in for instance scsi_da.c, and checked
they were firing with kprintf.  No luck, but not really a problem either

> Read about iicbus.ko it might help you very much.
> Good luck

Thanks so much

> Here is to getting your computer running again!
> Jonathan Engwall


Re: urtwn0 - driver didn't set altq_maxlen

2020-04-19 Thread karu.pruun
Just for completeness, this is all I have in /etc/rc.conf for wifi:

---
# dhcpcd
dhcpcd_enable="YES"

# realtek usb wifi
if_urtwn_load="YES"

# wpa_supplicant
wpa_supplicant_program="/usr/local/sbin/wpa_supplicant"

# wlan
wlans_urtwn0="wlan0"
ifconfig_wlan0="WPA"
---

Peeter

--


On Sun, Apr 19, 2020 at 2:58 PM karu.pruun  wrote:
>
> Hello
>
> I have the same usb wifi stick, and I see the same error, but that
> does not prevent it from working. Can you check that the rest of the
> setup in /etc/rc.conf is fine? I have
>
> dhcpcd_enable="YES"
>
> and the rest is the urtwn, wlans and wpa_supplicant as in the
> handbook. Check that the wpa_supplicant connects. Check that the
> dhcpcd is running; or restart it to be sure.
>
> Cheers
>
> Peeter
>
> --
>
>
> On Mon, Apr 13, 2020 at 11:35 PM Ron Georgia  wrote:
> >
> > All,
> >
> > I have a USB Wifi adapter (MAC/BB RTL8188CUS, RF 6052 1T1R) that is
> > having problems initializing. I did do some poking around and updated
> > loader.conf (see below) but that does not seem to help. When I do and
> > ifconfig wlan0 I see the SSID, but not IPv4, instead I see a "driver
> > didn't set altq_maxlen" error. This is not a new USB adapter, maybe 3 or
> > 4 years old. I am able to scan the networks with ifconfig wlan0 scan,
> > but I cannot connect to my home network (yes, the password is correct.)
> > Not sure what might be needed. I can post my full dmesg in paste bin if
> > that helps.
> >
> > Some Info:
> >
> > % ifconfig | grep -B3 -i wireless
> >  country US authmode WPA2/802.11i privacy ON deftxkey UNDEF
> >  AES-CCM 3:128-bit txpower 0 bmiss 7 scanvalid 60 protmode CTS wme
> >  roaming MANUAL
> >  media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g
> >
> > % sysctl net.wlan.devices
> > net.wlan.devices: urtwn0
> >
> > filtered dmesg:
> >
> > ess: 74:da:38:41:1c:68
> > rgeorgia@mini01% dmesg | grep urtw
> > urtwn0: 
> > on usbus0
> > urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
> > urtwn0: enabling 11n
> > urtwn-rtl8192cfwT: You need to read the LICENSE file in
> > /usr/share/doc/legal/realtek/.
> > urtwn-rtl8192cfwT: If you agree with the license, set
> > legal.realtek.license_ack=1 in /boot/loader.conf.
> > module_register_init: MOD_LOAD (urtwn_rtl8192cfwT_fw, 82b73fa0,
> > 0) error 1
> > urtwn-rtl8192cfwT: firmware image loaded, but did not register
> > urtwn0: failed loadfirmware of file urtwn-rtl8192cfwT
> > urtwn-rtl8192cfwT: could not load firmware image, error 17
> > urtwn0: failed loadfirmware of file urtwn-rtl8192cfwT
> > urtwn-rtl8192cfwT: could not load firmware image, error 17
> > urtwn0: failed loadfirmware of file urtwn-rtl8192cfwT
> > urtwn-rtl8192cfwT: could not load firmware image, error 17
> > urtwn0: failed loadfirmware of file urtwn-rtl8192cfwT
> > urtwn0: at uhub0, port 2, addr 4 (disconnected)
> > urtwn0: detached
> > urtwn0: 
> > on usbus0
> > urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
> > urtwn0: enabling 11n
> > urtwn0: at uhub0, port 2, addr 1 (disconnected)
> > urtwn0: detached
> > urtwn0: 
> > on usbus0
> > urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
> > urtwn0: enabling 11n
> > urtwn1: 
> > on usbus0
> > urtwn1: MAC/BB RTL8188CUS, RF 6052 1T1R
> > urtwn1: enabling 11n
> > urtwn1: at uhub0, port 1, addr 8 (disconnected)
> > urtwn1: detached
> > urtwn1: 
> > on usbus0
> > urtwn1: MAC/BB RTL8188CUS, RF 6052 1T1R
> > urtwn1: enabling 11n
> > urtwn0: at uhub1, port 3, addr 7 (disconnected)
> > urtwn0: detached
> > urtwn1: at uhub0, port 2, addr 9 (disconnected)
> > urtwn1: detached
> > urtwn0:  > 10> on usbus0
> > urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
> > urtwn0: enabling 11n
> > urtwn0: at uhub1, port 3, addr 10 (disconnected)
> > urtwn0: detached
> > urtwn0:  > 11> on usbus0
> > urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
> > urtwn0: enabling 11n
> > urtwn0: at uhub1, port 3, addr 11 (disconnected)
> > urtwn0: detached
> > urtwn0: 
> > on usbus0
> > urtwn0: MAC/BB
> > urtwn0: enabling 11n
> > urtwn0: at uhub1, port 3, addr 2 (disconnected)
> > urtwn0: detached
> > urtwn0: 
> > on usbus0
> > urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
> > urtwn0: enabling 11n
> > urtwn0: at uhub0, port 2, addr 5 (disconnected)
> > urtwn0: detached
> > urtwn0: 
> > on usbus0
> > urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
> > urtwn0: enabling 11n
> > urtwn0: at uhub0, port 2, addr 1 (disconnected)
> > urtwn0: detached
> > urtwn0: 
> > on usbus0
> > urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
> > urtwn0: enabling 11n
> >
> > /boot/loader.conf
> >
> > vfs.root.mountfrom="hammer2:serno/50026B726B053990.s1d"
> > legal.realtek.license_ack=1
> > if_urtwn_load="YES"
> > urtwn-rtl8192cfwT_load="YES"
> > urtwn-rtl8192cfwU_load="YES"
> > urtwn-rtl8188eufw_load="YES"
> >
> > --
> > “90% of my problems are due to ignorance, the other 10% is because I just 
> > don’t know any better.”
> >


Re: urtwn0 - driver didn't set altq_maxlen

2020-04-19 Thread karu.pruun
Hello

I have the same usb wifi stick, and I see the same error, but that
does not prevent it from working. Can you check that the rest of the
setup in /etc/rc.conf is fine? I have

dhcpcd_enable="YES"

and the rest is the urtwn, wlans and wpa_supplicant as in the
handbook. Check that the wpa_supplicant connects. Check that the
dhcpcd is running; or restart it to be sure.

Cheers

Peeter

--


On Mon, Apr 13, 2020 at 11:35 PM Ron Georgia  wrote:
>
> All,
>
> I have a USB Wifi adapter (MAC/BB RTL8188CUS, RF 6052 1T1R) that is
> having problems initializing. I did do some poking around and updated
> loader.conf (see below) but that does not seem to help. When I do and
> ifconfig wlan0 I see the SSID, but not IPv4, instead I see a "driver
> didn't set altq_maxlen" error. This is not a new USB adapter, maybe 3 or
> 4 years old. I am able to scan the networks with ifconfig wlan0 scan,
> but I cannot connect to my home network (yes, the password is correct.)
> Not sure what might be needed. I can post my full dmesg in paste bin if
> that helps.
>
> Some Info:
>
> % ifconfig | grep -B3 -i wireless
>  country US authmode WPA2/802.11i privacy ON deftxkey UNDEF
>  AES-CCM 3:128-bit txpower 0 bmiss 7 scanvalid 60 protmode CTS wme
>  roaming MANUAL
>  media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g
>
> % sysctl net.wlan.devices
> net.wlan.devices: urtwn0
>
> filtered dmesg:
>
> ess: 74:da:38:41:1c:68
> rgeorgia@mini01% dmesg | grep urtw
> urtwn0: 
> on usbus0
> urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
> urtwn0: enabling 11n
> urtwn-rtl8192cfwT: You need to read the LICENSE file in
> /usr/share/doc/legal/realtek/.
> urtwn-rtl8192cfwT: If you agree with the license, set
> legal.realtek.license_ack=1 in /boot/loader.conf.
> module_register_init: MOD_LOAD (urtwn_rtl8192cfwT_fw, 82b73fa0,
> 0) error 1
> urtwn-rtl8192cfwT: firmware image loaded, but did not register
> urtwn0: failed loadfirmware of file urtwn-rtl8192cfwT
> urtwn-rtl8192cfwT: could not load firmware image, error 17
> urtwn0: failed loadfirmware of file urtwn-rtl8192cfwT
> urtwn-rtl8192cfwT: could not load firmware image, error 17
> urtwn0: failed loadfirmware of file urtwn-rtl8192cfwT
> urtwn-rtl8192cfwT: could not load firmware image, error 17
> urtwn0: failed loadfirmware of file urtwn-rtl8192cfwT
> urtwn0: at uhub0, port 2, addr 4 (disconnected)
> urtwn0: detached
> urtwn0: 
> on usbus0
> urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
> urtwn0: enabling 11n
> urtwn0: at uhub0, port 2, addr 1 (disconnected)
> urtwn0: detached
> urtwn0: 
> on usbus0
> urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
> urtwn0: enabling 11n
> urtwn1: 
> on usbus0
> urtwn1: MAC/BB RTL8188CUS, RF 6052 1T1R
> urtwn1: enabling 11n
> urtwn1: at uhub0, port 1, addr 8 (disconnected)
> urtwn1: detached
> urtwn1: 
> on usbus0
> urtwn1: MAC/BB RTL8188CUS, RF 6052 1T1R
> urtwn1: enabling 11n
> urtwn0: at uhub1, port 3, addr 7 (disconnected)
> urtwn0: detached
> urtwn1: at uhub0, port 2, addr 9 (disconnected)
> urtwn1: detached
> urtwn0:  10> on usbus0
> urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
> urtwn0: enabling 11n
> urtwn0: at uhub1, port 3, addr 10 (disconnected)
> urtwn0: detached
> urtwn0:  11> on usbus0
> urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
> urtwn0: enabling 11n
> urtwn0: at uhub1, port 3, addr 11 (disconnected)
> urtwn0: detached
> urtwn0: 
> on usbus0
> urtwn0: MAC/BB
> urtwn0: enabling 11n
> urtwn0: at uhub1, port 3, addr 2 (disconnected)
> urtwn0: detached
> urtwn0: 
> on usbus0
> urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
> urtwn0: enabling 11n
> urtwn0: at uhub0, port 2, addr 5 (disconnected)
> urtwn0: detached
> urtwn0: 
> on usbus0
> urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
> urtwn0: enabling 11n
> urtwn0: at uhub0, port 2, addr 1 (disconnected)
> urtwn0: detached
> urtwn0: 
> on usbus0
> urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R
> urtwn0: enabling 11n
>
> /boot/loader.conf
>
> vfs.root.mountfrom="hammer2:serno/50026B726B053990.s1d"
> legal.realtek.license_ack=1
> if_urtwn_load="YES"
> urtwn-rtl8192cfwT_load="YES"
> urtwn-rtl8192cfwU_load="YES"
> urtwn-rtl8188eufw_load="YES"
>
> --
> “90% of my problems are due to ignorance, the other 10% is because I just 
> don’t know any better.”
>


Problems with WLAN - iwm0

2020-04-19 Thread Michael Neumann
Hi,

I can't get my WLAN working here with iwm0 on DragonFly 5.8.0. It always shows
"status: no carrier". I double checked with a recent FreeBSD (12.1), and there,
the same commands on the command line work. This is an open WLAN, I haven't
tested it with wpa supplicant.  Note that on FreeBSD I have to explicitly
specify the channel, otherwise I can't get it to work either.

Any ideas?

# dmesg | grep iwm0

iwm0: hw rev 0x230, fw ver 22.361476.0, address 74:70:fd:fa:5a:3c

# kldstat

Id Refs AddressSize Name
 1   12 0x8020 1eb5520  kernel
 21 0x820b6000 c8f8 ehci.ko
 31 0x820c3000 cec0 xhci.ko
 41 0x820d 11c50dm.ko
 51 0x820e2000 1d6b8if_iwm.ko
 61 0x8210 1bb250   iwm8265fw.ko

# ifconfig wlan create wlandev iwm0 up

wlan0: driver didn't set altq_maxlen
wlan0: MAC address: 74:70:fd:fa:5a:3c
wlan0

# ifconfig wlan0 scan

SSID/MESH IDBSSID  CHAN RATE   S:N INT CAPS
my-ssid xx:xx:xx:xx:xx:xx9   54M   0:0100 EHTCAP WME

# ifconfig wlan create wlandev iwm0 channel 9 ssid my-ssid up

re0: flags=8802 mtu 1500
options=1b
ether 80:fa:5b:62:db:72
media: Ethernet autoselect (none)
status: no carrier
lo0: flags=8049 mtu 16384
options=43
inet 127.0.0.1 netmask 0xff00 
inet6 ::1 prefixlen 128 
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 
groups: lo 
wlan0: flags=8843 mtu 1500
inet6 fe80::7670:fdff:fefa:5a3c%wlan0 prefixlen 64 scopeid 0x3 
ether 74:70:fd:fa:5a:3c
groups: wlan 
ssid my-ssid channel 9 (2452 MHz 11g)
country US authmode OPEN privacy OFF txpower 0 bmiss 10 scanvalid 60
protmode CTS wme bintval 0
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier

Regards,

  Michael