Ubuntu Suomen keskustelualueet
Ubuntun käyttö => Laitealue => Aiheen aloitti: jarmala - 05.07.23 - klo:14.50
-
Nyt tuli tenkkapoo. Miten minipc:ssä laitetaan wifi päälle? Koskaan en ole taistellut tietokoneilla wifin kanssa... Kun ethernet -piuhaa pitkin kulkee vain 100 Mbps, niin voisi kokeilla, paljonko saa kulkemaan wifi:llä, eikä tarvitsisi käydä ostamassa uutta kallista kaapelia... Puhelimen wifi:llä testattuna nopeus on ainakin 390 Mbps.
[ 6111.148786] Generic FE-GE Realtek PHY r8169-0-100:00: Downshift occurred from negotiated speed 1Gbps to actual speed 100Mbps, check cabling!
[ 6111.148823] r8169 0000:01:00.0 enp1s0: Link is Up - 100Mbps/Full (downshifted) - flow control rx/tx
Verkosta se sanoo seuraavaa:
$ lspci -nn | grep -i network
02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]
ari@ari-JL:~/avi$ rfkill list
0: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
ari@ari-JL:~/avi$ ifconfig
enp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 2001:14ba:42ec:5a00:3dc9:efbc:5c1d:f7f6 prefixlen 64 scopeid 0x0<global>
inet6 fe80::b639:789f:604:84fc prefixlen 64 scopeid 0x20<link>
inet6 2001:14ba:42ec:5a00:e7aa:bf90:f9c5:12c6 prefixlen 64 scopeid 0x0<global>
ether 68:1d:ef:2e:90:22 txqueuelen 1000 (Ethernet)
RX packets 1486310 bytes 1835343139 (1.8 GB)
RX errors 0 dropped 17 overruns 0 frame 0
TX packets 918519 bytes 456518167 (456.5 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 13788 bytes 1509582 (1.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 13788 bytes 1509582 (1.5 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Käytössä Ubuntu 22.04 ja KDE. Miten sen saa päälle?
-
Rfkill näyttää, että wifi on kytketty pois päältä softakytkimellä. Kokeile kytkeä päälle näppäimistön kautta, jos jossain funktionäppäimessä on langattoman verkon symboli. Esimerkiksi jos F8:ssa on wifi-kytkin, kokeile F8 tai Fn+F8. Tarkista status uudelleen rfkillillä.
Jos ei lähde toimimaan näppäimillä, mikä wifi-piiri koneessa on? Katso lshw:lla:
lshw -c network
Wifi-yhteys on aika varmasti hitaampi kuin 100 Mbps ethernet, ellei koneen wifi-piiri tue 802.11ac tai 802.11ax-standardia.
-
Rfkill näyttää, että wifi on kytketty pois päältä softakytkimellä. Kokeile kytkeä päälle näppäimistön kautta, jos jossain funktionäppäimessä on langattoman verkon symboli. Esimerkiksi jos F8:ssa on wifi-kytkin, kokeile F8 tai Fn+F8. Tarkista status uudelleen rfkillillä.
Jos ei lähde toimimaan näppäimillä, mikä wifi-piiri koneessa on? Katso lshw:lla:
Kyseessä on siis mini-pc, jossa ei ole muita näppäimiä kuin virtanäppäin. Käytän sitä erikseen ostetulla langattomalla näppiksellä ja hiirellä. Ei usko, että niissä olisi mitään wifiin liittyvää...
$ sudo lshw -c network
[sudo] password for ari:
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:01:00.0
logical name: enp1s0
version: 15
serial: 68:1d:ef:2e:90:22
size: 100Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.19.0-46-generic duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.1.100 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:16 ioport:4000(size=256) memory:7fd04000-7fd04fff memory:7fd00000-7fd03fff
*-network DISABLED
description: Wireless interface
product: RTL8821CE 802.11ac PCIe Wireless Network Adapter
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:02:00.0
logical name: wlp2s0
version: 00
serial: 38:ca:73:c0:1a:f6
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=rtw_8821ce driverversion=5.19.0-46-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11
resources: irq:129 ioport:3000(size=256) memory:7fc00000-7fc0ffff
Wifi -piiri on juurikin RTL8821CE 802.11ac, joten odottaisin, että sillä saisi 100 Mbps suuremman nopeuden, kunhan vaan keksisi, miten sen piirin saa päälle...
-
Voit kokeilla poistaa blokkauksen rfkillillä:
sudo rfkill unblock all
-
Voit kokeilla poistaa blokkauksen rfkillillä:
sudo rfkill unblock all
Juu, tätä on kokeiltu. Mutta ei auta. Miten saan pakotetuksi PC:n käyttämään wifiä?
Jos nappaan ethernet piuhan koneesta irti, niin se ei pääse nettiin ollenkaan. Nyyh. Eli siis wifi ei vaan toimi. Valehteleeko kone, että siinä olisi wifi-piiri?
Nyt on muutama tunti kulunut edellisestä ja wireless on taas soft blocked. Ja jos sen unblokkaa ja pakottaa sen päälle, niin se ei saa kuitenkaan kiinni IP-osoitteesta ja ei toimi:
ari@ari-JL:~$ rfkill list
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: no
ari@ari-JL:~$ ifconfig
enp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 2001:14ba:42ec:5a00:3dc9:efbc:5c1d:f7f6 prefixlen 64 scopeid 0x0<global>
inet6 2001:14ba:42ec:5a00:9e8:1635:c08e:d07d prefixlen 64 scopeid 0x0<global>
inet6 fe80::b639:789f:604:84fc prefixlen 64 scopeid 0x20<link>
ether 68:1d:ef:2e:90:22 txqueuelen 1000 (Ethernet)
RX packets 5328799 bytes 7977327249 (7.9 GB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2647157 bytes 180755228 (180.7 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 34768 bytes 4747526 (4.7 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 34768 bytes 4747526 (4.7 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ari@ari-JL:~$ rfkill unblock all
ari@ari-JL:~$ rfkill list
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
ari@ari-JL:~$ ifconfig
enp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 2001:14ba:42ec:5a00:3dc9:efbc:5c1d:f7f6 prefixlen 64 scopeid 0x0<global>
inet6 2001:14ba:42ec:5a00:9e8:1635:c08e:d07d prefixlen 64 scopeid 0x0<global>
inet6 fe80::b639:789f:604:84fc prefixlen 64 scopeid 0x20<link>
ether 68:1d:ef:2e:90:22 txqueuelen 1000 (Ethernet)
RX packets 5328887 bytes 7977337969 (7.9 GB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2647172 bytes 180757003 (180.7 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 34768 bytes 4747526 (4.7 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 34768 bytes 4747526 (4.7 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ari@ari-JL:~$ sudo ifconfig wlp2s0 up
[sudo] password for ari:
ari@ari-JL:~$ ifconfig
enp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.100 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 2001:14ba:42ec:5a00:3dc9:efbc:5c1d:f7f6 prefixlen 64 scopeid 0x0<global>
inet6 2001:14ba:42ec:5a00:9e8:1635:c08e:d07d prefixlen 64 scopeid 0x0<global>
inet6 fe80::b639:789f:604:84fc prefixlen 64 scopeid 0x20<link>
ether 68:1d:ef:2e:90:22 txqueuelen 1000 (Ethernet)
RX packets 5328919 bytes 7977341777 (7.9 GB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2647177 bytes 180757665 (180.7 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 34768 bytes 4747526 (4.7 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 34768 bytes 4747526 (4.7 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp2s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 38:ca:73:c0:1a:f6 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ari@ari-JL:~$
Tai sitten en vaan osaa...
Tai kiinalainen mini-pc ei vaan ole sitä, mitä se lupaa olevansa...
Vai pitääkö vaan käydä huomenna (tai jo tänään) ostamassa Tokmannista 11 euron CAT 6 -ethernet kaapeli tälle mini-pc:lle?
-
Saattaisi olla myös biosin (uefin) asetus, jolla wifi on kytketty pois käytöstä. Tosin yleensä ne piilottavat piirin kokonaan käyttöjärjestelmältä.
Olet varmaan kokeillut kytkeä langattoman verkon päälle normaaliin tapaan KDE:n verkkovalikon kautta? Vai puuttuuko wifi sieltä kokonaan?
-
Vai pitääkö vaan käydä huomenna (tai jo tänään) ostamassa Tokmannista 11 euron CAT 6 -ethernet kaapeli tälle mini-pc:lle?
Kävin ostamassa 10 m CAT 6 -kaapelin sieltä. Nyt pelaa netti heittämällä: download on 380 Mbps, up 49 Mbps ja ping 12 ms. Merkkaan tämän ratkaistuksi, vaikka wifiä ei saatukaan toimimaan - netissä on paljon keskustelua juuri tämän koneen wifi-piiristä, kun se ei kernelillä suoraan toimi vaan vaatisi jonkin ajurin asentamista modprobella. Ohjeet siihen vaan ovat vanhoille linuxin versioille.
Eli uudella kaapelilla mennään:
[76166.298259] r8169 0000:01:00.0 enp1s0: Link is Down
[76257.539451] r8169 0000:01:00.0 enp1s0: Link is Up - 1Gbps/Full - flow control rx/tx