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 21st February 2009
Nobber's Avatar
Nobber Nobber is offline
Port Guard
 
Join Date: May 2008
Location: Nova Scotia
Posts: 11
Thanked 0 Times in 0 Posts
Default Wireless networking xor battery monitor

I recently installed a 4.5-beta snapshot on my trusty HP Omnibook, and found that everything (including Atheros wireless with WPA) worked nicely except for the battery monitor. Then BSDfan666 chimed in with a tip for disabling apm in favour of acpi. I followed his advice and was pleased to note that klaptop (the battery monitor in KDE) began working!

However, that pleasure was short-lived when I later noticed that my wireless network interface, ath0, no longer existed. Wondering whether the lack of ath0 was related to the lack of apm, I rebooted with apm left on. And sure enough, ath0 was back. I then rebooted with apm disabled once more, and sure enough, ath0 had gone AWOL.

This is quite a dilemma. It seems I am forced to choose between wireless networking and a functioning battery monitor. If truth be told, I'm reluctant to do without either feature.

Advice and suggestions welcome!
Reply With Quote
  #2   (View Single Post)  
Old 21st February 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,883
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by Nobber View Post
Advice and suggestions welcome!
I would highly suggest filing an official report such that the developers are aware of this scenario especially given the off chance that it might be fixed by the release date. Information on sending a PR can be found at the following:

http://openbsd.org/report.html

Providing too much information is significantly better than not enough.
Reply With Quote
  #3   (View Single Post)  
Old 21st February 2009
Nobber's Avatar
Nobber Nobber is offline
Port Guard
 
Join Date: May 2008
Location: Nova Scotia
Posts: 11
Thanked 0 Times in 0 Posts
Default

Having read the "How to report a problem" page you linked to, I think I need to do a little more research before submitting a bug report.

One thing I did notice is that when apm is enabled, the output of dmesg contains the line:

Code:
cbb0 at pci0 dev 10 function 0 "O2 Micro OZ69[17]2 CardBus" rev 0x00: irq 11
But when apm is disabled, that line becomes:

Code:
cbb0 at pci0 dev 10 function 0 "O2 Micro OZ69[17]2 CardBus" rev 0x00: irq 11, Cardbus support disabled
Which would explain the disappearance of ath0, since I'm using a PC Card network adapter. But why would disabling apm also disable support for CardBus?
Reply With Quote
  #4   (View Single Post)  
Old 21st February 2009
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,685
Thanked 214 Times in 189 Posts
Default

This is not the first time we have seen this problem. But, since you have elected not to post your two dmesgs, it will be up to you to determine if you're having the same problem.

In the prior case, the cause was hardware bus enumeration when ACPI was used. See post #27 in http://daemonforums.org/showthread.php?t=2846

If this doesn't match your particular problem, post more information.
Reply With Quote
  #5   (View Single Post)  
Old 26th February 2009
Nobber's Avatar
Nobber Nobber is offline
Port Guard
 
Join Date: May 2008
Location: Nova Scotia
Posts: 11
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by jggimi View Post
This is not the first time we have seen this problem. But, since you have elected not to post your two dmesgs, it will be up to you to determine if you're having the same problem.

In the prior case, the cause was hardware bus enumeration when ACPI was used. See post #27 in http://daemonforums.org/showthread.php?t=2846
How do I tell whether my problem is caused by hardware bus enumeration? I couldn't tell (from the posts in the thread you linked to) how you came to the conclusion that hardware bus enumeration (specifically) was causing a problem in that case. I get the "CardBus support disabled" message during boot, just like JohnHicks was, so if sys/dev/pci/pccbb.c is the only place in the kernel that that message appears, I guess my problem is the same as his.

What could cause bus enumeration to fail, anyway? Is the BIOS in charge of that, or the OS kernel? I have run many other OSes on this laptop without running into ACPI/CardBus conflicts, so I suspect a bug in the OpenBSD kernel rather than the BIOS.

Next time I'm in front of the laptop, I'll post the dmesgs.
Reply With Quote
  #6   (View Single Post)  
Old 27th February 2009
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,685
Thanked 214 Times in 189 Posts
Default

I'm not sure who to blame. Here's my interpretation:
ACPI is a standard. My understanding, is that either the BIOS makers (and, I suppose, underlying hardware manufacturers) either treat the standard as a "suggestion", or the standard is so loosely defined as to defy any functional interoperability based upon it.

In general, if Microsoft's operating systems function with a particular ACPI implementation, that's often considered "good enough" to ship to customers.
For OpenBSD's kernel, users may disable individual ACPI related kernel components, or, disable ACPI entirely. There are, in addition, diagnostic tools, such as acpidump(8), the output which can be used as part of a problem report one sends to misc@ or in an official bug report.
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
gdm/ new monitor issue jimbus FreeBSD General 3 4th August 2009 07:39 PM
Network analyzer/monitor suggestion? Bruco FreeBSD Ports and Packages 2 29th January 2009 06:42 PM
wlan -> monitor mode ccc FreeBSD Security 2 4th November 2008 09:19 PM
What is best way to monitor for bad sectors? PeterSteele FreeBSD General 9 16th August 2008 02:41 AM


All times are GMT. The time now is 07:47 PM.


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