DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1 Week Ago
d31n1 d31n1 is offline
Port Guard
 
Join Date: Jan 2020
Posts: 20
Default Shutdown my OpenBSD laptop with the power button and now nothing works

I turned off my OpenBSD laptop with the power button and now nothing works.

First issue was with startx. I do startx, but it takes forever. I can get into it quicker if I do CTRL+C two-three times. Had this issue before, both on bsd and Linux, and the solution was to delete .Xauthority file. Did that, but still same problem. Not that big of a deal. I can live with that, but the other issues not so much.

Next issue is firefox taking long time to load. Used to be maximum 5 seconds, now it takes at least 15 seconds to load.

The third and most crucial issue; I no longer have working wifi. It worked perfectly fine before. I have done sh /etc/netstart many times, but still no wifi. I am connected to the router, just no internet. Wifi works on my phone so it must be a OpenBSD related issue.
My /etc/hostname.iwn0:
Code:
join "SSID" wpakey "passphrase"
mode 11a
inet6 autoconf
up powersave
Only way of getting internet is by sharing internet from my phone by usb

Everything was working fine until my lazy ass decided to tuen my laptop off with the powerbutton instead of shutdown command.

What can I do? Thanks

Last edited by ocicat; 1 Week Ago at 05:24 PM. Reason: Added [code] & [/code] tags for readability.
Reply With Quote
  #2   (View Single Post)  
Old 1 Week Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,116
Default

Not a lot of information here to help you with. I can see some WiFi provisioning which you may want to review. It appears you have not provisioned IPv4, and your connection to your AP is via 5GHz (802.11a) only. I will guess your FF delays are caused by your lack of network connection. Please post the contents of $ ifconfig, as it may show something of value.
Reply With Quote
  #3   (View Single Post)  
Old 1 Week Ago
shep shep is offline
Real Name: Scott
Regex Recruiter
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,567
Default

One unique aspect of OpenBSD is that it re-links the kernel on startup. On my system, the hard drive led is solidly active for 15 seconds; long enough for me to log in, start a terminal and be informed that I cannot "syspatch" the system while kernel re-linking is occuring.

Firefox, on the first run after a login, has to "unveil" and "pledge" for the resources for the user. This takes some time and you should notice that it starts faster once the resources have been allocated on the same login.

Lastly, on the iwn, you've selected mode 11a with a link rate of 1 - 11mpbs
https://en.wikipedia.org/wiki/IEEE_802.11a-1999

The iwn is capable of 11ac, 6.5–6933 mbps link rate. You may have reasons for it, but you're forcing slow internet which also may have something to do with Firefox's slow start.

Lastly, some HP laptops need to actively turn off airplane mode and it has some quirks in OpenBSD. It may also be stuck in hibernation - may be worthwhile to try removing the power save stanza.

Last edited by shep; 1 Week Ago at 02:22 AM.
Reply With Quote
  #4   (View Single Post)  
Old 1 Week Ago
d31n1 d31n1 is offline
Port Guard
 
Join Date: Jan 2020
Posts: 20
Default

Quote:
Originally Posted by jggimi View Post
Not a lot of information here to help you with. I can see some WiFi provisioning which you may want to review. It appears you have not provisioned IPv4, and your connection to your AP is via 5GHz (802.11a) only. I will guess your FF delays are caused by your lack of network connection. Please post the contents of $ ifconfig, as it may show something of value.
I have to use mode 11a in my /etc/hostname.iwn0 for my connection to stay active. It has always worked. Here is my ifconfig:
Code:
lo0: flags=2008049<UP,LOOPBACK,RUNNING,MULTICAST,LRO> mtu 32768
	index 4 priority 0 llprio 3
	groups: lo
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
	inet 127.0.0.1 netmask 0xff000000
em0: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500
	lladdr f0:de:f1:96:3a:17
	index 1 priority 0 llprio 3
	media: Ethernet autoselect (none)
	status: no carrier
iwn0: flags=248843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF6TEMP,AUTOCONF6> mtu 1500
	lladdr 08:11:96:70:b1:58
	index 2 priority 4 llprio 3
	groups: wlan egress
	media: IEEE802.11 autoselect mode 11a (DS1 mode 11g)
	status: active
	ieee80211: join Straums chan 11 bssid 28:28:5d:09:cb:b1 -62dBm wpakey wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp powersave on (100ms sleep)
	inet6 fe80::a11:96ff:fe70:b158%iwn0 prefixlen 64 scopeid 0x2
enc0: flags=0<>
	index 3 priority 0 llprio 3
	groups: enc
	status: active
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33136
	index 5 priority 0 llprio 3
	groups: pflog
urndis0: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500
	lladdr 16:64:f0:51:d0:9e
	index 6 priority 0 llprio 3
	groups: egress
	inet 192.168.41.229 netmask 0xffffff00 broadcast 192.168.41.255

Last edited by ocicat; 1 Week Ago at 05:22 PM. Reason: Added [code] & [/code] tags for readability.
Reply With Quote
  #5   (View Single Post)  
Old 1 Week Ago
d31n1 d31n1 is offline
Port Guard
 
Join Date: Jan 2020
Posts: 20
Default

I get "iwn0: fatal firmware error" when trying to connect in tty/console. Tried deleting iwn firmware and re-install, but still no wifi.
Reply With Quote
  #6   (View Single Post)  
Old 1 Week Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,116
Default

Firmware failures tend to indicate a hardware problem. You might try re-seating the card.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
change power button behaviour hd77 OpenBSD General 5 1st September 2024 03:39 AM
power button does not shutdown ThinkPad hulten OpenBSD General 2 3rd August 2023 06:35 PM
Soft power button doesn't power down ffonz OpenBSD General 4 11th May 2015 02:55 PM
Shutdown/power off the machine? cravuhaw2C OpenBSD Installation and Upgrading 14 13th July 2014 08:18 AM
Power button - nicely switch down the computer? Malinda OpenBSD General 5 14th June 2008 01:57 PM


All times are GMT. The time now is 04:03 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick