From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,8513f6daa289ffd0,start X-Google-Attributes: gid1164f8,public From: cullip@radonc.unc.edu (Timothy Cullip) Subject: Two questions about Digital PWS Unix systems Date: 1998/12/17 Message-ID: <75atl1$9kb$1@fddinewz.oit.unc.edu>#1/1 X-Deja-AN: 423235900 Distribution: usa Organization: Dept. of Radiation Oncology, UNC-CH Newsgroups: comp.sys.dec I have two stupid and unrelated questions concerning the Digital Alpha PWS500au Unix systems. 1) I can use xcd to play an audio CD on the system and it works fine if I use headphones, but if I use the internal speaker on the workstation then the volume is VERY LOW even with the xcd volume setting turned to maximum. Is there a way to increase the internal volume speaker? While I'm on the subject of the internal speaker, is there a way to change either the volume or pitch of the obnoxious beep in X11? It is really annoying. Using "xset b" doesn't seem to have any effect on volume except for "xset b off" turns it off completely. 2) I need to connect an HP7550 pen plotter to one of the serial ports on this workstation and am having trouble doing it through the use of lpr and printcap. We had no trouble doing this with our old Dec Ultrix workstations (mips based). Below is the printcap entry we used on that system. But on the Alpha system the plotter spits out a page but does no printing and the plotter's lcd display shows that there was a transmission error. plotter1|hp1|hp7550|7550|HP7550 8-pen auto-feed plotter:\ :lp=/dev/tty01:\ :sd=/usr/spool/plotter1d:\ :br#9600:\ :fc#0177477:\ :ff=PG;:\ :lf=/usr/adm/lpd-errs:\ :of=/usr/local/bin/hp7550f:\ :sh:\ :rs: and the output filter mentioned above (hp7550f) was a very simple program: #include #include #define BUFSIZE (1024) main(argc, argv) int argc; char **argv; { hp7550_init(); hp7550_cat(); exit(0); } hp7550_init() { struct sgttyb params; extern int errno; if (ioctl(fileno(stdout), TIOCGETP, ¶ms) == -1) { fprintf(stderr, "hp7550f ioctl get failed %d\n", errno); } params.sg_flags &= ~(ECHO|XTABS|CRMOD); params.sg_ospeed = params.sg_ispeed = B9600; if (ioctl(fileno(stdout), TIOCSETP, ¶ms) == -1) { fprintf(stderr, "hp7550f ioctl set failed %d\n", errno); } } hp7550_cat() { char c[BUFSIZE]; int got; while ((got = read(fileno(stdin), c , BUFSIZE)) > 0) { write(fileno(stdout), c, got); } } -- Tim Cullip cullip@radonc.unc.edu