On Tue, Feb 03, 2015 at 10:54:07PM +0200, Paul Irofti wrote: > On Wed, Jan 28, 2015 at 12:54:15AM +0000, Raf Czlonka wrote: > > >Synopsis: Volume buttons stop working after suspend/resume cycle > > >Category: kernel > > >Environment: > > System : OpenBSD 5.6 > > Details : OpenBSD 5.6-stable (GENERIC) #0: Tue Jan 27 00:09:23 GMT > > 2015 > > [email protected]:/usr/src/sys/arch/i386/compile/GENERIC > > > > Architecture: OpenBSD.i386 > > Machine : i386 > > >Description: > > Prior to suspend the physical volume buttons generate keycode 174 > > (keysym > > 0x1008ff11, XF86AudioLowerVolume) and keycode 176 (keysym 0x1008ff13, > > XF86AudioRaiseVolume) respectively, as reported by 'xev(1)'. After > > suspend/resume cycle (by using 'zzz' or with 'machdep.lidsuspend=1'), > > the > > physical volume buttons stop working, i.e. 'xev' doesn't report anything > > while they are pressed. > > >How-To-Repeat: > > Suspend the laptop with 'zzz' or using the lid (with the aforementioned > > 'machdep.lidsuspend' set to '1'). > > >Fix: > > So far, the only way to resolve the issue is to reboot the machine. > > First of all you should update to -current. > > Then you should apply the following diff and let me know the result.
If it fails, please be kind enough to also apply the following debug diff and supply the output on your dmesg when you press the volume keys before and after suspend. All this does is define ACPISONY_DEBUG so that debug printfs are enabled. Index: dev/acpi/acpisony.c =================================================================== RCS file: /cvs/src/sys/dev/acpi/acpisony.c,v retrieving revision 1.6 diff -u -p -r1.6 acpisony.c --- dev/acpi/acpisony.c 14 Sep 2014 14:17:24 -0000 1.6 +++ dev/acpi/acpisony.c 3 Feb 2015 21:03:37 -0000 @@ -31,6 +31,7 @@ void acpisony_attach(struct device *, st int acpisony_activate(struct device *, int); int acpisony_notify(struct aml_node *, int, void *); +#define ACPISONY_DEBUG #ifdef ACPISONY_DEBUG #define DPRINTF(x) printf x #else
