Internal WiFi status? - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PineTab (https://forum.pine64.org/forumdisplay.php?fid=140) +--- Forum: PineTab Software (https://forum.pine64.org/forumdisplay.php?fid=142) +--- Thread: Internal WiFi status? (/showthread.php?tid=18575) |
RE: Internal WiFi status? - Surehand53 - 02-14-2024 Wow. Wifi works. It works exactly as described above, no problem. This post is my first use of the new Wifi driver. So far I tried the one-tine solution. Thanks everyone for the dedicated work to make this happen. RE: Internal WiFi status? - Wilmeri - 02-16-2024 Hi! As we know, the new wifi driver works, but hangs on suspend and shutdown. However, if I manually just disable wifi or run "nmcli radio wifi off" before shutdown or suspend, all goes well :-). So I thought following this would make all work: https://unix.stackexchange.com/questions/543972/turn-on-off-wifi-radio-when-computer-suspends-resumes but for some reason, it does not work. Any ideas? Wilmeri RE: Internal WiFi status? - ninlith - 02-23-2024 (02-16-2024, 05:08 AM)Wilmeri Wrote: Hi! Prefix the nmcli commands with sudo -u YOURUSERNAME. RE: Internal WiFi status? - ninlith - 02-23-2024 (02-23-2024, 01:59 PM)ninlith Wrote:(02-16-2024, 05:08 AM)Wilmeri Wrote: Hi! That seemed to work a couple of times, but then never did again. I had better luck enabling the following service units: Code: [Unit] Code: [Unit] RE: Internal WiFi status? - frtodd - 02-23-2024 Wilmeri: that's a good find. Placing it in `/usr/lib/systemd/system-sleep/` isn't working for me. But a simple `nnmcli radio wifi off ; systemctl suspend` works nicely, followed by a corresponding "nmcli radio wifi on" when it wakes. Which led me to check: simply disconnecting wifi by hitting the "Wi-Fi" button in the pull-down menu (the always-available one where you control screen brightness at the bottom) seems to be sufficient to let me suspend and restore gracefully. It's not perfect, but it's not difficult. Thanks for pointing the way, Wilmeri! RE: Internal WiFi status? - FortunateFowl - 02-24-2024 I had success in being able to suspend without any hangs and the wifi on using the following. Using your favorite text editor add the following text to the following two files File at Code: /usr/lib/systemd/system-sleep/wlan_stop.sh Code: #!/bin/bash and again for shutdowns add a file at Code: /usr/lib/systemd/system-shutdown/wlan_stop.sh Code: #!/bin/bash Also make sure that both files are executable Code: % sudo chmod +x /usr/lib/systemd/system-shutdown/wlan_stop.sh I have tested it a couple of times and it seem to work so far. I can let the pinetab2 go to suspend and wake up again, and wifi pops back into working. You know that the script is working for suspend when the file /tmp/suspend exists and has timestamps for when it suspended. If that file isn't created then the problem is that the file /usr/lib/systemd/system-sleep/wlan_stop.sh isn't running. Code: % cat /tmp/suspend (02-23-2024, 08:43 PM)frtodd Wrote: Wilmeri: that's a good find. Placing it in `/usr/lib/systemd/system-sleep/` isn't working for me. But a simple `nnmcli radio wifi off ; systemctl suspend` works nicely, followed by a corresponding "nmcli radio wifi on" when it wakes. Not sure why it did't work for you, as I see it is very similar to what works well for me. Perhaps you need to have the full path to nmcli? RE: Internal WiFi status? - Username_012 - 02-24-2024 Any idea how I could attempt to install this improved driver on my Manjaro Linux installation? RE: Internal WiFi status? - Kevin Kofler - 02-25-2024 Wait, what device do you actually have? This driver is only for the PineTab 2, which is not currently supported by Manjaro. RE: Internal WiFi status? - Username_012 - 02-26-2024 There are in fact Manjaro images for the PineTab2, which is what I am using. https://github.com/manjaro-arm/pinetab2-images?tab=readme-ov-file RE: Internal WiFi status? - Kevin Kofler - 02-26-2024 Ah OK. Those are not officially supported images (they are not on the official Manjaro download page), but I see they are there. You can install the latest DanctNIX kernel: https://archmobile.mirror.danctnix.org/danctnix/aarch64/linux-pinetab2-6.6.13.danctnix1-1-aarch64.pkg.tar.xz (download the file, then install it with sudo pacman -U linux-pinetab2-6.6.13.danctnix1-1-aarch64.pkg.tar.xz) to get the latest WiFi driver (and then follow the instructions in this thread for how to enable it, because it still ships disabled by default). I expect this to work (because the package format is the same and userspace does not tend to have tight dependencies on the exact kernel version), but keep in mind that of course this combination (Manjaro userspace on DanctNIX kernel) is not supported by either Manjaro or DanctNIX, so use at your own risk. Otherwise, you will have to wait for Manjaro to ship an updated kernel for the PineTab2 with the driver. The current unsupported Manjaro images use the generic kernel-rc, not a dedicated kernel for the PineTab2, so they do not carry device-specific drivers at all. |