TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Linux & Opensource > Mandriva Linux

Notices

2008 pcspkr apparently not working

Mandriva Linux


Reply
 
Thread Tools Display Modes
Old 09-01-2008, 04:25 AM   #21
David W. Hodgins
Guest
 
Posts: n/a
Re: 2008 pcspkr apparently not working

On Mon, 31 Dec 2007 20:54:31 -0500, Allodoxaphobia <> wrote:

> $ aumix -q


Strange that your system is not showing speaker in aumix.

>> Looks like a problem with the beep program, not the pc speaker module.

> And, like I said upthread, the identical configuration on MDK 10.2 works
> here.


I think it's a problem between the beep program, and changes in ioctl in the
newer kernel.

Try running 'echo -e "\a"'.

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
  Reply With Quote
Old 09-01-2008, 04:26 AM   #22
Allodoxaphobia
Guest
 
Posts: n/a
Re: 2008 pcspkr apparently not working

On Mon, 31 Dec 2007 16:55:00 -0500, David W. Hodgins wrote:
> On Mon, 31 Dec 2007 16:26:50 -0500, Allodoxaphobia <> wrote:
>
>> Here I find _no_ PC Spkr listed in alsamixer, aumix, nor kmix.

>
> In aumix, it's just called speaker.
> $ aumix -q
> speaker 100, 100


$ aumix -q
vol 58, 58, P
pcm 29, 29
line 77, 77, P
mic 0, 0, R
cd 77, 77, P
pcm2 48, 48
igain 80, 80
line1 77, 77, P
dig1 0, 0
phin 77, 77, P
phout 77, 77, P
video 100, 100, P
$

HUH??

>> As I stated in another followup here, I _can_ get "System Bell" to work.
>> I cannot get any other program (e.g., `beep`) to toot the speaker.

>
> Just installed the beep package from contrib. Running beep, as root,
> does nothing here. Running it as a regular user gets
> [dave@hodgins ~]$ beep
> ioctl: Operation not permitted
> ioctl: Operation not permitted
> but, it does beep. This is running it in a kde konsole.
>
> Logging into a tty using alt+ctrl+f2, as root, beep does nothing. As
> a regular user, it works.


No joy here that-a-way, either. (Maybe your root failure is the sound
settings for "speaker" _for_ root.)

/var/log/messages reveals nothing for all these attempts wiyh `beep`.

> Looks like a problem with the beep program, not the pc speaker module.
> See the man page for beep, which suggests running it with setuid root.


I _do_ have it setuid root.
I _did_ have the "ioctl: Operation not permitted" problem until I did that.

And, like I said upthread, the identical configuration on MDK 10.2 works
here.

Too weird...

Jonesy
--
Marvin L Jones | jonz | W3DHJ | linux
38.24N 104.55W | @ config.com | Jonesy | OS/2
*** Killfiling google posts: <http://jonz.net/ng.htm>
  Reply With Quote
Old 09-01-2008, 04:26 AM   #23
David W. Hodgins
Guest
 
Posts: n/a
Re: 2008 pcspkr apparently not working

On Mon, 31 Dec 2007 20:54:31 -0500, Allodoxaphobia <> wrote:

> $ aumix -q


Strange that your system is not showing speaker in aumix.

>> Looks like a problem with the beep program, not the pc speaker module.

> And, like I said upthread, the identical configuration on MDK 10.2 works
> here.


I think it's a problem between the beep program, and changes in ioctl in the
newer kernel.

Try running 'echo -e "\a"'.

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
  Reply With Quote
Old 09-01-2008, 04:26 AM   #24
Allodoxaphobia
Guest
 
Posts: n/a
Re: 2008 pcspkr apparently not working

On Mon, 31 Dec 2007 21:40:36 GMT, Robert M. Riches Jr. wrote:
> On 2007-12-31, Allodoxaphobia <> wrote:
>> On Mon, 31 Dec 2007 14:04:14 -0500, David W. Hodgins wrote:
>>> On Mon, 31 Dec 2007 13:36:43 -0500, Robert M. Riches Jr. <> wrote:
>>>
>>>> Hmmm... Any idea what that setting in kcontrol does
>>>> internally to the system? I don't use KDE or Gnome.
>>>
>>> It updates ~/.kde/share/config/kdeglobals, setting UseSystemBell=true, so kde
>>> applications will use the pcspkr, instead of the visual notification.
>>>
>>> Have you checked aumix, to ensure the speaker is on, and the volume is set?
>>>
>>> Which window manager (if any), are you using?

>>
>> Here I find _no_ PC Spkr listed in alsamixer, aumix, nor kmix.
>> Running KDE here.
>> As I stated in another followup here, I _can_ get "System Bell" to work.
>> I cannot get any other program (e.g., `beep`) to toot the speaker.

>
> What 'beep' program are you meaning? What does it actually call?


beep-1.2.2-7mdv2007.1

Useful in a bash script to get the attention of the otherwise
distracted....

Jonesy
--
Marvin L Jones | jonz | W3DHJ | linux
38.24N 104.55W | @ config.com | Jonesy | OS/2
*** Killfiling google posts: <http://jonz.net/ng.htm>
  Reply With Quote
Old 09-01-2008, 04:26 AM   #25
Robert M. Riches Jr.
Guest
 
Posts: n/a
Re: 2008 pcspkr apparently not working

