-
Notifications
You must be signed in to change notification settings - Fork 0
vovcat/xcrutchd
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
xcrutchd v0.1 - Beep and sleep X11 helper daemon
Copyright 2011-2012 by Vladimir Prodan
This daemon perform two functions:
- beeps ALSA device upon receiving XkbBellNotifyEvent
- calls user-defined script and mutes beeps on ScreenSaverOff ->
ScreenSaverOn and backward transition upon receiving XScreenSaverNotifyEvent
First thing the pulseaudio can do, but on my computers even latest as of
Jan 2012 version crashes every 1-7 minutes with SIGBUS like so:
[pid 21529] 09:53:42.382701 clock_gettime(CLOCK_MONOTONIC, {289985, 811793362}) = 0
[pid 21529] 09:53:42.382806 clock_gettime(CLOCK_MONOTONIC, {289985, 811898404}) = 0
[pid 21529] 09:53:42.382909 ppoll([{fd=15, events=POLLIN}, {fd=18, events=POLLIN|POLLERR|POLLNVAL}, {fd=16, events=POLLIN}, {fd=19, events=POLLOUT|POLLERR|POLLNVAL}], 4, {0, 9123000}, NULL, 8 <unfinished ...>
[pid 21530] 09:53:42.384357 <... ppoll resumed> ) = 0 (Timeout)
[pid 21530] 09:53:42.384447 clock_gettime(CLOCK_MONOTONIC, {289985, 813570475}) = 0
[pid 21530] 09:53:42.384652 ioctl(25, 0x4122, 0) = 0
[pid 21530] 09:53:42.384791 --- SIGBUS (Bus error) @ 0 (0) ---
[pid 21530] 09:53:42.384968 write(2, "Failed to handle SIGBUS.\n", 25) = 25
[pid 21530] 09:53:42.385078 rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
[pid 21530] 09:53:42.385187 tgkill(21527, 21530, SIGABRT) = 0
[pid 21530] 09:53:42.385278 --- SIGABRT (Aborted) @ 0 (0) ---
Process 21530 detached
[pid 21529] 09:53:42.463271 +++ killed by SIGABRT +++
09:53:42.463342 +++ killed by SIGABRT +++
or so:
[pid 28462] 09:54:11.740906 [b764ee11] clock_gettime(CLOCK_MONOTONIC, {376413, 723675281}) = 0
[pid 28462] 09:54:11.741010 [b764ee11] clock_gettime(CLOCK_MONOTONIC, {376413, 723779135}) = 0
[pid 28462] 09:54:11.741114 [b764ee11] clock_gettime(CLOCK_MONOTONIC, {376413, 723883059}) = 0
[pid 28462] 09:54:11.741218 [ffffe424] ppoll([{fd=15, events=POLLIN}, {fd=18, events=POLLIN|POLLERR|POLLNVAL}, {fd=16, events=POLLIN}, {fd=19, events=POLLOUT|POLLERR|POLLNVAL}], 4, {0, 8895000}, NULL, 8 <unfinished ...>
[pid 28463] 09:54:11.745363 [ffffe424] <... ppoll resumed> ) = 0 (Timeout)
[pid 28463] 09:54:11.745478 [ffffe424] ioctl(25, 0x4122, 0) = 0
[pid 28463] 09:54:11.745706 [b753b486] --- SIGBUS (Bus error) @ 0 (0) ---
[pid 28463] 09:54:11.745881 [ffffe424] write(2, "Failed to handle SIGBUS.\n", 25) = 25
[pid 28463] 09:54:11.745983 [ffffe424] rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
[pid 28463] 09:54:11.746082 [ffffe424] tgkill(28460, 28463, SIGABRT) = 0
[pid 28463] 09:54:11.746167 [ffffe424] --- SIGABRT (Aborted) @ 0 (0) ---
Process 28463 detached
[pid 28462] 09:54:11.793496 [????????] +++ killed by SIGABRT +++
09:54:11.793569 [????????] +++ killed by SIGABRT +++
Just google for 'pulseaudio "Failed to handle SIGBUS"' and see there's no
solution, only links to http://pulseaudio.org/wiki/BrokenSoundDrivers
and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=593664
Built-in restart doesn't help when you are looking long YouTube video or
recording from webcam. At the same time ALSA software mixer works great,
but doesn't beep:) No way I can use this piece of pottering. So making
my own X11 crutches...
--
/vc
-----------------------------------------------------------------------
This program is free software; you can redistribute it and/or modify
it under the terms of either:
a) the GNU General Public License as published by the Free
Software Foundation; either version 2, or (at your option) any
later version, or
b) the "Artistic License" which comes with this Kit.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either
the GNU General Public License or the Artistic License for more details.
You should have received a copy of the Artistic License with this
Kit, in the file named "Artistic". If not, I'll be glad to provide one.
You should also have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-----------------------------------------------------------------------
About
Beep and sleep X11 helper daemon
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published