Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266114AbTGOHdj (ORCPT ); Tue, 15 Jul 2003 03:33:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266642AbTGOHdj (ORCPT ); Tue, 15 Jul 2003 03:33:39 -0400 Received: from smtp3.pacifier.net ([64.255.237.173]:53692 "EHLO smtp3.pacifier.net") by vger.kernel.org with ESMTP id S266114AbTGOHdi (ORCPT ); Tue, 15 Jul 2003 03:33:38 -0400 Date: Tue, 15 Jul 2003 00:48:26 -0700 From: "B. D. Elliott" To: linux-kernel@vger.kernel.org Subject: "Where's the Beep?" (PCMCIA/vt_ioctl-s) Mail-Followup-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i Message-Id: <20030715074826.EF8F46DC14@smtp3.pacifier.net> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1245 Lines: 53 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 #include #include #include #include #include #include #define BEEP_TIME 150 #define BEEP_OK 1000 #define BEEP_WARN 2000 #define BEEP_ERR 4000 #include 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/