Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 29 Aug 2015, 14:53
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
puppyserialdetect: detects serial mouse and serial modem
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [26 Posts]   Goto page: 1, 2 Next
Author Message
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7454
Location: Perth, Western Australia

PostPosted: Sun 16 Apr 2006, 06:14    Post subject:  puppyserialdetect: detects serial mouse and serial modem  

Everyone and their dog needs to test this, as I need to know that it works okay
before putting into Puppy to run at every bootup.

See the Developer News for April 16:
http://www.puppyos.com/news.htm

I already know of one problem -- it detects ports ttyS0 - ttyS3, but some
(admittedly rare) internal true hardware PCI modems use ttyS4 (COM5).
I know, I've got one of them.
Back to top
View user's profile Send private message Visit poster's website 
jcoder24


Joined: 06 May 2005
Posts: 601
Location: Barbados

PostPosted: Sun 16 Apr 2006, 06:41    Post subject:  

Puppy108r1

no serial mouse attached (usb mouse)
Code:

# time ./puppyserialdetect

real    0m2.258s
user    0m0.000s
sys     0m0.000s


serial mouse (and usb mouse) attached
Code:

# time ./puppyserialdetect
Type:modem|Port:/dev/ttyS1|Speed:1200

real    0m8.703s
user    0m0.000s
sys     0m0.000s


So far time the times are good. Will install a modem and post those results.
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7454
Location: Perth, Western Australia

PostPosted: Sun 16 Apr 2006, 06:54    Post subject:  

jcoder24 wrote:
serial mouse (and usb mouse) attached
Code:

# time ./puppyserialdetect
Type:modem|Port:/dev/ttyS1|Speed:1200



Hmmm, it is being detected at least, but is being reported as a modem, when
it should have "Type:mouse".
Is the ttyS1 (COM2) correct?
What model/manufacturer mouse is it?
Back to top
View user's profile Send private message Visit poster's website 
jcoder24


Joined: 06 May 2005
Posts: 601
Location: Barbados

PostPosted: Sun 16 Apr 2006, 07:05    Post subject:  

BarryK wrote:
Is the ttyS1 (COM2) correct?

Yes.

Swapped to COM1
Code:

# time ./puppyserialdetect
Type:modem|Port:/dev/ttyS0|Speed:230400
Type:mouse|Port:/dev/ttyS0

real    0m2.697s
user    0m0.000s
sys     0m0.000s


Swapped back to COM2
Code:

# time ./puppyserialdetect
Type:modem|Port:/dev/ttyS1|Speed:230400
Type:mouse|Port:/dev/ttyS1

real    0m2.703s
user    0m0.000s
sys     0m0.000s


I'll reboot and test again as a controll.

Quote:
What model/manufacturer mouse is it?

Genius NetScroll
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7454
Location: Perth, Western Australia

PostPosted: Sun 16 Apr 2006, 07:35    Post subject:  

jcoder24 wrote:
BarryK wrote:
Is the ttyS1 (COM2) correct?

Yes.

Swapped to COM1
Code:

# time ./puppyserialdetect
Type:modem|Port:/dev/ttyS0|Speed:230400
Type:mouse|Port:/dev/ttyS0

real    0m2.697s
user    0m0.000s
sys     0m0.000s


Swapped back to COM2
Code:

# time ./puppyserialdetect
Type:modem|Port:/dev/ttyS1|Speed:230400
Type:mouse|Port:/dev/ttyS1

real    0m2.703s
user    0m0.000s
sys     0m0.000s


I'll reboot and test again as a controll.

Quote:
What model/manufacturer mouse is it?

Genius NetScroll


Do you now have a actual modem plugged in?
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15154
Location: Paradox Realm

PostPosted: Sun 16 Apr 2006, 07:39    Post subject:  

I downloaded the .gz file (twice) and clicked on it from Rox but it would not expand. Most .gz seem OK. Is there something I need to do?
_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
tronkel


Joined: 30 Sep 2005
Posts: 1104
Location: Vienna Austria

PostPosted: Sun 16 Apr 2006, 07:57    Post subject: puppyserialdetect  

Ths gz file does not extract. I therefore renamed the file as puppyserialdetect with no extension and then changed persissions in ROX Filer to executable.

This seemed to run but with an error message "cannot execute binary file"
I then dumped this error message to 2>/dev/null

The program then seemed to execute but with no output at all. So this does not appear to work on my system.

Microsoft serial mouse on tty0 This mouse is plugged into a serial porrt using a ps2 to serial adaptor so I wonder if the chip inside the mouse is actually correctly reporting that it is a PS2 type but the OS cannot dedect this because of the fact that the interface itself is serial.

Buy I wonder why the executable peppyserialdetect does not run or even give any sensible output?

_________________
Life is too short to spend it in front of a computer
Back to top
View user's profile Send private message Visit poster's website AIM Address 
Sage

Joined: 04 Oct 2005
Posts: 4943
Location: GB

PostPosted: Sun 16 Apr 2006, 08:21    Post subject:  

Same problem - sorry, Barry.
Most users will not have a clue how to deal with .gz files. This has been one of THE major issues in Linux (file manipulation and installation) that, until you came along, the gurus refused to listen about. Technospeak isn't relevant to the 99% trying just to use the OS. The mark of a good scientist is how well their art can be communicated to and used by the unwashed masses.
I've spent half-an-hour already trying to guess how your file might be used. Frankly, I have absolutely no idea! No progress. Zilch. And I consider myself as an HW geek, so the chasm is about as deep and wide as it ever was.
Give me a definitive recipe and I'd be more than happy to help.
Back to top
View user's profile Send private message 
tronkel


Joined: 30 Sep 2005
Posts: 1104
Location: Vienna Austria

PostPosted: Sun 16 Apr 2006, 09:16    Post subject: Scientists and the Great Unwashed  

Yes it's a hard life for talented scientists. As Sage said in the last post an everday measure of the success of any invention is its take-up and usage by the Great Unwashed (whoever they are!) Gosh I'm glad I don't have to associate with the likes of them! Rolling Eyes

I the meantime how to proceed with getting this mouse detection to work for serial devices. In one of my recent posts on this subject I mentioned that I had noted that Puppy simply does not remember the mouse setting on a re-boot. Maybe therefore the easiest solution is for the user to simply tell Puppy what sort of mouse he/she has and then for Puppy to store this until the next re-boot.

Maybe all that is necessary is to look at the Xorgwizard code and check if the correct mouse info is being saved to persistant storage. I'm not exactly sure where to look for this but I would have a go if I was pointed in the correct direction (no mousey pun intended!)

_________________
Life is too short to spend it in front of a computer
Back to top
View user's profile Send private message Visit poster's website AIM Address 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7454
Location: Perth, Western Australia

PostPosted: Sun 16 Apr 2006, 10:08    Post subject:  

Lobster wrote:
I downloaded the .gz file (twice) and clicked on it from Rox but it would not expand. Most .gz seem OK. Is there something I need to do?

Open a terminal window where you downloaded it (Rox right-click menu --> Xterm here):
Code:
# gunzip puppyserialdetect.gz


Then run it: EDITED: added chmod line, do this once:
Code:
# chmod 755 puppyserialdetect
# ./puppyserialdetect


You must run it from a terminal window to see the output. This is not a GUI
application, it is intended to run during bootup and output to stdout (the console).

Also, if you are using the serial mouse while X is running, I don't know if that
will complicate things. You might also want to try it by exiting from X
(Main menu --> Shudown --> Exit to prompt), then "cd" to whereever it
is downloaded, then run it:
Code:
# cd /root   (for example)
# ./puppyserialdetect

Last edited by BarryK on Sun 16 Apr 2006, 18:20; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11522
Location: Arizona USA

PostPosted: Sun 16 Apr 2006, 12:22    Post subject:  

Here's what I got:
Quote:
sh-3.00# gunzip puppyserialdetect.gz
sh-3.00# ./puppyserialdetect
sh: ./puppyserialdetect: Permission denied
sh-3.00#
Back to top
View user's profile Send private message 
jcoder24


Joined: 06 May 2005
Posts: 601
Location: Barbados

PostPosted: Sun 16 Apr 2006, 13:11    Post subject:  

BarryK wrote:
Do you now have a actual modem plugged in?


No modem connected.


** EDIT **
Since the initial test each time I run puppyserialdetect I get the two lines:
Code:
Type:modem|Port:/dev/ttySn|Speed:230400
Type:mouse|Port:/dev/ttySn


I thought I had an internal hardware modem lying around, but that turned out to be a winmodem Sad
Back to top
View user's profile Send private message 
tronkel


Joined: 30 Sep 2005
Posts: 1104
Location: Vienna Austria

PostPosted: Sun 16 Apr 2006, 14:08    Post subject: Puppyderialdetect -works ok now  

OK got it to work after gunzipping it and then altering the permissions to executable using ROX.

It now correctly detects my serial mouse on port tty0.

Now its a matter of getting Puppy 2 to run this at boot time ant then to hold the info for the next boot-up

Getting there!

_________________
Life is too short to spend it in front of a computer
Back to top
View user's profile Send private message Visit poster's website AIM Address 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15154
Location: Paradox Realm

PostPosted: Sun 16 Apr 2006, 15:47    Post subject:  

Many thanks - plugged in my USR Robotics - it should be 330000 for speed but I have had lower speed from other recognition software - so the firmware may be giving the wrong signal - point is it is detecting the modem . . . Cool

Code:
Type:modem|Port:/dev/ttyS0|Speed:230400

_________________
Puppy WIKI

Last edited by Lobster on Sun 16 Apr 2006, 22:31; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Sit Heel Speak


Joined: 30 Mar 2006
Posts: 2595
Location: downwind

PostPosted: Sun 16 Apr 2006, 18:17    Post subject: Results of puppyserialdetect on Thinkpad T21 laptop  

Puppy 2 alpha 0.0.3. Mouse is a Logitech cordless with the receiver connected through a USB-to-PS2 adapter. There is a Xircom combination PCI serial modem and 100BaseT network interface card factory-installed inside the Thinkpad but I am using only the network half not the modem. So far, Puppy 2 boots and runs well, except I lost the network connection to my local dedicated proxy server last night. I don't know if this is a Puppy 2 issue, a SeaMonkey issue, or a Sit Heel Speak issue. I downloaded the puppyserialdetect.gz file in Windows 98SE / IE6 and unzipp'ed it using TugZip to the root directory of the hard disk, then booted Puppy. Ran puppyserialdetect from rxvt, sending this from SeaMonkey.

BarryK is The Man...BE like him!!! Very Happy --is my new motto. But I sure wish pakt would get Puppy, any Puppy, to boot from a USB key through the adapter card in my elderly Thinkpad's PCMCIA slot...

sh-3.00# time /mnt/hda1/puppyserialdetect

real 0m0.004s
user 0m0.000s
sys 0m0.010s
sh-3.00#

Sit

Last edited by Sit Heel Speak on Sun 16 Apr 2006, 18:28; edited 1 time in total
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [26 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0849s ][ Queries: 12 (0.0237s) ][ GZIP on ]