Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

I need to enable wifi every boot - Solved

New to Debian (Or Linux in general)? Ask your questions here!
Message
Author
hillelana
Posts: 15
Joined: 2021-03-10 16:01

I need to enable wifi every boot - Solved

#1 Post by hillelana »

I'm using Debian 10 with Xfce. Every time it boots up, I need to rightclick the network icon on the panel, and click the checkbox for enable Wifi. I've googled this and haven't found an answer.
Last edited by hillelana on 2021-03-18 13:25, edited 1 time in total.

Deb-fan
Posts: 1047
Joined: 2012-08-14 12:27
Been thanked: 4 times

Re: I need to enable wifi every boot

#2 Post by Deb-fan »

Identify what software you're using for networking, then ensure it's enabled to start at boot. Look into systemctl ie: "systemctl status servicename" and "systemctl enable servicename" etc. :)
Most powerful FREE tech-support tool on the planet * HERE. *

hillelana
Posts: 15
Joined: 2021-03-10 16:01

Re: I need to enable wifi every boot

#3 Post by hillelana »

Post edited due to stupidity.
Last edited by hillelana on 2021-03-17 15:11, edited 1 time in total.

Deb-fan
Posts: 1047
Joined: 2012-08-14 12:27
Been thanked: 4 times

Re: I need to enable wifi every boot

#4 Post by Deb-fan »

Google systemctl :)

PS, have you tried Linux Mint ? I think it's good stuff ...
Most powerful FREE tech-support tool on the planet * HERE. *

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: I need to enable wifi every boot

#5 Post by Head_on_a_Stick »

@OP: ignore Deb-fan, if the networking service wasn't enabled and running then clicking on the tickbox wouldn't do anything.

Can we see

Code: Select all

journalctl --unit NetworkManager --unit network-manager
deadbang

User avatar
ticojohn
Posts: 1284
Joined: 2009-08-29 18:10
Location: Costa Rica
Has thanked: 21 times
Been thanked: 44 times

Re: I need to enable wifi every boot

#6 Post by ticojohn »

If I might throw in my 2 cents worth, I also use Xfce and found that I had to edit the connections (wired and wifi) to set the priority for which network would be first be connected. Of course if you don't have a wired connection than my 2 cents isn't worth squat.

Right click on the network icon and select edit connections. For the WiFi connection, under the General tab, make sure to select Connect automatically with priority X. In the input area enter the priority you want. If you also have a wired connection then the higher priority will obviously connect first.
I am not irrational, I'm just quantum probabilistic.

Deb-fan
Posts: 1047
Joined: 2012-08-14 12:27
Been thanked: 4 times

Re: I need to enable wifi every boot

#7 Post by Deb-fan »

Or when you check said box and hit apply the service starts, OP for real if resolving something like this is way above your paygrade honestly think going with a distro more intended for newish nixers, such as Linux Mint would be a good thing to consider.

Edit: Got rid of some stuff cause it was negative and don't like negativity. :)
Most powerful FREE tech-support tool on the planet * HERE. *

hillelana
Posts: 15
Joined: 2021-03-10 16:01

Re: I need to enable wifi every boot

#8 Post by hillelana »

Thank you.
I ran "systemctl | grep running" when I first booted up, and the wifi wsn't connecting, and got back "NetworkManager.service loaded active running Network Manager"
So network manager is running, but the box "enable wifi" still needs to be clicked.
I apologize for existing here. Yes, on 2 of my other laptops I am running Ubuntu and Lubuntu. But this one is 32 bit. I was running Manjaro on it, but it wasn't being updated. Out of the limited number of kept up 32 bit distros, I mistakenly chose good old grandfather Debian. I knew I was in trouble right away when I had to enable the non free suppositories to get wifi drivers. At least that was easier than the torture of net-diswrapper from the bad old days of Linux.
I tried changing the priority of the connection. A little unclear - is 1 the highest priority, or a higher # is higher? I figured a higher # is better, because they were all at 0 originally. I set the wifi at 5. I deleted all other old wifi connections. Didn't help when I restarted.
If I don't deserve help, so be it. I'll just take an extra few seconds every morning to enable the wifi.

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: I need to enable wifi every boot

#9 Post by Bulkley »

Is this a laptop or desktop? A desktop usually only needs one Wifi setting so a simple script in /etc/network/interfaces is all that is needed.

User avatar
ticojohn
Posts: 1284
Joined: 2009-08-29 18:10
Location: Costa Rica
Has thanked: 21 times
Been thanked: 44 times

Re: I need to enable wifi every boot

#10 Post by ticojohn »

I believe that a lower number has higher priority.
I am not irrational, I'm just quantum probabilistic.

hillelana
Posts: 15
Joined: 2021-03-10 16:01

Re: I need to enable wifi every boot

#11 Post by hillelana »

I tried with both a higher and a lower number and neither helped.
Bulkley wrote:Is this a laptop or desktop? A desktop usually only needs one Wifi setting so a simple script in /etc/network/interfaces is all that is needed.
It's a laptop.
Please clarify what the script should be.

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: I need to enable wifi every boot

#12 Post by Bulkley »

hillelana wrote:Please clarify what the script should be.
See the Debian Wiki here: How to use a WiFi interface

Deb-fan
Posts: 1047
Joined: 2012-08-14 12:27
Been thanked: 4 times

Re: I need to enable wifi every boot

#13 Post by Deb-fan »

I apologize for existing here
I knew I was in trouble right away when I had to enable the non free suppositories to get wifi drivers.
If I don't deserve help, so be it. I'll just take an extra few seconds every morning to enable the wifi.
LMAO .. well I like your style(in ways anyway.) :) Still do think perhaps better to look at good distributions more geared towards users for where your skillset is presently. Just my opinion (who elses opinion would it be though, lol) and not my call. Watched your thread get dozens of views + no responses, decided meh, might as well get the ball rolling for this person. That is all, whatever the issue is surely it's nothing close to insurmountable, shrugs. :D



“Endeavor to persevere.” errr or not, as you wish. :P
Most powerful FREE tech-support tool on the planet * HERE. *

hillelana
Posts: 15
Joined: 2021-03-10 16:01

Re: I need to enable wifi every boot

#14 Post by hillelana »

Yeah, thanks for replying.
Aside from this little issue, Debian is going smoothly. No real reason yet to bother switching to one of these - https://itsfoss.com/32-bit-linux-distributions/.
At first glance, Bulkley's Wiki looks like it's for setting up the wifi, but all I need is to figure out what setting or piece of code is turning off the wifi.

Deb-fan
Posts: 1047
Joined: 2012-08-14 12:27
Been thanked: 4 times

Re: I need to enable wifi every boot

#15 Post by Deb-fan »

Does it work with other distro's you've tried ? Is there a bios setting or a friggin function key to en-disable this kind of thing ? If so is it set rightly ? Not typing out 75 suggestions regardless. This is the kind of uber-basic things a person would find with a tad bit of 1/2 arsed research though. Anyway .. yep. :)
Most powerful FREE tech-support tool on the planet * HERE. *

hillelana
Posts: 15
Joined: 2021-03-10 16:01

Re: I need to enable wifi every boot

#16 Post by hillelana »

I looked through the bios. It's from ages ago with no settings to speak of. The laptop has a physical wifi switch, not a function key one. I googled "need to enable wifi every boot linux (or debian) 75 times. I help out lots of people with their Windows issues. I heard about the RTFM nasties, but I thought maybe someone would just quickly realize what setting got messed up. Maybe I should have been clearer. The laptop didn't have this issue when first set up (or with manjaro), but then a few weeks ago it started. I didn't on purpose change any setting. I thought maybe it was an update not compatible with my old laptop. If you want to disparage me more, go right ahead. I can take it - I'm married.

Deb-fan
Posts: 1047
Joined: 2012-08-14 12:27
Been thanked: 4 times

Re: I need to enable wifi every boot

#17 Post by Deb-fan »

If you want to disparage me more, go right ahead. I can take it - I'm married.
LMFAO ... definitely like thy style there, lol. :D

The function keys thing can actually be somewhat insidious, it's threw me off a couple times for a min or two, here + there. Not really so much ire aimed at you specifically just general frustration about all the Canonical folks who've flooded nix communities they clearly don't belong in etc blahblah. Yeppers actually providing some amount of meaningful information about what you've done, what you're dealing with does tend to help people to help you. Without having to type a gazillion could be or try this's till damn fingers bleed.

Though if someone has spent as much time as I have dorking around in nix forums then gets to feeling like someone can/has covered about everything ... more than several times, many, many times and seen others having done likewise. Know I have covered checking dpkg logs to see which pkgs etc have been upgraded in a given span of time. Anyway good luck no matter, am about 1000% sure the info you seek is in this and many other nix fori's or docs. :)

Lol ... if you're of really stout stuff search Head_on's post history. Wade through 42,000+ posts if you dare, lol. No wonder and gotta be one of the reasons the guy's on the edge of a mental breakdown.

Oops, edit: Credit where due, if someone were to do so, no doubt they'd learn a metric-crapton of things about tech but still not even sure how that much nix forum activity is humanly possible and often joked about thinking he's a cyborg ( I still do btw, he insists he's a bot tho.) Spent that much time dealing with the avg nix user (or person who uses gnu/nix and thinks they're a nixer), I'd be curled up in a ball somewhere drooling on myself. :P
Afterthought: Also thus is one of the reasons why I'm strongly opposed to the concept of marriage. When time comes and I wish to get rid of the other party of a relationship or she wants to be rid of me ... We don't have to do any paperwork. :D
Most powerful FREE tech-support tool on the planet * HERE. *

hillelana
Posts: 15
Joined: 2021-03-10 16:01

Re: I need to enable wifi every boot

#18 Post by hillelana »

How's this for a clue, if anybody gives a darn?
When I first boot and the check box "enable wifi " is as usual unchecked, if I run -"sudo ip link set wls3 up" the response is "RTNETLINK answers: Operation not possible due to RF-kill". Then whether I turn off then on the physical wifi switch, hit the wifi function key, or click the enable wifi checkbox, it works fine until I reboot.
Now I've got something new to look up in the ultimate free tech support place.


hillelana
Posts: 15
Joined: 2021-03-10 16:01

Re: I need to enable wifi every boot

#20 Post by hillelana »

Head_on_a_Stick wrote:@OP: ignore Deb-fan, if the networking service wasn't enabled and running then clicking on the tickbox wouldn't do anything.

Can we see

Code: Select all

journalctl --unit NetworkManager --unit network-manager
Here it is -
Logs begin at Tue 2021-03-16 07:45:54 PDT, end at Tue 2021-03-16 07:55:05 PDT. --
Mar 16 07:46:03 aufr-ThinkPad-Z61m systemd[1]: Starting Network Manager...
Mar 16 07:46:09 aufr-ThinkPad-Z61m NetworkManager[446]: <info> [1615905969.1431] NetworkManager (version 1.14.6) is starting... (for the first time)
Mar 16 07:46:09 aufr-ThinkPad-Z61m NetworkManager[446]: <info> [1615905969.1433] Read config: /etc/NetworkManager/NetworkManager.conf (lib: no-mac-addr-chang
Mar 16 07:46:09 aufr-ThinkPad-Z61m NetworkManager[446]: <info> [1615905969.2410] wifi-nl80211: (wls3): using nl80211 for WiFi device control
Mar 16 07:46:09 aufr-ThinkPad-Z61m NetworkManager[446]: <info> [1615905969.4606] bus-manager: acquired D-Bus service "org.freedesktop.NetworkManager"
Mar 16 07:46:09 aufr-ThinkPad-Z61m systemd[1]: Started Network Manager.
Mar 16 07:46:09 aufr-ThinkPad-Z61m NetworkManager[446]: <info> [1615905969.9347] manager[0x1e82030]: monitoring kernel firmware directory '/lib/firmware'.
Mar 16 07:46:09 aufr-ThinkPad-Z61m NetworkManager[446]: <info> [1615905969.9348] monitoring ifupdown state file '/run/network/ifstate'.
Mar 16 07:46:11 aufr-ThinkPad-Z61m NetworkManager[446]: <info> [1615905971.7622] hostname: hostname: using hostnamed
Mar 16 07:46:11 aufr-ThinkPad-Z61m NetworkManager[446]: <info> [1615905971.7623] hostname: hostname changed from (none) to "aufr-ThinkPad-Z61m"
Mar 16 07:46:11 aufr-ThinkPad-Z61m NetworkManager[446]: <info> [1615905971.7629] dns-mgr[0x1e7bbe0]: init: dns=default, rc-manager=resolvconf
Mar 16 07:46:11 aufr-ThinkPad-Z61m NetworkManager[446]: <info> [1615905971.7656] rfkill0: found WiFi radio killswitch (at /sys/devices/pci0000:00/0000:00:1c.
Mar 16 07:46:11 aufr-ThinkPad-Z61m NetworkManager[446]: <info> [1615905971.7662] manager[0x1e82030]: rfkill: WiFi hardware radio set enabled
Mar 16 07:46:11 aufr-ThinkPad-Z61m NetworkManager[446]: <info> [1615905971.7663] manager[0x1e82030]: rfkill: WWAN hardware radio set enabled
Mar 16 07:46:12 aufr-ThinkPad-Z61m NetworkManager[446]: <info> [1615905972.6931] ifupdown: interface-parser: parsing file /etc/network/interfaces
Mar 16 07:46:12 aufr-ThinkPad-Z61m NetworkManager[446]: <info> [1615905972.6933] ifupdown: interface-parser: source line includes interfaces file(s) /e
Mar 16 07:46:12 aufr-ThinkPad-Z61m NetworkManager[446]: <warn> [1615905972.6934] ifupdown: interfaces file /etc/network/interfaces.d/* doesn't exist
Mar 16 07:46:12 aufr-ThinkPad-Z61m NetworkManager[446]: <info> [1615905972.6935] ifupdown: interface-parser: finished parsing file /etc/network/interfa
Mar 16 07:46:12 aufr-ThinkPad-Z61m NetworkManager[446]: <info> [1615905972.6936] ifupdown: management mode: managed
Mar 16 07:46:12 aufr-ThinkPad-Z61m NetworkManager[446]: <info> [1615905972.6936] settings: Loaded settings plugin: SettingsPluginIfupdown ("/usr/lib/i386-lin

There was tons more. But at 7:46:11 it looks like that's when I hit the wifi function button and everything started working.

Locked