From owner-freebsd-mobile Sun Feb 15 22:20:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA13013 for freebsd-mobile-outgoing; Sun, 15 Feb 1998 22:20:02 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from lab12.ie.pitt.edu (lab12.ie.pitt.edu [136.142.89.102]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id WAA12978 for ; Sun, 15 Feb 1998 22:19:57 -0800 (PST) (envelope-from grafe@lab12.ie.pitt.edu) Received: by lab12.ie.pitt.edu (SMI-8.6/SMI-4.1.4) id AAA23562; Mon, 16 Feb 1998 00:44:17 -0500 Date: Mon, 16 Feb 1998 00:44:17 -0500 From: grafe@lab12.ie.pitt.edu (Gary Rafe) Message-Id: <199802160544.AAA23562@lab12.ie.pitt.edu> To: freebsd-mobile@FreeBSD.ORG Subject: Q: Audio from ATAPI CDROM following resume? Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm experiencing a minor inconvenience with a FreeBSD 2.2.5-Release installation on a Toshiba 220CDS with the PAO-970616 patches. Following a kernel boot, audio output from the internal CDROM drive plays properly at the notebook's speakers using "xcdplayer -device /dev/rwcd0a". However, following a resume from a suspend, by way of "/usr/sbin/zzz", audio output does not appear at the notebook's speakers, although "xcdplayer -device /dev/rwcd0a" appears to control the CDROM drive correctly. In either case, utilities that access the new audio driver (971117) at pcm0 play properly. As far as I can tell, this is the only inconsistency I've noticed with resuming the system after suspending it with "/usr/sbin/zzz". Pointers to getting audio output of the CDROM drive re-connected to the notebook's audio sub-system after resuming the system from suspended mode will be appreciated greatly. Thanks -- Gary To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Mon Feb 16 02:55:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA21885 for freebsd-mobile-outgoing; Mon, 16 Feb 1998 02:55:39 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA21866; Mon, 16 Feb 1998 02:55:36 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.8.8/8.8.5) with ESMTP id CAA05848; Mon, 16 Feb 1998 02:55:08 -0800 (PST) Message-Id: <199802161055.CAA05848@dingo.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: grafe@lab12.ie.pitt.edu (Gary Rafe) cc: freebsd-mobile@FreeBSD.ORG, multimedia@FreeBSD.ORG Subject: Re: Q: Audio from ATAPI CDROM following resume? In-reply-to: Your message of "Mon, 16 Feb 1998 00:44:17 EST." <199802160544.AAA23562@lab12.ie.pitt.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 16 Feb 1998 02:55:07 -0800 From: Mike Smith Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I'm experiencing a minor inconvenience with a FreeBSD 2.2.5-Release > installation on a Toshiba 220CDS with the PAO-970616 patches. > > Following a kernel boot, audio output from the internal CDROM drive plays > properly at the notebook's speakers using "xcdplayer -device /dev/rwcd0a". > > However, following a resume from a suspend, by way of "/usr/sbin/zzz", > audio output does not appear at the notebook's speakers, > although "xcdplayer -device /dev/rwcd0a" appears to control the CDROM drive > correctly. I am observing exactly the same symptoms on the same unit under -current (no PAO). The mixer appears to be correctly set following resume as well. Multimedia people; is there anything in the Yamaha OPL-SAX that is likely to need reinitialising after power-on to restore operation? -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Mon Feb 16 04:36:53 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA14544 for freebsd-mobile-outgoing; Mon, 16 Feb 1998 04:36:53 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id EAA14410; Mon, 16 Feb 1998 04:36:44 -0800 (PST) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id MAA27817; Mon, 16 Feb 1998 12:09:10 +0100 From: Luigi Rizzo Message-Id: <199802161109.MAA27817@labinfo.iet.unipi.it> Subject: Re: Q: Audio from ATAPI CDROM following resume? To: mike@smith.net.au (Mike Smith) Date: Mon, 16 Feb 1998 12:09:10 +0100 (MET) Cc: grafe@lab12.ie.pitt.edu, freebsd-mobile@FreeBSD.ORG, multimedia@FreeBSD.ORG In-Reply-To: <199802161055.CAA05848@dingo.cdrom.com> from "Mike Smith" at Feb 16, 98 02:54:48 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > However, following a resume from a suspend, by way of "/usr/sbin/zzz", > > audio output does not appear at the notebook's speakers, ... > I am observing exactly the same symptoms on the same unit under > -current (no PAO). The mixer appears to be correctly set following > resume as well. > > Multimedia people; is there anything in the Yamaha OPL-SAX that is > likely to need reinitialising after power-on to restore operation? the opl-sax has an independent master volume register, which we currently set only in the attach routine to max level. maybe that register is cleared at power up. if this is the case (can be easily tested by looking at the attach code and trying to set it playing with /dev/io) one could try to support that with the mixer. the fact that mixer values are preserved is not significant since the state of the mixer is cached in the io descriptor and reads do not go to the chip. i have no idea, though, what is the correct way to properly resume operation. is there some specific "resume" interface for a device driver which can be called ? cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Mon Feb 16 04:52:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA18098 for freebsd-mobile-outgoing; Mon, 16 Feb 1998 04:52:25 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA18077; Mon, 16 Feb 1998 04:52:22 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.8.8/8.8.5) with ESMTP id EAA06420; Mon, 16 Feb 1998 04:50:26 -0800 (PST) Message-Id: <199802161250.EAA06420@dingo.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: Luigi Rizzo cc: mike@smith.net.au (Mike Smith), grafe@lab12.ie.pitt.edu, freebsd-mobile@FreeBSD.ORG, multimedia@FreeBSD.ORG Subject: Re: Q: Audio from ATAPI CDROM following resume? In-reply-to: Your message of "Mon, 16 Feb 1998 12:09:10 +0100." <199802161109.MAA27817@labinfo.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 16 Feb 1998 04:50:25 -0800 From: Mike Smith Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > > However, following a resume from a suspend, by way of "/usr/sbin/zzz", > > > audio output does not appear at the notebook's speakers, > .... > > I am observing exactly the same symptoms on the same unit under > > -current (no PAO). The mixer appears to be correctly set following > > resume as well. > > > > Multimedia people; is there anything in the Yamaha OPL-SAX that is > > likely to need reinitialising after power-on to restore operation? > > the opl-sax has an independent master volume register, which we > currently set only in the attach routine to max level. maybe that register > is cleared at power up. if this is the case (can be easily tested by > looking at the attach code and trying to set it playing with /dev/io) > one could try to support that with the mixer. Ok, I'll try that. > the fact that mixer values are preserved is not significant since > the state of the mixer is cached in the io descriptor and reads do not > go to the chip. Ah. Let me guess; the chip is write-only? > i have no idea, though, what is the correct way to properly resume > operation. is there some specific "resume" interface for a device > driver which can be called ? You do it with APM hooks. Include "apm.h", so that NAPM is defined, and apm_bios.h to get the prototypes and defines. Then, conditionalised on NAPM > 0, do: struct apmhook ap; ap.ah_fun = func; ap.ah_arg = (void *)something_useful; ap.ah_name = "pcm resume handler"; ap.ah_order = APM_MID_ORDER; apm_hook_establish(APM_HOOK_RESUME, &ap) ... int func(void *arg) { ... resume stuff ... } and then func() will be called on APM resume. You might actually want to hook suspend as well, to stop any current play operation and save the state so you can restart it on a resume. At the moment, if I suspend while sound is playing, I can count on wedging the sound driver. I realise this adds some wrinkles. Sorry about that. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Mon Feb 16 08:53:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA12292 for freebsd-mobile-outgoing; Mon, 16 Feb 1998 08:53:35 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from lab12.ie.pitt.edu (lab12.ie.pitt.edu [136.142.89.102]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id IAA12283 for ; Mon, 16 Feb 1998 08:53:32 -0800 (PST) (envelope-from grafe@lab12.ie.pitt.edu) Received: by lab12.ie.pitt.edu (SMI-8.6/SMI-4.1.4) id LAA29667; Mon, 16 Feb 1998 11:53:25 -0500 Date: Mon, 16 Feb 1998 11:53:25 -0500 From: grafe@lab12.ie.pitt.edu (Gary Rafe) Message-Id: <199802161653.LAA29667@lab12.ie.pitt.edu> To: mike@smith.net.au Subject: Re: Q: Audio from ATAPI CDROM following resume? Cc: freebsd-mobile@FreeBSD.ORG Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Mike: Thanks for the reply regarding FreeBSD, the Toshiba, audio CDs, and suspend/resume... Shortly after posting that question, I tried one last thing before closing down for the day: "toggling" the gain on each of the structures reported by /usr/sbin/mixer [i.e., to zero, then to full (100)]. As it turned out, the first, "mixer synth" did the trick. So, until the OPL-SAx is understood better by FreeBSD, I'll simply call [mixer synth 100] just prior to exec'ing xcdplayer from a short script. -- Gary To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Mon Feb 16 09:21:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA19875 for freebsd-mobile-outgoing; Mon, 16 Feb 1998 09:21:27 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id JAA19664 for ; Mon, 16 Feb 1998 09:20:07 -0800 (PST) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id QAA28156; Mon, 16 Feb 1998 16:52:42 +0100 From: Luigi Rizzo Message-Id: <199802161552.QAA28156@labinfo.iet.unipi.it> Subject: Re: Q: Audio from ATAPI CDROM following resume? To: grafe@lab12.ie.pitt.edu (Gary Rafe) Date: Mon, 16 Feb 1998 16:52:41 +0100 (MET) Cc: mike@smith.net.au, freebsd-mobile@FreeBSD.ORG In-Reply-To: <199802161653.LAA29667@lab12.ie.pitt.edu> from "Gary Rafe" at Feb 16, 98 11:53:06 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Mike: Thanks for the reply regarding FreeBSD, the Toshiba, audio CDs, > and suspend/resume... > > Shortly after posting that question, I tried one last thing before > closing down for the day: "toggling" the gain on each of the structures > reported by /usr/sbin/mixer [i.e., to zero, then to full (100)]. > > As it turned out, the first, "mixer synth" did the trick. > So, until the OPL-SAx is understood better by FreeBSD, > I'll simply call [mixer synth 100] just prior to exec'ing xcdplayer > from a short script. actually i think this is a reasonable workaround while (a long while) someone implements proper suspend support for audio. cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Feb 17 15:42:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA22723 for freebsd-mobile-outgoing; Tue, 17 Feb 1998 15:42:20 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from blackie.cruzers.com (blackie.cruzers.com [205.215.232.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA22599 for ; Tue, 17 Feb 1998 15:41:49 -0800 (PST) (envelope-from dkulp@board66.cruzers.com) Received: from board66.cruzers.com (board66.cruzers.com [205.215.233.66]) by blackie.cruzers.com (8.8.7/8.8.5) with ESMTP id PAA07023 for ; Tue, 17 Feb 1998 15:03:12 -0800 (PST) Received: (from dkulp@localhost) by board66.cruzers.com (8.8.8/8.7.3) id PAA04553; Tue, 17 Feb 1998 15:01:39 -0800 (PST) Date: Tue, 17 Feb 1998 15:01:39 -0800 (PST) Message-Id: <199802172301.PAA04553@board66.cruzers.com> From: David Kulp To: mobile@FreeBSD.ORG Subject: external keyboard fails Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Here's a strange one: I bought a cheap keyboard to plug in to my Toshiba Portege 650 so I could type on a normal size keyboard while working at home. The Toshiba takes a PS/2 keyboard. I have a PS/2 keyboard on my desktop FBSD machine, and that keyboard works fine on my laptop. But the new keyboard didn't. Desktop Keyboard New Keyboard Laptop Yes No Desktop Yes Yes very strange. This new keyboard is AT and PS/2 compatible and comes with a hulking converter from the larger AT to the smaller PS/2 connector. Anyone ever seen this before? Bizarre... -david. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Feb 17 22:34:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA01132 for freebsd-mobile-outgoing; Tue, 17 Feb 1998 22:34:10 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from mail.iconz.co.nz (mail.iconz.co.nz [202.14.100.36]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA01092 for ; Tue, 17 Feb 1998 22:33:59 -0800 (PST) (envelope-from andrew@squiz.co.nz) Received: from [192.168.1.1] (a.mcn.actrix.gen.nz [203.96.56.128]) by mail.iconz.co.nz (8.8.7/8.8.7) with SMTP id TAA020900887783630 for ; Wed, 18 Feb 1998 19:33:50 +1300 (NZDT) X-Sender: squiz1@pop.actrix.gen.nz Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Wed, 18 Feb 1998 19:35:21 +1300 To: FreeBSD Mobile From: andrew@squiz.co.nz (Andrew McNaughton) Subject: cron / anacron Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I asked here earlier about alternatives / supplements to cron to handle situations where a machine is not always running. That generated a bit of interest, but no pointers to solutions, so having found this one, I thought I'd throw it back to the list. I found a discussion in a mailing list archive (debian-devel@lists.debian.org July 1997, http://www.jp.debian.org/Lists-Archives/debian-devel-9707/) about a utility called anacron. I've included a bit excerpted from that thread below. As I understand it, when anacron is run, it checks a list of jobs, and runs any that haven't been run since more than a set number of days ago, and then it exits. It can be run from a cron job, and also at startup (and if there's an event that can be trapped when mains power is connected it would be nice to use that also) so that machines which are usually up don't miss critical jobs when there's a failure at the wrong moment, but usually it's cron which runs the jobs, and on a machine which is frequently turned off, it's mostly anacron which runs the jobs. I'm not clear whether these are or will be built in to cron, but jobs could be constructed using shell commands and boolean utility scripts to avoid excessive load at startup, or when running with low battery. eg: sleep 500; job.sh mains_power && job.sh For my own use I'd like to have something which works on a finer granularity. Than the days anacron uses. Shouldn't be hard. I haven't downloaded anacron yet, but if it's not up to scratch then the approach is nonetheless basically OK, and I'll implement my own. Andrew McNaughton >> >> >>On Wed, 23 Jul 1997, Scott K. Ellis wrote: >> >>> -----BEGIN PGP SIGNED MESSAGE----- >>> >>> On 23 Jul 1997, Manoj Srivastava wrote: >>> >>> > Does anacron work for people who do have their machines up all >>> > the time? can it be used to replace cron entirely? Is it stable? >>> >>> Yes, no, and yes. >>> >>> Or to elaborate, anacron is a package that, when run, will check each of >>> the jobs in its config file and check if they have been run within the >>> number of days specified. If not, it forks them to run in the background, >>> otherwise it *exits*. It needs run again, usually at system startup and >>> perhaps within a cron job that happens once a day. For example, here are >>> my crontab and anacrontab files: >>[helpful example snipped :-)] >> >>I think I see an idea forming. Put anacron in recommended or more >>appropriate area. Set it to run the daily,weekly,monthly scripts at 3 or >>4 am when no one should be on a server that's always on. Put it in the >>boot up scripts for personal machines that aren't always on. Finally do >>something to fool anacron into getting back into a weekly, monthly >>routine (i.e. a server that has been shutdown for a weekend will run the >>weekly scripts on sunday and not monday, when the 7 days would normally >>be up). >> >>This lets servers and personal systems use the default debian setup for >>crontab entries, and handles unexpected shutdowns with ease. >> >>Does this sound good, >>Brandon >> >> > > > I think that should be required before pulling anacron further > towards being a default/standard option (I and my news feed would not > like it if my saturday midnight job happens on a weekday). I don't > know if this is feasible. > > Also, I tend to stagger jobs on my machine using cron (I have > a thin pipe to my machine), and would not want everything to go > chugging off at bootup (is this not a problem even for laptop users?) > > Maybe we should advertise it better for laptop users? Maybe > using one of the new keywords for Deity? This way laptop users can > have anacron as standard, and let it be optional for the rest of the > world. The effort to understand the universe is Andrew McNaughton one of the very few things that lifts ++64 4 389 6891 human life above the level of farce, andrew@squiz.co.nz and gives it some of the grace http://www.squiz.co.nz of tragedy - Steven Weinberg http://www.newsroom.co.nz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Tue Feb 17 22:39:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA01465 for freebsd-mobile-outgoing; Tue, 17 Feb 1998 22:39:13 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from mail.iconz.co.nz (mail.iconz.co.nz [202.14.100.36]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA01435 for ; Tue, 17 Feb 1998 22:38:54 -0800 (PST) (envelope-from andrew@squiz.co.nz) Received: from [192.168.1.1] (a.mcn.actrix.gen.nz [203.96.56.128]) by mail.iconz.co.nz (8.8.7/8.8.7) with SMTP id TAA021060887783635 for ; Wed, 18 Feb 1998 19:33:55 +1300 (NZDT) X-Sender: squiz1@pop.actrix.gen.nz Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Wed, 18 Feb 1998 19:35:26 +1300 To: mobile@FreeBSD.ORG From: andrew@squiz.co.nz (Andrew McNaughton) Subject: card modem silo overflow problem? Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi I've got my laptop talking to an external modem using ppp with no problems. I've been trying to get it to do the same for the internal modem, but the output from the modem that ppp sees seems to lag behind. The machine is a Toshiba 530CDT I'm using 2.2.5-RELEASE with PAO-971211 The card is a Microcom Travelcard 28.8P Data/Fax modem. PAO seems to recognise the modem, but reports Sio2: Warning: irq_pending error. When I use a manual terminal session through ppp, the echo for what I type always lags one character behind, and the last modem generated output doesn't appear until I send it something to bush the buffer along. eg I type: atdt 1234567 I see : atdt 123456 I press return, and then the 7 comes up and the modem dials. I hear it dial, but there is no CONNECT message If I wait for the modem to connect, and then press , I see the CONNECT message, along with a syslog message. My screen now looks like this: atdt1234567 CONNECT28800Feb 18 16:48:02 a /kernel: sio2: 1 more silo overflow (total1) and so it goes. I can navigate through login with prompts appearing after I reply to them, and then ppp picks up the session, and lots more of those silo overflow messages start coming through. Any ideas? Andrew McNaughton The effort to understand the universe is Andrew McNaughton one of the very few things that lifts ++64 4 389 6891 human life above the level of farce, andrew@squiz.co.nz and gives it some of the grace http://www.squiz.co.nz of tragedy - Steven Weinberg http://www.newsroom.co.nz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Wed Feb 18 09:20:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA17941 for freebsd-mobile-outgoing; Wed, 18 Feb 1998 09:20:50 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from king.ki.informatik.uni-frankfurt.de (king.ki.informatik.uni-frankfurt.de [141.2.10.16]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA17862 for ; Wed, 18 Feb 1998 09:20:24 -0800 (PST) (envelope-from marko@king.ki.informatik.uni-frankfurt.de) Received: (from marko@localhost) by king.ki.informatik.uni-frankfurt.de (8.7.1/8.7.1) id RAA26722; Wed, 18 Feb 1998 17:59:01 +0100 (MEZ) Date: Wed, 18 Feb 1998 17:59:01 +0100 (MEZ) Message-Id: <199802181659.RAA26722@king.ki.informatik.uni-frankfurt.de> From: Marko Schuetz MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: freebsd-mobile@FreeBSD.ORG Subject: /dev/apm in /etc/fbtab? X-Mailer: VM 6.34 under Emacs 20.2.1 Reply-To: marko@cs.uni-frankfurt.de Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org /dev/apm is not in /etc/fbtab but I would suggest that it should be in there or one should be asked at install if it is ok for users on virtual consoles to be able to sleep the machine. Any comments are appreciated Marko To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Feb 19 03:50:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA00337 for freebsd-mobile-outgoing; Thu, 19 Feb 1998 03:50:16 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from monsoon.dial.pipex.net (monsoon.dial.pipex.net [158.43.128.69]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id DAA00316 for ; Thu, 19 Feb 1998 03:50:05 -0800 (PST) (envelope-from jose@dial.pipex.com) Received: (qmail 9728 invoked from network); 19 Feb 1998 11:50:02 -0000 Received: from libpc33.lib.surrey.ac.uk (HELO libltjm) (131.227.178.43) by smtp.dial.pipex.com with SMTP; 19 Feb 1998 11:50:02 -0000 Message-ID: <000801bd3d2c$c93fd120$2bb2e383@libltjm.lib.surrey.ac.uk> From: "Jose Marques" To: "FreeBSD-mobile" Subject: Ctrl-Alt-Delete Date: Thu, 19 Feb 1998 11:51:47 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I was wondering ... is it possible to modify the behaviour of control-alt-delete (or some other keystroke combination) to put the machine to sleep instead of rebooting it? My PowerBook has this and it's a very useful feature. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Feb 19 16:14:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA27095 for freebsd-mobile-outgoing; Thu, 19 Feb 1998 16:14:06 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from gnyf.int.tele.dk (fw1.inet.tele.dk [193.163.158.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA27014 for ; Thu, 19 Feb 1998 16:13:41 -0800 (PST) (envelope-from soren@t.dk) Received: from localhost (localhost [[UNIX: localhost]]) by gnyf.int.tele.dk (8.8.8/8.8.8) with SMTP id BAA04547; Fri, 20 Feb 1998 01:11:28 +0100 (CET) Date: Fri, 20 Feb 1998 01:11:28 +0100 (CET) From: "Soren S. Jorvang" X-Sender: soren@gnyf.int.tele.dk Reply-To: "Soren S. Jorvang" To: Lourie cc: nate@mt.sri.com, freebsd-mobile@FreeBSD.ORG Subject: Re: Libretto 70CT problems Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org [I'm not on freebsd-mobile] Louie wrote: > > 3) What's involved in getting the IrDA port to work? (I haven't > > tried yet.) Does it just look like another serial port or is there > > more to it? I just bought an IBM PC110 and a serial port IrDA transceiver for another system. With the only useful built-in ports being a 2400 bps modem and the IrDA interface, getting it to work for bootstrapping the box seemed like a good idea :-) I left both serial ports at their defaults, "normal serial port mode", ie. not 'IrDA mode'. Serial-over-IrDA is 8N1, with no carrier signal other than the data itself. $ grep softcar /etc/ttys tty01 "/usr/libexec/getty 115200np" vt340 on softcar $ grep 115200np /etc/gettytab 115200np::np:sp#115200: I do intend to run PPP over the link once I get a proper system installed on the portable, to get compression and CRC. The link is very reliable when the transceivers are within range of eachother, but at the edge of the effective range, data gets transformed to complete garbage. Nate wrote: > There's more to it. Apparently it doesn't 'just work', and requires > non-existant patches to have it do anything useful. (At least) if the port is a 115K2bps version, it should be able to look like a 16550 for running serial-over-IrDa. -- Soren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Feb 19 16:19:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA28274 for freebsd-mobile-outgoing; Thu, 19 Feb 1998 16:19:27 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA28193 for ; Thu, 19 Feb 1998 16:18:54 -0800 (PST) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id RAA17643; Thu, 19 Feb 1998 17:18:45 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id RAA10636; Thu, 19 Feb 1998 17:18:43 -0700 Date: Thu, 19 Feb 1998 17:18:43 -0700 Message-Id: <199802200018.RAA10636@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "Soren S. Jorvang" Cc: Lourie , nate@mt.sri.com, freebsd-mobile@FreeBSD.ORG Subject: Re: Libretto 70CT problems In-Reply-To: References: X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I just bought an IBM PC110 and a serial port IrDA transceiver for another > system. > > With the only useful built-in ports being a 2400 bps modem and the IrDA > interface, getting it to work for bootstrapping the box seemed like a good > idea :-) > > I left both serial ports at their defaults, "normal serial port mode", ie. > not 'IrDA mode'. > > Serial-over-IrDA is 8N1, with no carrier signal other than the data itself. Are you using FreeBSD, or Windows? If the latter, then it *will* work because Windows has a special driver. > $ grep softcar /etc/ttys > tty01 "/usr/libexec/getty 115200np" vt340 on softcar > $ grep 115200np /etc/gettytab > 115200np::np:sp#115200: > > I do intend to run PPP over the link once I get a proper system installed > on the portable, to get compression and CRC. The link is very reliable when > the transceivers are within range of eachother, but at the edge of the > effective range, data gets transformed to complete garbage. Interesting. As I understand it, the Ir stuff isn't Full-duplex, and all of the serial TCP/IP protocols assume a full-duplex line. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Feb 19 16:29:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA00534 for freebsd-mobile-outgoing; Thu, 19 Feb 1998 16:29:46 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from critter.freebsd.dk (critter.freebsd.dk [195.8.129.14]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA00472 for ; Thu, 19 Feb 1998 16:29:13 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost.cybercity.dk [127.0.0.1]) by critter.freebsd.dk (8.8.7/8.8.5) with ESMTP id BAA01441; Fri, 20 Feb 1998 01:23:52 +0100 (CET) To: Nate Williams cc: "Soren S. Jorvang" , Lourie , freebsd-mobile@FreeBSD.ORG Subject: Re: Libretto 70CT problems In-reply-to: Your message of "Thu, 19 Feb 1998 17:18:43 MST." <199802200018.RAA10636@mt.sri.com> Date: Fri, 20 Feb 1998 01:23:51 +0100 Message-ID: <1439.887934231@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199802200018.RAA10636@mt.sri.com>, Nate Williams writes: >Interesting. As I understand it, the Ir stuff isn't Full-duplex, and >all of the serial TCP/IP protocols assume a full-duplex line. Nothing you cannot deal with by letting the half-duplex appear to be flow-control... -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." "Drink MONO-tonic, it goes down but it will NEVER come back up!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Feb 19 16:35:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA01286 for freebsd-mobile-outgoing; Thu, 19 Feb 1998 16:35:08 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from gnyf.int.tele.dk (fw1.inet.tele.dk [193.163.158.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA01265 for ; Thu, 19 Feb 1998 16:34:59 -0800 (PST) (envelope-from soren@t.dk) Received: from localhost (localhost [[UNIX: localhost]]) by gnyf.int.tele.dk (8.8.8/8.8.8) with SMTP id BAA04653; Fri, 20 Feb 1998 01:32:35 +0100 (CET) Date: Fri, 20 Feb 1998 01:32:35 +0100 (CET) From: "Soren S. Jorvang" X-Sender: soren@gnyf.int.tele.dk Reply-To: "Soren S. Jorvang" To: Nate Williams cc: Louie , freebsd-mobile@FreeBSD.ORG Subject: Re: Libretto 70CT problems In-Reply-To: <199802200018.RAA10636@mt.sri.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 19 Feb 1998, Nate Williams wrote: > > I just bought an IBM PC110 and a serial port IrDA transceiver for another > > system. > > > > With the only useful built-in ports being a 2400 bps modem and the IrDA > > interface, getting it to work for bootstrapping the box seemed like a good > > idea :-) > > > > I left both serial ports at their defaults, "normal serial port mode", ie. > > not 'IrDA mode'. > > > > Serial-over-IrDA is 8N1, with no carrier signal other than the data itself. > > Are you using FreeBSD, or Windows? If the latter, then it *will* work > because Windows has a special driver. Well, NetBSD (both sides) of course :-) Nothing tricky like running DOS thingys beforehand. I assume FreeBSD will be the same, modulo any sio/com differences. > > $ grep softcar /etc/ttys > > tty01 "/usr/libexec/getty 115200np" vt340 on softcar > > $ grep 115200np /etc/gettytab > > 115200np::np:sp#115200: > > > > I do intend to run PPP over the link once I get a proper system installed > > on the portable, to get compression and CRC. The link is very reliable when > > the transceivers are within range of eachother, but at the edge of the > > effective range, data gets transformed to complete garbage. > > Interesting. As I understand it, the Ir stuff isn't Full-duplex, and > all of the serial TCP/IP protocols assume a full-duplex line. Yes, it is half-duplex. I too anticipate poor performance as a result. Apparently, there is a 'radiod', or something, for Linux that speaks kind words to half-duplex links. First, I wan't to try running the small box diskless to see if it is powerful enough to be interesting. If it is, I will buy a compact flash disk for it, removing the need to ethernet, making IrDA very, very interesting. It not, I am going to make it a wireless X terminal, same thing with IrDA. At that point, I will probably try a hack to pppd. -- Soren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Thu Feb 19 17:45:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA12137 for freebsd-mobile-outgoing; Thu, 19 Feb 1998 17:45:00 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA12126 for ; Thu, 19 Feb 1998 17:44:58 -0800 (PST) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id SAA18112; Thu, 19 Feb 1998 18:24:35 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id SAA10948; Thu, 19 Feb 1998 18:24:22 -0700 Date: Thu, 19 Feb 1998 18:24:22 -0700 Message-Id: <199802200124.SAA10948@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Poul-Henning Kamp Cc: Nate Williams , "Soren S. Jorvang" , Lourie , freebsd-mobile@FreeBSD.ORG Subject: Re: Libretto 70CT problems In-Reply-To: <1439.887934231@critter.freebsd.dk> References: <199802200018.RAA10636@mt.sri.com> <1439.887934231@critter.freebsd.dk> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > >Interesting. As I understand it, the Ir stuff isn't Full-duplex, and > >all of the serial TCP/IP protocols assume a full-duplex line. > > Nothing you cannot deal with by letting the half-duplex appear to > be flow-control... Thus requiring a new kernel driver, which is the point I tried to make earlier. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Sat Feb 21 05:55:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA27532 for freebsd-mobile-outgoing; Sat, 21 Feb 1998 05:55:48 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from iglou.com (exim@iglou2.iglou.com [192.107.41.17]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id FAA27473 for ; Sat, 21 Feb 1998 05:54:16 -0800 (PST) (envelope-from patrick@cre8tivegroup.com) Received: from patrick.com [204.255.227.109] by iglou.com with smtp (8.7.3/8.6.12) id 0y6FNZ-00037w-00; Sat, 21 Feb 1998 08:54:10 -0500 Message-ID: X-Mailer: XFMail 1.1 [p0] on FreeBSD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Sat, 21 Feb 1998 08:15:29 -0500 (EST) Organization: The Creative Group From: Patrick Gardella To: mobile@FreeBSD.ORG Subject: lpt0 on Toshiba 2155? Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Greetings all mobile-rs: I've got a Toshiba-T2155 (486DX/4 75MHz 20Megs RAM) running 2.2.5. I've got the parallel port set to ECP right now in BIOS. Ghostscript is 5.10 and apsfilter is 4.9.3. Now for my problem: My Epson Color Stylus 600 doesn't work on this port in FreeBSD. (Neither does my HP 870Cxi). My Juki 6100 daisywheel (can you say *old*?) works, but very slowly. Let me revise that, those printers work, but it takes like 45 minutes to print *one* line. In Windoze 95, they work fine and fast. I tried the printers on my 2.2.5 desktop at work (Pentium-133) and it works like a dream. (using the same ghostscript, cabling, printer and print test file.) When I print lptest | lpr (on the Epson and the laptop) it prints fine. But cat-ing a text file to lpr yeilds the same, slow results (albeit faster than with ghostscript sending the data). It takes like 2 minutes to print a 10 line ascii file. I thought it might be the lpd, so I piped the output of the ghostscript directly to /dev/lpt0 and got the same results. And to make sure I covered all the bases, I also tried using the standard stcolor ghostscript device instead of the unified print device (stc600pl.upp). I also went back to ghostscript 2.6.2 and tried the escp/2 device. There are no errors on lpt0 when I boot with -v. The messages are: lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface As it is trying to print, top shows that gs takes next to no processor time: PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 223 root 8 0 4444K 3620K lpwrit 0:14 0.00% 0.00% gs (note: this is with only the basic X running, so there is no CPU hogging processes running.) and ps shows: # ps ax | grep gs 223 p1 S+ 0:14.52 gs @stc600pl.upp -sOutputFile=/dev/lpt0 errata-2.ps -c quit It looks as if the printer is waiting for data and the computer never sends it. Piping it to "|lpr" with a straight through print filter on lp shows that it says it's printing, but again, never does anything. In case someone will ask, the command I use for the printer is: gs @stc600pl.upp -sOutputFile=/dev/lpt0 errata-2.ps -c quit Does anyone have any ideas why this isn't working? It should. Is there anyway to speed up the output to the parallel port? I'll try anything!!! I just bought this printer four days ago, and I've spent hours trying all sorts of stuff. Help! Patrick +-------------------------------------------------------------------+ |Patrick S. Gardella Director of Web Development | | The Creative Group 1-800-804-0783 606-858-9054 (fax) | |-------------------------------------------------------------------| | http://www.cre8tivegroup.com | |-------------------------------------------------------------------| | Patrick@cre8tivegroup.com PGP Key ID 0xEE2D47A9 | +-------------------------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message From owner-freebsd-mobile Sat Feb 21 06:59:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA00965 for freebsd-mobile-outgoing; Sat, 21 Feb 1998 06:59:19 -0800 (PST) (envelope-from owner-freebsd-mobile@FreeBSD.ORG) Received: from iglou.com (exim@iglou2.iglou.com [192.107.41.17]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id GAA00894 for ; Sat, 21 Feb 1998 06:57:45 -0800 (PST) (envelope-from patrick@cre8tivegroup.com) Received: from patrick.com [204.255.227.120] by iglou.com with smtp (8.7.3/8.6.12) id 0y6GN3-00068F-00; Sat, 21 Feb 1998 09:57:42 -0500 Message-ID: X-Mailer: XFMail 1.1 [p0] on FreeBSD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Sat, 21 Feb 1998 09:53:15 -0500 (EST) Organization: The Creative Group From: Patrick Gardella To: mobile@FreeBSD.ORG Subject: RE: lpt0 on Toshiba 2155? - Never mind Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org As much as I hate to say it, "Never mind." The interupt doesn't work on my lpt0. So when I switched to polling mode, it now works fast and clean. Sometimes I think that just posting a message releases your mind to think about the problem from a whole new angle. Thanks to anyone who responed before you got this. Patrick On 21-Feb-98 Patrick Gardella wrote: >Greetings all mobile-rs: > >I've got a Toshiba-T2155 (486DX/4 75MHz 20Megs RAM) running 2.2.5. I've got >the >parallel port set to ECP right now in BIOS. Ghostscript is 5.10 and apsfilter >is 4.9.3. > >Now for my problem: My Epson Color Stylus 600 doesn't work on this port in >FreeBSD. (Neither does my HP 870Cxi). My Juki 6100 daisywheel (can you say >*old*?) works, but very slowly. +-------------------------------------------------------------------+ |Patrick S. Gardella Director of Web Development | | The Creative Group 1-800-804-0783 606-858-9054 (fax) | |-------------------------------------------------------------------| | http://www.cre8tivegroup.com | |-------------------------------------------------------------------| | Patrick@cre8tivegroup.com PGP Key ID 0xEE2D47A9 | +-------------------------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message