* "Where's the Beep?" (PCMCIA/vt_ioctl-s)
@ 2003-07-15 7:48 B. D. Elliott
2003-07-15 7:53 ` Neil Brown
0 siblings, 1 reply; 8+ messages in thread
From: B. D. Elliott @ 2003-07-15 7:48 UTC (permalink / raw)
To: linux-kernel
On my old DELL LM laptop the -2.5 series no longer issues any beeps when
a card is inserted. The problem is in the kernel, as the test program
below (extracted from cardmgr) beeps on -2.4, but not on -2.5.
===========================================================
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/ioctl.h>
#define BEEP_TIME 150
#define BEEP_OK 1000
#define BEEP_WARN 2000
#define BEEP_ERR 4000
#include <sys/kd.h>
static void beep(unsigned int, unsigned int);
int
main(int argc, char **argv)
{
beep(500, 1000);
beep(500, 2000);
beep(500, 4000);
return 0;
}
static
void beep(unsigned int ms, unsigned int freq)
{
int fd, arg;
fd = open("/dev/tty0", O_RDWR);
if (fd < 0)
return;
arg = (ms << 16) | freq;
ioctl(fd, KDMKTONE, arg);
close(fd);
usleep(ms*1000);
}
===========================================================
--
B. D. Elliott bde@nwlink.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: "Where's the Beep?" (PCMCIA/vt_ioctl-s)
2003-07-15 7:48 "Where's the Beep?" (PCMCIA/vt_ioctl-s) B. D. Elliott
@ 2003-07-15 7:53 ` Neil Brown
2003-07-15 14:29 ` Valdis.Kletnieks
2003-07-15 19:03 ` Valdis.Kletnieks
0 siblings, 2 replies; 8+ messages in thread
From: Neil Brown @ 2003-07-15 7:53 UTC (permalink / raw)
To: B. D. Elliott; +Cc: linux-kernel
On Tuesday July 15, bde@nwlink.com wrote:
> On my old DELL LM laptop the -2.5 series no longer issues any beeps when
> a card is inserted. The problem is in the kernel, as the test program
> below (extracted from cardmgr) beeps on -2.4, but not on -2.5.
CONFIG_INPUT_PCSPKR
needs to be =y or =m and the module loaded.
NeilBrown
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: "Where's the Beep?" (PCMCIA/vt_ioctl-s)
2003-07-15 7:53 ` Neil Brown
@ 2003-07-15 14:29 ` Valdis.Kletnieks
2003-07-15 19:03 ` Valdis.Kletnieks
1 sibling, 0 replies; 8+ messages in thread
From: Valdis.Kletnieks @ 2003-07-15 14:29 UTC (permalink / raw)
To: Neil Brown; +Cc: B. D. Elliott, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 560 bytes --]
On Tue, 15 Jul 2003 17:53:13 +1000, Neil Brown said:
> On Tuesday July 15, bde@nwlink.com wrote:
> > On my old DELL LM laptop the -2.5 series no longer issues any beeps when
> > a card is inserted. The problem is in the kernel, as the test program
> > below (extracted from cardmgr) beeps on -2.4, but not on -2.5.
>
> CONFIG_INPUT_PCSPKR
>
> needs to be =y or =m and the module loaded.
Argh. Is *THAT* what it was?? ;)
Will those keeping the "How-to 2.6" documents please put this one in there, near
the description of CONFIG_VT_CONSOLE and friends? ;)
[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: "Where's the Beep?" (PCMCIA/vt_ioctl-s)
2003-07-15 7:53 ` Neil Brown
2003-07-15 14:29 ` Valdis.Kletnieks
@ 2003-07-15 19:03 ` Valdis.Kletnieks
1 sibling, 0 replies; 8+ messages in thread
From: Valdis.Kletnieks @ 2003-07-15 19:03 UTC (permalink / raw)
To: Neil Brown; +Cc: B. D. Elliott, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 529 bytes --]
On Tue, 15 Jul 2003 17:53:13 +1000, Neil Brown said:
> On Tuesday July 15, bde@nwlink.com wrote:
> > On my old DELL LM laptop the -2.5 series no longer issues any beeps when
> > a card is inserted. The problem is in the kernel, as the test program
> > below (extracted from cardmgr) beeps on -2.4, but not on -2.5.
>
> CONFIG_INPUT_PCSPKR
>
> needs to be =y or =m and the module loaded.
Double ARGH. Now I know *why* I didn't have it.
You also need CONFIG_INPUT_MISC in order to be able to *SEE* this option in menuconfig.
[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <fa.hjqfgl8.17m6f00@ifi.uio.no>]
end of thread, other threads:[~2003-07-20 23:35 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-15 7:48 "Where's the Beep?" (PCMCIA/vt_ioctl-s) B. D. Elliott
2003-07-15 7:53 ` Neil Brown
2003-07-15 14:29 ` Valdis.Kletnieks
2003-07-15 19:03 ` Valdis.Kletnieks
[not found] <fa.hjqfgl8.17m6f00@ifi.uio.no>
[not found] ` <fa.h26ngau.73iiag@ifi.uio.no>
2003-07-15 10:22 ` junkio
2003-07-15 16:50 ` James Simmons
2003-07-17 21:09 ` Riley Williams
2003-07-20 23:48 ` Neil Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).