On 2007-12-30, David W. Hodgins <> wrote:
> On Sat, 29 Dec 2007 23:31:41 -0500, Robert M. Riches Jr. <> wrote:
>
>> Has anyone else found 2008.0's pcspkr module to not work?
>> I modprobed pcspkr, then booted with pcspkr in

>
> I have it working now. Loaded the module, used kcontrol to set the system bell
> to use the pc speaker, turned on the speaker in kmix, and set the volume to max.
> Had to restart kde, to get it to work, but it is working now.


Hmmm... Any idea what that setting in kcontrol does
internally to the system? I don't use KDE or Gnome.

--
Robert Riches

(Yes, that is one of my email addresses.)
  Reply With Quote
Old 09-01-2008, 04:27 AM   #26
David W. Hodgins
Guest
 
Posts: n/a
Re: 2008 pcspkr apparently not working

On Mon, 31 Dec 2007 13:36:43 -0500, Robert M. Riches Jr. <> wrote:

> Hmmm... Any idea what that setting in kcontrol does
> internally to the system? I don't use KDE or Gnome.


It updates ~/.kde/share/config/kdeglobals, setting UseSystemBell=true,so kde
applications will use the pcspkr, instead of the visual notification.

Have you checked aumix, to ensure the speaker is on, and the volume is set?

Which window manager (if any), are you using?

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
  Reply With Quote
Old 09-01-2008, 04:27 AM   #27
David W. Hodgins
Guest
 
Posts: n/a
Re: 2008 pcspkr apparently not working

On Mon, 31 Dec 2007 20:54:31 -0500, Allodoxaphobia <> wrote:

> $ aumix -q


Strange that your system is not showing speaker in aumix.

>> Looks like a problem with the beep program, not the pc speaker module.

> And, like I said upthread, the identical configuration on MDK 10.2 works
> here.


I think it's a problem between the beep program, and changes in ioctl in the
newer kernel.

Try running 'echo -e "\a"'.

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
  Reply With Quote
Old 09-01-2008, 04:28 AM   #28
David W. Hodgins
Guest
 
Posts: n/a
Re: 2008 pcspkr apparently not working

On Mon, 31 Dec 2007 20:54:31 -0500, Allodoxaphobia <> wrote:

> $ aumix -q


Strange that your system is not showing speaker in aumix.

>> Looks like a problem with the beep program, not the pc speaker module.

> And, like I said upthread, the identical configuration on MDK 10.2 works
> here.


I think it's a problem between the beep program, and changes in ioctl in the
newer kernel.

Try running 'echo -e "\a"'.

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
  Reply With Quote
Old 09-01-2008, 04:29 AM   #29
Allodoxaphobia
Guest
 
Posts: n/a
Re: 2008 pcspkr apparently not working

On Mon, 31 Dec 2007 14:04:14 -0500, David W. Hodgins wrote:
> On Mon, 31 Dec 2007 13:36:43 -0500, Robert M. Riches Jr. <> wrote:
>
>> Hmmm... Any idea what that setting in kcontrol does
>> internally to the system? I don't use KDE or Gnome.

>
> It updates ~/.kde/share/config/kdeglobals, setting UseSystemBell=true, so kde
> applications will use the pcspkr, instead of the visual notification.
>
> Have you checked aumix, to ensure the speaker is on, and the volume is set?
>
> Which window manager (if any), are you using?


Here I find _no_ PC Spkr listed in alsamixer, aumix, nor kmix.
Running KDE here.
As I stated in another followup here, I _can_ get "System Bell" to work.
I cannot get any other program (e.g., `beep`) to toot the speaker.

Jonesy
--
Marvin L Jones | jonz | W3DHJ | linux
38.24N 104.55W | @ config.com | Jonesy | OS/2
*** Killfiling google posts: <http://jonz.net/ng.htm>
  Reply With Quote
Old 09-01-2008, 04:30 AM   #30
Robert M. Riches Jr.
Guest
 
Posts: n/a
Re: 2008 pcspkr apparently not working

On 2007-12-31, David W. Hodgins <> wrote:
> On Mon, 31 Dec 2007 13:36:43 -0500, Robert M. Riches Jr. <> wrote:
>
>> Hmmm... Any idea what that setting in kcontrol does
>> internally to the system? I don't use KDE or Gnome.

>
> It updates ~/.kde/share/config/kdeglobals, setting UseSystemBell=true, so kde
> applications will use the pcspkr, instead of the visual notification.
>
> Have you checked aumix, to ensure the speaker is on, and the volume is set?
>
> Which window manager (if any), are you using?


I'm using twm as my window manager.

Mention of aumix possibly being connected with the PC
speaker is interesting. I wonder since when is there
supposed to be any connection. On my 2007.0 system,
pressing Control-G at an xterm's csh prompt produces an
audible beep from the PC speaker independent of "aumix -p 0"
and "aumix -q" returning "speaker 0, 0".

On my 2008.0 system, pressing Control-G at an xterm's csh
prompt produces a visual flash on the xterm, kernel module
pcspkr is loaded at boot (by /etc/modprobe.preload), and
"aumix -q" returns the following:

vol 81, 81, P
pcm 100, 100
speaker 100, 100
line 100, 100, R
mic 100, 100, P
cd 100, 100, P
igain 40, 40
line1 100, 100, P
dig1 0, 0
phin 100, 100, P
phout 100, 100, P
video 100, 100, P

Thanks for the info and suggestions. It's looking more like
it's almost time to file a bug report.

--
Robert Riches

(Yes, that is one of my email addresses.)
  Reply With Quote
Reply

Thread Tools
Display Modes



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 07:03 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional