from preamble:
"Change Set: kgf-X10Driver Date: 20 March 2001 Author: kgf
This is a set of classes to control X10 (www.x10.com) wireless remote controls. Specifically, the MP3 Remote and the MouseRemote are understood by this driver.
Also included is RemoteControl, an example application that lets you bind remote buttons to OS-level applications.
Please see http://kgf.swiki.net/14 for documentation. "!
Mea Culpa... did I send this too soon?
For some reason, my driver cannot open the serial port on Unix with the Sourceforge VM I compiled a couple weeks ago. And unfortunately I can't try it with the latest Sourceforge code...the VM builds, but when I run it it drives the CPU up to 100% and gives me a big black window. :(
It works fine with my much older 3.1 VM, however (even running in a 3.2 image with the old 3.1 VM).
I know it works on the latest 3.2 Windows VM..ack!
On Wednesday 20 March 2002 07:45 pm, Kevin Fisher wrote:
Mea Culpa... did I send this too soon?
For some reason, my driver cannot open the serial port on Unix with the Sourceforge VM I compiled a couple weeks ago. And unfortunately I can't try it with the latest Sourceforge code...the VM builds, but when I run it it drives the CPU up to 100% and gives me a big black window. :(
It works fine with my much older 3.1 VM, however (even running in a 3.2 image with the old 3.1 VM).
I know it works on the latest 3.2 Windows VM..ack!
I have a recently compiled SF VM. However, I eventually had to fall back to GCC 2.95.3 for compilation (I don't know whether I had serial problems or not, but the 3D stuff had problems). This code dials my modem (/dev/ttyS4):
p _ SerialPort new baudRate: 9600; "these are all defaults and don't need to be called" dataBits: 8; inputFlowControlType: 0; outputFlowControlType: 0; parityType: 0; stopBitsType: 1.
p openPort: 4.
p nextPutAll: 'ATDT611#', String cr. "dial" p nextPutAll: String cr.
"p close"
Hi Ned:
On Wed, Mar 20, 2002 at 08:01:40PM -0800, Ned Konz wrote: [snip]
I have a recently compiled SF VM. However, I eventually had to fall back to GCC 2.95.3 for compilation (I don't know whether I had serial problems or not, but the 3D stuff had problems). This code dials my modem (/dev/ttyS4):
Actually, this was compiled on GCC 2.95.3.
I _did_ manage to get a working VM from the latest sourceforge after a bit of housecleaning...new VMMaker, the latest OSProcess, etc. It runs fine now with the latest bits, but it still cannot open the serial port. Actually -opening- the serial port seems fine...it claims to have opened it, but is not reading any bits from it. If I use my older 3.1 VM on the 3.2 image, it works fine however...
I'll look into this tonight after work and see if it's something a bit more general to SerialPort. I'm positive my code works on the equivalent Windows image and latest VM. (err...let me caveat that by saying I'll try it again and make -sure- it works on the Windows VM)
However, I -did- notice that I could not build the SerialPort plugin as 'internal'..when I did so, VMMaker complained about a missing key. It only compiled as 'external'.
p _ SerialPort new baudRate: 9600; "these are all defaults and don't need to be called" dataBits: 8; inputFlowControlType: 0; outputFlowControlType: 0; parityType: 0; stopBitsType: 1.
p openPort: 4.
p nextPutAll: 'ATDT611#', String cr. "dial" p nextPutAll: String cr.
"p close"
-- Ned Konz currently: Stanwood, WA email: ned@bike-nomad.com homepage: http://bike-nomad.com
Kevin Fisher kgf@golden.net wrote:
However, I -did- notice that I could not build the SerialPort plugin as 'internal'..when I did so, VMMaker complained about a missing key. It only compiled as 'external'.
I don't know why building it internally would be a problem, but anyway, maybe the external plugin isn't being found? What does "Smalltalk listLoadedModules" say after you try to run your serial port code? Is SerialPlugin in the list?
You can type "squeak -version" to see what locations the VM will look for external plugins. It will also look in the current directory, which I'm not sure s listed.
-Lex
Kevin Fisher kgf@golden.net is claimed by the authorities to have written:
However, I -did- notice that I could not build the SerialPort plugin as 'internal'..when I did so, VMMaker complained about a missing key. It only compiled as 'external'.
What was the missing key? It generates, compiles and runs ok on my machine.
tim
Hi Tim:
I've got the latest VMMaker and I've designated both FilePlugin and SerialPlugin as 'internal'. Everything else is external. When I click the "generate all" button, it clunks away until it hits SerialPlugin, at which point I get a box telling me "Error: key not found" Dictionary(Object)>>error: Dictionary>>errorKeyNotFound [] in Dictionary>>at: Dictionary>>at:ifAbsent: Dictionary>>at: [] in VMMaker>>generateExportsFile [] in VMMaker>>plugins:do: . . .
When I debug it, the missing key is 'SerialPlugin' itself. The offending line appears to be in VMMaker>>generateExportsFile:
self internalPluginsDo:[:cl| key _ cl moduleName. list at: key put: (self exports at: key)].
I notice that the 'list' variable contains stuff pertaining to FilePlugin at the time this occurs... FilePlugin is 'internal' and is encountered by VMMaker before the SerialPlugin.
I'm using VMMaker-3-2-version5.6.cs, for what it's worth!
On Thu, Mar 21, 2002 at 01:15:25PM -0800, Tim Rowledge wrote:
Kevin Fisher kgf@golden.net is claimed by the authorities to have written:
However, I -did- notice that I could not build the SerialPort plugin as 'internal'..when I did so, VMMaker complained about a missing key. It only compiled as 'external'.
What was the missing key? It generates, compiles and runs ok on my machine.
tim
-- Tim Rowledge, tim@sumeru.stanford.edu, http://sumeru.stanford.edu/tim Strange OpCodes: SDD: Scratch Disk and Die
Kevin Fisher kgf@golden.net is claimed by the authorities to have written:
Hi Tim:
[snip]
When I debug it, the missing key is 'SerialPlugin' itself. The offending line appears to be in VMMaker>>generateExportsFile:
[snip]
I'm using VMMaker-3-2-version5.6.cs, for what it's worth! Aargh! Yup, I
screwed up. the .6 version was a quick hack at making a way to build a list of all the files used in the generated configuration and in the process of moving all sorts of things around I messed up a crucial detail relating to the internal plugins.
Quick fix - use the .5 version. 'Proper' fix coming soon. Very sorry about that. The good news is that the next version can look at timestamps and avoid generating a plugin for which there is already a file at least as recent as the plugin class. This means repeatedly hitting 'Generate All' will go very fast after the first time :-)
Now as for the strictly-serial problem, there is a quite reasonable chance that the code on SF got damaged by me when I processed it for uploading. The bad news is that since I don't know about linux serial ports you're on your own w.r. t working out the differences. Maybe Ned (I think Ned did the unix serial plugin?) can spot the blooper? tim
Ned Konz ned@bike-nomad.com is claimed by the authorities to have written:
I have a recently compiled SF VM. However, I eventually had to fall back to GCC 2.95.3 for compilation (I don't know whether I had serial problems or not, but the 3D stuff had problems).
Was that a gcc version thing, or are you still having problems? It appears to be ok on my x86 linux machine with a vm compiled late last week.
tim PS should /dev/dsp really be 0 crw------- 1 tim root /dev/dsp ? Is this why I get no sound from squeak, but a console message of /dev/dsp: No such device whenever I try the sound stuff?
On Thu, 21 Mar 2002, Tim Rowledge wrote:
PS should /dev/dsp really be 0 crw------- 1 tim root /dev/dsp ? Is this why I get no sound from squeak, but a console message of /dev/dsp: No such device whenever I try the sound stuff?
Maybe, but I doubt it: I used to get the /dev/dsp: No such device message when I had no sound module installed (because I didn't have a supported sound card).
Cheers
John
On Fri, 22 Mar 2002, John Hinsley wrote:
On Thu, 21 Mar 2002, Tim Rowledge wrote:
PS should /dev/dsp really be 0 crw------- 1 tim root /dev/dsp ? Is this why I get no sound from squeak, but a console message of /dev/dsp: No such device whenever I try the sound stuff?
Maybe, but I doubt it: I used to get the /dev/dsp: No such device message when I had no sound module installed (because I didn't have a supported sound card).
True. I have the same permissions and sound works fine.
Does the volume control work for others? I mean the one in the Nav Bar after you enabled includeSoundControlInNavigator? It changes the volume here but with a lot of clicks and not proportionally - actually it seems rather random to me ...
-- Bert
Bert Freudenberg bert@isg.cs.uni-magdeburg.de is claimed by the authorities to have written:
On Fri, 22 Mar 2002, John Hinsley wrote:
On Thu, 21 Mar 2002, Tim Rowledge wrote:
PS should /dev/dsp really be 0 crw------- 1 tim root /dev/dsp ? Is this why I get no sound from squeak, but a console message of /dev/dsp: No such device whenever I try the sound stuff?
Maybe, but I doubt it: I used to get the /dev/dsp: No such device message when I had no sound module installed (because I didn't have a supported sound card).
True. I have the same permissions and sound works fine.
Oh rats. Bang goes that simple fix then.
It really is too bad; I know that sound can work, it used to work, but 'upgrading' my machine has left it mute. Kind people have suggested all sorts of things and none of them seem to work.
tim
On Fri, 22 Mar 2002, Tim Rowledge wrote:
Bert Freudenberg bert@isg.cs.uni-magdeburg.de is claimed by the authorities to have written:
On Fri, 22 Mar 2002, John Hinsley wrote:
On Thu, 21 Mar 2002, Tim Rowledge wrote:
PS should /dev/dsp really be 0 crw------- 1 tim root /dev/dsp ? Is this why I get no sound from squeak, but a console message of /dev/dsp: No such device whenever I try the sound stuff?
Maybe, but I doubt it: I used to get the /dev/dsp: No such device message when I had no sound module installed (because I didn't have a supported sound card).
True. I have the same permissions and sound works fine.
Oh rats. Bang goes that simple fix then.
It really is too bad; I know that sound can work, it used to work, but 'upgrading' my machine has left it mute. Kind people have suggested all sorts of things and none of them seem to work.
I wonder if the issue is connected to Linux distros (SuSE, at least) changing from compiled into Kernel sound support to modules? Do you have any kind of sound utility on your install CD?
Can someone who knows their RedHat and is passing by Tim pop in and sort out his sound and Netatalk?
Cheers
John
John Hinsley johnhinsley@blueyonder.co.uk is claimed by the authorities to have written:
I wonder if the issue is connected to Linux distros (SuSE, at least) changing from compiled into Kernel sound support to modules? Do you have any kind of sound utility on your install CD?
Thanks to helpful suggestions frma variet of people (particularly Bran Keefer) I now have working Squeak sound - Yay!
The key seems to have been finding sndconfig and installing it ( which required installing another half-dozen things - oh, the joy of modules :-) and trying out successive setting of the soundblaster drivers until sometihng worked. Finally it did and I got to hear Linus T explain how to say linux. Funny, it didn't sound much like he did last time I bumped into him. Still, the three-part trio (are there four part trios?) in the Fun With Music project worked, so I'm much happier.
Thanks very much everyone.
Can someone who knows their RedHat and is passing by Tim pop in and sort out his sound and Netatalk?
Ah, now there's another story....
tim
On Fri, 22 Mar 2002, Bert Freudenberg wrote:
On Fri, 22 Mar 2002, John Hinsley wrote:
On Thu, 21 Mar 2002, Tim Rowledge wrote:
PS should /dev/dsp really be 0 crw------- 1 tim root /dev/dsp ? Is this why I get no sound from squeak, but a console message of /dev/dsp: No such device whenever I try the sound stuff?
Maybe, but I doubt it: I used to get the /dev/dsp: No such device message when I had no sound module installed (because I didn't have a supported sound card).
True. I have the same permissions and sound works fine.
Does the volume control work for others? I mean the one in the Nav Bar after you enabled includeSoundControlInNavigator? It changes the volume here but with a lot of clicks and not proportionally - actually it seems rather random to me ...
I find it actually moves too fast to be very easy to control (hence I tend to use kmixer to adjust volume instead) but I get no clicks (this is with the ens1371.o stuff for a soundblaster installed).
Cheers
John
On Wednesday 20 March 2002 07:45 pm, Kevin Fisher wrote:
Mea Culpa... did I send this too soon?
For some reason, my driver cannot open the serial port on Unix with the Sourceforge VM I compiled a couple weeks ago. And unfortunately I can't try it with the latest Sourceforge code...the VM builds, but when I run it it drives the CPU up to 100% and gives me a big black window. :(
Are you running artsd (like with KDE) or esd (like with Gnome)? These hold the port open.
Try $ /usr/sbin/lsof | grep dsp artsd 1134 ned 7w CHR 14,3 192759 /dev/dsp
If you're running artsd, run Squeak like this:
artsdsp squeak ...
If you're running esd, run Squeak like this:
esddsp squeak ...
On Fri, Mar 22, 2002 at 11:14:16AM -0800, Ned Konz wrote:
On Wednesday 20 March 2002 07:45 pm, Kevin Fisher wrote:
Mea Culpa... did I send this too soon?
For some reason, my driver cannot open the serial port on Unix with the Sourceforge VM I compiled a couple weeks ago. And unfortunately I can't try it with the latest Sourceforge code...the VM builds, but when I run it it drives the CPU up to 100% and gives me a big black window. :(
Are you running artsd (like with KDE) or esd (like with Gnome)? These hold the port open.
Yes and no...I do run aRts, but at the time it was suspended, and I usually disable audio output with Squeak anyway.
I'm not sure what the problem was, but clearing out my src and build directories, and then grabbing the latest CVS seemed to clear it up...
Incidentally, speaking of Squeak sound on Linux, I've been experimenting with the latest ALSA drivers...I must say I'm quite impressed with them. The 0.9 drivers multiplex audio streams just like Win2K, which means no more worrying about a single application blocking the sound device, and no more need to get around the blocking sound device with ESD and aRts. I think the blocking audio device is one of the biggest irritations I have with Linux these days, so I'm glad to see that go. The OSS emulation works great...I had both Squeak and XMMS playing music simultaneously without any ESD/aRtsd intermediary.
ALSA has the added plus of having a real user-level API for developing sound apps, so no need for ugly ioctls. Considering the next major Linux kernel will come stock with ALSA, this could be a real plus for Squeak audio on Linux. :)
squeak-dev@lists.squeakfoundation.org